github-stars-in-context / data-dictionary.md
mrshu's picture
Release 1.1.0: add release.json and the rewritten data dictionary
15eb06e verified
|
Raw History Blame Contribute Delete
4.72 kB

Data dictionary

Version 1.1.0. data-dictionary.json holds the same descriptions in machine-readable form.

id and user_id are local keys of this dataset. github_id and repository_id are GitHub's numeric IDs. crosswalk.sql defines a view that adds owner logins, repository names and URLs to every repository row.

Biographies, company, location, external links and the counts of followed accounts, organizations and sponsors were in the source database and are not released.

All columns are nullable in the Parquet schema. NULL values occur only in followers_count, concentration, effective_breadth and exclusion_reason.

users

One row per account. 3,671,497 rows.

Field Type Meaning
id integer Local key of the account in this dataset. Not the GitHub ID
github_id integer GitHub's numeric ID of the account
github_name string Login stored at collection time. The account may have been renamed since
created_at string Time the collector inserted the account (8 or 9 December 2025). Not the GitHub registration date
last_updated string Time of the collector's last update of the account, or the placeholder 6200-01-01. Not the time the repositories were fetched
h_index integer h-index stored by the collector. portfolios.h_observed recomputes it from the repository rows
repositories_fetched integer Raw collector flag: 1 after a repository fetch ended, -1 while one was in progress
followers_count integer Follower count. NULL when profile_available is false
followers_count_raw integer Follower count as stored. When profile_available is false it is a default value, not an observed count
retrieval_status string Repository retrieval class derived from the collector's flags: complete, failed or unknown. Not checked against GitHub
profile_available boolean False when the stored biography is NULL or all stored profile fields are defaults. The follower count is then treated as missing
bio_was_null boolean True when the stored biography was NULL. The biography text is not released
profile_default_signature boolean True when the stored profile fields all had their default values
retrieval_inference_basis string How retrieval_status was derived. Always collector_code_inference
retrieval_evidence_ref string Location in the collector source that supports the class
rowset_completeness_independently_certified boolean Always false. No account's repository list was checked against GitHub

repositories

One row per repository under one account. 53,990,808 rows.

Field Type Meaning
id integer Local key of the row
user_id integer Local key of the owner. Joins users.id
repository_id integer GitHub's numeric ID of the repository. Twenty IDs appear under more than one account
name string Repository name as stored
created_at string Creation time of the repository on GitHub. Not the time it was fetched
stars integer Star count when the repository was fetched

portfolios

One row per account, computed from its repository rows. 3,671,497 rows.

Field Type Meaning
user_id integer Local key of the account. Joins users.id
github_id integer GitHub's numeric ID of the account
n_repositories integer Number of stored repository rows of the account, including repositories with no stars
total_stars integer Sum of stars over those rows
max_stars integer Largest star count among those rows. 0 for an account with no rows
sum_squared_stars integer Sum of squared star counts over those rows
h_observed integer h-index recomputed from the repository rows
h_stored integer h-index stored by the collector (users.h_index)
starred_repositories integer Number of rows with at least one star
concentration float Sum of squared star shares (Herfindahl index). NULL when total_stars is 0
effective_breadth float 1 / concentration. NULL when total_stars is 0
retrieval_status string Same as users.retrieval_status
profile_available boolean Same as users.profile_available
valid_portfolio boolean True when the account's rows passed the structural checks. It says nothing about completeness
eligible boolean True when retrieval_status is complete. The reuse examples use these accounts
exclusion_reason string Why the account is left out of the reuse examples. NULL for accounts that are used. All rows stay in the release