github-stars-in-context / data-dictionary.md
mrshu's picture
Release v1.0.0
7e878b4 verified
|
Raw History Blame
3.99 kB
# Release data dictionary
Account and repository IDs named `id`/`user_id` are local surrogates.
Numeric GitHub IDs and constructed names/URLs are exposed by the SQL crosswalk view.
Private profile text and social-link URLs are excluded. License and restricted add-on decisions remain with the author.
## `users`
| Field | Nullable type | Meaning |
| --- | --- | --- |
| `id` | integer | Local account surrogate key, not the GitHub owner ID |
| `github_id` | integer | GitHub numeric owner identifier |
| `github_name` | string | Stored owner login, potentially different from its current login |
| `created_at` | string | Collector account-row insertion timestamp, not GitHub registration time |
| `last_updated` | string | Shared collector/profile/link stage timestamp or failure sentinel, not repository observation time |
| `h_index` | integer | Stored source h-index, independently recomputed in portfolios |
| `repositories_fetched` | integer | Unchanged raw collector flag, including negative values |
| `followers_count` | integer | Analysis value, NULL where the conservative profile-availability rule masks raw defaults |
| `followers_count_raw` | integer | Unchanged raw source follower count, including collection defaults |
| `retrieval_status` | string | Persisted collector-inferred class or explicit sidecar override; not independent rowset certification |
| `profile_available` | boolean | Conservative analysis availability flag, not proof that a profile request succeeded |
| `bio_was_null` | boolean | Whether the source bio was NULL; the bio text is excluded |
| `profile_default_signature` | boolean | Whether the source matched the conservative all-default profile signature |
| `retrieval_inference_basis` | string | Classification basis recorded by the pinned collector helper |
| `retrieval_evidence_ref` | string | Collector source-code reference or explicit record-level evidence reference |
| `rowset_completeness_independently_certified` | boolean | False: code-inferred completion does not independently certify stored rows |
## `repositories`
| Field | Nullable type | Meaning |
| --- | --- | --- |
| `id` | integer | Local repository-row surrogate key |
| `user_id` | integer | Local owner key joining users.id |
| `repository_id` | integer | GitHub numeric repository identifier; may occur under multiple owners |
| `name` | string | Stored repository name; retained without rewriting |
| `created_at` | string | GitHub repository createdAt on insertion, not retrieval time |
| `stars` | integer | Stored nonnegative integer star count |
## `portfolios`
| Field | Nullable type | Meaning |
| --- | --- | --- |
| `user_id` | integer | Local owner key joining users.id |
| `github_id` | integer | GitHub numeric owner identifier |
| `n_repositories` | integer | All stored account-linked repository rows, including zero-star rows |
| `total_stars` | integer | Sum of stars over stored account-linked repository rows |
| `max_stars` | integer | Largest stored repository star count; zero for an empty portfolio |
| `sum_squared_stars` | integer | Exact integer sum of squared repository star counts |
| `h_observed` | integer | h-index recomputed from descending stored star counts |
| `h_stored` | integer | Stored users.h_index value |
| `starred_repositories` | integer | Stored rows with at least one star |
| `concentration` | float | Herfindahl concentration sum((stars/total_stars)^2), NULL at zero total |
| `effective_breadth` | float | Reciprocal Herfindahl concentration, NULL at zero total |
| `retrieval_status` | string | Persisted account retrieval class |
| `profile_available` | boolean | Conservative profile-availability analysis flag |
| `valid_portfolio` | boolean | Source passed prerequisite physical checks; not a completeness certificate |
| `eligible` | boolean | Complete class under the declared code-inferred policy |
| `exclusion_reason` | string | Class-based analysis exclusion, if any; rows remain in the release |