MCPcopy Create free account

hub / github.com/benfred/github-analysis / functions

Functions123 in github.com/benfred/github-analysis

↓ 24 callersMethodClose
Close the scanner
githubarchive/scanner.go:53
↓ 10 callersMethodScan
Scan for a valid entry. Returns if it found an entry (which can be accesssed through Event for the parsed version or Bytes the the raw version. On err
githubarchive/scanner.go:34
↓ 9 callersFunctionget_data
(languages)
scripts/plot.py:257
↓ 7 callersFunctiondisplayRank
(n: number)
locations/visualizations/src/location.ts:60
↓ 7 callersFunctiongenerate_plot
(items, filename, ylabel="Percentage of MAU", normalize=True, adjustments=None)
scripts/plot.py:140
↓ 5 callersMethodchangeRank
(rank: Rank, propagate = true)
locations/visualizations/src/country_choropleth.ts:165
↓ 5 callersMethodchangeRank
(r: Rank, propagate = true)
locations/visualizations/src/country_table.ts:59
↓ 4 callersMethoddisplayUsers
(count: number)
locations/visualizations/src/force_directed_developers.ts:109
↓ 3 callersMethodBytes
Bytes returns the current line as a byte array
githubarchive/scanner.go:21
↓ 3 callersMethodInsertUser
InsertUser inserts a github.User object into the database
database.go:52
↓ 3 callersMethodredraw
(transition = false)
locations/visualizations/src/loglogplot.ts:102
↓ 3 callersFunctionrepoFromURL
(url string)
githubarchive/event.go:22
↓ 3 callersMethodresetScales
()
locations/visualizations/src/loglogplot.ts:89
↓ 3 callersMethodupdate
()
locations/visualizations/src/country_table.ts:33
↓ 3 callersMethodzoomCountry
(countryName: string)
locations/visualizations/src/worldmap.ts:90
↓ 2 callersMethodEvent
Event returns the current Event, parsing the line from JSON
githubarchive/scanner.go:26
↓ 2 callersMethodInsertRepo
InsertRepo inserts a github.Repository object into the database
database.go:113
↓ 2 callersMethodInsertRepoStatus
InsertRepoStatus updates the statuscode/fetchtime associated with a repo in the case that it can't be fetched
database.go:93
↓ 2 callersMethodInsertUserStatus
InsertUserStatus updates the statuscode/fetchtime associated with a user in the case that it can't be fetched
database.go:32
↓ 2 callersFunction_remap_populations
Some datasources have different country names than we expect (world bank gdp etc). Remap
locations/get_data.py:72
↓ 2 callersMethodadjustRadius
()
locations/visualizations/src/force_directed_developers.ts:191
↓ 2 callersFunctionanalyzeDay
(pathname string)
cmd/gha-parse-email/main.go:39
↓ 2 callersFunctionanalyzeDay
(pathname string)
cmd/gha-parse-githubarchive/main.go:17
↓ 2 callersMethodcalculateTrendline
()
locations/visualizations/src/scatter_plot.ts:166
↓ 2 callersMethodclearZoom
()
locations/visualizations/src/worldmap.ts:130
↓ 2 callersMethodprepareData
(rank: Rank)
locations/visualizations/src/country_choropleth.ts:152
↓ 2 callersMethodremoveCountryHighlight
()
locations/visualizations/src/worldmap.ts:86
↓ 2 callersMethodsetRegression
(loglog: boolean)
locations/visualizations/src/scatter_plot.ts:123
↓ 2 callersMethodtransitionMap
(x: number, y: number, s: number, country: any = null)
locations/visualizations/src/worldmap.ts:66
↓ 2 callersMethodxTickFormat
(t: number)
locations/visualizations/src/scatter_plot.ts:137
↓ 1 callersFunctionHasLocation
HasLocation returns if the location has already been fetched
cmd/gha-location-scraper/main.go:28
↓ 1 callersMethodHasRepo
HasRepo returns whether the repo has been fetched
database.go:182
↓ 1 callersMethodHasUser
HasUser returns whether the user has been fetched
database.go:202
↓ 1 callersFunctionInsertLocation
InsertLocation inserts a google maps request into the db
cmd/gha-location-scraper/main.go:17
↓ 1 callersMethodInsertOrganizationMembers
InsertOrganizationMembers inserts or updates the list of public organization members in the database
database.go:222
↓ 1 callersFunctionMaybeDownloadFile
MaybeDownloadFile checks if the githubarchive file is missing, and if so downloads it
githubarchive/download.go:13
↓ 1 callersFunctionParseEvent
ParseEvent parses the JSON and returns a new Event struct. The JSON can be from multiple different formats produced by github over the years
githubarchive/event.go:33
↓ 1 callersFunctioncreateDropShadowFilter
(svg: any)
locations/visualizations/src/country_choropleth.ts:6
↓ 1 callersFunctioncreateGithubClient
createGithubClient with access tokens defined in cred
cmd/gha-user-scraper/main.go:124
↓ 1 callersFunctioncreateGithubClient
createGithubClient with access tokens defined in cred
cmd/gha-organization-scraper/main.go:57
↓ 1 callersFunctioncreateGithubClient
createGithubClient with access tokens defined in cred
cmd/gha-scraper/main.go:120
↓ 1 callersFunctiondaysInMonth
(year int, m time.Month)
githubarchive/download.go:68
↓ 1 callersFunctionfetchLocation
(client *maps.Client, db *githubanalysis.Database, location string)
cmd/gha-location-scraper/main.go:47
↓ 1 callersFunctionfetchLocations
(conn *githubanalysis.Database, client *maps.Client)
cmd/gha-location-scraper/main.go:70
↓ 1 callersFunctionfetchOrganization
request fetchRequest, output chan fetchResponse)
cmd/gha-organization-scraper/main.go:64
↓ 1 callersFunctionfetchOrganizations
(ctx context.Context, wg *sync.WaitGroup, cred config.GitHubCredentials, requests chan fetchRequest, output c
cmd/gha-organization-scraper/main.go:93
↓ 1 callersFunctionfetchRepo
(ctx context.Context, client *github.Client, request fetchRequest, output chan fetchedRepo)
cmd/gha-scraper/main.go:126
↓ 1 callersFunctionfetchRepos
(ctx context.Context, wg *sync.WaitGroup, cred config.GitHubCredentials, repos chan fetchRequest, output chan
cmd/gha-scraper/main.go:147
↓ 1 callersFunctionfetchUser
(ctx context.Context, client *github.Client, request fetchRequest, output chan fetchResponse)
cmd/gha-user-scraper/main.go:130
↓ 1 callersFunctionfetchUsers
(ctx context.Context, wg *sync.WaitGroup, cred config.GitHubCredentials, requests chan fetchRequest, output c
cmd/gha-user-scraper/main.go:146
↓ 1 callersMethodfilterData
()
locations/visualizations/src/country_table.ts:68
↓ 1 callersMethodformatLocation
(l: ILocation)
locations/visualizations/src/country_table.ts:74
↓ 1 callersFunctiongenerate_readme
(data, count=25, image_path="images/", image_url_path="./images/",
scripts/plot.py:210
↓ 1 callersFunctiongenerate_stackplot
(items_top, items_bottom, filename, output_path="images", adjust
scripts/plot.py:96
↓ 1 callersFunctiongeometric_mean
(vals)
scripts/plot.py:177
↓ 1 callersFunctiongetOrdinal
(n: number)
locations/visualizations/src/location.ts:54
↓ 1 callersFunctiongetUsers
(count: number)
locations/visualizations/src/force_directed_developers.ts:20
↓ 1 callersFunctionget_country_gdp
(filename=None)
locations/get_data.py:118
↓ 1 callersFunctionget_country_populations
(filename=None)
locations/get_data.py:103
↓ 1 callersFunctionget_db_conn
(config_filename=None)
locations/get_data.py:231
↓ 1 callersFunctionget_top_cities
(conn)
locations/get_data.py:157
↓ 1 callersFunctionget_top_countries
(conn)
locations/get_data.py:140
↓ 1 callersFunctionget_top_users
(conn)
locations/get_data.py:54
↓ 1 callersMethodhighlightCountry
(_: any, current: any)
locations/visualizations/src/worldmap.ts:82
↓ 1 callersFunctionimportJSONFile
(ctx context.Context, db *githubanalysis.Database, filename string)
cmd/gha-scraper/main.go:193
↓ 1 callersFunctionimportJSONFiles
(ctx context.Context, db *githubanalysis.Database, pathname string)
cmd/gha-scraper/main.go:232
↓ 1 callersFunctionload_data
(basedir)
scripts/plot.py:34
↓ 1 callersFunctionparsePushCommits
ParsePushCommits returns a list of author/email if the
cmd/gha-parse-email/main.go:24
↓ 1 callersFunctionqueueOrganizations
(ctx context.Context, db *githubanalysis.Database, requests chan fetchRequest)
cmd/gha-organization-scraper/main.go:137
↓ 1 callersFunctionqueueRepos
(ctx context.Context, db *githubanalysis.Database, filename string, repos chan fetchRequest, refetch bool)
cmd/gha-scraper/main.go:256
↓ 1 callersFunctionqueueUsers
(ctx context.Context, db *githubanalysis.Database, filename string, requests chan fetchRequest, refetch bool)
cmd/gha-user-scraper/main.go:192
↓ 1 callersMethodredraw
(transition = false)
locations/visualizations/src/scatter_plot.ts:141
↓ 1 callersMethodresetScales
()
locations/visualizations/src/scatter_plot.ts:130
↓ 1 callersMethodresize
()
locations/visualizations/src/worldmap.ts:138
↓ 1 callersMethodsetLogXScale
(l: boolean)
locations/visualizations/src/loglogplot.ts:77
↓ 1 callersMethodsetLogYScale
(l: boolean)
locations/visualizations/src/loglogplot.ts:83
↓ 1 callersFunctionsparkline
(x, y, filename, figsize=(2.5, .4), fill=True)
scripts/plot.py:181
↓ 1 callersMethodupdateForceSimulation
(users: IUser[])
locations/visualizations/src/force_directed_developers.ts:134
↓ 1 callersFunctionupdate_extracted_values
(conn)
locations/get_data.py:20
↓ 1 callersFunctionupdate_invalid_flag
(conn, filename="invalid_locations.txt")
locations/get_data.py:11
↓ 1 callersFunctionwriteOrganizationMembers
(ctx context.Context, wg *sync.WaitGroup, responses chan fetchResponse, db *githubanalysis.Database)
cmd/gha-organization-scraper/main.go:34
↓ 1 callersFunctionwriteRepo
(ctx context.Context, wg *sync.WaitGroup, repos chan fetchedRepo, db *githubanalysis.Database, jsonOutputPath
cmd/gha-scraper/main.go:43
↓ 1 callersFunctionwriteUsers
(ctx context.Context, wg *sync.WaitGroup, responses chan fetchResponse, db *githubanalysis.Database, jsonOutpu
cmd/gha-user-scraper/main.go:44
↓ 1 callersFunctionwrite_city_data
(conn, filename="top_cities.tsv")
locations/get_data.py:212
↓ 1 callersFunctionwrite_country_data
(conn, filename="top_countries.tsv")
locations/get_data.py:199
FunctionConnect
Connect to the database
database.go:19
FunctionDownloadFiles
DownloadFiles copies githubarchive files locally
githubarchive/download.go:73
MethodErr
Err returns the last error seen in scan
githubarchive/scanner.go:48
FunctionFindDayPaths
FindDayPaths returns the locations of all day like things in a subdir hierarchy
githubarchive/utils.go:10
FunctionNewScanner
NewScanner open filename and creates a new scanner from its contents
githubarchive/scanner.go:59
FunctionParseForkEvent
ParseForkEvent returns the forked repo name and forked repo id from a JSON githubarchive event
githubarchive/event.go:88
FunctionRead
Read config from a TOML file
config/config.go:33
MethodX
(c: ILocation)
locations/visualizations/src/scatter_plot.ts:85
MethodY
(c: ILocation)
locations/visualizations/src/scatter_plot.ts:86
FunctioncalculateRanks
(data: ILocation[])
locations/visualizations/src/location.ts:29
MethodclearZoom
()
locations/visualizations/src/country_choropleth.ts:127
Methodconstructor
(element: HTMLElement, data: ILocation[])
locations/visualizations/src/gdp_scatter_plot.ts:5
Methodconstructor
(public element: HTMLElement, public xLabel = "X", public yLabel = "Y")
locations/visualizations/src/loglogplot.ts:20
Methodconstructor
(element: HTMLElement, public data: ILocation[])
locations/visualizations/src/country_choropleth.ts:40
Methodconstructor
(element: HTMLElement, public data: ILocation[])
locations/visualizations/src/country_table.ts:12
next →1–100 of 123, ranked by callers