File size: 14,133 Bytes
65a3a8a ec823b2 6e9682c ec823b2 6e9682c ec823b2 b9efe60 ec823b2 6e9682c 941cd72 bd1fa0f a23d715 bd1fa0f a23d715 bd1fa0f a23d715 bd1fa0f a23d715 bd1fa0f a23d715 bd1fa0f ec823b2 0d8fa7b 0dc896d ec823b2 16def7c 4695764 ec823b2 0d8fa7b 0dc896d 16def7c 65aa36d 65a3a8a 3599074 65a3a8a 3599074 65a3a8a 81fea80 34f71d9 3599074 2499650 4521ae2 602a37f 4521ae2 602a37f 4521ae2 602a37f 4521ae2 602a37f 4521ae2 602a37f 4521ae2 65a3a8a cbbaf4f 602a37f 65a3a8a 932a6df fdf7069 65a3a8a cbbaf4f fdf7069 932a6df 65aa36d fce54ad 65aa36d fce54ad 65aa36d 8da2a67 2da1bce fce54ad 2dacbab 744241b 9c57764 744241b 9c57764 744241b 9c57764 744241b 9c57764 744241b 9c57764 744241b 65aa36d e538936 f0d7154 65aa36d e538936 f0d7154 e538936 6b52cb0 55c2390 62a0c7a 55c2390 62a0c7a 55c2390 62a0c7a 55c2390 62a0c7a 55c2390 62a0c7a 55c2390 6b52cb0 c45c8e5 62a0c7a 6b52cb0 873b84c d33b8be 6b52cb0 c45c8e5 d33b8be 873b84c 65a3a8a ec823b2 65a3a8a 65aa36d e538936 6b52cb0 65a3a8a f2a6216 d8d6138 bce6e23 d8d6138 bce6e23 d8d6138 bce6e23 1c5b935 3c51f0c bce6e23 3c51f0c bce6e23 d8d6138 bce6e23 d8d6138 ad6f793 3c51f0c ad6f793 3c51f0c 1c5b935 d8d6138 3c51f0c d8d6138 3c51f0c 1c5b935 3c51f0c |
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 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 |
---
dataset_info:
- config_name: android
features:
- name: full_name
dtype: string
- name: owner
dtype: string
- name: name
dtype: string
- name: html_url
dtype: string
- name: is_template
dtype: bool
- name: description
dtype: string
- name: template_keywords
dtype: string
- name: license
dtype: string
- name: topics
dtype: string
- name: size
dtype: int64
- name: language
dtype: string
- name: created_at
dtype: string
- name: updated_at
dtype: string
- name: gpt_description
dtype: string
- name: repo_symbols_count
dtype: int64
- name: repo_tokens_count
dtype: int64
- name: repo_words_count
dtype: int64
- name: repo_lines_count
dtype: int64
- name: repo_files_count
dtype: int64
- name: repo_code_symbols_count
dtype: int64
- name: repo_code_tokens_count
dtype: int64
- name: repo_code_words_count
dtype: int64
- name: repo_code_lines_count
dtype: int64
- name: repo_code_files_count
dtype: int64
- name: description_symbols_count
dtype: int64
- name: description_tokens_count
dtype: int64
- name: description_words_count
dtype: int64
- name: description_lines_count
dtype: int64
- name: readme
dtype: string
- name: readme_symbols_count
dtype: int64
- name: readme_tokens_count
dtype: int64
- name: readme_words_count
dtype: int64
- name: readme_lines_count
dtype: int64
splits:
- name: dev
num_bytes: 66452
num_examples: 17
- name: test
num_bytes: 2256
num_examples: 1
- name: train
num_bytes: 64167
num_examples: 16
download_size: 153425
dataset_size: 132875
- config_name: java
features:
- name: full_name
dtype: string
- name: owner
dtype: string
- name: name
dtype: string
- name: html_url
dtype: string
- name: is_template
dtype: bool
- name: description
dtype: string
- name: template_keywords
dtype: string
- name: license
dtype: string
- name: topics
dtype: string
- name: size
dtype: int64
- name: language
dtype: string
- name: created_at
dtype: string
- name: updated_at
dtype: string
- name: gpt_description
dtype: string
- name: repo_symbols_count
dtype: int64
- name: repo_tokens_count
dtype: int64
- name: repo_words_count
dtype: int64
- name: repo_lines_count
dtype: int64
- name: repo_files_count
dtype: int64
- name: repo_code_symbols_count
dtype: int64
- name: repo_code_tokens_count
dtype: int64
- name: repo_code_words_count
dtype: int64
- name: repo_code_lines_count
dtype: int64
- name: repo_code_files_count
dtype: int64
- name: description_symbols_count
dtype: int64
- name: description_tokens_count
dtype: int64
- name: description_words_count
dtype: int64
- name: description_lines_count
dtype: int64
- name: readme
dtype: string
- name: readme_symbols_count
dtype: int64
- name: readme_tokens_count
dtype: int64
- name: readme_words_count
dtype: int64
- name: readme_lines_count
dtype: int64
splits:
- name: dev
num_bytes: 315460
num_examples: 81
- name: test
num_bytes: 32962
num_examples: 10
- name: train
num_bytes: 283136
num_examples: 71
download_size: 385352
dataset_size: 631558
- config_name: kt
features:
- name: full_name
dtype: string
- name: owner
dtype: string
- name: name
dtype: string
- name: html_url
dtype: string
- name: is_template
dtype: bool
- name: description
dtype: string
- name: template_keywords
dtype: string
- name: license
dtype: string
- name: topics
dtype: string
- name: size
dtype: int64
- name: language
dtype: string
- name: created_at
dtype: string
- name: updated_at
dtype: string
- name: gpt_description
dtype: string
- name: repo_symbols_count
dtype: int64
- name: repo_tokens_count
dtype: int64
- name: repo_words_count
dtype: int64
- name: repo_lines_count
dtype: int64
- name: repo_files_count
dtype: int64
- name: repo_code_symbols_count
dtype: int64
- name: repo_code_tokens_count
dtype: int64
- name: repo_code_words_count
dtype: int64
- name: repo_code_lines_count
dtype: int64
- name: repo_code_files_count
dtype: int64
- name: description_symbols_count
dtype: int64
- name: description_tokens_count
dtype: int64
- name: description_words_count
dtype: int64
- name: description_lines_count
dtype: int64
- name: readme
dtype: string
- name: readme_symbols_count
dtype: int64
- name: readme_tokens_count
dtype: int64
- name: readme_words_count
dtype: int64
- name: readme_lines_count
dtype: int64
splits:
- name: dev
num_bytes: 114192
num_examples: 21
- name: test
num_bytes: 81712
num_examples: 12
- name: train
num_bytes: 33039
num_examples: 9
download_size: 197513
dataset_size: 228943
- config_name: py
features:
- name: full_name
dtype: string
- name: owner
dtype: string
- name: name
dtype: string
- name: html_url
dtype: string
- name: is_template
dtype: bool
- name: description
dtype: string
- name: template_keywords
dtype: string
- name: license
dtype: string
- name: topics
dtype: string
- name: size
dtype: int64
- name: language
dtype: string
- name: created_at
dtype: string
- name: updated_at
dtype: string
- name: gpt_description
dtype: string
- name: repo_symbols_count
dtype: int64
- name: repo_tokens_count
dtype: int64
- name: repo_words_count
dtype: int64
- name: repo_lines_count
dtype: int64
- name: repo_files_count
dtype: int64
- name: repo_code_symbols_count
dtype: int64
- name: repo_code_tokens_count
dtype: int64
- name: repo_code_words_count
dtype: int64
- name: repo_code_lines_count
dtype: int64
- name: repo_code_files_count
dtype: int64
- name: description_symbols_count
dtype: int64
- name: description_tokens_count
dtype: int64
- name: description_words_count
dtype: int64
- name: description_lines_count
dtype: int64
- name: readme
dtype: string
- name: readme_symbols_count
dtype: int64
- name: readme_tokens_count
dtype: int64
- name: readme_words_count
dtype: int64
- name: readme_lines_count
dtype: int64
splits:
- name: dev
num_bytes: 2609044
num_examples: 565
- name: test
num_bytes: 48058
num_examples: 10
- name: train
num_bytes: 2561719
num_examples: 555
download_size: 2735714
dataset_size: 5218821
configs:
- config_name: android
data_files:
- split: dev
path: android/dev-*
- split: test
path: android/test-*
- split: train
path: android/train-*
- config_name: java
data_files:
- split: dev
path: java/dev-*
- split: test
path: java/test-*
- split: train
path: java/train-*
- config_name: kt
data_files:
- split: dev
path: kt/dev-*
- split: test
path: kt/test-*
- split: train
path: kt/train-*
- config_name: py
data_files:
- split: dev
path: py/dev-*
- split: test
path: py/test-*
- split: train
path: py/train-*
---
# Template Generation Dataset for AI Agents Evaluation
This is the benchmark for the Project Template Generation task, which requires creating a project template (content and structure) by short textual description.
The dataset provides all the required components for evaluation of project template generation approaches in real project templates collected from GitHub, including:
* Repository description;
* Repository root README.md file content;
* Repository link by which the \"golden\" template can be accessed;
* GitHub repository telemetry, including additional data and metrics that can be useful in developing new approaches.
All the repositories are published under permissive licenses (MIT, Apache-2.0, BSD-3-Clause, and BSD-2-Clause). The datapoints can be removed upon request.
The collected dataset was carefully filtered, enhanced with useful metrics and, what's more, manually labeled, which assures the data quality and provides a golden subset of good examples for evaluation.\
Moreover, the dataset was split into several categories, namely:
| **Category** | **Description** | **Number of data points** |
|:------------------:|:----------------------------------------:|:----------------------------------------:|
| `py` | Repositories with Python main language | 565 |
| `java` | Repositories with Java main language | 81 |
| `kt` | Repositories with Kotlin main language | 19 |
| `android` | Repositories with Kotlin/Java main language based on Android sdk | 17 |
...and splits, namely:
| **Split** | **Description** |
|:------------------:|:----------------------------------------:|
| `dev` | All collected datapoints |
| `test` | Manually verified datapoints |
| `train` | Rest of the datapoint from `dev` without `test` |
The following sections describe the utilities around the dataset, as well as dataset content.
## Dataset Collection
This dataset contains information about repos (initially gathered from https://seart-ghs.si.usi.ch) matching the following criteria:
* `Python`, `Java`, `Kotlin` programming languages
* 10+ stars
* 10-1000 code lines
* updated after 2023-01-01 00:00
* not forks
* permissive licenses (`MIT License`, `Apache License 2.0`, `BSD 3-Clause "New" or "Revised" License`, `BSD 2-Clause "Simplified" License`)
* 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`)
* android is moved to separate category (by `android` keyword in description or repo `fill_name`)
You can find all scripts to reproduce dataset collection in our [GitHub](https://github.com/JetBrains-Research/agents-eval) repository
## Dataset Description
| **Field** | **Description** |
|:------------------:|:----------------------------------------:|
| `id` | Identifier of data point. |
| `full_name` | Repository full name `{owner}/{name}`. |
| `owner` | Bug issue repository owner. |
| `name` | Bug issue repository name. |
| `html_url` | GitHub link to issue <br> `https://github.com/{owner}/{name}`. |
| `is_template` | True if the repositories marked as a template, otherwise False. |
| `description` | Repository description. |
| `template_keywords` | Template-related keywords. |
| `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'). |
| `topics` | Repository topics. |
| `size` | Repo size \[MB\]. |
| `metrics` | Dict from languages to their meta info like lines count. |
| `languages` | Repo languages. |
| `language` | Repo main language. |
| `created_at` | Date of the repo was created in format of yyyy-mm-dd hh:mm:ss. |
| `updated_at` | Date of the last repo update in format of yyyy-mm-dd hh:mm:ss. |
| `code_lines` | Number of lines of code in repo. |
| `repo_symbols_count` | Number of symbols in the repository. |
| `repo_tokens_count` | Number of tokens in the repository. |
| `repo_words_count` | Number of words in the repository. |
| `repo_lines_count` | Number of lines in the repository. |
| `repo_files_count` | Number of files in the repository. |
| `repo_code_symbols_count` | Number of code symbols in the repository. |
| `repo_code_tokens_count`* | Number of code tokens in the repository. |
| `repo_code_words_count` | Number of code words in the repository. |
| `repo_code_lines_count` | Number of code lines in the repository. |
| `repo_code_files_count` | Number of code files in the repository. |
| `description_symbols_count` | Number of symbols in the repository description. |
| `description_tokens_count`* | Number of tokens in the repository description. |
| `description_words_count` | Number of words in the repository description. |
| `description_lines_count` | Number of lines in the repository description. |
| `readme` | Root README.md repository content. |
| `readme_symbols_count`| Number of symbols in the repository `readme`. |
| `readme_header_tokens_count`* | Number of tokens in the repository `readme`. |
| `readme_header_words_count` | Number of words in the repository `readme`. |
| `readme_header_lines_count` | Number of lines in the repository `readme`. |
\* Tokens calculated via GPT-4 tokenizer
## Dataset analysis
* Topics analysis [notebook](https://github.com/JetBrains-Research/agents-eval/blob/main/src/template_generation/notebooks/topics_analysis.ipynb)
* Large-scale analysis [notebook](https://github.com/JetBrains-Research/agents-eval/blob/main/src/template_generation/notebooks/templates_analysis.ipynb)
## Dataset usage
* Load the data via [load_dataset](https://huggingface.co/docs/datasets/v2.14.3/en/package_reference/loading_methods#datasets.load_dataset):
```python
from datasets import load_dataset
# Select a configuration from ["java", "kt", "android"]
configuration = "java"
# Select a split from ["dev", "train", "test"]
split = "dev"
# Load data
dataset = load_dataset("JetBrains-Research/template-generation", configuration, split=split)
``` |