MCPcopy Index your code
hub / github.com/EvanLi/Github-Ranking / get_all_repos

Method get_all_repos

source/process.py:132–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

130 return repos
131
132 def get_all_repos(self):
133 # get all repos of most stars and forks, and different languages
134 print("Get repos of most stars...")
135 repos_stars = self.get_repos(self.gql_stars)
136 print("Get repos of most stars success!")
137
138 print("Get repos of most forks...")
139 repos_forks = self.get_repos(self.gql_forks)
140 print("Get repos of most forks success!")
141
142 repos_languages = {}
143 for lang in languages:
144 print("Get most stars repos of {}...".format(lang))
145 repos_languages[lang] = self.get_repos(self.gql_stars_lang % (lang, '%s'))
146 print("Get most stars repos of {} success!".format(lang))
147 return repos_stars, repos_forks, repos_languages
148
149
150class WriteFile(object):

Callers 1

run_by_gqlFunction · 0.95

Calls 1

get_reposMethod · 0.95

Tested by

no test coverage detected