Dataset Viewer (First 5GB)
Auto-converted to Parquet Duplicate
repo_id
stringlengths
6
101
size
int64
367
5.14M
file_path
stringlengths
2
269
content
stringlengths
367
5.14M
0101shift/Project_OAK
3,051,790
Design/LLD_Design/V0/Project_OAK_TOP_LED_CAVITY_V0/fp-info-cache
"19323365396595309\nAI_logo\nAI_face_logo\n\n\n0\n0\n0\nAI_logo\nAI_logo\n\n\n0\n0\n0\nAI_logo\nAI_l(...TRUNCATED)
0015/ThatProject
40,587
"Esp32_temperature_humidity_ble_FLUTTER/flutter_ble_app/flutter_ble-master/android/src/main/java/ai/(...TRUNCATED)
"package ai.longev.flutter.flutter_ble;\n\n// Copyright 2017, Paul DeMarco.\n// All rights reserved.(...TRUNCATED)
01joy/news-search-engine
966
data/news/1077.xml
"<?xml version='1.0' encoding='utf-8'?>\n<doc><id>1077</id><url>http://www.chinanews.com/gn/2020/04-(...TRUNCATED)
021-tanko/TweetScraperPro
4,780
tweetscraperpro/feed.py
"import time\nfrom datetime import datetime\n\nfrom bs4 import BeautifulSoup\nfrom re import findall(...TRUNCATED)
0101shift/Project_OAK
4,238
Design/LLD_Design/V0/Project_OAK_TOP_LED_CAVITY_V0/Project_OAK_TOP_LED_CAVITY_V0.pro
"update=06/28/25 22:25:10\nversion=1\nlast_client=pcbnew\n[general]\nversion=1\nRootSch=\nBoardNm=\n(...TRUNCATED)
0101shift/Project_OAK
40,924
Design/LLD_Design/V0/Project_OAK_TOP_LED_CAVITY_V0/Project_OAK_TOP_LED_CAVITY_V0.kicad_pcb-bak
"(kicad_pcb (version 20171130) (host pcbnew \"(5.1.6)-1\")\n\n (general\n (thickness 1.6)\n ((...TRUNCATED)
0015/ThatProject
8,725
"Esp32_temperature_humidity_ble_FLUTTER/flutter_ble_app/flutter_ble-master/android/src/main/java/ai/(...TRUNCATED)
"package ai.longev.flutter.flutter_ble;\n\n// Copyright 2017, Paul DeMarco.\n// All rights reserved.(...TRUNCATED)
0015/ThatProject
4,229
"Esp32_temperature_humidity_ble_FLUTTER/flutter_ble_app/flutter_ble-master/android/src/main/java/ai/(...TRUNCATED)
"package ai.longev.flutter.flutter_ble;\n\n\nimport com.google.protobuf.ByteString;\nimport ai.longe(...TRUNCATED)
01joy/news-search-engine
1,398
data/news/325.xml
"<?xml version='1.0' encoding='utf-8'?>\n<doc><id>325</id><url>http://www.chinanews.com/gj/2020/03-3(...TRUNCATED)
01joy/news-search-engine
752
data/news/352.xml
"<?xml version='1.0' encoding='utf-8'?>\n<doc><id>352</id><url>http://www.chinanews.com/sh/2020/03-3(...TRUNCATED)
End of preview. Expand in Data Studio

This is a copy of https://huggingface.co/datasets/nick007x/github-code-2025 but since that was a mess since some of the parquet files where missing some where not working. So I repackaged them into a single working set, it is no longer split into less then or more then 2 stars. It is now a single set packaged in 647 parquet files, where each file if unpacked into JSONL format is slightly smaller then 4GB. Also has the whole thing been compressed with zstd-16. This has reduced the size considertly. I will not claim any credits just hope that the usability of the set is improved.

πŸš€ GitHub Code 2025: The Clean Code Manifesto

A meticulously curated dataset of 1.5M+ repositories representing both quality and innovation in 2025's code ecosystem

🌟 The Philosophy

Quality Over Quantity, Purpose Over Volume

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.

🎯 What This Dataset Is

πŸ“Š Dual-Perspective Design

