kd13 commited on
Commit
59b5810
·
verified ·
1 Parent(s): ab4b481

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -34
README.md CHANGED
@@ -1,42 +1,19 @@
1
 
2
  # Stack v2 Clean — 200K Multi-Language Code Subset
3
 
4
- A cleaned and filtered subset of [bigcode/the-stack-v2](https://huggingface.co/datasets/bigcode/the-stack-v2), prepared for continued pretraining and masked language modeling (MLM) on source code. The dataset contains 200,005 source files evenly distributed across five widely used programming languages.
5
-
6
  ## Dataset Summary
7
 
8
- This dataset was assembled to support fine-tuning of encoder models such as ModernBERT on programming language data. It provides a balanced, deduplicated, and filtered collection of real-world source files drawn from public repositories indexed by Software Heritage and curated by the BigCode project.
9
-
10
- | Language | Files | Approx. Size |
11
- |-------------|---------|--------------|
12
- | Python | 40,001 | 57.8 MB |
13
- | JavaScript | 40,001 | 43.2 MB |
14
- | Java | 40,001 | 41.6 MB |
15
- | C++ | 40,001 | 84.3 MB |
16
- | Go | 40,001 | 60.8 MB |
17
- | **Total** | **200,005** | **~288 MB** |
18
-
19
- ## Data Fields
20
-
21
- Each row contains the following fields:
22
-
23
- - `blob_id`: Software Heritage blob identifier for the source file.
24
- - `content_id`: Content hash used for deduplication.
25
- - `repo_name`: Origin repository in `owner/name` format.
26
- - `path`: File path within the source repository.
27
- - `language`: Programming language label (Python, JavaScript, Java, C++, or Go).
28
- - `extension`: File extension.
29
- - `length_bytes`: Size of the original file in bytes.
30
- - `license_type`: License classification reported by the source dataset.
31
- - `content`: Full source code as a UTF-8 string.
32
 
33
- ## Data Collection and Cleaning
34
-
35
- Files were sampled from the streaming version of `bigcode/the-stack-v2` with a fixed random seed and filtered through a two-stage pipeline. The first stage applied metadata filters to remove vendored or auto-generated files, files outside a 200-byte to 200-KB size range, and files with mismatched extensions. The second stage fetched the file content from the public Software Heritage S3 bucket and applied content-level filters covering encoding validity, line count and length distribution, alphanumeric and alphabetic character ratios, URL density, and comment density. Exact deduplication was performed using `content_id` during streaming. Comment-heavy files were preserved (up to a 95 percent threshold) since natural-language comments are valuable for MLM training. Approximately 30 to 50 percent of fetched files were rejected by content filters, which is consistent with the StarCoder and BigCode preprocessing literature.
36
-
37
- ## Intended Uses
38
-
39
- The dataset is intended for research and educational use, particularly continued pretraining and masked language modeling on encoder architectures such as ModernBERT, CodeBERT, and similar models. It is suitable for tokenizer training, representation learning experiments, and small-to-medium scale code understanding tasks.
 
40
 
41
  ## Limitations and Considerations
42
 
@@ -57,4 +34,4 @@ If you use this dataset, please cite the original Stack v2 release:
57
  journal={arXiv preprint arXiv:2402.19173},
58
  year={2024}
59
  }
60
- ```
 
1
 
2
  # Stack v2 Clean — 200K Multi-Language Code Subset
3
 
4
+ A cleaned and filtered subset of [bigcode/the-stack-v2](https://huggingface.co/datasets/bigcode/the-stack-v2).
 
5
  ## Dataset Summary
6
 
7
+ This dataset was assembled to support fine-tuning models such as ModernBERT, Llama, Qwen on programming language data. It provides a balanced, deduplicated, and filtered collection of real-world source files drawn from public repositories indexed by Software Heritage and curated by the BigCode project.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
+ | Language | Files |
10
+ |-------------|---------|
11
+ | Python | 40,001 |
12
+ | JavaScript | 40,001 |
13
+ | Java | 40,001 |
14
+ | C++ | 40,001 |
15
+ | Go | 40,001 |
16
+ | **Total** | **200,005** |
17
 
18
  ## Limitations and Considerations
19
 
 
34
  journal={arXiv preprint arXiv:2402.19173},
35
  year={2024}
36
  }
37
+ ```