Datasets:

Modalities:
Tabular
Text
Formats:
parquet
Languages:
code
ArXiv:
Libraries:
Datasets
Dask
License:
Titovs commited on
Commit
badfb8e
Β·
verified Β·
1 Parent(s): d60a784

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -24
README.md CHANGED
@@ -52,30 +52,13 @@ 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
- ## Column description
56
- The dataset contains the following columns:
57
-
58
- - `size` β€” size of the file in bytes
59
- - `content` β€” text (content) of the file after removing personal identifiable information
60
- - `repo_id` β€” GitHub ID of the repository
61
- - `path` β€” path to a file
62
- - `owner` β€” repo owner on GitHub
63
- - `name` β€” repo name on GitHub
64
- - `commit_sha` β€” hash of the commit, from which the revision of the file is taken
65
- - `stars` β€” number of stars in the repo at the moment of collection
66
- - `forks` β€” number of forks in the repo at the moment of collection
67
- - `issues` β€” number of issues in the repo at the moment of collection
68
- - `is_fork` β€” `true` if the repo is a fork or not as defined by GitHub
69
- - `main_language` β€” main language of the repo as defined by GitHub
70
- - `languages_distribution` β€” JSON with the distribution of languages by size in bytes in the repo
71
- - `license` - the name of the permissive license
72
 
73
  ## Comparison with the Stack v2
74
  In the table below one can find the comparsion between the Kotlin part of the Stack v2 and KStack:
75
- | | Files | Repositories | Lines | Tokens |
76
- |--------------|:-----:|:------------:|:-----:|:------:|
77
- | The Stack v2 | 2M | 109457 | 162M | 1.7B |
78
- | Kstack | 4M | 168902 | 292M | 3.1B |
79
 
80
  # Dataset Creation
81
 
@@ -83,8 +66,7 @@ In the table below one can find the comparsion between the Kotlin part of the St
83
  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.
84
 
85
  ## Initial filtering
86
- 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.
87
-
88
  ## Detecting permissive licenses
89
  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.
90
  The list of permissive licenses used in dataset can be found [here](https://huggingface.co/datasets/JetBrains/KStack/blob/main/licenses.json).
@@ -92,5 +74,23 @@ The list of permissive licenses used in dataset can be found [here](https://hugg
92
  ## Personal and Sensitive Information
93
  To filter personal information, we applied the same model that used for Stack v2. -- the [star-pii](https://arxiv.org/abs/2402.19173).
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: <[email protected]>
 
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 | 109457 | 162M | 1.7B |
61
+ | Kstack | 4M | 168902 | 292M | 3.1B |
62
 
63
  # Dataset Creation
64
 
 
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 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 [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).
 
74
  ## Personal and Sensitive Information
75
  To filter personal information, we applied the same model that used for Stack v2. -- the [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
81
+ - `content` β€” text (content) of the file after removing personal identifiable information
82
+ - `repo_id` β€” GitHub ID of the repository
83
+ - `path` β€” path to a file
84
+ - `owner` β€” repo owner on GitHub
85
+ - `name` β€” repo name on GitHub
86
+ - `commit_sha` β€” hash of the commit, from which the revision of the file is taken
87
+ - `stars` β€” number of stars in the repo at the moment of collection
88
+ - `forks` β€” number of forks in the repo at the moment of collection
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: <[email protected]>