(self)
| 63 | """ |
| 64 | |
| 65 | def __init__(self): |
| 66 | self.gql_format = """query{ |
| 67 | search(query: "%s", type: REPOSITORY, first:%d %s) { |
| 68 | pageInfo { endCursor } |
| 69 | edges { |
| 70 | node { |
| 71 | ...on Repository { |
| 72 | id |
| 73 | name |
| 74 | url |
| 75 | forkCount |
| 76 | stargazerCount |
| 77 | owner { |
| 78 | login |
| 79 | } |
| 80 | description |
| 81 | pushedAt |
| 82 | primaryLanguage { |
| 83 | name |
| 84 | } |
| 85 | openIssues: issues(states: OPEN) { |
| 86 | totalCount |
| 87 | } |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | } |
| 93 | """ |
| 94 | self.bulk_size = 50 |
| 95 | self.bulk_count = 2 |
| 96 | self.gql_stars = self.gql_format % ("stars:>1000 sort:stars", self.bulk_size, "%s") |
| 97 | self.gql_forks = self.gql_format % ("forks:>1000 sort:forks", self.bulk_size, "%s") |
| 98 | self.gql_stars_lang = self.gql_format % ("language:%s stars:>0 sort:stars", self.bulk_size, "%s") |
| 99 | |
| 100 | self.col = ['rank', 'item', 'repo_name', 'stars', 'forks', 'language', 'repo_url', 'username', 'issues', |
| 101 | 'last_commit', 'description'] |
| 102 | |
| 103 | @staticmethod |
| 104 | def parse_gql_result(result): |
nothing calls this directly
no outgoing calls
no test coverage detected