Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
- code
|
| 8 |
+
tags:
|
| 9 |
+
- devops
|
| 10 |
+
- docker
|
| 11 |
+
- ci-cd
|
| 12 |
+
- github-actions
|
| 13 |
+
- build-systems
|
| 14 |
+
- configuration
|
| 15 |
+
size_categories:
|
| 16 |
+
- 100K<n<1M
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Build/CI Configuration Corpus
|
| 20 |
+
|
| 21 |
+
A curated dataset of build, CI/CD, and project configuration files from top GitHub repositories. This fills an underserved niche in LLM training data — models are notoriously weak at DevOps configuration tasks.
|
| 22 |
+
|
| 23 |
+
## Dataset Description
|
| 24 |
+
|
| 25 |
+
This corpus contains real-world configuration files extracted from the most popular GitHub repositories (by star count). Each row contains the full file content along with metadata about the source repository and file classification.
|
| 26 |
+
|
| 27 |
+
### Source
|
| 28 |
+
|
| 29 |
+
Repositories are sourced from [ronantakizawa/github-top-projects](https://huggingface.co/datasets/ronantakizawa/github-top-projects), which tracks GitHub's trending repositories from 2013–2025.
|
| 30 |
+
|
| 31 |
+
### Categories
|
| 32 |
+
|
| 33 |
+
| Category | Description | Example Files |
|
| 34 |
+
|----------|-------------|---------------|
|
| 35 |
+
| `dockerfile` | Docker configuration | `Dockerfile`, `docker-compose.yml` |
|
| 36 |
+
| `github_actions` | GitHub Actions workflows | `.github/workflows/*.yml` |
|
| 37 |
+
| `ci` | Other CI/CD systems | `.travis.yml`, `.gitlab-ci.yml`, `Jenkinsfile` |
|
| 38 |
+
| `makefile` | Make-based build systems | `Makefile`, `CMakeLists.txt` |
|
| 39 |
+
| `build_jvm` | JVM build tools | `build.gradle`, `pom.xml`, `build.sbt` |
|
| 40 |
+
| `config_js` | JavaScript/TypeScript config | `tsconfig.json`, `webpack.config.js`, `vite.config.ts` |
|
| 41 |
+
| `config_python` | Python project config | `pyproject.toml`, `setup.py`, `tox.ini` |
|
| 42 |
+
| `config_rust` | Rust config | `Cargo.toml`, `build.rs` |
|
| 43 |
+
| `config_go` | Go config | `go.mod` |
|
| 44 |
+
| `config_ruby` | Ruby config | `Gemfile`, `Rakefile` |
|
| 45 |
+
| `linting` | Linters and formatters | `.eslintrc.json`, `.prettierrc`, `.editorconfig` |
|
| 46 |
+
| `packaging` | Package managers | `package.json`, `.npmrc` |
|
| 47 |
+
| `infra` | Infrastructure as code | `*.tf`, `flake.nix` |
|
| 48 |
+
| `k8s` | Kubernetes manifests | Detected via `apiVersion`/`kind` fields |
|
| 49 |
+
| `pre_commit` | Pre-commit and dependency bots | `.pre-commit-config.yaml`, `dependabot.yml` |
|
| 50 |
+
| `lockfile` | Dependency lock files | `package-lock.json`, `yarn.lock`, `Cargo.lock` |
|
| 51 |
+
|
| 52 |
+
### Schema
|
| 53 |
+
|
| 54 |
+
| Field | Type | Description |
|
| 55 |
+
|-------|------|-------------|
|
| 56 |
+
| `content` | string | Full file content |
|
| 57 |
+
| `file_path` | string | Path within repository |
|
| 58 |
+
| `file_name` | string | Filename only |
|
| 59 |
+
| `category` | string | High-level category (see above) |
|
| 60 |
+
| `config_type` | string | Specific config type (e.g., "docker-compose", "tsconfig") |
|
| 61 |
+
| `repo_name` | string | Repository (owner/name) |
|
| 62 |
+
| `repo_stars` | int64 | Star count |
|
| 63 |
+
| `repo_language` | string | Primary language of repository |
|
| 64 |
+
| `license` | string | SPDX license identifier |
|
| 65 |
+
| `line_count` | int32 | Number of lines |
|
| 66 |
+
| `file_size_bytes` | int32 | File size in bytes |
|
| 67 |
+
| `has_comments` | bool | Whether file contains comments |
|
| 68 |
+
| `quality_score` | float32 | Quality score (0.0–1.0), see below |
|
| 69 |
+
|
| 70 |
+
### Quality Filtering
|
| 71 |
+
|
| 72 |
+
The dataset undergoes three quality filtering stages:
|
| 73 |
+
|
| 74 |
+
1. **Minimum size**: Files with fewer than 5 lines or 50 characters are removed (trivial configs like 2-line `.nvmrc` files add no training signal).
|
| 75 |
+
|
| 76 |
+
2. **Near-deduplication**: MinHash LSH (128 permutations, Jaccard threshold 0.85) removes near-duplicate files. Within each duplicate cluster, the version from the highest-starred repository is kept. This eliminates hundreds of copies of common starter templates (e.g., default `tsconfig.json`, boilerplate `Dockerfile`).
|
| 77 |
+
|
| 78 |
+
3. **Makefile scoping**: Makefiles are restricted to root-level and 1 directory deep, preventing large C/C++ repos from flooding the dataset with subdirectory Makefiles.
|
| 79 |
+
|
| 80 |
+
### Quality Score
|
| 81 |
+
|
| 82 |
+
Each file receives a quality score (0.0–1.0) based on four equally-weighted factors:
|
| 83 |
+
|
| 84 |
+
- **Comment density** (0–0.25): Files with comments/annotations teach intent, not just syntax
|
| 85 |
+
- **Content length** (0–0.25): Longer files are more substantive (log-scaled, capped at 500 lines)
|
| 86 |
+
- **Repository quality** (0–0.25): Higher-starred repos signal better engineering practices (log-scaled)
|
| 87 |
+
- **Non-trivial ratio** (0–0.25): Ratio of meaningful lines vs blank/bracket-only lines
|
| 88 |
+
|
| 89 |
+
Use `quality_score` to filter for higher-quality examples during training:
|
| 90 |
+
```python
|
| 91 |
+
high_quality = ds["train"].filter(lambda x: x["quality_score"] >= 0.5)
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
### Splits
|
| 95 |
+
|
| 96 |
+
- **train** (90%): For training
|
| 97 |
+
- **test** (5%): For evaluation
|
| 98 |
+
- **validation** (5%): For validation
|
| 99 |
+
|
| 100 |
+
Splits are deterministic by repository (all files from a repo go to the same split).
|
| 101 |
+
|
| 102 |
+
## Usage
|
| 103 |
+
|
| 104 |
+
```python
|
| 105 |
+
from datasets import load_dataset
|
| 106 |
+
|
| 107 |
+
ds = load_dataset("ronantakizawa/codeconfig")
|
| 108 |
+
|
| 109 |
+
# Filter by category
|
| 110 |
+
dockerfiles = ds["train"].filter(lambda x: x["category"] == "dockerfile")
|
| 111 |
+
github_actions = ds["train"].filter(lambda x: x["category"] == "github_actions")
|
| 112 |
+
|
| 113 |
+
# Filter by specific config type
|
| 114 |
+
tsconfigs = ds["train"].filter(lambda x: x["config_type"] == "tsconfig")
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
## Intended Uses
|
| 118 |
+
|
| 119 |
+
- Fine-tuning LLMs for DevOps/infrastructure code generation
|
| 120 |
+
- Training code completion models for configuration files
|
| 121 |
+
- Benchmarking LLM performance on build/CI tasks
|
| 122 |
+
- Studying configuration patterns across popular open-source projects
|
| 123 |
+
|
| 124 |
+
## Limitations
|
| 125 |
+
|
| 126 |
+
- Only includes repositories with permissive licenses (MIT, Apache-2.0, BSD, etc.)
|
| 127 |
+
- Biased toward popular/trending repositories
|
| 128 |
+
- K8s manifests detected heuristically (may have false positives/negatives)
|
| 129 |
+
- Lock files may be large and low-signal
|
| 130 |
+
|
| 131 |
+
## License
|
| 132 |
+
|
| 133 |
+
MIT — the dataset only includes files from permissively-licensed repositories.
|