Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Linux Kernel API Migrations Dataset
|
| 2 |
+
|
| 3 |
+
This dataset contains API migration information extracted from the Linux kernel source code between versions **v6.8** and **v6.9**.
|
| 4 |
+
|
| 5 |
+
## Dataset Summary
|
| 6 |
+
|
| 7 |
+
- **Total Migrations**: 4,311
|
| 8 |
+
- **Commits Analyzed**: 15,678
|
| 9 |
+
- **Focus Paths**: all
|
| 10 |
+
- **Format**: Parquet
|
| 11 |
+
|
| 12 |
+
## Dataset Structure
|
| 13 |
+
|
| 14 |
+
### Data Fields
|
| 15 |
+
|
| 16 |
+
- **type** (object): 4311 non-null values
|
| 17 |
+
- **api_name** (object): 4311 non-null values
|
| 18 |
+
- **file** (object): 4311 non-null values
|
| 19 |
+
- **commit** (object): 4311 non-null values
|
| 20 |
+
- **old_signature** (object): 4118 non-null values
|
| 21 |
+
- **new_signature** (object): 4118 non-null values
|
| 22 |
+
- **change_type** (object): 4311 non-null values
|
| 23 |
+
|
| 24 |
+
### Data Statistics
|
| 25 |
+
|
| 26 |
+
**Total Records**: 4,311
|
| 27 |
+
|
| 28 |
+
**Migration Types**:
|
| 29 |
+
- function_signature_change: 4,118
|
| 30 |
+
- struct_layout_change: 193
|
| 31 |
+
|
| 32 |
+
**Change Types**:
|
| 33 |
+
- param_type_changed: 1,518
|
| 34 |
+
- return_type_changed: 1,448
|
| 35 |
+
- param_added: 789
|
| 36 |
+
- param_removed: 363
|
| 37 |
+
- fields_modified: 193
|
| 38 |
+
|
| 39 |
+
## Usage
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
import pandas as pd
|
| 43 |
+
|
| 44 |
+
# Load the dataset
|
| 45 |
+
df = pd.read_parquet("hf://datasets/username/repo-name/migrations.parquet")
|
| 46 |
+
|
| 47 |
+
# Display first few rows
|
| 48 |
+
print(df.head())
|
| 49 |
+
|
| 50 |
+
# Filter by migration type
|
| 51 |
+
function_changes = df[df['type'] == 'function_signature_change']
|
| 52 |
+
print(f"Function signature changes: {len(function_changes)}")
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
## Data Collection
|
| 56 |
+
|
| 57 |
+
This dataset was generated using the `kernel-migrate` tool, which:
|
| 58 |
+
1. Fetches commits between specified kernel version tags
|
| 59 |
+
2. Parses C source and header files using tree-sitter
|
| 60 |
+
3. Detects API changes including function signature modifications and struct layout changes
|
| 61 |
+
4. Extracts metadata about each migration
|
| 62 |
+
|
| 63 |
+
## Citation
|
| 64 |
+
|
| 65 |
+
If you use this dataset in your research, please cite:
|
| 66 |
+
|
| 67 |
+
```bibtex
|
| 68 |
+
@dataset{kernel_migrations_v6.8_v6.9,
|
| 69 |
+
title={Linux Kernel API Migrations: v6.8 to v6.9},
|
| 70 |
+
author={Kernel Migrate Tool},
|
| 71 |
+
year={2024}
|
| 72 |
+
}
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
## License
|
| 76 |
+
|
| 77 |
+
This dataset is derived from the Linux kernel source code, which is licensed under GPL-2.0.
|