Datasets:

Modalities:
Tabular
Text
Formats:
parquet
Languages:
code
ArXiv:
Libraries:
Datasets
Dask
License:
.gitattributes ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
+ *.model filter=lfs diff=lfs merge=lfs -text
14
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
15
+ *.npy filter=lfs diff=lfs merge=lfs -text
16
+ *.npz filter=lfs diff=lfs merge=lfs -text
17
+ *.onnx filter=lfs diff=lfs merge=lfs -text
18
+ *.ot filter=lfs diff=lfs merge=lfs -text
19
+ *.parquet filter=lfs diff=lfs merge=lfs -text
20
+ *.pb filter=lfs diff=lfs merge=lfs -text
21
+ *.pickle filter=lfs diff=lfs merge=lfs -text
22
+ *.pkl filter=lfs diff=lfs merge=lfs -text
23
+ *.pt filter=lfs diff=lfs merge=lfs -text
24
+ *.pth filter=lfs diff=lfs merge=lfs -text
25
+ *.rar filter=lfs diff=lfs merge=lfs -text
26
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
27
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar filter=lfs diff=lfs merge=lfs -text
30
+ *.tflite filter=lfs diff=lfs merge=lfs -text
31
+ *.tgz filter=lfs diff=lfs merge=lfs -text
32
+ *.wasm filter=lfs diff=lfs merge=lfs -text
33
+ *.xz filter=lfs diff=lfs merge=lfs -text
34
+ *.zip filter=lfs diff=lfs merge=lfs -text
35
+ *.zst filter=lfs diff=lfs merge=lfs -text
36
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
37
+ # Audio files - uncompressed
38
+ *.pcm filter=lfs diff=lfs merge=lfs -text
39
+ *.sam filter=lfs diff=lfs merge=lfs -text
40
+ *.raw filter=lfs diff=lfs merge=lfs -text
41
+ # Audio files - compressed
42
+ *.aac filter=lfs diff=lfs merge=lfs -text
43
+ *.flac filter=lfs diff=lfs merge=lfs -text
44
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
45
+ *.ogg filter=lfs diff=lfs merge=lfs -text
46
+ *.wav filter=lfs diff=lfs merge=lfs -text
47
+ # Image files - uncompressed
48
+ *.bmp filter=lfs diff=lfs merge=lfs -text
49
+ *.gif filter=lfs diff=lfs merge=lfs -text
50
+ *.png filter=lfs diff=lfs merge=lfs -text
51
+ *.tiff filter=lfs diff=lfs merge=lfs -text
52
+ # Image files - compressed
53
+ *.jpg filter=lfs diff=lfs merge=lfs -text
54
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
55
+ *.webp filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -35,14 +35,12 @@ dataset_info:
35
  dtype: int64
36
  - name: name
37
  dtype: string
38
- - name: license
39
- dtype: string
40
  splits:
41
  - name: train
42
- num_bytes: 11547281532
43
- num_examples: 4000514
44
- download_size: 4257401542
45
- dataset_size: 11547281532
46
  configs:
47
  - config_name: default
48
  data_files:
@@ -52,29 +50,7 @@ configs:
52
  # Dataset Summary
53
  KStack is the largest collection of permissively licensed Kotlin code.
