Datasets:
Upload folder using huggingface_hub
Browse filesFiles changed (5)
- .gitattributes+1
- README.mdAdded+198
- test.jsonlAdded
- train.jsonlAdded+3
- validation.jsonlAdded
57 unmodified lines58596057 unmodified lines# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -text57 unmodified lines5859606157 unmodified lines# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -texttrain.jsonl filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198---pretty_name: CoffeeScript Code Suitelanguage:- codelicense:- mit- apache-2.0- bsd-2-clause- bsd-3-clause- iscsize_categories:- 10K<n<100Ktask_categories:- text-generation- text2text-generationtags:- code- coffeescript- javascript- translation- completion- permissive-licensesource_datasets:- originalconfigs:- config_name: default data_files: - split: train path: train.jsonl - split: validation path: validation.jsonl - split: test path: test.jsonl---
# CoffeeScript Code Suite
CoffeeScript Code Suite is a public code dataset built from permissively licensed open-source CoffeeScript repositories. It is designed for three practical uses:
1. CoffeeScript domain adaptation and continued pretraining through `raw_corpus` examples.2. CoffeeScript completion training through `completion` examples.3. CoffeeScript and JavaScript translation training through `coffee_to_js` and `js_to_coffee` examples.
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.
## Dataset Summary
- Name: `CoffeeScript Code Suite`- Suggested Hub repo name: `brody/coffeescript-code-suite`- Records: `49,491`- Training split: `44,535`- Validation split: `2,481`- Test split: `2,475`- Source repositories: `79`- Raw candidate chunks: `14,682`- Compilable translation chunks: `10,313`
### Record Types
- `raw_corpus`: raw CoffeeScript snippets for code-language modeling.- `completion`: prefix-to-continuation CoffeeScript completion samples.- `coffee_to_js`: CoffeeScript to JavaScript translation pairs.- `js_to_coffee`: JavaScript to CoffeeScript translation pairs.
## Data Schema
Each line is a JSON object. Common fields:
```json{ "id": "owner/repo:path:chunk:type", "type": "coffee_to_js", "prompt": "Convert this CoffeeScript to JavaScript...\n```coffeescript\n...\n```", "response": "...", "source_lang": "CoffeeScript", "target_lang": "JavaScript", "repo": "owner/repo", "path": "src/example.coffee", "license": "MIT", "commit": "abcdef123456", "stars": 1234, "source_url": "https://github.com/owner/repo/blob/abcdef123456/src/example.coffee", "line_start": 1, "line_end": 42}```
Notes:
- `raw_corpus` records have an empty `prompt` and the CoffeeScript snippet in `response`.- `completion` records use a CoffeeScript prefix in `prompt` and the continuation in `response`.- Translation records contain executable source/target code pairs when compilation succeeded.
## Source Collection Policy
The dataset builder uses the following collection policy:
- public GitHub repositories only- permissive licenses only- current repository snapshots plus selected historical CoffeeScript file versions- CoffeeScript files only- vendor, build, generated, docs, demos, and example-heavy paths filtered out- exact deduplication over normalized chunks
Accepted license families in this release:
- MIT- Apache-2.0- BSD-2-Clause- BSD-3-Clause- ISC
## Construction Process
The dataset was built with an automated pipeline that:
1. discovers public CoffeeScript repositories2. clones repositories locally3. extracts `.coffee` files from repository heads and git history4. splits files into training-sized chunks5. compiles CoffeeScript chunks to JavaScript when possible6. creates completion and translation samples7. removes exact duplicates8. splits records into train, validation, and test sets
## Quality Notes
Strengths:
- source provenance is retained for every record- dataset contains real-world CoffeeScript from multiple projects rather than synthetic-only samples- includes both direct code modeling and translation-style supervision- historical versions increase stylistic and temporal diversity
Limitations:
- this is an automatically generated dataset, not a hand-curated benchmark- some projects contribute more samples than others- `raw_corpus` and `completion` include chunks that may not compile in isolation- translation pairs only exist for chunks that compiled successfully- exact deduplication is applied, but near-duplicate code may still remain
## Intended Uses
Recommended uses:
- continued pretraining or domain adaptation for code models with CoffeeScript support- SFT for CoffeeScript completion- JavaScript/CoffeeScript translation experiments- retrieval and evaluation experiments on legacy JavaScript ecosystem code
Less suitable uses:
- legal or security-sensitive compliance analysis- benchmark claims about general programming ability- direct deployment without additional filtering, evaluation, and safety review
## Split Sizes
```texttrain.jsonl 44,535validation.jsonl 2,481test.jsonl 2,475total 49,491```
## Build Summary
```json{ "repos": 79, "files": 10586, "chunks": 14682, "candidates": 14682, "compiled_ok": 10313, "compile_failed": 4369, "examples": 49491, "train": 44535, "validation": 2481, "test": 2475}```
## Provenance
Each record contains:
- repository name- repository-relative path- source commit- source URL- license label
This makes the dataset auditable and easier to extend or prune.
## Citation
If you use this dataset, cite the dataset repository and the original upstream repositories referenced in the provenance fields.123version https://git-lfs.github.com/spec/v1oid sha256:62422659b0d68c0e8cfe2a56b8dae7309cb9714e021e1feec568467f5ede7981size 97665825.gitattributes+1
README.mdAdded+198
test.jsonlAdded
train.jsonlAdded+3
validation.jsonlAdded