参考:
all
使用以下命令在 TFDS 中加载此数据集:
ds = tfds.load('huggingface:code_search_net/all')
- 说明:
CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.
- 许可:各种
- 版本:1.0.0
- 拆分:
拆分 | 样本 |
---|---|
'test' |
100529 |
'train' |
1880853 |
'validation' |
89154 |
- 特征:
{
"repository_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_path_in_repository": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"whole_func_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"language": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"func_documentation_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_documentation_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"split_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_url": {
"dtype": "string",
"id": null,
"_type": "Value"
}
}
java
使用以下命令在 TFDS 中加载此数据集:
ds = tfds.load('huggingface:code_search_net/java')
- 说明:
CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.
- 许可:各种
- 版本:1.0.0
- 拆分:
拆分 | 样本 |
---|---|
'test' |
26909 |
'train' |
454451 |
'validation' |
15328 |
- 特征:
{
"repository_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_path_in_repository": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"whole_func_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"language": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"func_documentation_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_documentation_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"split_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_url": {
"dtype": "string",
"id": null,
"_type": "Value"
}
}
go
使用以下命令在 TFDS 中加载此数据集:
ds = tfds.load('huggingface:code_search_net/go')
- 说明:
CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.
- 许可:各种
- 版本:1.0.0
- 拆分:
拆分 | 样本 |
---|---|
'test' |
14291 |
'train' |
317832 |
'validation' |
14242 |
- 特征:
{
"repository_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_path_in_repository": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"whole_func_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"language": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"func_documentation_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_documentation_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"split_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_url": {
"dtype": "string",
"id": null,
"_type": "Value"
}
}
python
使用以下命令在 TFDS 中加载此数据集:
ds = tfds.load('huggingface:code_search_net/python')
- 说明:
CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.
- 许可:各种
- 版本:1.0.0
- 拆分:
拆分 | 样本 |
---|---|
'test' |
22176 |
'train' |
412178 |
'validation' |
23107 |
- 特征:
{
"repository_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_path_in_repository": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"whole_func_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"language": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"func_documentation_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_documentation_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"split_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_url": {
"dtype": "string",
"id": null,
"_type": "Value"
}
}
javascript
使用以下命令在 TFDS 中加载此数据集:
ds = tfds.load('huggingface:code_search_net/javascript')
- 说明:
CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.
- 许可:各种
- 版本:1.0.0
- 拆分:
拆分 | 样本 |
---|---|
'test' |
6483 |
'train' |
123889 |
'validation' |
8253 |
- 特征:
{
"repository_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_path_in_repository": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"whole_func_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"language": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"func_documentation_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_documentation_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"split_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_url": {
"dtype": "string",
"id": null,
"_type": "Value"
}
}
ruby
使用以下命令在 TFDS 中加载此数据集:
ds = tfds.load('huggingface:code_search_net/ruby')
- 说明:
CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.
- 许可:各种
- 版本:1.0.0
- 拆分:
拆分 | 样本 |
---|---|
'test' |
2279 |
'train' |
48791 |
'validation' |
2209 |
- 特征:
{
"repository_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_path_in_repository": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"whole_func_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"language": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"func_documentation_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_documentation_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"split_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_url": {
"dtype": "string",
"id": null,
"_type": "Value"
}
}
php
使用以下命令在 TFDS 中加载此数据集:
ds = tfds.load('huggingface:code_search_net/php')
- 说明:
CodeSearchNet corpus contains about 6 million functions from open-source code spanning six programming languages (Go, Java, JavaScript, PHP, Python, and Ruby). The CodeSearchNet Corpus also contains automatically generated query-like natural language for 2 million functions, obtained from mechanically scraping and preprocessing associated function documentation.
- 许可:各种
- 版本:1.0.0
- 拆分:
拆分 | 样本 |
---|---|
'test' |
28391 |
'train' |
523712 |
'validation' |
26015 |
- 特征:
{
"repository_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_path_in_repository": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"whole_func_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"language": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"func_documentation_string": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_documentation_tokens": {
"feature": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"length": -1,
"id": null,
"_type": "Sequence"
},
"split_name": {
"dtype": "string",
"id": null,
"_type": "Value"
},
"func_code_url": {
"dtype": "string",
"id": null,
"_type": "Value"
}
}