File size: 3,618 Bytes
2406a1f
e9265fc
2406a1f
e9265fc
 
 
2406a1f
e9265fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2406a1f
e9265fc
 
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
# Cargo2HF Dataset: llvm-sys.rs

This dataset contains comprehensive analysis data extracted from the Cargo project `/home/mdupont/2024/08/24/llvm-sys.rs` using the cargo2hf tool.

## Dataset Overview

- **Source Project**: /home/mdupont/2024/08/24/llvm-sys.rs
- **Include Dependencies**: false
- **Extraction Tool**: cargo2hf (part of hf-dataset-validator-rust)
- **Format**: Apache Parquet files optimized for machine learning
- **Compression**: Snappy compression for fast loading

## Dataset Structure

### Phase-Based Organization

The dataset is organized into multiple phases, each capturing different aspects of the Cargo project:

#### 1. Project Metadata (`project_metadata-phase/`)
- Basic project information from Cargo.toml
- Authors, license, description, keywords, categories
- Repository and documentation URLs
- Project versioning information

#### 2. Dependency Analysis (`dependency_analysis-phase/`)
- Direct and transitive dependency graphs
- Version constraints and resolution
- Feature flags and optional dependencies
- Dependency source analysis (crates.io, git, path)

#### 3. Source Code Analysis (`source_code_analysis-phase/`)
- Lines of code metrics by file type
- Function, struct, enum, trait counts
- Code complexity measurements
- Documentation coverage analysis
- Public API surface analysis

#### 4. Build Analysis (`build_analysis-phase/`)
- Build script analysis (build.rs)
- Target platform configurations
- Feature flag combinations
- Compilation profiles and settings

#### 5. Ecosystem Analysis (`ecosystem_analysis-phase/`)
- Crates.io metadata and download statistics
- GitHub repository metrics (stars, forks, issues)
- Community engagement indicators
- Popularity and adoption metrics

#### 6. Version History (`version_history-phase/`)
- Git commit history analysis
- Contributor statistics
- Release patterns and frequency
- Project evolution tracking

## Schema

Each record contains:

- **Identification**: Unique ID, project path, name, version
- **Phase Information**: Which analysis phase generated the data
- **Project Metadata**: Description, authors, license, repository info
- **Code Metrics**: Lines of code, file counts, complexity scores
- **Dependency Data**: Dependency counts and detailed dependency information
- **Build Configuration**: Features, targets, build script complexity
- **Ecosystem Metrics**: Download counts, GitHub stats, community metrics
- **Version History**: Commit counts, contributor info, project age
- **Processing Metadata**: Timestamps, tool versions, processing times

## Applications

This dataset is valuable for:

- **Dependency Analysis**: Understanding Rust ecosystem patterns
- **Code Quality Research**: Analyzing code metrics and best practices  
- **Build System Studies**: Understanding Cargo build configurations
- **Ecosystem Evolution**: Tracking how Rust projects develop over time
- **Machine Learning**: Training models on Rust project patterns

## Complementary Datasets

This cargo2hf dataset complements:
- **rust-analyzer datasets**: Semantic analysis and compiler internals
- **crates.io datasets**: Registry-wide ecosystem analysis
- **GitHub datasets**: Repository and community metrics

## License

This dataset is generated from open source Rust projects and inherits their respective licenses.
The extraction tool and dataset format are licensed under AGPL-3.0.

## Generation Details

- **Generated**: 2025-08-07
- **Tool Version**: cargo2hf (hf-dataset-validator-rust)
- **Source Project**: /home/mdupont/2024/08/24/llvm-sys.rs
- **Dependencies Included**: false
- **Total Phases**: 6 analysis phases