--- license: mit task_categories: - text-generation - text-classification - question-answering language: - en tags: - code size_categories: - 10K= 50 stars, created before 2020-01-01, non-fork 2. **Cloning**: Shallow git clone (`--depth 1`) with 100 MB size filter to exclude large monorepos 3. **File collection**: Recursive walk through cloned repositories, excluding hidden directories (files starting with `.`) 4. **File type filtering**: Only Python source files (`.py`), test files (`*test*.py`), and README files (`README.*`) were collected 5. **Content extraction**: UTF-8 encoding with error handling for robust text extraction 6. **Parallel processing**: 3 concurrent workers for efficient processing 7. **CSV generation**: All file data consolidated into a single CSV with repository metadata embedded in each row ## Quality Filters - **Star threshold**: Minimum 50 stars (indicates community vetting) - **Size limit**: 100 MB to exclude monorepos and binary-heavy projects - **File type filtering**: Only Python, test, and documentation files - **Hidden files excluded**: Files/directories starting with `.` ignored - **Encoding handling**: UTF-8 with error fallback ## Intended Use Cases - **Code completion**: Training autocompletion models on real-world Python patterns - **Bug detection**: Learning from production codebases with established testing practices - **Test generation**: Understanding test-code relationships from included test files - **Documentation generation**: Learning code-documentation correlations from READMEs - **SWE-bench training**: Base dataset for software engineering benchmark preparation - **Code understanding**: Repository structure and dependency learning ## Limitations - **Temporal bias**: Pre-2020 code, missing modern Python features (type hints, match statements, structural pattern matching) - **Popularity bias**: High-star repos only, may not represent niche or edge-case patterns - **Size limitation**: 100 MB cap excludes large enterprise monorepos - **Language bias**: Primarily English documentation and comments - **Static only**: No execution data, test results, or runtime behavior ## Recommended Supplements For comprehensive model training, consider supplementing with: - Post-2020 repositories for modern Python patterns - Smaller repositories for edge-case and niche patterns - Synthetic examples for specific bug types - Negative examples (buggy code) for robustness ## License This dataset is licensed under the MIT License. See the LICENSE file for details. --- **Note**: This dataset was created using a custom GitHub scraper tool.