ronantakizawa commited on
Commit
618f80b
ยท
verified ยท
1 Parent(s): cd54650

Fix schema mismatch with YAML configs

Browse files
Files changed (1) hide show
  1. README.md +43 -162
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 Structure
39
 
40
- This dataset is organized into **two subdirectories**:
41
 
42
- ### `full/` - Complete Daily Data
43
- 423,098 trending entries (2013-2025)
44
 
45
  ```python
46
  from datasets import load_dataset
47
- ds = load_dataset('ronantakizawa/github-top-projects', data_dir='full')
48
  ```
49
 
50
- ### `monthly/` - Monthly Top 25
51
- 3,200 entries (top 25 per month with weighted scoring)
 
 
 
 
 
 
 
 
52
 
53
  ```python
54
  from datasets import load_dataset
55
- ds = load_dataset('ronantakizawa/github-top-projects', data_dir='monthly')
56
  ```
57
 
58
- ## ๐Ÿ“ Dataset Files
59
-
60
- ### `full/data.csv` (19 MB)
61
- **Complete daily trending data** - All 423,098 entries
62
-
63
- | Column | Type | Description |
64
- |--------|------|-------------|
65
- | `name` | string | Repository name |
66
- | `star_count` | integer | Star count (max recorded, may be empty for pre-2020) |
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
- ### 4. **Multiple Appearances Bias**
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', data_dir='full')
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', data_dir='monthly')
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
- df = pd.read_csv('github-trending-projects-full.csv')
 
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
- - What makes a repository go viral?
246
- - How long do projects stay trending?
247
- - Seasonal patterns in software development
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={Your Name},
314
  year={2025},
315
  publisher={Hugging Face},
316
- url={https://huggingface.co/datasets/YOUR_USERNAME/github-top-projects}
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