Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,6 +14,7 @@ task_categories:
|
|
| 14 |
pretty_name: Python Function's code feature
|
| 15 |
size_categories:
|
| 16 |
- 1M<n<10M
|
|
|
|
| 17 |
---
|
| 18 |
|
| 19 |
# π Python Function-Level AST and Lexical Features Dataset
|
|
@@ -37,6 +38,17 @@ The resulting **Dataset** represents each Python function as a unified row combi
|
|
| 37 |
|
| 38 |
---
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
## π Dataset Structure
|
| 41 |
|
| 42 |
Each row corresponds to **one Python function** identified across open-source repositories.
|
|
@@ -88,5 +100,9 @@ Each row corresponds to **one Python function** identified across open-source re
|
|
| 88 |
3. Parse source files to extract AST and lexical features.
|
| 89 |
4. Merge the three sources
|
| 90 |
|
|
|
|
| 91 |
|
| 92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
pretty_name: Python Function's code feature
|
| 15 |
size_categories:
|
| 16 |
- 1M<n<10M
|
| 17 |
+
license: cc-by-4.0
|
| 18 |
---
|
| 19 |
|
| 20 |
# π Python Function-Level AST and Lexical Features Dataset
|
|
|
|
| 38 |
|
| 39 |
---
|
| 40 |
|
| 41 |
+
## π§ Intended Uses
|
| 42 |
+
|
| 43 |
+
- Feature extraction for code comprehension and maintainability modeling.
|
| 44 |
+
- Supervised learning for:
|
| 45 |
+
- Maintainability prediction (regression / ordinal classification).
|
| 46 |
+
- Refactoring-need ranking (learning-to-rank).
|
| 47 |
+
- Benchmarking code-representation learning or graph-based refactoring tools.
|
| 48 |
+
- Downstream tasks such as clone detection, defect prediction, and code search.
|
| 49 |
+
|
| 50 |
+
---
|
| 51 |
+
|
| 52 |
## π Dataset Structure
|
| 53 |
|
| 54 |
Each row corresponds to **one Python function** identified across open-source repositories.
|
|
|
|
| 100 |
3. Parse source files to extract AST and lexical features.
|
| 101 |
4. Merge the three sources
|
| 102 |
|
| 103 |
+
---
|
| 104 |
|
| 105 |
+
## π‘ How to Load
|
| 106 |
+
```python
|
| 107 |
+
from datasets import load_dataset
|
| 108 |
+
data = load_dataset("ReemAlehaidib/pyfunc-fe", split="train")
|