nick007x commited on
Commit
2c63348
Β·
verified Β·
1 Parent(s): 2aa91ee

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +159 -3
README.md CHANGED
@@ -1,3 +1,159 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ modalities:
4
+ - Text
5
+ formats:
6
+ - parquet
7
+ size: 10M - 100M
8
+ libraries:
9
+ - Datasets
10
+ - Dask
11
+ - Croissant
12
+ - Polars
13
+ ---
14
+
15
+ # πŸš€ GitHub Code 2025: The Clean Code Manifesto
16
+
17
+ > **A meticulously curated dataset of 1.5M+ repositories representing both quality and innovation in 2025's code ecosystem**
18
+
19
+ ## 🌟 The Philosophy
20
+
21
+ **Quality Over Quantity, Purpose Over Volume**
22
+
23
+ In an era of data abundance, we present a dataset built on radical curation. Every file, every repository, every byte has been carefully selected to represent the **signal** in the noise of open-source development.
24
+
25
+ ## 🎯 What This Dataset Is
26
+
27
+ ### πŸ“Š Dual-Perspective Design
28
+
29
+ | Subset | πŸŽ–οΈ Above 2 Stars | 🌱 Below 2 Stars (2025) |
30
+ |--------|------------------|------------------------|
31
+ | **Scope** | 1M top repositories | 1M random 2025 repos |
32
+ | **Purpose** | Proven quality & patterns | Emerging trends & innovation |
33
+ | **Value** | What works | What's next |
34
+
35
+ ### 🧹 The Clean Code Promise
36
+
37
+ ```python
38
+ # What you WON'T find here:
39
+ 🚫 Binary files # No images, executables, models
40
+ 🚫 Build artifacts # No node_modules, __pycache__
41
+ 🚫 Configuration noise # No .git, IDE files, lock files
42
+ 🚫 License duplication # No repetitive legal text
43
+ 🚫 Minified code # No compressed/obfuscated content
44
+ 🚫 Empty files # No whitespace-only content
45
+ ```
46
+
47
+ ## πŸ“ Dataset Structure
48
+
49
+ ```
50
+ github-code-2025/
51
+ β”œβ”€β”€ πŸ“ˆ above-2-stars/
52
+ β”‚ β”œβ”€β”€ chunk_0.parquet
53
+ β”‚ β”œβ”€β”€ chunk_1.parquet
54
+ β”‚ └── ...
55
+ └── 🌱 below-2-star/
56
+ β”œβ”€β”€ chunk_0.parquet
57
+ β”œβ”€β”€ chunk_1.parquet
58
+ └── ...
59
+ ```
60
+
61
+ ### πŸ“Š Schema
62
+
63
+ ```python
64
+ {
65
+ "repo_id": "owner/repo_name", # πŸ“ Repository identifier
66
+ "file_path": "src/main.py", # πŸ—‚οΈ Relative file path
67
+ "content": "def clean_code():", # πŸ’Ž Actual source code
68
+ "size": 1024 # πŸ“ File size in bytes
69
+ }
70
+ ```
71
+
72
+ ## πŸ› οΈ How to Use
73
+
74
+ ### πŸ”₯ Quick Start
75
+
76
+ ```python
77
+ from datasets import load_dataset
78
+
79
+ # Load the quality benchmark
80
+ quality_ds = load_dataset("nick007x/github-code-2025", "above-2-stars")
81
+
82
+ # Load emerging trends
83
+ emerging_ds = load_dataset("nick007x/github-code-2025", "below-2-star")
84
+
85
+ # Mix for balanced training
86
+ balanced_ds = interleave_datasets([quality_ds, emerging_ds])
87
+ ```
88
+
89
+ ### 🎯 Ideal Use Cases
90
+
91
+ - **🧠 AI Training**: Clean, diverse code for language models
92
+ - **πŸ“Š Code Analysis**: Compare popular vs emerging patterns
93
+ - **πŸ” Trend Research**: 2025 development practices
94
+ - **πŸŽ“ Education**: High-quality examples for learning
95
+ - **πŸ› οΈ Tool Development**: Benchmarking code quality tools
96
+
97
+ ## πŸ—οΈ Creation Methodology
98
+
99
+ ### 🎨 Selection Strategy
100
+
101
+ | Phase | Action | Purpose |
102
+ |-------|--------|---------|
103
+ | **1** | 🎯 Dual population sampling | Balance quality & innovation |
104
+ | **2** | 🧹 Multi-layer filtering | Remove noise & binaries |
105
+ | **3** | πŸ“ Size normalization | Focus on meaningful content |
106
+ | **4** | πŸ” Content validation | Ensure text quality |
107
+ | **5** | 🏷️ Metadata preservation | Maintain context |
108
+
109
+ ### 🚫 What We Filtered Out
110
+
111
+ **File Types Removed:**
112
+ - 50+ binary extensions (images, models, executables)
113
+ - 30+ build/system directories
114
+ - 15+ configuration file types
115
+ - All files outside 1KB-5MB range
116
+
117
+ **Quality Checks:**
118
+ - βœ… UTF-8 text validation
119
+ - βœ… Non-empty content check
120
+ - βœ… Binary detection
121
+ - βœ… Repository structure preservation
122
+
123
+
124
+ ## πŸŽͺ Why This Dataset Matters
125
+
126
+ ### πŸ’« The Quality Revolution
127
+
128
+ We reject the "more data is better" dogma. Instead, we offer:
129
+
130
+ - **🎯 Intentional Curation**: Every file serves a purpose
131
+ - **βš–οΈ Balanced Perspective**: Popular + Emerging = Complete picture
132
+ - **🧹 Unprecedented Cleanliness**: The cleanest code dataset available
133
+ - **πŸ“… Temporal Intelligence**: 2025-focused for relevance
134
+
135
+
136
+ ## 🀝 Contributing & Feedback
137
+
138
+ This dataset is a living project. We welcome:
139
+
140
+ - πŸ› Bug reports and issues
141
+ - πŸ’‘ Feature requests for future versions
142
+ - πŸ“Š Validation of data quality
143
+ - 🎯 Suggestions for improvement
144
+
145
+ ## πŸ“œ License
146
+
147
+ This dataset is provided under the **MIT License** - see the LICENSE file for details.
148
+
149
+ **Important**: Repository contents maintain their original licenses. Please respect individual project licenses when using this data.
150
+
151
+ ## πŸ™ Acknowledgments
152
+
153
+ Built with gratitude for the entire open-source community. Every file in this dataset represents hours of dedication from developers worldwide.
154
+
155
+ ---
156
+
157
+ **⭐ If this dataset helps your research or project, please consider starring the repository!**
158
+
159
+ > **"In the pursuit of AI that understands code, we must first understand what code is worth learning."**