Playfulbug commited on
Commit
b17ca36
·
verified ·
1 Parent(s): a9e7b26

Upload folder using huggingface_hub

Browse files
Files changed (6) hide show
  1. .gitattributes +1 -0
  2. C_Cpp.jsonl +3 -0
  3. C_Cpp.parquet +3 -0
  4. C_Cpp_token.bin +3 -0
  5. LICENSE +13 -0
  6. README.md +38 -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
+ C_Cpp.jsonl filter=lfs diff=lfs merge=lfs -text
C_Cpp.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42d18d5db100d41152dc04d60f7743f948eeae329a022fdeb7eb8d649ced8ec3
3
+ size 743907221
C_Cpp.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:974f1e271c76df1acdd78f4d54dbecac36b72bdb3f6abb4716bc37006d599973
3
+ size 235211882
C_Cpp_token.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:158ce7c17978391f118fc4cf94baf3387fdd1cc2691fd4a9b53b3e4e770fe021
3
+ size 1017579280
LICENSE ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright 2026 PlayfulBug
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
README.md CHANGED
@@ -1,3 +1,41 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - code
7
+ - c
8
+ - cpp
9
+ - pretraining
10
+ - programming
11
+ - tensorflow
12
+ - ffmpeg
13
+ - sqlite
14
+ - vma
15
+ - vulkan
16
+ size_categories:
17
+ - 100K<n<1M
18
  ---
19
+
20
+ # C, C++, and Docs Training Dataset
21
+
22
+ A massive, multi-format code and documentation corpus built from 70+ major open-source C/C++ repositories (including the Linux kernel, FFmpeg, SQLite, Git, Redis, and Vulkan/FreeType headers).
23
+
24
+ ## Dataset Structure
25
+
26
+ The dataset is processed using a sliding-window text chunking method (350-word chunks with a 50-word overlap) to preserve function boundaries, variable scopes, and multi-line logic blocks while maximizing long-range structural context.
27
+
28
+ Each record in the JSONL and Parquet shards contains:
29
+ - **`id`**: Unique identifier for the chunk.
30
+ - **`source`**: Originating source file path (`C_data.txt`, `Cpp.txt`, or `text.txt`).
31
+ - **`category`**: Content classification tag (`c`, `cpp`, or `docs`).
32
+ - **`chunk_index`**: Sequential index within the source file.
33
+ - **`content`**: Raw text block of source code or documentation.
34
+
35
+ ## Corpus Breakdown
36
+ - **C Source Code (`C_data.txt`)**: ~5.5M lines of low-level systems code, headers, and core utilities.
37
+ - **C++ Source Code (`Cpp.txt`)**: ~1.3M lines of modern C++ templates, wrappers, and library implementations.
38
+ - **Documentation & Text (`text.txt`)**: ~8M lines of markdown files, specs, and configuration manuals.
39
+
40
+ ## License
41
+ Distributed under the **Apache-2.0** open-source license.