NickIBrody commited on
Commit
8b1e89d
·
verified ·
1 Parent(s): 0fec162

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. README.md +198 -0
  3. test.jsonl +0 -0
  4. train.jsonl +3 -0
  5. validation.jsonl +0 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ train.jsonl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: CoffeeScript Code Suite
3
+ language:
4
+ - code
5
+ license:
6
+ - mit
7
+ - apache-2.0
8
+ - bsd-2-clause
9
+ - bsd-3-clause
10
+ - isc
11
+ size_categories:
12
+ - 10K<n<100K
13
+ task_categories:
14
+ - text-generation
15
+ - text2text-generation
16
+ tags:
17
+ - code
18
+ - coffeescript
19
+ - javascript
20
+ - translation
21
+ - completion
22
+ - permissive-license
23
+ source_datasets:
24
+ - original
25
+ configs:
26
+ - config_name: default
27
+ data_files:
28
+ - split: train
29
+ path: train.jsonl
30
+ - split: validation
31
+ path: validation.jsonl
32
+ - split: test
33
+ path: test.jsonl
34
+ ---
35
+
36
+ # CoffeeScript Code Suite
37
+
38
+ CoffeeScript Code Suite is a public code dataset built from permissively licensed open-source CoffeeScript repositories. It is designed for three practical uses:
39
+
40
+ 1. CoffeeScript domain adaptation and continued pretraining through `raw_corpus` examples.
41
+ 2. CoffeeScript completion training through `completion` examples.
42
+ 3. CoffeeScript and JavaScript translation training through `coffee_to_js` and `js_to_coffee` examples.
43
+
44
+ The dataset was assembled automatically from public GitHub repositories and includes both current repository snapshots and selected historical file versions from git history. Each record keeps source provenance so downstream users can audit where the code came from.
45
+
46
+ ## Dataset Summary
47
+
48
+ - Name: `CoffeeScript Code Suite`
49
+ - Suggested Hub repo name: `brody/coffeescript-code-suite`
50
+ - Records: `49,491`
51
+ - Training split: `44,535`
52
+ - Validation split: `2,481`
53
+ - Test split: `2,475`
54
+ - Source repositories: `79`
55
+ - Raw candidate chunks: `14,682`
56
+ - Compilable translation chunks: `10,313`
57
+
58
+ ### Record Types
59
+
60
+ - `raw_corpus`: raw CoffeeScript snippets for code-language modeling.
61
+ - `completion`: prefix-to-continuation CoffeeScript completion samples.
62
+ - `coffee_to_js`: CoffeeScript to JavaScript translation pairs.
63
+ - `js_to_coffee`: JavaScript to CoffeeScript translation pairs.
64
+
65
+ ## Data Schema
66
+
67
+ Each line is a JSON object. Common fields:
68
+
69
+ ```json
70
+ {
71
+ "id": "owner/repo:path:chunk:type",
72
+ "type": "coffee_to_js",
73
+ "prompt": "Convert this CoffeeScript to JavaScript...\n```coffeescript\n...\n```",
74
+ "response": "...",
75
+ "source_lang": "CoffeeScript",
76
+ "target_lang": "JavaScript",
77
+ "repo": "owner/repo",
78
+ "path": "src/example.coffee",
79
+ "license": "MIT",
80
+ "commit": "abcdef123456",
81
+ "stars": 1234,
82
+ "source_url": "https://github.com/owner/repo/blob/abcdef123456/src/example.coffee",
83
+ "line_start": 1,
84
+ "line_end": 42
85
+ }
86
+ ```
87
+
88
+ Notes:
89
+
90
+ - `raw_corpus` records have an empty `prompt` and the CoffeeScript snippet in `response`.
91
+ - `completion` records use a CoffeeScript prefix in `prompt` and the continuation in `response`.
92
+ - Translation records contain executable source/target code pairs when compilation succeeded.
93
+
94
+ ## Source Collection Policy
95
+
96
+ The dataset builder uses the following collection policy:
97
+
98
+ - public GitHub repositories only
99
+ - permissive licenses only
100
+ - current repository snapshots plus selected historical CoffeeScript file versions
101
+ - CoffeeScript files only
102
+ - vendor, build, generated, docs, demos, and example-heavy paths filtered out
103
+ - exact deduplication over normalized chunks
104
+
105
+ Accepted license families in this release:
106
+
107
+ - MIT
108
+ - Apache-2.0
109
+ - BSD-2-Clause
110
+ - BSD-3-Clause
111
+ - ISC
112
+
113
+ ## Construction Process
114
+
115
+ The dataset was built with an automated pipeline that:
116
+
117
+ 1. discovers public CoffeeScript repositories
118
+ 2. clones repositories locally
119
+ 3. extracts `.coffee` files from repository heads and git history
120
+ 4. splits files into training-sized chunks
121
+ 5. compiles CoffeeScript chunks to JavaScript when possible
122
+ 6. creates completion and translation samples
123
+ 7. removes exact duplicates
124
+ 8. splits records into train, validation, and test sets
125
+
126
+ ## Quality Notes
127
+
128
+ Strengths:
129
+
130
+ - source provenance is retained for every record
131
+ - dataset contains real-world CoffeeScript from multiple projects rather than synthetic-only samples
132
+ - includes both direct code modeling and translation-style supervision
133
+ - historical versions increase stylistic and temporal diversity
134
+
135
+ Limitations:
136
+
137
+ - this is an automatically generated dataset, not a hand-curated benchmark
138
+ - some projects contribute more samples than others
139
+ - `raw_corpus` and `completion` include chunks that may not compile in isolation
140
+ - translation pairs only exist for chunks that compiled successfully
141
+ - exact deduplication is applied, but near-duplicate code may still remain
142
+
143
+ ## Intended Uses
144
+
145
+ Recommended uses:
146
+
147
+ - continued pretraining or domain adaptation for code models with CoffeeScript support
148
+ - SFT for CoffeeScript completion
149
+ - JavaScript/CoffeeScript translation experiments
150
+ - retrieval and evaluation experiments on legacy JavaScript ecosystem code
151
+
152
+ Less suitable uses:
153
+
154
+ - legal or security-sensitive compliance analysis
155
+ - benchmark claims about general programming ability
156
+ - direct deployment without additional filtering, evaluation, and safety review
157
+
158
+ ## Split Sizes
159
+
160
+ ```text
161
+ train.jsonl 44,535
162
+ validation.jsonl 2,481
163
+ test.jsonl 2,475
164
+ total 49,491
165
+ ```
166
+
167
+ ## Build Summary
168
+
169
+ ```json
170
+ {
171
+ "repos": 79,
172
+ "files": 10586,
173
+ "chunks": 14682,
174
+ "candidates": 14682,
175
+ "compiled_ok": 10313,
176
+ "compile_failed": 4369,
177
+ "examples": 49491,
178
+ "train": 44535,
179
+ "validation": 2481,
180
+ "test": 2475
181
+ }
182
+ ```
183
+
184
+ ## Provenance
185
+
186
+ Each record contains:
187
+
188
+ - repository name
189
+ - repository-relative path
190
+ - source commit
191
+ - source URL
192
+ - license label
193
+
194
+ This makes the dataset auditable and easier to extend or prune.
195
+
196
+ ## Citation
197
+
198
+ If you use this dataset, cite the dataset repository and the original upstream repositories referenced in the provenance fields.
test.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62422659b0d68c0e8cfe2a56b8dae7309cb9714e021e1feec568467f5ede7981
3
+ size 97665825
validation.jsonl ADDED
The diff for this file is too large to render. See raw diff