Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benfred/github-analysis
/ functions
Functions
123 in github.com/benfred/github-analysis
⨍
Functions
123
◇
Types & classes
31
↓ 24 callers
Method
Close
Close the scanner
githubarchive/scanner.go:53
↓ 10 callers
Method
Scan
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 callers
Function
get_data
(languages)
scripts/plot.py:257
↓ 7 callers
Function
displayRank
(n: number)
locations/visualizations/src/location.ts:60
↓ 7 callers
Function
generate_plot
(items, filename, ylabel="Percentage of MAU", normalize=True, adjustments=None)
scripts/plot.py:140
↓ 5 callers
Method
changeRank
(rank: Rank, propagate = true)
locations/visualizations/src/country_choropleth.ts:165
↓ 5 callers
Method
changeRank
(r: Rank, propagate = true)
locations/visualizations/src/country_table.ts:59
↓ 4 callers
Method
displayUsers
(count: number)
locations/visualizations/src/force_directed_developers.ts:109
↓ 3 callers
Method
Bytes
Bytes returns the current line as a byte array
githubarchive/scanner.go:21
↓ 3 callers
Method
InsertUser
InsertUser inserts a github.User object into the database
database.go:52
↓ 3 callers
Method
redraw
(transition = false)
locations/visualizations/src/loglogplot.ts:102
↓ 3 callers
Function
repoFromURL
(url string)
githubarchive/event.go:22
↓ 3 callers
Method
resetScales
()
locations/visualizations/src/loglogplot.ts:89
↓ 3 callers
Method
update
()
locations/visualizations/src/country_table.ts:33
↓ 3 callers
Method
zoomCountry
(countryName: string)
locations/visualizations/src/worldmap.ts:90
↓ 2 callers
Method
Event
Event returns the current Event, parsing the line from JSON
githubarchive/scanner.go:26
↓ 2 callers
Method
InsertRepo
InsertRepo inserts a github.Repository object into the database
database.go:113
↓ 2 callers
Method
InsertRepoStatus
InsertRepoStatus updates the statuscode/fetchtime associated with a repo in the case that it can't be fetched
database.go:93
↓ 2 callers
Method
InsertUserStatus
InsertUserStatus updates the statuscode/fetchtime associated with a user in the case that it can't be fetched
database.go:32
↓ 2 callers
Function
_remap_populations
Some datasources have different country names than we expect (world bank gdp etc). Remap
locations/get_data.py:72
↓ 2 callers
Method
adjustRadius
()
locations/visualizations/src/force_directed_developers.ts:191
↓ 2 callers
Function
analyzeDay
(pathname string)
cmd/gha-parse-email/main.go:39
↓ 2 callers
Function
analyzeDay
(pathname string)
cmd/gha-parse-githubarchive/main.go:17
↓ 2 callers
Method
calculateTrendline
()
locations/visualizations/src/scatter_plot.ts:166
↓ 2 callers
Method
clearZoom
()
locations/visualizations/src/worldmap.ts:130
↓ 2 callers
Method
prepareData
(rank: Rank)
locations/visualizations/src/country_choropleth.ts:152
↓ 2 callers
Method
removeCountryHighlight
()
locations/visualizations/src/worldmap.ts:86
↓ 2 callers
Method
setRegression
(loglog: boolean)
locations/visualizations/src/scatter_plot.ts:123
↓ 2 callers
Method
transitionMap
(x: number, y: number, s: number, country: any = null)
locations/visualizations/src/worldmap.ts:66
↓ 2 callers
Method
xTickFormat
(t: number)
locations/visualizations/src/scatter_plot.ts:137
↓ 1 callers
Function
HasLocation
HasLocation returns if the location has already been fetched
cmd/gha-location-scraper/main.go:28
↓ 1 callers
Method
HasRepo
HasRepo returns whether the repo has been fetched
database.go:182
↓ 1 callers
Method
HasUser
HasUser returns whether the user has been fetched
database.go:202
↓ 1 callers
Function
InsertLocation
InsertLocation inserts a google maps request into the db
cmd/gha-location-scraper/main.go:17
↓ 1 callers
Method
InsertOrganizationMembers
InsertOrganizationMembers inserts or updates the list of public organization members in the database
database.go:222
↓ 1 callers
Function
MaybeDownloadFile
MaybeDownloadFile checks if the githubarchive file is missing, and if so downloads it
githubarchive/download.go:13
↓ 1 callers
Function
ParseEvent
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 callers
Function
createDropShadowFilter
(svg: any)
locations/visualizations/src/country_choropleth.ts:6
↓ 1 callers
Function
createGithubClient
createGithubClient with access tokens defined in cred
cmd/gha-user-scraper/main.go:124
↓ 1 callers
Function
createGithubClient
createGithubClient with access tokens defined in cred
cmd/gha-organization-scraper/main.go:57
↓ 1 callers
Function
createGithubClient
createGithubClient with access tokens defined in cred
cmd/gha-scraper/main.go:120
↓ 1 callers
Function
daysInMonth
(year int, m time.Month)
githubarchive/download.go:68
↓ 1 callers
Function
fetchLocation
(client *maps.Client, db *githubanalysis.Database, location string)
cmd/gha-location-scraper/main.go:47
↓ 1 callers
Function
fetchLocations
(conn *githubanalysis.Database, client *maps.Client)
cmd/gha-location-scraper/main.go:70
↓ 1 callers
Function
fetchOrganization
request fetchRequest, output chan fetchResponse)
cmd/gha-organization-scraper/main.go:64
↓ 1 callers
Function
fetchOrganizations
(ctx context.Context, wg *sync.WaitGroup, cred config.GitHubCredentials, requests chan fetchRequest, output c
cmd/gha-organization-scraper/main.go:93
↓ 1 callers
Function
fetchRepo
(ctx context.Context, client *github.Client, request fetchRequest, output chan fetchedRepo)
cmd/gha-scraper/main.go:126
↓ 1 callers
Function
fetchRepos
(ctx context.Context, wg *sync.WaitGroup, cred config.GitHubCredentials, repos chan fetchRequest, output chan
cmd/gha-scraper/main.go:147
↓ 1 callers
Function
fetchUser
(ctx context.Context, client *github.Client, request fetchRequest, output chan fetchResponse)
cmd/gha-user-scraper/main.go:130
↓ 1 callers
Function
fetchUsers
(ctx context.Context, wg *sync.WaitGroup, cred config.GitHubCredentials, requests chan fetchRequest, output c
cmd/gha-user-scraper/main.go:146
↓ 1 callers
Method
filterData
()
locations/visualizations/src/country_table.ts:68
↓ 1 callers
Method
formatLocation
(l: ILocation)
locations/visualizations/src/country_table.ts:74
↓ 1 callers
Function
generate_readme
(data, count=25, image_path="images/", image_url_path="./images/",
scripts/plot.py:210
↓ 1 callers
Function
generate_stackplot
(items_top, items_bottom, filename, output_path="images", adjust
scripts/plot.py:96
↓ 1 callers
Function
geometric_mean
(vals)
scripts/plot.py:177
↓ 1 callers
Function
getOrdinal
(n: number)
locations/visualizations/src/location.ts:54
↓ 1 callers
Function
getUsers
(count: number)
locations/visualizations/src/force_directed_developers.ts:20
↓ 1 callers
Function
get_country_gdp
(filename=None)
locations/get_data.py:118
↓ 1 callers
Function
get_country_populations
(filename=None)
locations/get_data.py:103
↓ 1 callers
Function
get_db_conn
(config_filename=None)
locations/get_data.py:231
↓ 1 callers
Function
get_top_cities
(conn)
locations/get_data.py:157
↓ 1 callers
Function
get_top_countries
(conn)
locations/get_data.py:140
↓ 1 callers
Function
get_top_users
(conn)
locations/get_data.py:54
↓ 1 callers
Method
highlightCountry
(_: any, current: any)
locations/visualizations/src/worldmap.ts:82
↓ 1 callers
Function
importJSONFile
(ctx context.Context, db *githubanalysis.Database, filename string)
cmd/gha-scraper/main.go:193
↓ 1 callers
Function
importJSONFiles
(ctx context.Context, db *githubanalysis.Database, pathname string)
cmd/gha-scraper/main.go:232
↓ 1 callers
Function
load_data
(basedir)
scripts/plot.py:34
↓ 1 callers
Function
parsePushCommits
ParsePushCommits returns a list of author/email if the
cmd/gha-parse-email/main.go:24
↓ 1 callers
Function
queueOrganizations
(ctx context.Context, db *githubanalysis.Database, requests chan fetchRequest)
cmd/gha-organization-scraper/main.go:137
↓ 1 callers
Function
queueRepos
(ctx context.Context, db *githubanalysis.Database, filename string, repos chan fetchRequest, refetch bool)
cmd/gha-scraper/main.go:256
↓ 1 callers
Function
queueUsers
(ctx context.Context, db *githubanalysis.Database, filename string, requests chan fetchRequest, refetch bool)
cmd/gha-user-scraper/main.go:192
↓ 1 callers
Method
redraw
(transition = false)
locations/visualizations/src/scatter_plot.ts:141
↓ 1 callers
Method
resetScales
()
locations/visualizations/src/scatter_plot.ts:130
↓ 1 callers
Method
resize
()
locations/visualizations/src/worldmap.ts:138
↓ 1 callers
Method
setLogXScale
(l: boolean)
locations/visualizations/src/loglogplot.ts:77
↓ 1 callers
Method
setLogYScale
(l: boolean)
locations/visualizations/src/loglogplot.ts:83
↓ 1 callers
Function
sparkline
(x, y, filename, figsize=(2.5, .4), fill=True)
scripts/plot.py:181
↓ 1 callers
Method
updateForceSimulation
(users: IUser[])
locations/visualizations/src/force_directed_developers.ts:134
↓ 1 callers
Function
update_extracted_values
(conn)
locations/get_data.py:20
↓ 1 callers
Function
update_invalid_flag
(conn, filename="invalid_locations.txt")
locations/get_data.py:11
↓ 1 callers
Function
writeOrganizationMembers
(ctx context.Context, wg *sync.WaitGroup, responses chan fetchResponse, db *githubanalysis.Database)
cmd/gha-organization-scraper/main.go:34
↓ 1 callers
Function
writeRepo
(ctx context.Context, wg *sync.WaitGroup, repos chan fetchedRepo, db *githubanalysis.Database, jsonOutputPath
cmd/gha-scraper/main.go:43
↓ 1 callers
Function
writeUsers
(ctx context.Context, wg *sync.WaitGroup, responses chan fetchResponse, db *githubanalysis.Database, jsonOutpu
cmd/gha-user-scraper/main.go:44
↓ 1 callers
Function
write_city_data
(conn, filename="top_cities.tsv")
locations/get_data.py:212
↓ 1 callers
Function
write_country_data
(conn, filename="top_countries.tsv")
locations/get_data.py:199
Function
Connect
Connect to the database
database.go:19
Function
DownloadFiles
DownloadFiles copies githubarchive files locally
githubarchive/download.go:73
Method
Err
Err returns the last error seen in scan
githubarchive/scanner.go:48
Function
FindDayPaths
FindDayPaths returns the locations of all day like things in a subdir hierarchy
githubarchive/utils.go:10
Function
NewScanner
NewScanner open filename and creates a new scanner from its contents
githubarchive/scanner.go:59
Function
ParseForkEvent
ParseForkEvent returns the forked repo name and forked repo id from a JSON githubarchive event
githubarchive/event.go:88
Function
Read
Read config from a TOML file
config/config.go:33
Method
X
(c: ILocation)
locations/visualizations/src/scatter_plot.ts:85
Method
Y
(c: ILocation)
locations/visualizations/src/scatter_plot.ts:86
Function
calculateRanks
(data: ILocation[])
locations/visualizations/src/location.ts:29
Method
clearZoom
()
locations/visualizations/src/country_choropleth.ts:127
Method
constructor
(element: HTMLElement, data: ILocation[])
locations/visualizations/src/gdp_scatter_plot.ts:5
Method
constructor
(public element: HTMLElement, public xLabel = "X", public yLabel = "Y")
locations/visualizations/src/loglogplot.ts:20
Method
constructor
(element: HTMLElement, public data: ILocation[])
locations/visualizations/src/country_choropleth.ts:40
Method
constructor
(element: HTMLElement, public data: ILocation[])
locations/visualizations/src/country_table.ts:12
next →
1–100 of 123, ranked by callers