Update README.md
Browse files
README.md
CHANGED
|
@@ -177,9 +177,12 @@ configs:
|
|
| 177 |
This dataset contains information about repos (initially gathered from https://seart-ghs.si.usi.ch) matching the following criteria:
|
| 178 |
* `Java` and `Kotlin` programming languages
|
| 179 |
* 10+ stars
|
|
|
|
|
|
|
| 180 |
* not forks
|
| 181 |
-
* permissive licenses (
|
| 182 |
-
* filtered by `is_template=True` or template-related keywords presence in the description (
|
|
|
|
| 183 |
|
| 184 |
You can find all scripts to reproduce dataset collection in our [GitHub ](https://github.com/JetBrains-Research/agents-eval) repository
|
| 185 |
|
|
@@ -188,12 +191,32 @@ You can find all scripts to reproduce dataset collection in our [GitHub ](https:
|
|
| 188 |
| **Field** | **Description** |
|
| 189 |
|:------------------:|:----------------------------------------:|
|
| 190 |
| `id` | Identifier of data point. |
|
| 191 |
-
| `
|
| 192 |
-
| `
|
| 193 |
-
| `
|
|
|
|
| 194 |
| `is_template` | True if the repositories marked as a template, otherwise False. |
|
| 195 |
| `description` | Repository description. |
|
| 196 |
| `template_keywords` | Template-related keywords. |
|
| 197 |
| `license` | Repository license <br> (one from 'MIT License', 'Apache License 2.0', <br> 'BSD 3-Clause "New" or "Revised" License', 'BSD 2-Clause "Simplified" License'). |
|
| 198 |
| `topics` | Repository topics. |
|
| 199 |
| `size` | Repo size \[MB\]. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
This dataset contains information about repos (initially gathered from https://seart-ghs.si.usi.ch) matching the following criteria:
|
| 178 |
* `Java` and `Kotlin` programming languages
|
| 179 |
* 10+ stars
|
| 180 |
+
* 10-3000 code lines
|
| 181 |
+
* updated after 2023-01-01 00:00
|
| 182 |
* not forks
|
| 183 |
+
* permissive licenses (`MIT License`, `Apache License 2.0`, `BSD 3-Clause "New" or "Revised" License`, `BSD 2-Clause "Simplified" License`)
|
| 184 |
+
* filtered by `is_template=True` or template-related keywords presence in the description (`template`, `boilerplate`, `starter`, `skeleton`, `blueprint`, `scaffold`, `pattern`, `seed`, `example`, `demo`, `sample`, `showcase`, `illustration`, `exemplar`, `use case`, `prototype`)
|
| 185 |
+
* android is moved to separate category (by `android` keyword in description or repo `fill_name`)
|
| 186 |
|
| 187 |
You can find all scripts to reproduce dataset collection in our [GitHub ](https://github.com/JetBrains-Research/agents-eval) repository
|
| 188 |
|
|
|
|
| 191 |
| **Field** | **Description** |
|
| 192 |
|:------------------:|:----------------------------------------:|
|
| 193 |
| `id` | Identifier of data point. |
|
| 194 |
+
| `full_name` | Repository full name `{owner}/{name}`. |
|
| 195 |
+
| `owner` | Bug issue repository owner. |
|
| 196 |
+
| `name` | Bug issue repository name. |
|
| 197 |
+
| `html_url` | GitHub link to issue <br> `https://github.com/{owner}/{name}`. |
|
| 198 |
| `is_template` | True if the repositories marked as a template, otherwise False. |
|
| 199 |
| `description` | Repository description. |
|
| 200 |
| `template_keywords` | Template-related keywords. |
|
| 201 |
| `license` | Repository license <br> (one from 'MIT License', 'Apache License 2.0', <br> 'BSD 3-Clause "New" or "Revised" License', 'BSD 2-Clause "Simplified" License'). |
|
| 202 |
| `topics` | Repository topics. |
|
| 203 |
| `size` | Repo size \[MB\]. |
|
| 204 |
+
| `metrics` | Dict from languages to their meta info like lines count. |
|
| 205 |
+
| `languages` | Repo languages. |
|
| 206 |
+
| `language` | Repo main language. |
|
| 207 |
+
| `created_at` | Date of the repo was created in format of yyyy-mm-dd hh:mm:ss. |
|
| 208 |
+
| `updated_at` | Date of the last repo update in format of yyyy-mm-dd hh:mm:ss. |
|
| 209 |
+
| `code_lines` | Number of lines of code in repo. |
|
| 210 |
+
|
| 211 |
+
from datasets import load_dataset
|
| 212 |
+
|
| 213 |
+
## How to
|
| 214 |
+
* Load the data via [load_dataset](https://huggingface.co/docs/datasets/v2.14.3/en/package_reference/loading_methods#datasets.load_dataset):
|
| 215 |
+
```python
|
| 216 |
+
# Select a configuration from ["java", "kt", "android"]
|
| 217 |
+
configuration = "java"
|
| 218 |
+
# Select a split from ["dev", "train", "test"]
|
| 219 |
+
split = "dev"
|
| 220 |
+
# Load data
|
| 221 |
+
dataset = load_dataset("JetBrains-Research/template-generation", configuration, split=split)
|
| 222 |
+
```
|