54
  ![banner](https://huggingface.co/datasets/JetBrains/KStack/resolve/main/banner.png)
55
-
56
- ## Comparison with The Stack v2
57
- In the table below one can find the comparsion between the Kotlin part of The Stack v2 and KStack:
58
- | | Files | Repositories | Lines | Tokens |
59
- |------------------------|:-----:|:------------:|:-----:|:------:|
60
- | Kotlin in The Stack v2 | 2M | 109,457 | 162M | 1.7B |
61
- | Kstack | 4M | 168,902 | 292M | 3.1B |
62
-
63
- # Dataset Creation
64
-
65
- ## Collection procedure
66
- We collected repositories from GitHub with the main language being Kotlin, as well as any repositories with Kotlin files that have received 10 or more stars (as of February 2024). Additionally, we gathered repositories with Kotlin files from The Stack v1.2. Kotlin files were identified using [go-enry](https://github.com/go-enry/go-enry) and include files with extensions such as `.kt`, `.kts`, and `.gradle.kts`. It is estimated that we have collected 97% of available Kotlin repositories as of February 2024.
67
-
68
- ## Initial filtering
69
- We conducted full deduplication, using the hash of file content, as well as near deduplication using the same method as in [The Stack v1.2](https://arxiv.org/pdf/2211.15533). We aggregated the files from one near-deduplicated cluster into a file from the repository with the most stars.
70
- ## Detecting permissive licenses
71
- We filtered permissive repositories based on the licenses detected by GitHub, and using [go-license-detector](https://github.com/src-d/go-license-detector) if GitHub did not have licensing information available.
72
- The list of permissive licenses used in dataset can be found [here](https://huggingface.co/datasets/JetBrains/KStack/blob/main/licenses.json).
73
-
74
- ## Personal and Sensitive Information
75
- To filter out personal information, we applied the same model that was used for The Stack v2 — [star-pii](https://arxiv.org/abs/2402.19173).
76
-
77
- # Column description
78
  The dataset contains the following columns:
79
 
80
  - `size` — size of the file in bytes
@@ -89,8 +65,29 @@ The dataset contains the following columns:
89
  - `issues` — number of issues in the repo at the moment of collection
90
  - `is_fork` — `true` if the repo is a fork or not as defined by GitHub
91
  - `main_language` — main language of the repo as defined by GitHub
92
- - `languages_distribution` — JSON with the distribution of languages by size in bytes in the repo
93
- - `license` — permissive license of the repository
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
 
95
- # Opt-out
96
  If you want your data to be removed from dataset, or have any other questions, please reach out to Sergey Titov: <sergey.titov@jetbrains.com>
 
35
  dtype: int64
36
  - name: name
37
  dtype: string
 
 
38
  splits:
39
  - name: train
40
+ num_bytes: 11610432277.542328
41
+ num_examples: 4049918
42
+ download_size: 4314441901
43
+ dataset_size: 11610432277.542328
44
  configs:
45
  - config_name: default
46
  data_files:
 
50
  # Dataset Summary
51
  KStack is the largest collection of permissively licensed Kotlin code.
52
  ![banner](https://huggingface.co/datasets/JetBrains/KStack/resolve/main/banner.png)
53
+ ## Column description
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  The dataset contains the following columns:
55
 
56
  - `size` — size of the file in bytes
 
65
  - `issues` — number of issues in the repo at the moment of collection
66
  - `is_fork` — `true` if the repo is a fork or not as defined by GitHub
67
  - `main_language` — main language of the repo as defined by GitHub
68
+ - `languages_distribution` — JSON with the distribution of languages by size in bytes in the repo
69
+
70
+ ## Comparison with the Stack v2
71
+ In the table below one can find the comparsion between the Kotlin part of the Stack v2 and KStack:
72
+ | | Files | Repositories | Lines | Tokens |
73
+ |--------------|:-----:|:------------:|:-----:|:------:|
74
+ | The Stack v2 | 2M | 109457 | 162M | 1.7B |
75
+ | Kstack | 4M | 168902 | 292M | 3.1B |
76
+
77
+ # Dataset Creation
78
+
79
+ ## Collection procedure
80
+ We collected repositories from GitHub with the main language being Kotlin, as well as any repositories with Kotlin files that have received 10 or more stars (as of February 2024). Additionally, we gathered repositories with Kotlin files from Stack v1.2. Kotlin files were identified using [go-enry](https://github.com/go-enry/go-enry) and include files with extensions such as `.kt`, `.kts`, and `.gradle.kts`. It is estimated that we have collected 97% of available Kotlin repositories as of February 2024.
81
+
82
+ ## Initial filtering
83
+ We conducted full deduplication, using the hash of file content, as well as near deduplication using the same method as in [Stack v1.2](https://arxiv.org/pdf/2211.15533). We then aggregated the files from one near-deduplicated cluster into a single file from that cluster.
84
+
85
+ ## Detecting permissive licenses
86
+ We filtered permissive repositories based on the licenses detected by GitHub, and using [go-license-detector](https://github.com/src-d/go-license-detector) if GitHub did not have licensing information available.
87
+ The list of permissive licenses used in dataset can be found [here](https://huggingface.co/datasets/JetBrains/KStack/blob/main/licenses.json).
88
+
89
+ ## Personal and Sensitive Information
90
+ We used the [star-pii](https://arxiv.org/abs/2402.19173) model to filter out personal information.
91
 
92
+ ## Opt-out
93
  If you want your data to be removed from dataset, or have any other questions, please reach out to Sergey Titov: <sergey.titov@jetbrains.com>
data/train-00000-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e8bbc35d4277e4afa8aecdb3901c7847767da2c9487eb285ed5eb66407e977c2
3
- size 175342335
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7328f7b3a79f4487ab3ae276ee2c166f359de1eb2a23bd0410852ff1f4e8cf5f
3
+ size 177752874
data/train-00001-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a4037d78e8fa95da255a60a8e581ad0b4cbf9c23b8a5484baceae4665655901b
3
- size 176490980
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92a05dd245020ece92ae84754e7bb12ba05a9d7af12f1afc1706757f97b97179
3
+ size 179102927
data/train-00002-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2d4f506b0ff4f51fa1cdaeda8584ada6ea514e458ea5a4a49e77136dd01092c5
3
- size 179899146
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8bb06efde87a53ea916a19b2f528988661d156df9aab4c20eb6ec59e10240c7
3
+ size 182145547
data/train-00003-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8de6fd0216d831315c19ff81aa13183daf6b7cdbb5a3c6bb43f2e1c26fdbeb87
3
- size 177745250
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:507cdabce102880188d155970e5c866245bad66ec21d4ad0608388ed6216a39d
3
+ size 179939354
data/train-00004-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8950adeb159f7cdbaf0c08842c11b81aa6a4e00ddd287c7fe217bd5ed9cd794b
3
- size 176521109
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d575c000ba45a83b066e5eea9884bd7c02e78af724182db4876a6f640bb929c3
3
+ size 179026072
data/train-00005-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5a83366a34730c0b6f795f6ca2f64b4f6a805df805bbdbbd4add552d6f44cca0
3
- size 177266346
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:adff5e5dfde5e7bfa01561f843b9247ab70e0f798f91587a61ec11a9cd135990
3
+ size 179539223
data/train-00006-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0ce82c0fb8f6c480cc191e25ebe1a81b8edaa1e31724bd0061b17c5340837e54
3
- size 178598261
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1aa4724bee041a2c11ad93d4d6d53ec71ab7a0c9bedaca330dcc90229aa89c74
3
+ size 180912104
data/train-00007-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f360a59521f60a19b99228d0aff7b4f6b101548d2380d0815d7839608fc6aa81
3
- size 176384690
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3339582062ead29ee864e6c4e0d0675c8f236599ed8f33cbee0b14052fa2d56e
3
+ size 178852638
data/train-00008-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9b06b0fc795287e8f7fcb79192cd734c03957d6e5c0b02f57978c3401e4b4dd2
3
- size 178182155
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51c10c581404b2cc2360ad9685dcee6526f50461f6d4648ee0f55c1e1fec304a
3
+ size 180613455
data/train-00009-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:23ba02ed73bfce935b71c3af92761a9692e6961af3d13e839c4a425febd7fa1e
3
- size 176771391
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cf0c4d8dca018443b55cb27d54e6c186251dbde4a1465af83bd9e353578f254
3
+ size 179022316
data/train-00010-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:976705d96dbf148dcc08b54c9a076bcb197be3410d9701c90aabfc7bfc1a9756
3
- size 177307661
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9fa5c2c71275693c386b3404b12592525106a82ae5b381f3b061882bb707401
3
+ size 179761239
data/train-00011-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2fb3ec28bc6b5019bb712cd900e0a70be122de3912d9e3485e314639a4789dfb
3
- size 177948410
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69784549b5d22d2b9ef3598a11cd21d456e6817fc265bba8ed6a829319d4f980
3
+ size 180356800
data/train-00012-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2f1e9bffc17d56e0d432fdff4a245a396813b5cc9e264b7e2e7c1f14fc446cd3
3
- size 177374261
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:027f34cdda9f35b44525aed637be5d2e92c974acde65c1de60484032de0bd6d2
3
+ size 179680020
data/train-00013-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c15c5b411f42eefc2982f1b59af44e434499e6639d9717db52d4ff11a80ff96b
3
- size 177176533
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:866ecf489ebd2126374b4b5c7ea9222a69b3b771a882ffb986c37d9d74f659f5
3
+ size 179851882
data/train-00014-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c5fd02df55a9c6d492c567e26416e3cd69b3e894c4e6560bd45210f4027b7e35
3
- size 177524487
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54bc1fda14d10ca0aa4ca1ad57b012276b97cb41cafecb9d64905129e6a9a857
3
+ size 180073854
data/train-00015-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:783eaf21f80a625783ffc57e96616b639315c8665241854f7d7f90736f9c2a20
3
- size 178299057
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efe6f5e331a7da3c513427744c3dfd2a9861da4cd3295b34fbe11711cb362675
3
+ size 180731291
data/train-00016-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f2ae3b7023ee7478cca516904a937e8918e861451cbff4f1b8e02f8449839ff8
3
- size 177044439
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a94411d3eb02fc65014d95424a67359774990bf884bc66b5873693f18157d9c9
3
+ size 179135603
data/train-00017-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:029d527ec2d85fae741e2e2a4978a422e194b5e2de8e6136cbd8136e5c1dc2ba
3
- size 176192468
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6084e33142a1e3fe1e32e8d0a5b77fc06ed6e3b93188b0278c71b405d005386
3
+ size 178716976
data/train-00018-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf118d5774eff418153d14199e7014531ade4b1fe04300def127b42bd2611dcf
3
- size 175761338
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b19eabfb8c1af3a9c682db512ae940ad5f22e9e5fa2d43aeb9f312998ec6437
3
+ size 178023545
data/train-00019-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e4271e61ba46fb9d2ac37cc3e1f2707f3dfe4e62e972071ec1ee41bd7d0d78d3
3
- size 179294594
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebc75565270b156bbb1ebbb2142e4fe8cbbf801e14796d287ba0a0b15ea91838
3
+ size 181433787
data/train-00020-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8dde1fbce04d987c5e91bcfa4cbae1129c8f689587654f682aac16aeeae9ca50
3
- size 176128164
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:297a28a268b54fad732c5d41f5fe6a4863f74f9314051c948cb49197c8816f74
3
+ size 178610559
data/train-00021-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a46a563ec7970efa3eccfcebfc40da5fba73f351cd228b96d0380b25a676e4cd
3
- size 178876338
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8f5f47411cf9ea7c80c73a6cd43c69f122862213bcc1c83a3160c74dfdc3563
3
+ size 181201752
data/train-00022-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:076ef2d0fb9cf94a6a1837ab305f82702a5ab8ade35114d3da30b0bbb837ea6f
3
- size 177347384
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f022e1f4511010ec3fb2c04589d9f6237cb077970eb8d37d8dab6a3ed12c2c5
3
+ size 179570247
data/train-00023-of-00024.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:88dc4924a65e33c90b47ec824127229286f698353f82408b53845b6f7d9dbd43
3
- size 177924745
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a60178ff29eaeb512ca857d4aaf8d543b9a72efcc0014efa90adb7eedc5c827
3
+ size 180387836