Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -50,25 +50,25 @@ configs:
|
|
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 |
-
##
|
54 |
-
The dataset contains following columns:
|
55 |
|
56 |
-
- `size`
|
57 |
-
- `content`
|
58 |
-
- `repo_id`
|
59 |
-
- `path`
|
60 |
-
- `owner`
|
61 |
-
- `name`
|
62 |
-
- `commit_sha`
|
63 |
-
- `stars`
|
64 |
-
- `forks`
|
65 |
-
- `issues`
|
66 |
-
- `is_fork`
|
67 |
-
- `main_language`
|
68 |
-
- `languages_distribution`
|
69 |
|
70 |
## Comparison with the Stack v2
|
71 |
-
In the table below one can find the comparsion
|
72 |
| | Files | Repositories | Lines | Tokens |
|
73 |
|--------------|:-----:|:------------:|:-----:|:------:|
|
74 |
| The Stack v2 | 2M | 109457 | 162M | 1.7B |
|
@@ -77,17 +77,17 @@ In the table below one can find the comparsion of the between Kotlin part of the
|
|
77 |
# Dataset Creation
|
78 |
|
79 |
## Collection procedure
|
80 |
-
We collected repositories from GitHub with the main language being Kotlin, as well as 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)
|
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 if GitHub did not have
|
87 |
-
The list of permissive licenses used in dataset
|
88 |
|
89 |
## Personal and Sensitive Information
|
90 |
-
We used [star-pii](https://arxiv.org/abs/2402.19173) model to filter out personal
|
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: <[email protected]>
|
|
|
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
|
57 |
+
- `content` — text (content) of the file after removing personal identifiable information
|
58 |
+
- `repo_id` — GitHub ID of the repository
|
59 |
+
- `path` — path to a file
|
60 |
+
- `owner` — repo owner on GitHub
|
61 |
+
- `name` — repo name on GitHub
|
62 |
+
- `commit_sha` — hash of the commit, from which the revision of the file is taken
|
63 |
+
- `stars` — number of stars in the repo at the moment of collection
|
64 |
+
- `forks` — number of forks in the repo at the moment of collection
|
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 |
|
|
|
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: <[email protected]>
|