use of org.kohsuke.github.GitHub in project github-version-statistics by centic9.
the class Search method runSearch.
protected static void runSearch(BaseSearch... searches) throws IOException {
GitHub github = BaseSearch.connect();
// use a SetMultimap here to not record duplicates
SetMultimap<String, String> versions = HashMultimap.create();
for (BaseSearch search : searches) {
search.search(github, versions);
}
System.out.println("Had " + versions.keySet().size() + " different versions for " + versions.size() + " projects");
for (String version : versions.keySet()) {
System.out.println("Had: " + version + ' ' + versions.get(version).size() + " times");
}
JSONWriter.write(DATE_FORMAT.format(new Date()), versions);
}
Aggregations