nyuuzyou commited on
Commit
bbc09d1
·
verified ·
1 Parent(s): 78f1144

Add files using upload-large-folder tool

Browse files
README.md CHANGED
@@ -1,55 +1,192 @@
1
  ---
2
- pretty_name: NotaBug.org Code Dataset
3
- size_categories:
4
- - 10M<n<100M
5
- task_categories:
6
- - text-generation
7
- - fill-mask
8
  annotations_creators:
 
 
9
  - found
 
 
 
 
10
  multilinguality:
11
  - multilingual
 
 
 
12
  source_datasets:
13
  - original
 
 
 
 
14
  configs:
15
  - config_name: default
16
  data_files:
17
  - split: train
18
- path: "notabug_*.jsonl.zst"
19
  default: true
20
- tags:
21
- - code
22
- license:
23
- - other
 
 
 
 
 
 
 
 
 
 
24
  ---
25
 
26
- # Dataset Card for NotaBug.org Code Dataset
 
 
 
 
27
 
28
  ### Dataset Summary
29
 
30
- This dataset contains source code files collected from 19,449 repositories and branches hosted on NotABug.org, a free code hosting platform. The dataset includes code from various programming languages and represents a diverse collection of open-source projects and personal repositories.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
  ## Dataset Structure
33
 
34
  ### Data Fields
35
 
36
- This dataset includes the following fields:
 
 
 
 
 
 
 
37
 
38
- - `code`: Content of the source file (string)
39
- - `repo_name`: Name of the NotaBug.org repository (string)
40
- - `path`: Path of file within the repository (string)
41
- - `language`: Programming language as inferred by file extension (string)
42
- - `license`: License of the repository, if available (string)
43
- - `size`: Size of source file in bytes (integer)
44
 
45
  ### Data Splits
46
 
47
- All examples are in the train split, there is no validation split.
48
 
49
- ### Data Format
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
- - **Format**: JSONL (JSON Lines) compressed with Zstandard (.jsonl.zst)
52
- - **File Structure**: 113 files (notabug_0000.jsonl.zst to notabug_0112.jsonl.zst)
53
- - **Total Repositories**: 19,449 repositories and branches
54
- - **Filtering**: Files with lines longer than 1,000 characters were excluded
 
 
 
 
 
55
  - **Deduplication**: No deduplication was performed on the dataset
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
 
 
 
 
 
2
  annotations_creators:
3
+ - machine-generated
4
+ language_creators:
5
  - found
6
+ language:
7
+ - code
8
+ - en
9
+ license: other
10
  multilinguality:
11
  - multilingual
12
+ pretty_name: NotaBug Code Dataset
13
+ size_categories:
14
+ - 10M<n<100M
15
  source_datasets:
16
  - original
17
+ task_categories:
18
+ - text-generation
19
+ tags:
20
+ - code
21
  configs:
22
  - config_name: default
23
  data_files:
24
  - split: train
25
+ path: "data/*.parquet"
26
  default: true
27
+ dataset_info:
28
+ features:
29
+ - name: code
30
+ dtype: string
31
+ - name: repo_name
32
+ dtype: string
33
+ - name: path
34
+ dtype: string
35
+ - name: language
36
+ dtype: string
37
+ - name: license
38
+ dtype: string
39
+ - name: size
40
+ dtype: int64
41
  ---
42
 
