Datasets:
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- text-classification
|
| 4 |
+
- text2text-generation
|
| 5 |
+
- summarization
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# typescript-chunks
|
| 11 |
+
A processed version of the typescript subset from [the-stack-smol](https://huggingface.co/datasets/bigcode/the-stack-smol).
|
| 12 |
+
|
| 13 |
+
Each source file is parsed with the TypeScript AST and split into 'semantic chunks'. Then, each chunk is traversed to gather comments.
|
| 14 |
+
|
| 15 |
+
Types:
|
| 16 |
+
- FunctionDeclaration
|
| 17 |
+
- ArrowFunction
|
| 18 |
+
- ClassDeclaration
|
| 19 |
+
- InterfaceDeclaration
|
| 20 |
+
- EnumDeclaration
|
| 21 |
+
- TypeAliasDeclaration
|
| 22 |
+
- MethodDeclaration
|
| 23 |
+
- ModuleDeclaration
|
| 24 |
+
|
| 25 |
+
# Dataset Structure
|
| 26 |
+
```python
|
| 27 |
+
from datasets import load_dataset
|
| 28 |
+
load_dataset("bleugreen/typescript-chunks")
|
| 29 |
+
|
| 30 |
+
DatasetDict({
|
| 31 |
+
train: Dataset({
|
| 32 |
+
features: ['repo', 'path', 'language', 'content', 'comments'],
|
| 33 |
+
num_rows: 300000
|
| 34 |
+
})
|
| 35 |
+
})
|
| 36 |
+
```
|