Skip to content

abhinvsinh/TestRepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

gitApiWrapper

Java cli wrapper for github API CLI returns

  • Top-N repos by number of stars.
  • Top-N repos by number of forks.

CLI handles pagination and waits if you have excceded the rate limit. It will wait till the rate limit is reset based on the rate limit api https://developer.github.com/v3/rate_limit/ .

Initial setup

  • In eclipse import the project as new java project by using the .projects file
  • Add the simple-jsonn and jcommander jar to your build path
  • Entry point is CLI.java

Using the executable binary

  • Executable is at the path /executable and is named gitApiWrapperCli.jar
  • Download the executable on to a JVM enabled machine.
  • Run java -jar gitApiWrapperCli.jar -h to see all the options
java -jar gitApiWrapperCli.jar -h
Usage: gitPopSearch [options]
  Options:
    -h, --help
      Displays help information
  * -c, --count
      Number of results
      Default: 0
  * -o, --organization
      Git Organization for searching
  * -s, --sortFactor
      Sorting factor should be  stars || fork || PullReq || contrib_per  where
       Contibution percentage = forks/PR 
  • Valid eg:
java -jar gitApiWrapperCli.jar -s forks -c 10 -o yahoo
Running gitpopsearch with ...

help=false
organization=yahoo
count=10
sortFactor=forks
-------------------------------------------------------------------------------
                  Result sorted on number of Forks
-------------------------------------------------------------------------------
RepoName = kafka-manager                            Count = 1931
RepoName = open_nsfw                                Count = 961
RepoName = TensorFlowOnSpark                        Count = 842
RepoName = CaffeOnSpark                             Count = 378
RepoName = gifshot                                  Count = 328
RepoName = egads                                    Count = 278
RepoName = streaming-benchmarks                     Count = 249
RepoName = gryffin                                  Count = 245
RepoName = fluxible                                 Count = 227
RepoName = mysql_perf_analyzer                      Count = 197

About

Dummy repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published