CoolFace
Datasetpublic

hybridfree/github-code-2025

πŸš€ 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… See the full description on the dataset page: https://huggingface.co/datasets/hybridfree/github-code-2025.

sourceHugging Facemitupdated 9mo agoView on Hugging Face
1likes3.3kdownloads
Dataset Card

πŸš€ 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)
Scope1M top repositories1M random 2025 repos
PurposeProven quality & patternsEmerging trends & innovation
ValueWhat worksWhat's next

🧹 The Clean Code Promise

python
# 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

python
{
    "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

python
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

PhaseActionPurpose
1🎯 Dual population samplingBalance quality & innovation
2🧹 Multi-layer filteringRemove noise & binaries
3πŸ“ Size normalizationFocus on meaningful content
4πŸ” Content validationEnsure text quality
5🏷️ Metadata preservationMaintain 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."