ronantakizawa commited on
Commit
0d985aa
Β·
verified Β·
1 Parent(s): c4292dd

Upload DATASET_ISSUES.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. DATASET_ISSUES.md +337 -0
DATASET_ISSUES.md ADDED
@@ -0,0 +1,337 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GitHub Trending Projects Dataset - Known Issues & Limitations
2
+
3
+ ## Dataset Overview
4
+ - **Total Projects:** 423,098
5
+ - **Date Range:** 2013-08-21 to 2025-11-30
6
+ - **Unique Repositories:** 14,500
7
+ - **Success Rate:** 89.8% (17,127/19,064 URLs)
8
+
9
+ ---
10
+
11
+ ## 🚨 Major Issues
12
+
13
+ ### 1. **Missing Star/Fork Count Data (2013-2019)**
14
+ **Severity:** High
15
+ **Affected:** 25,150 entries (5.9%)
16
+
17
+ **Problem:**
18
+ - 100% of 2013-2019 data lacks star/fork counts
19
+ - Only data from 2020+ has star/fork information
20
+ - This is due to HTML structure differences in older Wayback Machine snapshots
21
+
22
+ **Impact:**
23
+ - Cannot compare popularity metrics for pre-2020 projects
24
+ - Monthly rankings rely solely on trending score for 2013-2019
25
+ - Incomplete analysis for historical trends
26
+
27
+ **Affected Years:**
28
+ ```
29
+ 2013: 100% missing (150 entries)
30
+ 2014: 100% missing (125 entries)
31
+ 2015: 100% missing (325 entries)
32
+ 2016: 100% missing (1,200 entries)
33
+ 2017: 100% missing (1,550 entries)
34
+ 2018: 100% missing (4,324 entries)
35
+ 2019: 100% missing (17,475 entries)
36
+ 2020+: 0% missing (397,949 entries)
37
+ ```
38
+
39
+ **Recommendation:**
40
+ - Use weighted trending score only for historical analysis
41
+ - Clearly document this limitation when presenting data
42
+ - Consider scraping current star counts from GitHub API for historical projects
43
+
44
+ ---
45
+
46
+ ### 2. **Uneven Temporal Distribution**
47
+ **Severity:** High
48
+ **Affected:** All data
49
+
50
+ **Problem:**
51
+ - Snapshot frequency varies dramatically: 1 to 31 snapshots per month
52
+ - Some months have 1 snapshot (25 projects), others have 31 (15,763 projects)
53
+ - 31x variance in data density across time periods
54
+
55
+ **Examples:**
56
+ ```
57
+ Sparse months (1 snapshot):
58
+ - 2015-04: 25 projects
59
+ - 2015-06: 25 projects
60
+ - 2016-11: 25 projects
61
+
62
+ Dense months (31 snapshots):
63
+ - 2019-05: 4,650 projects
64
+ - 2020-01: 17,446 projects
65
+ - 2020-05: 15,763 projects
66
+ ```
67
+
68
+ **Impact:**
69
+ - Over-representation of 2019-2020 period
70
+ - Monthly scores favor periods with more snapshots
71
+ - Difficult to compare across time periods fairly
72
+ - Projects appearing in dense months get inflated scores
73
+
74
+ **Recommendation:**
75
+ - Normalize scores by dividing by number of snapshots per month
76
+ - Weight monthly rankings by data density
77
+ - Consider resampling to create uniform temporal distribution
78
+
79
+ ---
80
+
81
+ ### 3. **Inconsistent Star/Fork Count Timing**
82
+ **Severity:** Medium
83
+ **Affected:** All entries with star counts (67.8%)
84
+
85
+ **Problem:**
86
+ - Star/fork counts are "maximum ever recorded" across all snapshots
87
+ - A 2015 project's star count might be from 2025
88
+ - A 2025 project's star count is from 2025
89
+ - Not temporally consistent or comparable
90
+
91
+ **Example Issues:**
92
+ ```
93
+ Project A (trending 2015):
94
+ - Trending date: 2015-03-15
95
+ - Star count: 100,000 (scraped 2025)
96
+ - Had 10 years to accumulate stars
97
+
98
+ Project B (trending 2025):
99
+ - Trending date: 2025-03-15
100
+ - Star count: 20,000 (scraped 2025)
101
+ - Had 0 years to accumulate stars
102
+
103
+ Issue: Can't fairly compare popularity
104
+ ```
105
+
106
+ **Impact:**
107
+ - Older projects appear more popular (survival bias)
108
+ - Can't analyze "stars at time of trending"
109
+ - Misleading for popularity comparisons across eras
110
+
111
+ **Recommendation:**
112
+ - Document this clearly: "Stars represent current popularity, not popularity when trending"
113
+ - Consider using trending score only for cross-era comparisons
114
+ - For accurate historical analysis, would need to scrape stars from archived snapshots
115
+
116
+ ---
117
+
118
+ ### 4. **Multiple Appearances Bias**
119
+ **Severity:** Medium
120
+ **Affected:** Scoring methodology
121
+
122
+ **Problem:**
123
+ - Some projects appear 1,900+ times, others appear once
124
+ - Scoring favors projects that "stick around" on trending
125
+ - Brief but intense viral projects get undervalued
126
+
127
+ **Distribution:**
128
+ ```
129
+ 1 appearance: 1,129 projects (7.8%)
130
+ 2-5 appearances: 1,852 projects (12.8%)
131
+ 6-10 appearances: 3,732 projects (25.7%)
132
+ 11-50 appearances: 6,005 projects (41.4%)
133
+ 50+ appearances: 1,782 projects (12.3%)
134
+ ```
135
+
136
+ **Most Over-Represented:**
137
+ ```
138
+ 1. jwasham/coding-interview-university: 1,948 appearances
139
+ 2. TheAlgorithms/Python: 1,891 appearances
140
+ 3. donnemartin/system-design-primer: 1,865 appearances
141
+ 4. public-apis/public-apis: 1,830 appearances
142
+ 5. EbookFoundation/free-programming-books: 1,737 appearances
143
+ ```
144
+
145
+ **Impact:**
146
+ - "Evergreen" educational repos dominate rankings
147
+ - Viral new projects undervalued if they trend briefly
148
+ - Doesn't distinguish between sustained vs. brief trending
149
+
150
+ **Recommendation:**
151
+ - Create separate rankings: "Most Consistent" vs "Peak Trending"
152
+ - Add "peak rank achieved" metric
153
+ - Consider decay function for repeated appearances
154
+
155
+ ---
156
+
157
+ ### 5. **Linear Scoring Assumption**
158
+ **Severity:** Low-Medium
159
+ **Affected:** Monthly rankings
160
+
161
+ **Problem:**
162
+ - Current scoring: Rank 1 = 25 pts, Rank 2 = 24 pts (linear)
163
+ - Assumes rank 1β†’2 has same value as rank 24β†’25
164
+ - In reality, top positions have exponentially more visibility
165
+
166
+ **Distribution:**
167
+ ```
168
+ Rank 1-5: 90,280 entries (21.3%)
169
+ Rank 6-10: 90,178 entries (21.3%)
170
+ Rank 11-15: 87,522 entries (20.7%)
171
+ Rank 16-20: 79,516 entries (18.8%)
172
+ Rank 21-25: 75,602 entries (17.9%)
173
+ ```
174
+
175
+ **Impact:**
176
+ - Undervalues #1 position
177
+ - May not reflect actual visibility/impact differences
178
+ - Alternative exponential scoring might be more accurate
179
+
180
+ **Recommendation:**
181
+ - Consider exponential scoring: 2^(25-rank)
182
+ - Or logarithmic: log(26-rank)
183
+ - A/B test different scoring functions against actual star growth
184
+
185
+ ---
186
+
187
+ ### 6. **Failed Scrapes & Missing Data**
188
+ **Severity:** Medium
189
+ **Affected:** 1,937 URLs (10.2%)
190
+
191
+ **Problem:**
192
+ - SSL/TLS incompatibility with 2014-2019 Wayback snapshots
193
+ - Incomplete Wayback Machine captures
194
+ - Connection timeouts and 503 errors
195
+
196
+ **Impact:**
197
+ - Gaps in temporal coverage
198
+ - Some dates completely missing
199
+ - Potential systematic bias if certain types of snapshots fail more
200
+
201
+ **Affected Periods:**
202
+ ```
203
+ 2014-10-01 to 2014-12-21: Many failures
204
+ 2016-02-24 to 2016-03-11: Several failures
205
+ 2019-06-12 to 2019-12-31: Heavy failures (mid-2019 SSL issues)
206
+ 2024-10-28: 3 failures (503 errors)
207
+ ```
208
+
209
+ **Recommendation:**
210
+ - Retry failed URLs periodically (Wayback Machine availability changes)
211
+ - Use GitHub API to fill gaps where possible
212
+ - Document missing date ranges in analysis
213
+
214
+ ---
215
+
216
+ ### 7. **Rank Distribution Skew**
217
+ **Severity:** Low
218
+ **Affected:** Lower-ranked entries
219
+
220
+ **Problem:**
221
+ - Fewer entries at ranks 21-25 (75,602) vs ranks 1-5 (90,280)
222
+ - Suggests some snapshots had <25 projects
223
+ - Or extraction issues with lower-ranked items
224
+
225
+ **Impact:**
226
+ - Scoring may overvalue top ranks due to sample size
227
+ - Statistical significance varies by rank position
228
+
229
+ **Recommendation:**
230
+ - Filter analysis to top 20 for consistency
231
+ - Or normalize scores by rank availability
232
+
233
+ ---
234
+
235
+ ## πŸ“Š Dataset Quality Metrics
236
+
237
+ ### Completeness
238
+ ```
239
+ βœ… Temporal Coverage: 89.8% (128/142 months have data)
240
+ ❌ Star/Fork Data: 67.8% complete (missing all pre-2020)
241
+ βœ… Rank Data: 100% complete
242
+ βœ… Repository Names: 100% complete
243
+ ```
244
+
245
+ ### Consistency
246
+ ```
247
+ ❌ Snapshot Frequency: Highly inconsistent (1-31 per month)
248
+ ❌ Star Count Timing: Not temporally aligned
249
+ ⚠️ Scoring Methodology: Linear assumption (debatable)
250
+ ```
251
+
252
+ ### Reliability
253
+ ```
254
+ βœ… Scraping Success: 89.8%
255
+ ❌ Failed URLs: 10.2% (recoverable with retry)
256
+ βœ… Data Validation: No duplicate entries detected
257
+ ```
258
+
259
+ ---
260
+
261
+ ## πŸ”§ Recommended Fixes
262
+
263
+ ### High Priority
264
+ 1. **Add normalized scores** that account for snapshot frequency
265
+ 2. **Document star count timing issue** prominently in analysis
266
+ 3. **Create separate pre-2020 and post-2020 analyses** due to missing data
267
+ 4. **Retry failed URLs** to improve coverage
268
+
269
+ ### Medium Priority
270
+ 5. **Test exponential scoring** vs linear for better accuracy
271
+ 6. **Add "peak rank" metric** to identify viral projects
272
+ 7. **Separate "evergreen" vs "viral" rankings**
273
+ 8. **Scrape current GitHub API data** to fill historical gaps
274
+
275
+ ### Low Priority
276
+ 9. Create confidence intervals for sparse months
277
+ 10. Add data quality flags per entry
278
+ 11. Document GitHub trending algorithm changes over time
279
+
280
+ ---
281
+
282
+ ## πŸ“ Usage Guidelines
283
+
284
+ ### βœ… Good Uses
285
+ - Identifying trending patterns in 2020-2025 (complete data)
286
+ - Analyzing trending frequency/consistency
287
+ - Discovering historically significant projects
288
+ - Comparative analysis within same time period
289
+
290
+ ### ⚠️ Use With Caution
291
+ - Cross-era popularity comparisons (star count issues)
292
+ - Monthly comparisons with very different snapshot counts
293
+ - Absolute popularity rankings (use GitHub API instead)
294
+ - Historical analysis pre-2020 (missing star/fork data)
295
+
296
+ ### ❌ Not Recommended
297
+ - Claiming "most popular project ever" (timing issues)
298
+ - Direct star count comparisons across decades
299
+ - Precise month-to-month trending velocity analysis (uneven sampling)
300
+ - Analysis of projects that trended <5 times (insufficient data)
301
+
302
+ ---
303
+
304
+ ## πŸ“ˆ Data Quality by Year
305
+
306
+ | Year | Projects | Star Data | Snapshots | Quality Grade |
307
+ |------|----------|-----------|-----------|---------------|
308
+ | 2013 | 150 | 0% | Low | D (Minimal) |
309
+ | 2014 | 125 | 0% | Low | D (Minimal) |
310
+ | 2015 | 325 | 0% | Low | D (Minimal) |
311
+ | 2016 | 1,200 | 0% | Low | D (Minimal) |
312
+ | 2017 | 1,550 | 0% | Low | D (Minimal) |
313
+ | 2018 | 4,324 | 0% | Medium | C- (Limited) |
314
+ | 2019 | 17,475 | 0% | High | C+ (Incomplete)|
315
+ | 2020 | 108,672 | 100% | High | A- (Excellent)|
316
+ | 2021 | 70,006 | 100% | High | A- (Excellent)|
317
+ | 2022 | 74,915 | 100% | High | A- (Excellent)|
318
+ | 2023 | 73,674 | 100% | High | A- (Excellent)|
319
+ | 2024 | 46,538 | 100% | High | A- (Excellent)|
320
+ | 2025 | 24,144 | 100% | Medium | A- (Excellent)|
321
+
322
+ ---
323
+
324
+ ## 🎯 Conclusion
325
+
326
+ This dataset is **excellent for 2020-2025 analysis** but has **significant limitations for historical (2013-2019) analysis**. The primary issues are:
327
+
328
+ 1. **Missing star/fork data pre-2020** (structural limitation)
329
+ 2. **Uneven temporal distribution** (Wayback Machine artifact)
330
+ 3. **Star count timing inconsistency** (methodology issue)
331
+
332
+ These issues are **documentable and manageable** but should be clearly communicated in any analysis or visualization using this data.
333
+
334
+ **Overall Grade: B+**
335
+ - A+ for recent data (2020-2025)
336
+ - C+ for historical data (2013-2019)
337
+ - Excellent for trending patterns, limited for absolute popularity metrics