Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
License:
File size: 17,517 Bytes
ba22c6a 1622a30 ba22c6a 1622a30 ba22c6a 1622a30 ba22c6a 1622a30 ba22c6a 1622a30 ba22c6a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 | ---
language:
- en
license: odc-by
size_categories:
- 10K<n<100K
task_categories:
- text-generation
configs:
- config_name: all
data_files:
- split: train
path: all/train-*
- split: validation
path: all/validation-*
- split: test
path: all/test-*
- config_name: c_and_cpp
data_files:
- split: train
path: c_and_cpp/train-*
- split: validation
path: c_and_cpp/validation-*
- split: test
path: c_and_cpp/test-*
- config_name: default
data_files:
- split: train
path: data/train-*
- split: validation
path: data/validation-*
- split: test
path: data/test-*
- config_name: docs_and_configs
data_files:
- split: train
path: docs_and_configs/train-*
- split: validation
path: docs_and_configs/validation-*
- split: test
path: docs_and_configs/test-*
- config_name: javascript
data_files:
- split: train
path: javascript/train-*
- split: validation
path: javascript/validation-*
- split: test
path: javascript/test-*
dataset_info:
- config_name: all
features:
- name: section
dtype: string
- name: filename
dtype: string
- name: text
dtype: string
splits:
- name: train
num_bytes: 498751093
num_examples: 27498
- name: validation
num_bytes: 26638283
num_examples: 1527
- name: test
num_bytes: 25999454
num_examples: 1530
download_size: 181559230
dataset_size: 551388830
- config_name: c_and_cpp
features:
- name: section
dtype: string
- name: filename
dtype: string
- name: text
dtype: string
splits:
- name: train
num_bytes: 77766288.48753309
num_examples: 8157
- name: validation
num_bytes: 4318760.412511033
num_examples: 453
- name: test
num_bytes: 4328294.09995587
num_examples: 454
download_size: 29920612
dataset_size: 86413343
- config_name: default
features:
- name: section
dtype: string
- name: filename
dtype: string
- name: text
dtype: string
splits:
- name: train
num_bytes: 187113233.13447574
num_examples: 12394
- name: validation
num_bytes: 10401889.432762126
num_examples: 689
- name: test
num_bytes: 10401889.432762126
num_examples: 689
download_size: 74676703
dataset_size: 207917011.99999997
- config_name: docs_and_configs
features:
- name: section
dtype: string
- name: filename
dtype: string
- name: text
dtype: string
splits:
- name: train
num_bytes: 27004737.076526225
num_examples: 3140
- name: validation
num_bytes: 1496440.8443680138
num_examples: 174
- name: test
num_bytes: 1505041.079105761
num_examples: 175
download_size: 14090699
dataset_size: 30006219
- config_name: javascript
features:
- name: section
dtype: string
- name: filename
dtype: string
- name: text
dtype: string
splits:
- name: train
num_bytes: 204347030.4
num_examples: 3807
- name: validation
num_bytes: 11325774.471867612
num_examples: 211
- name: test
num_bytes: 11379451.128132388
num_examples: 212
download_size: 60838679
dataset_size: 227052256
tags:
- code
- python
- cpp
- javascript
---
# Dataset Card for "awesome-python-apps"
This contains `.py` files for the following repos taken from `awesome-python-applications` (on GitHub [here](https://github.com/mahmoud/awesome-python-applications))
<pre><font color="#268BD2"><b>abilian-sbe</b></font> <font color="#859900"><b>clone_repos.sh</b></font> <font color="#268BD2"><b>invesalius3</b></font> <font color="#268BD2"><b>photonix</b></font> <font color="#268BD2"><b>sk1-wx</b></font>
<font color="#268BD2"><b>ambar</b></font> <font color="#859900"><b>CONTRIBUTING.md</b></font> <font color="#268BD2"><b>isso</b></font> <font color="#268BD2"><b>picard</b></font> <font color="#268BD2"><b>soundconverter</b></font>
<font color="#268BD2"><b>apatite</b></font> <font color="#268BD2"><b>CTFd</b></font> <font color="#268BD2"><b>kibitzr</b></font> <font color="#268BD2"><b>pi-hole</b></font> <font color="#268BD2"><b>soundgrain</b></font>
<font color="#268BD2"><b>ArchiveBox</b></font> <font color="#268BD2"><b>Cura</b></font> <font color="#268BD2"><b>KindleEar</b></font> <font color="#268BD2"><b>planet</b></font> <font color="#268BD2"><b>stargate</b></font>
<font color="#268BD2"><b>archivematica</b></font> <font color="#268BD2"><b>deluge</b></font> <font color="#268BD2"><b>Lector</b></font> <font color="#268BD2"><b>plover</b></font> <font color="#268BD2"><b>streamlink</b></font>
<font color="#268BD2"><b>autokey</b></font> <font color="#268BD2"><b>dissemin</b></font> <font color="#268BD2"><b>lucaschess</b></font> <font color="#268BD2"><b>pol</b></font> <font color="#268BD2"><b>Sunflower</b></font>
<font color="#268BD2"><b>awesome-python-applications</b></font> <font color="#268BD2"><b>drawbot</b></font> <font color="#268BD2"><b>mackup</b></font> <font color="#268BD2"><b>posthog</b></font> <font color="#268BD2"><b>supysonic</b></font>
<font color="#268BD2"><b>babybuddy</b></font> <font color="#268BD2"><b>exaile</b></font> <font color="#268BD2"><b>meshroom</b></font> <font color="#859900"><b>projects.yaml</b></font> <font color="#268BD2"><b>syncserver</b></font>
<font color="#268BD2"><b>beancount</b></font> <font color="#268BD2"><b>flaskbb</b></font> <font color="#268BD2"><b>mopidy</b></font> <font color="#268BD2"><b>puddletag</b></font> <font color="#268BD2"><b>templates</b></font>
<font color="#268BD2"><b>beets</b></font> <font color="#268BD2"><b>flowblade</b></font> <font color="#268BD2"><b>music-player</b></font> <font color="#268BD2"><b>PyBitmessage</b></font> <font color="#268BD2"><b>term2048</b></font>
<font color="#268BD2"><b>bleachbit</b></font> <font color="#268BD2"><b>fofix</b></font> <font color="#268BD2"><b>mylar</b></font> <font color="#268BD2"><b>Pyfa</b></font> <font color="#268BD2"><b>thumbor</b></font>
<font color="#268BD2"><b>bookwyrm</b></font> <font color="#268BD2"><b>formspree</b></font> <font color="#268BD2"><b>mypaint</b></font> <font color="#268BD2"><b>pyload</b></font> <font color="#859900"><b>TODO.md</b></font>
<font color="#268BD2"><b>borg</b></font> <font color="#268BD2"><b>FreeCAD</b></font> <font color="#268BD2"><b>neubot</b></font> <font color="#268BD2"><b>pynocchio</b></font> <font color="#268BD2"><b>tribler</b></font>
<font color="#268BD2"><b>buku</b></font> <font color="#268BD2"><b>frescobaldi</b></font> <font color="#268BD2"><b>newspipe</b></font> <font color="#268BD2"><b>pyvideo</b></font> <font color="#268BD2"><b>vidcutter</b></font>
<font color="#268BD2"><b>Bup</b></font> <font color="#268BD2"><b>friture</b></font> <font color="#268BD2"><b>nfoview</b></font> <font color="#268BD2"><b>qis</b></font> <font color="#268BD2"><b>whipper</b></font>
<font color="#859900"><b>BY_PLATFORM.md</b></font> <font color="#268BD2"><b>gaphor</b></font> <font color="#268BD2"><b>notebooks</b></font> <font color="#268BD2"><b>quodlibet</b></font> <font color="#268BD2"><b>you-get</b></font>
<font color="#268BD2"><b>Cactus</b></font> <font color="#268BD2"><b>-github</b></font> <font color="#268BD2"><b>nyaa</b></font> <font color="#268BD2"><b>qutebrowser</b></font> <font color="#268BD2"><b>youtube-dl</b></font>
<font color="#268BD2"><b>canto-curses</b></font> <font color="#268BD2"><b>gnuradio</b></font> <font color="#268BD2"><b>ocropy</b></font> <font color="#859900"><b>README.md</b></font> <font color="#268BD2"><b>ZeroNet</b></font>
<font color="#268BD2"><b>canto-next</b></font> <font color="#268BD2"><b>gpodder</b></font> <font color="#268BD2"><b>OctoPrint</b></font> <font color="#268BD2"><b>reddit</b></font>
<font color="#268BD2"><b>cartoonify</b></font> <font color="#268BD2"><b>hangups</b></font> <font color="#268BD2"><b>oncall</b></font> <font color="#859900"><b>revisit.yaml</b></font>
<font color="#268BD2"><b>CDDA-Game-Launcher</b></font> <font color="#268BD2"><b>hosts</b></font> <font color="#268BD2"><b>openshot-qt</b></font> <font color="#268BD2"><b>sabnzbd</b></font>
<font color="#268BD2"><b>ckan</b></font> <font color="#268BD2"><b>httpie</b></font> <font color="#268BD2"><b>PhotoCollage</b></font> <font color="#268BD2"><b>searx</b></font>
</pre>
## details
There are different configs for different languages and one for 'dcoumentation' type stuff.
All of them should have the same column names, so if you want to use all of them for training it should be easy to aggregate them, just use the `concatenate_datasets` function + shuffle
### by config
#### python (default)
- all of them have been formatted with `ruff`
counts:
<pre>(ki) <font color="#859900"><b>➜ </b></font><font color="#2AA198"><b>primerdata-for-LLMs</b></font> python
Python 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
>>>
>>> # If the dataset is gated/private, make sure you have run huggingface-cli login
>>> dataset = load_dataset("BEE-spoke-data/awesome-python-apps")
>>> dataset
DatasetDict({
train: Dataset({
features: ['section', 'filename', 'text'],
num_rows: 12394
})
validation: Dataset({
features: ['section', 'filename', 'text'],
num_rows: 689
})
test: Dataset({
features: ['section', 'filename', 'text'],
num_rows: 689
})
})
</pre>
##### token counts
Llama (`use_fast=False`):
<pre> token_len
count 12394.0
mean 7863.521704
std 266330.944961
min 254.0
25% 727.0
50% 1417.0
75% 3083.5
max 27741612.0
</pre>
NeoX:
<pre> token_len
count 12394.0
mean 6615.093432
std 213090.741642
min 234.0
25% 677.0
50% 1326.0
75% 2883.75
max 22081563.0
</pre>
#### javascript
<pre>
INFO:__main__:Looking for files with extensions: ['js', 'ts', 'tsx']
Processing js files: 100%|██████████████████████████| 1441/1441 [00:00<00:00, 2232.28it/s]
Processing ts files: 100%|██████████████████████████| 1717/1717 [00:01<00:00, 1343.75it/s]
Processing tsx files: 100%|█████████████████████████| 1072/1072 [00:00<00:00, 3929.08it/s]
INFO:__main__:Found 4230 text files.
INFO:__main__:Performing train-test split...
INFO:__main__:Performing validation-test split...
INFO:__main__:Train size: 3807
INFO:__main__:Validation size: 211
INFO:__main__:Test size: 212
INFO:__main__:Pushing dataset to Huggingface hub (BEE-spoke-data/awesome-python-apps)...
INFO:__main__:Using repo id: BEE-spoke-data/awesome-python-apps, config name: javascript
</pre>
#### c_and_cpp
<pre>
INFO:__main__:Looking for files with extensions: ['c', 'h', 'i', 'cc', 'cpp', 'cxx', 'hpp', 'hxx', 'inl', 'ino', 'ixx', 'jxx', 'lxx', 'yxx']
Processing c files: 100%|█████████████████████████████| 450/450 [00:00<00:00, 2741.92it/s]
Processing h files: 100%|███████████████████████████| 3616/3616 [00:00<00:00, 4250.46it/s]
Processing i files: 100%|██████████████████████████████████| 1/1 [00:00<00:00, 197.47it/s]
Processing cc files: 100%|██████████████████████████| 1386/1386 [00:00<00:00, 4209.33it/s]
Processing cpp files: 100%|█████████████████████████| 3015/3015 [00:00<00:00, 3254.90it/s]
Processing cxx files: 100%|█████████████████████████████| 10/10 [00:00<00:00, 1203.77it/s]
Processing hpp files: 100%|███████████████████████████| 268/268 [00:00<00:00, 3523.76it/s]
Processing hxx files: 100%|███████████████████████████| 257/257 [00:00<00:00, 3406.82it/s]
Processing inl files: 100%|█████████████████████████████| 56/56 [00:00<00:00, 2770.02it/s]
Processing ino files: 100%|████████████████████████████████| 1/1 [00:00<00:00, 195.83it/s]
Processing ixx files: 100%|████████████████████████████████| 1/1 [00:00<00:00, 200.43it/s]
Processing jxx files: 100%|████████████████████████████████| 1/1 [00:00<00:00, 187.72it/s]
Processing lxx files: 100%|████████████████████████████████| 1/1 [00:00<00:00, 185.00it/s]
Processing yxx files: 100%|████████████████████████████████| 1/1 [00:00<00:00, 192.69it/s]
INFO:__main__:Found 9064 text files.
INFO:__main__:Performing train-test split...
INFO:__main__:Performing validation-test split...
INFO:__main__:Train size: 8157
INFO:__main__:Validation size: 453
INFO:__main__:Test size: 454
INFO:__main__:Pushing dataset to Huggingface hub (BEE-spoke-data/awesome-python-apps)...
INFO:__main__:Using repo id: BEE-spoke-data/awesome-python-apps, config name: c_and_cpp
</pre>
#### docs and configs
<pre>INFO:__main__:Looking for files with extensions: ['md', 'mdx', 'rst', 'txt', 'env', 'yml', 'yaml', 'toml', 'cfg', 'conf', 'config', 'gitignore', 'MD', 'mkd']
Processing md files: 100%|████████████████████████████| 741/741 [00:00<00:00, 3664.75it/s]
Processing mdx files: 100%|███████████████████████████████| 8/8 [00:00<00:00, 1168.29it/s]
Processing rst files: 100%|███████████████████████████| 699/699 [00:00<00:00, 3901.65it/s]
Processing txt files: 100%|███████████████████████████| 646/646 [00:00<00:00, 3348.51it/s]
Processing env files: 100%|████████████████████████████████| 1/1 [00:00<00:00, 188.49it/s]
Processing yml files: 100%|███████████████████████████| 650/650 [00:00<00:00, 4145.67it/s]
Processing yaml files: 100%|████████████████████████████| 62/62 [00:00<00:00, 2146.06it/s]
Processing toml files: 100%|████████████████████████████| 13/13 [00:00<00:00, 1934.71it/s]
Processing cfg files: 100%|███████████████████████████| 618/618 [00:00<00:00, 3866.66it/s]
Processing conf files: 100%|████████████████████████████| 21/21 [00:00<00:00, 2169.95it/s]
Processing config files: 100%|██████████████████████████| 20/20 [00:00<00:00, 2146.14it/s]
Processing gitignore files: 100%|██████████████████████████| 6/6 [00:00<00:00, 890.83it/s]
Processing MD files: 100%|█████████████████████████████████| 1/1 [00:00<00:00, 197.70it/s]
Processing mkd files: 100%|███████████████████████████████| 3/3 [00:00<00:00, 3669.56it/s]
INFO:__main__:Found 3489 text files.
INFO:__main__:Performing train-test split...
INFO:__main__:Performing validation-test split...
INFO:__main__:Train size: 3140
INFO:__main__:Validation size: 174
INFO:__main__:Test size: 175
INFO:__main__:Pushing dataset to Huggingface hub (BEE-spoke-data/awesome-python-apps)...
INFO:__main__:Using repo id: BEE-spoke-data/awesome-python-apps, config name: docs_and_configs
</pre> |