Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,19 +14,18 @@ A dataset of TypeScript snippets, processed from the typescript subset of [the-s
|
|
| 14 |
# Processing
|
| 15 |
- Each source file is parsed with the TypeScript AST and queried for 'semantic chunks' of the following types.
|
| 16 |
```
|
| 17 |
-
FunctionDeclaration ----
|
| 18 |
-
ArrowFunction ---------
|
| 19 |
-
ClassDeclaration -------
|
| 20 |
-
InterfaceDeclaration --
|
| 21 |
-
EnumDeclaration ---------
|
| 22 |
-
TypeAliasDeclaration ---
|
| 23 |
-
MethodDeclaration -----
|
| 24 |
-
ModuleDeclaration ------ 1174
|
| 25 |
```
|
| 26 |
- Leading comments are added to the front of `content`
|
| 27 |
- Removed all chunks over max sequence length (2048)
|
| 28 |
- Deduplicated / cleaned up
|
| 29 |
-
- Generated instructions / summaries with `gpt-3.5-turbo`
|
| 30 |
|
| 31 |
|
| 32 |
|
|
@@ -38,7 +37,7 @@ load_dataset("bleugreen/typescript-chunks")
|
|
| 38 |
DatasetDict({
|
| 39 |
train: Dataset({
|
| 40 |
features: ['repo', 'path', 'type', 'content', 'summary', 'instruction'],
|
| 41 |
-
num_rows:
|
| 42 |
})
|
| 43 |
})
|
| 44 |
```
|
|
|
|
| 14 |
# Processing
|
| 15 |
- Each source file is parsed with the TypeScript AST and queried for 'semantic chunks' of the following types.
|
| 16 |
```
|
| 17 |
+
FunctionDeclaration ---- 8205
|
| 18 |
+
ArrowFunction --------- 33890
|
| 19 |
+
ClassDeclaration ------- 5325
|
| 20 |
+
InterfaceDeclaration -- 12884
|
| 21 |
+
EnumDeclaration --------- 518
|
| 22 |
+
TypeAliasDeclaration --- 3580
|
| 23 |
+
MethodDeclaration ----- 24713
|
|
|
|
| 24 |
```
|
| 25 |
- Leading comments are added to the front of `content`
|
| 26 |
- Removed all chunks over max sequence length (2048)
|
| 27 |
- Deduplicated / cleaned up
|
| 28 |
+
- Generated instructions / summaries with `gpt-3.5-turbo` (in progress)
|
| 29 |
|
| 30 |
|
| 31 |
|
|
|
|
| 37 |
DatasetDict({
|
| 38 |
train: Dataset({
|
| 39 |
features: ['repo', 'path', 'type', 'content', 'summary', 'instruction'],
|
| 40 |
+
num_rows: 89115
|
| 41 |
})
|
| 42 |
})
|
| 43 |
```
|