Fix schema mismatch with YAML configs
Browse files
README.md
CHANGED
|
@@ -14,6 +14,11 @@ tags:
|
|
| 14 |
- time-series
|
| 15 |
size_categories:
|
| 16 |
- 100K<n<1M
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
---
|
| 18 |
|
| 19 |
# GitHub Trending Projects (2013-2025)
|
|
@@ -35,66 +40,43 @@ This dataset captures the evolution of GitHub's trending repositories over time,
|
|
| 35 |
- โญ **89.8%** scraping success rate from Wayback Machine
|
| 36 |
- ๐ **Pre-processed monthly rankings** with weighted scoring
|
| 37 |
|
| 38 |
-
## ๐ง Dataset
|
| 39 |
|
| 40 |
-
This dataset
|
| 41 |
|
| 42 |
-
### `full
|
| 43 |
-
423,098
|
| 44 |
|
| 45 |
```python
|
| 46 |
from datasets import load_dataset
|
| 47 |
-
ds = load_dataset('ronantakizawa/github-top-projects',
|
| 48 |
```
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
```python
|
| 54 |
from datasets import load_dataset
|
| 55 |
-
ds = load_dataset('ronantakizawa/github-top-projects',
|
| 56 |
```
|
| 57 |
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
| `fork_count` | integer | Fork count (max recorded, may be empty for pre-2020) |
|
| 68 |
-
| `repo_owner` | string | Repository owner/organization |
|
| 69 |
-
| `rank` | integer | Position in trending (1-25) |
|
| 70 |
-
| `date` | date | Snapshot date (YYYY-MM-DD) |
|
| 71 |
-
|
| 72 |
-
**Use cases:**
|
| 73 |
-
- Custom time-series analysis
|
| 74 |
-
- Training ML models on trending patterns
|
| 75 |
-
- Analyzing daily trending dynamics
|
| 76 |
-
- Creating custom aggregations (weekly, yearly, etc.)
|
| 77 |
-
- Studying viral repository behavior
|
| 78 |
-
|
| 79 |
-
### `monthly/data.csv` (211 KB)
|
| 80 |
-
**Monthly top 25 repositories** - Pre-processed with weighted scoring
|
| 81 |
-
|
| 82 |
-
| Column | Type | Description |
|
| 83 |
-
|--------|------|-------------|
|
| 84 |
-
| `month` | string | Month (YYYY-MM) |
|
| 85 |
-
| `rank` | integer | Monthly rank (1-25) |
|
| 86 |
-
| `repository` | string | Full repository name (owner/name) |
|
| 87 |
-
| `repo_owner` | string | Repository owner |
|
| 88 |
-
| `repo_name` | string | Repository name |
|
| 89 |
-
| `star_count` | integer | Maximum recorded stars |
|
| 90 |
-
| `fork_count` | integer | Maximum recorded forks |
|
| 91 |
-
| `ranking_appearances` | integer | Times appeared in trending that month |
|
| 92 |
-
|
| 93 |
-
**Use cases:**
|
| 94 |
-
- Quick monthly insights and visualizations
|
| 95 |
-
- Dashboard creation
|
| 96 |
-
- Identifying consistently popular projects
|
| 97 |
-
- Trend analysis without processing overhead
|
| 98 |
|
| 99 |
## ๐ Scoring Methodology
|
| 100 |
|
|
@@ -124,44 +106,24 @@ This rewards both **consistency** (frequent appearances) and **position** (highe
|
|
| 124 |
**Snapshots:** 17,127 successfully scraped from 19,064 available
|
| 125 |
**Retry Logic:** Up to 15 retries with exponential backoff
|
| 126 |
|
| 127 |
-
**HTML Parsing:**
|
| 128 |
-
- Multiple extraction methods for different page structures (2013-2019, 2020+)
|
| 129 |
-
- Handles changes in GitHub's trending page design
|
| 130 |
-
- Robust error handling for incomplete snapshots
|
| 131 |
-
|
| 132 |
## โ ๏ธ Known Limitations
|
| 133 |
|
| 134 |
### 1. **Missing Star/Fork Data (Pre-2020)**
|
| 135 |
- **100% of 2013-2019 entries** lack star/fork counts
|
| 136 |
- Only **67.8% of dataset** has popularity metrics
|
| 137 |
-
- Cause: Different HTML structure in older Wayback snapshots
|
| 138 |
- **Impact:** Cannot compare absolute popularity for historical projects
|
| 139 |
|
| 140 |
### 2. **Uneven Temporal Distribution**
|
| 141 |
- Snapshot frequency: **1 to 31 per month** (31x variance)
|
| 142 |
- 2019-2020 heavily over-represented
|
| 143 |
-
- Some months: 25 projects, others: 17,446 projects
|
| 144 |
- **Impact:** Monthly scores favor periods with more snapshots
|
| 145 |
|
| 146 |
### 3. **Star Count Timing Inconsistency**
|
| 147 |
- Star counts are "maximum ever recorded" across all snapshots
|
| 148 |
- A 2015 project's stars might be from 2025 scraping
|
| 149 |
-
- **Not temporally aligned** - older projects had more time to accumulate stars
|
| 150 |
- **Impact:** Can't fairly compare popularity across eras
|
| 151 |
|
| 152 |
-
|
| 153 |
-
- Top projects appear 1,700-1,900 times
|
| 154 |
-
- 1,129 projects appear only once
|
| 155 |
-
- Favors "evergreen" educational repos
|
| 156 |
-
- **Impact:** Brief viral projects may be undervalued
|
| 157 |
-
|
| 158 |
-
### 5. **Failed Scrapes**
|
| 159 |
-
- 1,937 URLs failed (10.2%)
|
| 160 |
-
- Mainly 2014-2019 due to SSL/TLS incompatibility
|
| 161 |
-
- Some date ranges completely missing
|
| 162 |
-
- **Impact:** Gaps in temporal coverage
|
| 163 |
-
|
| 164 |
-
**See DATASET_ISSUES.md for detailed analysis**
|
| 165 |
|
| 166 |
## ๐ Data Quality by Era
|
| 167 |
|
|
@@ -180,11 +142,11 @@ This rewards both **consistency** (frequent appearances) and **position** (highe
|
|
| 180 |
from datasets import load_dataset
|
| 181 |
|
| 182 |
# Load complete daily dataset (423,098 entries)
|
| 183 |
-
ds_full = load_dataset('ronantakizawa/github-top-projects',
|
| 184 |
df_full = ds_full['train'].to_pandas()
|
| 185 |
|
| 186 |
# Load monthly top 25 dataset (3,200 entries)
|
| 187 |
-
ds_monthly = load_dataset('ronantakizawa/github-top-projects',
|
| 188 |
df_monthly = ds_monthly['train'].to_pandas()
|
| 189 |
|
| 190 |
# Filter to 2020+ (with star data)
|
|
@@ -195,28 +157,15 @@ nov_2025 = df_monthly[df_monthly['month'] == '2025-11'].head(10)
|
|
| 195 |
print(nov_2025[['rank', 'repository', 'star_count', 'ranking_appearances']])
|
| 196 |
```
|
| 197 |
|
| 198 |
-
### Load Directly from CSV
|
| 199 |
-
|
| 200 |
-
```python
|
| 201 |
-
import pandas as pd
|
| 202 |
-
|
| 203 |
-
# Download files from the dataset page, then:
|
| 204 |
-
df_full = pd.read_csv('full/data.csv')
|
| 205 |
-
df_monthly = pd.read_csv('monthly/data.csv')
|
| 206 |
-
|
| 207 |
-
# Get top trending projects of 2024
|
| 208 |
-
df_2024 = df_full[df_full['date'].str.startswith('2024')]
|
| 209 |
-
top_2024 = df_2024.groupby(['repo_owner', 'name']).size().sort_values(ascending=False).head(10)
|
| 210 |
-
print(top_2024)
|
| 211 |
-
```
|
| 212 |
-
|
| 213 |
### Time Series Analysis
|
| 214 |
|
| 215 |
```python
|
| 216 |
import pandas as pd
|
| 217 |
import matplotlib.pyplot as plt
|
|
|
|
| 218 |
|
| 219 |
-
|
|
|
|
| 220 |
df['date'] = pd.to_datetime(df['date'])
|
| 221 |
|
| 222 |
# Analyze a specific project over time
|
|
@@ -230,41 +179,15 @@ plt.ylabel('Days in Trending')
|
|
| 230 |
plt.show()
|
| 231 |
```
|
| 232 |
|
| 233 |
-
### Language Trends (requires additional metadata)
|
| 234 |
-
|
| 235 |
-
```python
|
| 236 |
-
# Note: Language data not included in this dataset
|
| 237 |
-
# Would need to join with GitHub API data or another dataset
|
| 238 |
-
```
|
| 239 |
-
|
| 240 |
## ๐ Research Applications
|
| 241 |
|
| 242 |
This dataset enables analysis of:
|
| 243 |
|
| 244 |
-
1. **Trending Dynamics**
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
2. **Technology Adoption**
|
| 250 |
-
- Rise and fall of programming languages
|
| 251 |
-
- Framework popularity over time
|
| 252 |
-
- Shift from monolithic to microservices
|
| 253 |
-
|
| 254 |
-
3. **Open Source Evolution**
|
| 255 |
-
- Growth of educational repositories
|
| 256 |
-
- Corporate open source contributions
|
| 257 |
-
- Regional trending patterns
|
| 258 |
-
|
| 259 |
-
4. **Predictive Modeling**
|
| 260 |
-
- Forecasting future trending projects
|
| 261 |
-
- Identifying early viral indicators
|
| 262 |
-
- Star growth prediction models
|
| 263 |
-
|
| 264 |
-
5. **Developer Behavior**
|
| 265 |
-
- Community interest shifts
|
| 266 |
-
- Popular project categories
|
| 267 |
-
- Documentation and tutorial demand
|
| 268 |
|
| 269 |
## ๐ Example Insights
|
| 270 |
|
|
@@ -273,11 +196,6 @@ This dataset enables analysis of:
|
|
| 273 |
2. `TheAlgorithms/Python` - 1,891 appearances
|
| 274 |
3. `donnemartin/system-design-primer` - 1,865 appearances
|
| 275 |
|
| 276 |
-
**Trending Patterns:**
|
| 277 |
-
- Educational repositories dominate long-term trending
|
| 278 |
-
- AI/ML projects saw massive spike in 2023-2024
|
| 279 |
-
- Web frameworks remain consistently popular
|
| 280 |
-
|
| 281 |
## ๐ License
|
| 282 |
|
| 283 |
**MIT License**
|
|
@@ -288,21 +206,12 @@ This dataset is released under the MIT License. You can:
|
|
| 288 |
- โ
Use in research (attribution appreciated!)
|
| 289 |
- โ
Include in proprietary software
|
| 290 |
|
| 291 |
-
**Source Data:** Wayback Machine (public archive)
|
| 292 |
-
**Original Content:** GitHub Trending pages
|
| 293 |
-
|
| 294 |
## ๐ Acknowledgments
|
| 295 |
|
| 296 |
- **GitHub** for maintaining the trending page
|
| 297 |
- **Internet Archive** for the Wayback Machine
|
| 298 |
- **Open Source Community** for creating amazing projects
|
| 299 |
|
| 300 |
-
## ๐ง Contact & Contributions
|
| 301 |
-
|
| 302 |
-
- **Issues/Questions:** Open an issue on the dataset repository
|
| 303 |
-
- **Data Errors:** Please report any inconsistencies
|
| 304 |
-
- **Contributions:** Additional metadata or corrections welcome
|
| 305 |
-
|
| 306 |
## ๐ Citation
|
| 307 |
|
| 308 |
If you use this dataset in your research, please cite:
|
|
@@ -310,46 +219,18 @@ If you use this dataset in your research, please cite:
|
|
| 310 |
```bibtex
|
| 311 |
@dataset{github_trending_2013_2025,
|
| 312 |
title={GitHub Trending Projects Dataset (2013-2025)},
|
| 313 |
-
author={
|
| 314 |
year={2025},
|
| 315 |
publisher={Hugging Face},
|
| 316 |
-
url={https://huggingface.co/datasets/
|
| 317 |
}
|
| 318 |
```
|
| 319 |
|
| 320 |
-
## ๐ Related Datasets
|
| 321 |
-
|
| 322 |
-
- GitHub Archive (gharchive.org) - Complete GitHub event stream
|
| 323 |
-
- GHTorrent - GitHub data for research
|
| 324 |
-
- Libraries.io - Package manager dependency data
|
| 325 |
-
|
| 326 |
## ๐
Updates
|
| 327 |
|
| 328 |
- **2025-12:** Initial release (2013-08 to 2025-11)
|
| 329 |
- Future updates planned quarterly
|
| 330 |
|
| 331 |
-
## โ๏ธ Technical Details
|
| 332 |
-
|
| 333 |
-
**Scraping Configuration:**
|
| 334 |
-
- Retry attempts: 15 with exponential backoff
|
| 335 |
-
- Delay between requests: 4-6 seconds (randomized)
|
| 336 |
-
- Timeout: 45 seconds per request
|
| 337 |
-
- User-Agent: Mozilla/5.0 (standard browser)
|
| 338 |
-
|
| 339 |
-
**Data Processing:**
|
| 340 |
-
- Deduplication: By date + repo + rank
|
| 341 |
-
- Sorting: Chronological (newest first)
|
| 342 |
-
- Encoding: UTF-8
|
| 343 |
-
- Format: CSV with headers
|
| 344 |
-
|
| 345 |
-
## ๐ Known Issues
|
| 346 |
-
|
| 347 |
-
See `DATASET_ISSUES.md` for comprehensive list including:
|
| 348 |
-
- Missing data gaps
|
| 349 |
-
- Star count timing issues
|
| 350 |
-
- Temporal distribution variance
|
| 351 |
-
- Recommended usage guidelines
|
| 352 |
-
|
| 353 |
---
|
| 354 |
|
| 355 |
**Last Updated:** December 2025
|
|
|
|
| 14 |
- time-series
|
| 15 |
size_categories:
|
| 16 |
- 100K<n<1M
|
| 17 |
+
configs:
|
| 18 |
+
- config_name: full
|
| 19 |
+
data_files: "full/data.csv"
|
| 20 |
+
- config_name: monthly
|
| 21 |
+
data_files: "monthly/data.csv"
|
| 22 |
---
|
| 23 |
|
| 24 |
# GitHub Trending Projects (2013-2025)
|
|
|
|
| 40 |
- โญ **89.8%** scraping success rate from Wayback Machine
|
| 41 |
- ๐ **Pre-processed monthly rankings** with weighted scoring
|
| 42 |
|
| 43 |
+
## ๐ง Dataset Configurations
|
| 44 |
|
| 45 |
+
This dataset has **two configurations** defined in the YAML header:
|
| 46 |
|
| 47 |
+
### Configuration: `full` (Default)
|
| 48 |
+
Complete daily trending data with 423,098 entries
|
| 49 |
|
| 50 |
```python
|
| 51 |
from datasets import load_dataset
|
| 52 |
+
ds = load_dataset('ronantakizawa/github-top-projects', 'full')
|
| 53 |
```
|
| 54 |
|
| 55 |
+
**Columns:**
|
| 56 |
+
- `name` (string): Repository name
|
| 57 |
+
- `star_count` (int): Star count (may be empty for pre-2020)
|
| 58 |
+
- `fork_count` (int): Fork count (may be empty for pre-2020)
|
| 59 |
+
- `repo_owner` (string): Repository owner/organization
|
| 60 |
+
- `rank` (int): Position in trending (1-25)
|
| 61 |
+
- `date` (string): Snapshot date (YYYY-MM-DD)
|
| 62 |
+
|
| 63 |
+
### Configuration: `monthly`
|
| 64 |
+
Top 25 repositories per month with 3,200 entries
|
| 65 |
|
| 66 |
```python
|
| 67 |
from datasets import load_dataset
|
| 68 |
+
ds = load_dataset('ronantakizawa/github-top-projects', 'monthly')
|
| 69 |
```
|
| 70 |
|
| 71 |
+
**Columns:**
|
| 72 |
+
- `month` (string): Month (YYYY-MM)
|
| 73 |
+
- `rank` (int): Monthly rank (1-25)
|
| 74 |
+
- `repository` (string): Full repository name (owner/name)
|
| 75 |
+
- `repo_owner` (string): Repository owner
|
| 76 |
+
- `repo_name` (string): Repository name
|
| 77 |
+
- `star_count` (int): Maximum recorded stars
|
| 78 |
+
- `fork_count` (int): Maximum recorded forks
|
| 79 |
+
- `ranking_appearances` (int): Times appeared in trending that month
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
## ๐ Scoring Methodology
|
| 82 |
|
|
|
|
| 106 |
**Snapshots:** 17,127 successfully scraped from 19,064 available
|
| 107 |
**Retry Logic:** Up to 15 retries with exponential backoff
|
| 108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
## โ ๏ธ Known Limitations
|
| 110 |
|
| 111 |
### 1. **Missing Star/Fork Data (Pre-2020)**
|
| 112 |
- **100% of 2013-2019 entries** lack star/fork counts
|
| 113 |
- Only **67.8% of dataset** has popularity metrics
|
|
|
|
| 114 |
- **Impact:** Cannot compare absolute popularity for historical projects
|
| 115 |
|
| 116 |
### 2. **Uneven Temporal Distribution**
|
| 117 |
- Snapshot frequency: **1 to 31 per month** (31x variance)
|
| 118 |
- 2019-2020 heavily over-represented
|
|
|
|
| 119 |
- **Impact:** Monthly scores favor periods with more snapshots
|
| 120 |
|
| 121 |
### 3. **Star Count Timing Inconsistency**
|
| 122 |
- Star counts are "maximum ever recorded" across all snapshots
|
| 123 |
- A 2015 project's stars might be from 2025 scraping
|
|
|
|
| 124 |
- **Impact:** Can't fairly compare popularity across eras
|
| 125 |
|
| 126 |
+
See `DATASET_ISSUES.md` for comprehensive analysis.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
|
| 128 |
## ๐ Data Quality by Era
|
| 129 |
|
|
|
|
| 142 |
from datasets import load_dataset
|
| 143 |
|
| 144 |
# Load complete daily dataset (423,098 entries)
|
| 145 |
+
ds_full = load_dataset('ronantakizawa/github-top-projects', 'full')
|
| 146 |
df_full = ds_full['train'].to_pandas()
|
| 147 |
|
| 148 |
# Load monthly top 25 dataset (3,200 entries)
|
| 149 |
+
ds_monthly = load_dataset('ronantakizawa/github-top-projects', 'monthly')
|
| 150 |
df_monthly = ds_monthly['train'].to_pandas()
|
| 151 |
|
| 152 |
# Filter to 2020+ (with star data)
|
|
|
|
| 157 |
print(nov_2025[['rank', 'repository', 'star_count', 'ranking_appearances']])
|
| 158 |
```
|
| 159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
### Time Series Analysis
|
| 161 |
|
| 162 |
```python
|
| 163 |
import pandas as pd
|
| 164 |
import matplotlib.pyplot as plt
|
| 165 |
+
from datasets import load_dataset
|
| 166 |
|
| 167 |
+
ds = load_dataset('ronantakizawa/github-top-projects', 'full')
|
| 168 |
+
df = ds['train'].to_pandas()
|
| 169 |
df['date'] = pd.to_datetime(df['date'])
|
| 170 |
|
| 171 |
# Analyze a specific project over time
|
|
|
|
| 179 |
plt.show()
|
| 180 |
```
|
| 181 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
## ๐ Research Applications
|
| 183 |
|
| 184 |
This dataset enables analysis of:
|
| 185 |
|
| 186 |
+
1. **Trending Dynamics** - What makes a repository go viral?
|
| 187 |
+
2. **Technology Adoption** - Rise and fall of programming languages
|
| 188 |
+
3. **Open Source Evolution** - Growth of educational repositories
|
| 189 |
+
4. **Predictive Modeling** - Forecasting future trending projects
|
| 190 |
+
5. **Developer Behavior** - Community interest shifts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
|
| 192 |
## ๐ Example Insights
|
| 193 |
|
|
|
|
| 196 |
2. `TheAlgorithms/Python` - 1,891 appearances
|
| 197 |
3. `donnemartin/system-design-primer` - 1,865 appearances
|
| 198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
## ๐ License
|
| 200 |
|
| 201 |
**MIT License**
|
|
|
|
| 206 |
- โ
Use in research (attribution appreciated!)
|
| 207 |
- โ
Include in proprietary software
|
| 208 |
|
|
|
|
|
|
|
|
|
|
| 209 |
## ๐ Acknowledgments
|
| 210 |
|
| 211 |
- **GitHub** for maintaining the trending page
|
| 212 |
- **Internet Archive** for the Wayback Machine
|
| 213 |
- **Open Source Community** for creating amazing projects
|
| 214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
## ๐ Citation
|
| 216 |
|
| 217 |
If you use this dataset in your research, please cite:
|
|
|
|
| 219 |
```bibtex
|
| 220 |
@dataset{github_trending_2013_2025,
|
| 221 |
title={GitHub Trending Projects Dataset (2013-2025)},
|
| 222 |
+
author={Ronan Takizawa},
|
| 223 |
year={2025},
|
| 224 |
publisher={Hugging Face},
|
| 225 |
+
url={https://huggingface.co/datasets/ronantakizawa/github-top-projects}
|
| 226 |
}
|
| 227 |
```
|
| 228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 229 |
## ๐
Updates
|
| 230 |
|
| 231 |
- **2025-12:** Initial release (2013-08 to 2025-11)
|
| 232 |
- Future updates planned quarterly
|
| 233 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 234 |
---
|
| 235 |
|
| 236 |
**Last Updated:** December 2025
|