数据集:
这是从GitHub上提取的IVA Swift数据集的策划训练分割。它包含了用于训练代码生成模型的策划的Swift文件。
数据集包含来自GitHub的320,000个Swift代码文件。 Here is the unsliced curated dataset 和 here is the raw dataset 。
要下载完整的数据集:
from datasets import load_dataset
dataset = load_dataset('mvasiliniuc/iva-swift-codeint-clean', split='train')
| Field | Type | Description |
|---|---|---|
| repo_name | string | name of the GitHub repository |
| path | string | path of the file in GitHub repository |
| copies | string | number of occurrences in dataset |
| content | string | content of source file |
| size | string | size of the source file in bytes |
| license | string | license of GitHub repository |
| hash | string | Hash of content field. |
| line_mean | number | Mean line length of the content. |
| line_max | number | Max line length of the content. |
| alpha_frac | number | Fraction between mean and max line length of content. |
| ratio | number | Character/token ratio of the file with tokenizer. |
| autogenerated | boolean | True if the content is autogenerated by looking for keywords in the first few lines of the file. |
| config_or_test | boolean | True if the content is a configuration file or a unit test. |
| has_no_keywords | boolean | True if a file has none of the keywords for Swift Programming Language. |
| has_few_assignments | boolean | True if file uses symbol '=' less than minimum times. |
{
"repo_name":"...",
"path":".../BorderedButton.swift",
"copies":"2",
"size":"2649",
"content":"...",
"license":"mit",
"hash":"db1587fd117e9a835f58cf8203d8bf05",
"line_mean":29.1136363636,
"line_max":87,
"alpha_frac":0.6700641752,
"ratio":5.298,
"autogenerated":false,
"config_or_test":false,
"has_no_keywords":false,
"has_few_assignments":false
}
数据集只包含Swift文件。
{
"Swift": [".swift"]
}
数据集中的每个条目都包含相关的许可证。以下是涉及的许可证列表及其出现次数。
{
"agpl-3.0":1415,
"apache-2.0":71451,
"artistic-2.0":169,
"bsd-2-clause":2628,
"bsd-3-clause":5492,
"cc0-1.0":1176,
"epl-1.0":498,
"gpl-2.0":7846,
"gpl-3.0":15716,
"isc":676,
"lgpl-2.1":932,
"lgpl-3.0":2553,
"mit":201134,
"mpl-2.0":6846,
"unlicense":1468
}
{
"Total size": "~453 MB",
"Number of files": 320000,
"Number of files under 500 bytes": 3116,
"Average file size in bytes": 5940,
}
详情请参阅 the unsliced curated dataset 。
数据集仅包含一个专注于训练数据的训练拆分。有关验证和未拆分版本,请查看以下链接:
该数据集包含来自各种存储库的源代码,可能包含有害或有偏见的代码,以及包含敏感信息如密码或用户名。