43
+ # NotaBug Code Dataset
44
+
45
+ ## Dataset Description
46
+
47
+ This dataset was compiled from code repositories hosted on [NotaBug.org](https://notabug.org), a free code hosting platform that emphasizes software freedom and privacy. NotaBug is built on a fully free software stack and is popular among free software advocates and privacy-conscious developers.
48
 
49
  ### Dataset Summary
50
 
51
+ | Statistic | Value |
52
+ |-----------|-------|
53
+ | **Total Files** | 12,622,961 |
54
+ | **Total Repositories** | 11,660 |
55
+ | **Total Size** | 12 GB (compressed Parquet) |
56
+ | **Programming Languages** | 6,306 (by file extension) |
57
+ | **File Format** | Parquet with Zstd compression (12 files) |
58
+
59
+ ### Key Features
60
+
61
+ - **Free software focused corpus**: Contains code from repositories on a platform dedicated to software freedom
62
+ - **Diverse language coverage**: Spans thousands of file types identified by file extension
63
+ - **Rich metadata**: Includes repository name, file path, detected language, license information, and file size
64
+
65
+ ### Languages
66
+
67
+ The dataset includes files from many programming languages and file types. Languages are detected by file extension. The top 30 languages by file count:
68
+
69
+ | Rank | Language | File Count |
70
+ |------|----------|------------|
71
+ | 1 | C++ | 2,219,208 |
72
+ | 2 | po | 2,022,441 |
73
+ | 3 | none | 1,572,451 |
74
+ | 4 | PHP | 951,354 |
75
+ | 5 | patch | 637,317 |
76
+ | 6 | svg | 547,170 |
77
+ | 7 | XML | 502,139 |
78
+ | 8 | Python | 392,476 |
79
+ | 9 | Text | 296,953 |
80
+ | 10 | JavaScript | 233,368 |
81
+ | 11 | JSON | 198,981 |
82
+ | 12 | Scheme | 192,409 |
83
+ | 13 | Markdown | 182,342 |
84
+ | 14 | info | 155,078 |
85
+ | 15 | slackbuild | 154,859 |
86
+ | 16 | HTML | 149,824 |
87
+ | 17 | Shell | 133,325 |
88
+ | 18 | log | 127,393 |
89
+ | 19 | Makefile | 112,989 |
90
+ | 20 | INI | 110,537 |
91
+ | 21 | Lua | 84,303 |
92
+ | 22 | in | 75,138 |
93
+ | 23 | Assembly | 74,519 |
94
+ | 24 | list | 58,346 |
95
+ | 25 | Java | 48,781 |
96
+ | 26 | CSS | 48,112 |
97
+ | 27 | mk | 47,373 |
98
+ | 28 | dtsi | 43,825 |
99
+ | 29 | diff | 42,125 |
100
+ | 30 | el | 41,017 |
101
+
102
+ ### Licenses
103
+
104
+ The dataset includes files from repositories with various licenses:
105
+
106
+ | License | File Count |
107
+ |---------|------------|
108
+ | mit | 10,029,349 |
109
+ | mpl-2.0 | 1,178,420 |
110
+ | unknown | 888,840 |
111
+ | gpl-2.0 | 333,538 |
112
+ | gpl-3.0 | 158,975 |
113
+ | unlicense | 11,805 |
114
+ | cc-by-4.0 | 8,367 |
115
+ | bsd-2-clause | 4,718 |
116
+ | agpl-3.0 | 3,055 |
117
+ | cc-by-sa-4.0 | 2,309 |
118
+ | wtfpl | 1,314 |
119
+ | cc0-1.0 | 1,188 |
120
+ | bsd-3-clause | 601 |
121
+ | cc-by-nc-4.0 | 269 |
122
+ | lgpl-3.0 | 137 |
123
+ | lgpl-2.1 | 76 |
124
 
125
  ## Dataset Structure
126
 
127
  ### Data Fields
128
 
129
+ | Field | Type | Description |
130
+ |-------|------|-------------|
131
+ | `code` | string | Content of the source file (UTF-8 encoded) |
132
+ | `repo_name` | string | Name of the NotaBug repository (format: `username/repo`) |
133
+ | `path` | string | Path of the file within the repository (relative to repo root) |
134
+ | `language` | string | Programming language as inferred by file extension |
135
+ | `license` | string | License of the repository (SPDX identifier or "unknown") |
136
+ | `size` | int64 | Size of the source file in bytes |
137
 
138
+ ### Data Format
139
+
140
+ - **Format**: Apache Parquet with Zstd compression
141
+ - **File Structure**: 12 files (`notabug_0000.parquet` to `notabug_0011.parquet`)
 
 
142
 
143
  ### Data Splits
144
 
145
+ All examples are in the train split. There is no validation or test split.
146
 
147
+ ### Example Data Point
148
+
149
+ ```
150
+ {
151
+ 'code': '#!/usr/bin/env python2\n# -*- coding: utf-8 -*-\n# Copyright (C) 2014...',
152
+ 'repo_name': 'intermsofthewhole/libreboot',
153
+ 'path': 'resources/utilities/i945gpu/intel-regs.py',
154
+ 'language': 'Python',
155
+ 'license': 'mit',
156
+ 'size': 3733
157
+ }
158
+ ```
159
+
160
+ ## Dataset Creation
161
+
162
+ ### Source Data
163
+
164
+ All data originates from public repositories hosted on [NotaBug.org](https://notabug.org).
165
+
166
+ ### Language Detection
167
 
168
+ Programming languages are detected by file extension inference.
169
+
170
+ ### License Detection
171
+
172
+ Licenses are detected by scanning for license files in repositories and matching against known license patterns. Repositories without a detectable license are marked as "unknown".
173
+
174
+ ### File Filtering
175
+
176
+ - **Long Lines**: Files with any line exceeding 1,000 characters were excluded
177
  - **Deduplication**: No deduplication was performed on the dataset
178
+
179
+ ## Considerations for Using the Data
180
+
181
+ ### Personal and Sensitive Information
182
+
183
+ The dataset may contain:
184
+ - Email addresses in code comments or configuration files
185
+ - API keys or credentials that were accidentally committed
186
+ - Personal information in comments or documentation
187
+
188
+ Users should exercise caution and implement appropriate filtering when using this data.
189
+
190
+ ### Licensing Information
191
+
192
+ This dataset is a collection of source code from repositories with various licenses. Any use of all or part of the code gathered in this dataset must abide by the terms of the original licenses, including attribution clauses when relevant. The license field in each data point indicates the license of the source repository.
data/notabug_0000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f827ff47416bcde17e15686a9909a4019fb4ed36449cd14bf88005fec9c9f2a
3
+ size 946297683
data/notabug_0001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5d8b948c5189e0ed9e73f566bdea5c7a4078511e1046b37094f54b52b49a196
3
+ size 1053580978
data/notabug_0002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e1b9b23657e9f29febea82ff89d76be49634c88e193c9d0ffbf5be066077c70
3
+ size 1090207297
data/notabug_0003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54f14f6138365d09b1c483fd358aa4deb3c14fdd471cef74a4a0fa76cd78bad3
3
+ size 1143601008
data/notabug_0004.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:855b3955cc1bc82e2fb680fd8e0e209bb85d7d7a8465917f05aeaf84b4cb37da
3
+ size 1048694605
data/notabug_0005.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:599b7cf5fdc4c398a055d07769e78a9ea7cc2b54a5715548e5988093c491ed1e
3
+ size 782054452
data/notabug_0006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0054d57517bee1dbbdc0b7c7b029a26b2eaf04d5a673765068dc1397e2f301b8
3
+ size 1188549083
data/notabug_0007.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6105d177c34029fd5eab330d315e591ac9d6081312e1942b96e95f14188e1ec3
3
+ size 1081659069
data/notabug_0008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92d098d37e4b9fbd6bde3c0a17d9a4721f3af0fbb7c6700d53d666085f142058
3
+ size 933829367
data/notabug_0009.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d653a3783785710e6e02a1b28a3503e7947fa51685cd1737cccb356da917b23
3
+ size 856299801
data/notabug_0010.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:802db2745e23e3145318086bebf2c848785454f997f8a7eec81fd735ccd8177e
3
+ size 902767702
data/notabug_0011.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e44b71f362e21493770c7dfc6b70a34e6e538385adb4c40f144729d021eb28fe
3
+ size 1575004446