Subset πŸŽ–οΈ Above 2 Stars 🌱 Below 2 Stars (2025)
Scope 1M top repositories 1M random 2025 repos
Purpose Proven quality & patterns Emerging trends & innovation
Value What works What's next

🧹 The Clean Code Promise

# What you WON'T find here:
🚫 Binary files          # No images, executables, models
🚫 Build artifacts       # No node_modules, __pycache__
🚫 Configuration noise   # No .git, IDE files, lock files
🚫 License duplication   # No repetitive legal text
🚫 Minified code         # No compressed/obfuscated content
🚫 Empty files           # No whitespace-only content

πŸ“ Dataset Structure

github-code-2025/
β”œβ”€β”€ πŸ“ˆ above-2-stars/
β”‚   β”œβ”€β”€ train_000.parquet
β”‚   β”œβ”€β”€ train_001.parquet
β”‚   └── ...
└── 🌱 below-2-star/
    β”œβ”€β”€ train_000.parquet
    β”œβ”€β”€ train_001.parquet
    └── ...

πŸ“Š Schema

{
    "repo_id": "owner/repo_name",    # πŸ“ Repository identifier
    "file_path": "src/main.py",      # πŸ—‚οΈ Relative file path
    "content": "def clean_code():",   # πŸ’Ž Actual source code
    "size": 1024                     # πŸ“ File size in bytes
}

πŸ› οΈ How to Use

πŸ”₯ Quick Start

from datasets import load_dataset
# Load the quality benchmark
quality_ds = load_dataset("nick007x/github-code-2025", "above-2-stars")
# Load emerging trends
emerging_ds = load_dataset("nick007x/github-code-2025", "below-2-star")
# Mix for balanced training
balanced_ds = interleave_datasets([quality_ds, emerging_ds])

🎯 Ideal Use Cases

  • 🧠 AI Training: Clean, diverse code for language models
  • πŸ“Š Code Analysis: Compare popular vs emerging patterns
  • πŸ” Trend Research: 2025 development practices
  • πŸŽ“ Education: High-quality examples for learning
  • πŸ› οΈ Tool Development: Benchmarking code quality tools

πŸ—οΈ Creation Methodology

🎨 Selection Strategy

Phase Action Purpose
1 🎯 Dual population sampling Balance quality & innovation
2 🧹 Multi-layer filtering Remove noise & binaries
3 πŸ“ Size normalization Focus on meaningful content
4 πŸ” Content validation Ensure text quality
5 🏷️ Metadata preservation Maintain context

🚫 What We Filtered Out

File Types Removed:

  • 50+ binary extensions (images, models, executables)
  • 30+ build/system directories
  • 15+ configuration file types
  • All files outside 1KB-5MB range

Quality Checks:

  • βœ… UTF-8 text validation
  • βœ… Non-empty content check
  • βœ… Binary detection
  • βœ… Repository structure preservation

πŸŽͺ Why This Dataset Matters

πŸ’« The Quality Revolution

We reject the "more data is better" dogma. Instead, we offer:

  • 🎯 Intentional Curation: Every file serves a purpose
  • βš–οΈ Balanced Perspective: Popular + Emerging = Complete picture
  • 🧹 Unprecedented Cleanliness: The cleanest code dataset available
  • πŸ“… Temporal Intelligence: 2025-focused for relevance

🀝 Contributing & Feedback

This dataset is a living project. We welcome:

  • πŸ› Bug reports and issues
  • πŸ’‘ Feature requests for future versions
  • πŸ“Š Validation of data quality
  • 🎯 Suggestions for improvement

πŸ“œ License

This dataset aggregates Github repos. Each individual repo maintains its original copyright and license terms (typically various Creative Commons licenses like CC BY, CC BY-NC, etc.). Users must verify and comply with the specific license of any repo they extract and use from this collection. The MIT license in this repository applies only to the dataset compilation and packaging code.

Important: Repository contents maintain their original licenses. Please respect individual project licenses when using this data.

πŸ™ Acknowledgments

Built with gratitude for the entire open-source community. Every file in this dataset represents hours of dedication from developers worldwide.


⭐ If this dataset helps your research or project, please consider starring the repository!

"In the pursuit of AI that understands code, we must first understand what code is worth learning."

Downloads last month
8