File size: 3,443 Bytes
6759906 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# CodeReality-1T Evaluation Subset
## Location
The completed evaluation subset (19GB) is located at:
```
/mnt/z/CodeReality_Final/codereality-1t/eval/subset/data/
```
## Subset Statistics
### Overall Metrics
- **Files**: 323 JSONL files
- **Size**: 19.0 GB
- **Repositories**: 2,049 estimated
- **Creation**: Research value scoring with diversity sampling
### Research Characteristics
| Characteristic | Count | Percentage | Details |
|----------------|--------|------------|---------|
| Multi-repo files (5+ repos) | 323 | 100% | Files containing 5+ repositories each |
| Files with commit history | 2,049 | 100% | Complete git history available |
| Cross-language content | 1,495 | 73% | Repositories with multiple programming languages |
| Build system configurations | 798 | 39% | Makefile, package.json, build.gradle, pom.xml |
| Issue tracking data | 1,209 | 59% | GitHub/GitLab issues and discussions |
| Bug-fix commits | 1,845 | 90% | Commits identified as bug fixes |
| Test coverage | 1,332 | 65% | Repositories with test files |
| Documentation | 1,843 | 90% | README and documentation files |
### Repository Size Distribution
| Size Range | Repositories | Average Size |
|------------|-------------|--------------|
| Small (< 10MB) | ~800 | 3.2 MB |
| Medium (10-100MB) | ~1,100 | 42.1 MB |
| Large (> 100MB) | ~149 | 187.3 MB |
### Language Diversity (Estimated)
- **JavaScript/TypeScript**: ~35% of content
- **Python**: ~20% of content
- **Java/C/C++**: ~25% of content
- **Mixed/Other**: ~20% of content
## Structure
```
eval_subset/
├── data/ # 280 curated JSONL files (15.1GB)
├── docs/ # Usage examples and documentation
├── eval_metadata.json # Complete subset metadata
└── USAGE_EXAMPLES.md # Demonstration code examples
```
## Usage
The subset is ready for:
- Code completion benchmarks (Pass@k evaluation)
- License detection training/testing
- Cross-language analysis
- Bug detection studies
- Repository classification
## Access
To use the evaluation subset:
```python
import json
import os
eval_dir = "/mnt/z/CodeReality_Final/codereality-1t/eval/subset"
# Load metadata
with open(os.path.join(eval_dir, 'eval_metadata.json'), 'r') as f:
metadata = json.load(f)
print(f"Subset: {metadata['eval_subset_info']['name']}")
print(f"Files: {metadata['subset_statistics']['total_files']}")
print(f"Size: {metadata['subset_statistics']['total_size_gb']} GB")
# Load sample data
data_dir = os.path.join(eval_dir, 'data')
for filename in os.listdir(data_dir)[:5]: # First 5 files
file_path = os.path.join(data_dir, filename)
with open(file_path, 'r', encoding='utf-8', errors='ignore') as f:
for line in f:
repo_data = json.loads(line)
print(f"Repository: {repo_data.get('name', 'Unknown')}")
break # Just first repo from each file
```
## Benchmarks
Demonstration benchmarks available in `../benchmarks/`:
- `license_detection_benchmark.py`
- `code_completion_benchmark.py`
See `../benchmarks/README.md` for detailed usage instructions.
## Metadata
Complete metadata available in `eval_metadata.json` includes:
- Selection methodology
- Research characteristics
- Size distribution
- File manifest with checksums
- Recommended evaluation tasks
This subset represents a curated, research-ready portion of the complete CodeReality-1T dataset optimized for standardized evaluation and benchmarking. |