system HF staff commited on
Commit
017ed2d
0 Parent(s):

Update files from the datasets library (from 1.8.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.8.0

.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,262 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - found
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ - code
8
+ licenses:
9
+ - other-C-UDA
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ go:
14
+ - 10K<n<100K
15
+ java:
16
+ - 10K<n<100K
17
+ javascript:
18
+ - 10K<n<100K
19
+ php:
20
+ - 10K<n<100K
21
+ python:
22
+ - 10K<n<100K
23
+ ruby:
24
+ - 1K<n<10K
25
+ source_datasets:
26
+ - original
27
+ task_categories:
28
+ - sequence-modeling
29
+ task_ids:
30
+ - slot-filling
31
+ ---
32
+ # Dataset Card for "code_x_glue_cc_cloze_testing_maxmin"
33
+
34
+ ## Table of Contents
35
+ - [Dataset Description](#dataset-description)
36
+ - [Dataset Summary](#dataset-summary)
37
+ - [Supported Tasks and Leaderboards](#supported-tasks)
38
+ - [Languages](#languages)
39
+ - [Dataset Structure](#dataset-structure)
40
+ - [Data Instances](#data-instances)
41
+ - [Data Fields](#data-fields)
42
+ - [Data Splits](#data-splits-sample-size)
43
+ - [Dataset Creation](#dataset-creation)
44
+ - [Curation Rationale](#curation-rationale)
45
+ - [Source Data](#source-data)
46
+ - [Annotations](#annotations)
47
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
48
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
49
+ - [Social Impact of Dataset](#social-impact-of-dataset)
50
+ - [Discussion of Biases](#discussion-of-biases)
51
+ - [Other Known Limitations](#other-known-limitations)
52
+ - [Additional Information](#additional-information)
53
+ - [Dataset Curators](#dataset-curators)
54
+ - [Licensing Information](#licensing-information)
55
+ - [Citation Information](#citation-information)
56
+ - [Contributions](#contributions)
57
+
58
+ ## Dataset Description
59
+
60
+ - **Homepage:** https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin
61
+
62
+ ### Dataset Summary
63
+
64
+ CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin
65
+
66
+ Cloze tests are widely adopted in Natural Languages Processing to evaluate the performance of the trained language models. The task is aimed to predict the answers for the blank with the context of the blank, which can be formulated as a multi-choice classification problem.
67
+ Here we present the two cloze testing datasets in code domain with six different programming languages: ClozeTest-maxmin and ClozeTest-all. Each instance in the dataset contains a masked code function, its docstring and the target word.
68
+ The only difference between ClozeTest-maxmin and ClozeTest-all is their selected words sets, where ClozeTest-maxmin only contains two words while ClozeTest-all contains 930 words.
69
+
70
+ ### Supported Tasks and Leaderboards
71
+
72
+ - `slot-filling`: The dataset can be used to train a model for predicting the missing token from a piece of code, similar to the Cloze test.
73
+
74
+ ### Languages
75
+
76
+ - Go **programming** language
77
+ - Java **programming** language
78
+ - Javascript **programming** language
79
+ - PHP **programming** language
80
+ - Python **programming** language
81
+ - Ruby **programming** language
82
+
83
+ ## Dataset Structure
84
+
85
+ ### Data Instances
86
+
87
+ #### go
88
+
89
+ An example of 'train' looks as follows.
90
+ ```
91
+ {
92
+ "id": 0,
93
+ "idx": "maxmin-1",
94
+ "nl_tokens": ["SetMaxStructPoolSize", "sets", "the", "struct", "pools", "max", "size", ".", "this", "may", "be", "usefull", "for", "fine", "grained", "performance", "tuning", "towards", "your", "application", "however", "the", "default", "should", "be", "fine", "for", "nearly", "all", "cases", ".", "only", "increase", "if", "you", "have", "a", "deeply", "nested", "struct", "structure", ".", "NOTE", ":", "this", "method", "is", "not", "thread", "-", "safe", "NOTE", ":", "this", "is", "only", "here", "to", "keep", "compatibility", "with", "v5", "in", "v6", "the", "method", "will", "be", "removed"],
95
+ "pl_tokens": ["func", "(", "v", "*", "Validate", ")", "SetMaxStructPoolSize", "(", "<mask>", "int", ")", "{", "structPool", "=", "&", "sync", ".", "Pool", "{", "New", ":", "newStructErrors", "}", "\n", "}"]
96
+ }
97
+ ```
98
+
99
+ #### java
100
+
101
+ An example of 'train' looks as follows.
102
+ ```
103
+ {
104
+ "id": 0,
105
+ "idx": "maxmin-1",
106
+ "nl_tokens": ["Test", "whether", "find", "can", "be", "found", "at", "position", "startPos", "in", "the", "string", "src", "."],
107
+ "pl_tokens": ["public", "static", "boolean", "startsWith", "(", "char", "[", "]", "src", ",", "char", "[", "]", "find", ",", "int", "startAt", ")", "{", "int", "startPos", "=", "startAt", ";", "boolean", "result", "=", "true", ";", "// Check ranges", "if", "(", "src", ".", "length", "<", "startPos", "+", "find", ".", "length", ")", "{", "result", "=", "false", ";", "}", "else", "{", "final", "int", "<mask>", "=", "find", ".", "length", ";", "for", "(", "int", "a", "=", "0", ";", "a", "<", "max", "&&", "result", ";", "a", "++", ")", "{", "if", "(", "src", "[", "startPos", "]", "!=", "find", "[", "a", "]", ")", "{", "result", "=", "false", ";", "}", "startPos", "++", ";", "}", "}", "return", "result", ";", "}"]
108
+ }
109
+ ```
110
+
111
+ #### javascript
112
+
113
+ An example of 'train' looks as follows.
114
+ ```
115
+ {
116
+ "id": 0,
117
+ "idx": "maxmin-1",
118
+ "nl_tokens": ["string", ".", "max", "Maximum", "length", "of", "the", "string"],
119
+ "pl_tokens": ["function", "(", "string", ")", "{", "// string.check check sting type and size", "return", "(", "(", "typeof", "string", "===", "'string'", "||", "string", "instanceof", "String", ")", "&&", "string", ".", "length", ">=", "this", ".", "<mask>", "&&", "string", ".", "length", "<=", "this", ".", "max", "&&", "(", "!", "this", ".", "match", "||", "string", ".", "match", "(", "this", ".", "match", ")", ")", ")", ";", "}"]
120
+ }
121
+ ```
122
+
123
+ #### php
124
+
125
+ An example of 'train' looks as follows.
126
+ ```
127
+ {
128
+ "id": 0,
129
+ "idx": "maxmin-1",
130
+ "nl_tokens": ["Read", "the", "next", "character", "from", "the", "supplied", "string", ".", "Return", "null", "when", "we", "have", "run", "out", "of", "characters", "."],
131
+ "pl_tokens": ["public", "function", "readOne", "(", ")", "{", "if", "(", "$", "this", "->", "pos", "<=", "$", "this", "->", "<mask>", ")", "{", "$", "value", "=", "$", "this", "->", "string", "[", "$", "this", "->", "pos", "]", ";", "$", "this", "->", "pos", "+=", "1", ";", "}", "else", "{", "$", "value", "=", "null", ";", "}", "return", "$", "value", ";", "}"]
132
+ }
133
+ ```
134
+
135
+ #### python
136
+
137
+ An example of 'train' looks as follows.
138
+ ```
139
+ {
140
+ "id": 0,
141
+ "idx": "maxmin-1",
142
+ "nl_tokens": ["Returns", "intermediary", "colors", "for", "given", "list", "of", "colors", "."],
143
+ "pl_tokens": ["def", "_interpolate", "(", "self", ",", "colors", ",", "n", "=", "100", ")", ":", "gradient", "=", "[", "]", "for", "i", "in", "_range", "(", "n", ")", ":", "l", "=", "len", "(", "colors", ")", "-", "1", "x", "=", "int", "(", "1.0", "*", "i", "/", "n", "*", "l", ")", "x", "=", "<mask>", "(", "x", "+", "0", ",", "l", ")", "y", "=", "min", "(", "x", "+", "1", ",", "l", ")", "base", "=", "1.0", "*", "n", "/", "l", "*", "x", "d", "=", "(", "i", "-", "base", ")", "/", "(", "1.0", "*", "n", "/", "l", ")", "r", "=", "colors", "[", "x", "]", ".", "r", "*", "(", "1", "-", "d", ")", "+", "colors", "[", "y", "]", ".", "r", "*", "d", "g", "=", "colors", "[", "x", "]", ".", "g", "*", "(", "1", "-", "d", ")", "+", "colors", "[", "y", "]", ".", "g", "*", "d", "b", "=", "colors", "[", "x", "]", ".", "b", "*", "(", "1", "-", "d", ")", "+", "colors", "[", "y", "]", ".", "b", "*", "d", "a", "=", "colors", "[", "x", "]", ".", "a", "*", "(", "1", "-", "d", ")", "+", "colors", "[", "y", "]", ".", "a", "*", "d", "gradient", ".", "append", "(", "color", "(", "r", ",", "g", ",", "b", ",", "a", ",", "mode", "=", "\"rgb\"", ")", ")", "gradient", ".", "append", "(", "colors", "[", "-", "1", "]", ")", "return", "gradient"]
144
+ }
145
+ ```
146
+
147
+ #### ruby
148
+
149
+ An example of 'train' looks as follows.
150
+ ```
151
+ {
152
+ "id": 0,
153
+ "idx": "maxmin-1",
154
+ "nl_tokens": ["Delete", "all", "copies", "that", "are", "older", "than", "the", "max", "age", "provided", "in", "seconds", "."],
155
+ "pl_tokens": ["def", "clean", "(", "<mask>", ":", "24", "*", "60", "*", "60", ")", "Futex", ".", "new", "(", "file", ",", "log", ":", "@log", ")", ".", "open", "do", "list", "=", "load", "list", ".", "reject!", "do", "|", "s", "|", "if", "s", "[", ":time", "]", ">=", "Time", ".", "now", "-", "max", "false", "else", "@log", ".", "debug", "(", "\"Copy ##{s[:name]}/#{s[:host]}:#{s[:port]} is too old, over #{Age.new(s[:time])}\"", ")", "true", "end", "end", "save", "(", "list", ")", "deleted", "=", "0", "files", ".", "each", "do", "|", "f", "|", "next", "unless", "list", ".", "find", "{", "|", "s", "|", "s", "[", ":name", "]", "==", "File", ".", "basename", "(", "f", ",", "Copies", "::", "EXT", ")", "}", ".", "nil?", "file", "=", "File", ".", "join", "(", "@dir", ",", "f", ")", "size", "=", "File", ".", "size", "(", "file", ")", "File", ".", "delete", "(", "file", ")", "@log", ".", "debug", "(", "\"Copy at #{f} deleted: #{Size.new(size)}\"", ")", "deleted", "+=", "1", "end", "list", ".", "select!", "do", "|", "s", "|", "cp", "=", "File", ".", "join", "(", "@dir", ",", "\"#{s[:name]}#{Copies::EXT}\"", ")", "wallet", "=", "Wallet", ".", "new", "(", "cp", ")", "begin", "wallet", ".", "refurbish", "raise", "\"Invalid protocol #{wallet.protocol} in #{cp}\"", "unless", "wallet", ".", "protocol", "==", "Zold", "::", "PROTOCOL", "true", "rescue", "StandardError", "=>", "e", "FileUtils", ".", "rm_rf", "(", "cp", ")", "@log", ".", "debug", "(", "\"Copy at #{cp} deleted: #{Backtrace.new(e)}\"", ")", "deleted", "+=", "1", "false", "end", "end", "save", "(", "list", ")", "deleted", "end", "end"]
156
+ }
157
+ ```
158
+
159
+ ### Data Fields
160
+
161
+ In the following each data field in go is explained for each config. The data fields are the same among all splits.
162
+
163
+ #### go, java, javascript, php, python, ruby
164
+
165
+ |field name| type | description |
166
+ |----------|----------------|------------------------------|
167
+ |id |int32 | Index of the sample |
168
+ |idx |string | Original index in the dataset|
169
+ |nl_tokens |Sequence[string]| Natural language tokens |
170
+ |pl_tokens |Sequence[string]| Programming language tokens |
171
+
172
+ ### Data Splits
173
+
174
+ | name |train|
175
+ |----------|----:|
176
+ |go | 152|
177
+ |java | 482|
178
+ |javascript| 272|
179
+ |php | 407|
180
+ |python | 1264|
181
+ |ruby | 38|
182
+
183
+ ## Dataset Creation
184
+
185
+ ### Curation Rationale
186
+
187
+ [More Information Needed]
188
+
189
+ ### Source Data
190
+
191
+ #### Initial Data Collection and Normalization
192
+
193
+ Data from CodeSearchNet Challenge dataset.
194
+ [More Information Needed]
195
+
196
+ #### Who are the source language producers?
197
+
198
+ Software Engineering developers.
199
+
200
+ ### Annotations
201
+
202
+ #### Annotation process
203
+
204
+ [More Information Needed]
205
+
206
+ #### Who are the annotators?
207
+
208
+ [More Information Needed]
209
+
210
+ ### Personal and Sensitive Information
211
+
212
+ [More Information Needed]
213
+
214
+ ## Considerations for Using the Data
215
+
216
+ ### Social Impact of Dataset
217
+
218
+ [More Information Needed]
219
+
220
+ ### Discussion of Biases
221
+
222
+ [More Information Needed]
223
+
224
+ ### Other Known Limitations
225
+
226
+ [More Information Needed]
227
+
228
+ ## Additional Information
229
+
230
+ ### Dataset Curators
231
+
232
+ https://github.com/microsoft, https://github.com/madlag
233
+
234
+ ### Licensing Information
235
+
236
+ Computational Use of Data Agreement (C-UDA) License.
237
+
238
+ ### Citation Information
239
+
240
+ ```
241
+ @article{CodeXGLUE,
242
+ title={CodeXGLUE: An Open Challenge for Code Intelligence},
243
+ journal={arXiv},
244
+ year={2020},
245
+ }
246
+ @article{feng2020codebert,
247
+ title={CodeBERT: A Pre-Trained Model for Programming and Natural Languages},
248
+ author={Feng, Zhangyin and Guo, Daya and Tang, Duyu and Duan, Nan and Feng, Xiaocheng and Gong, Ming and Shou, Linjun and Qin, Bing and Liu, Ting and Jiang, Daxin and others},
249
+ journal={arXiv preprint arXiv:2002.08155},
250
+ year={2020}
251
+ }
252
+ @article{husain2019codesearchnet,
253
+ title={CodeSearchNet Challenge: Evaluating the State of Semantic Code Search},
254
+ author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},
255
+ journal={arXiv preprint arXiv:1909.09436},
256
+ year={2019}
257
+ }
258
+ ```
259
+
260
+ ### Contributions
261
+
262
+ Thanks to @madlag (and partly also @ncoop57) for adding this dataset.
code_x_glue_cc_cloze_testing_maxmin.py ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ from typing import List
3
+
4
+ import datasets
5
+
6
+ from .common import Child
7
+ from .generated_definitions import DEFINITIONS
8
+
9
+
10
+ _DESCRIPTION = """Cloze tests are widely adopted in Natural Languages Processing to evaluate the performance of the trained language models. The task is aimed to predict the answers for the blank with the context of the blank, which can be formulated as a multi-choice classification problem.
11
+ Here we present the two cloze testing datasets in code domain with six different programming languages: ClozeTest-maxmin and ClozeTest-all. Each instance in the dataset contains a masked code function, its docstring and the target word.
12
+ The only difference between ClozeTest-maxmin and ClozeTest-all is their selected words sets, where ClozeTest-maxmin only contains two words while ClozeTest-all contains 930 words."""
13
+
14
+ _CITATION = """@article{CodeXGLUE,
15
+ title={CodeXGLUE: An Open Challenge for Code Intelligence},
16
+ journal={arXiv},
17
+ year={2020},
18
+ }
19
+ @article{feng2020codebert,
20
+ title={CodeBERT: A Pre-Trained Model for Programming and Natural Languages},
21
+ author={Feng, Zhangyin and Guo, Daya and Tang, Duyu and Duan, Nan and Feng, Xiaocheng and Gong, Ming and Shou, Linjun and Qin, Bing and Liu, Ting and Jiang, Daxin and others},
22
+ journal={arXiv preprint arXiv:2002.08155},
23
+ year={2020}
24
+ }
25
+ @article{husain2019codesearchnet,
26
+ title={CodeSearchNet Challenge: Evaluating the State of Semantic Code Search},
27
+ author={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},
28
+ journal={arXiv preprint arXiv:1909.09436},
29
+ year={2019}
30
+ }"""
31
+
32
+
33
+ class CodeXGlueCcClozeTestingImpl(Child):
34
+ _DESCRIPTION = _DESCRIPTION
35
+ _CITATION = _CITATION
36
+
37
+ _FEATURES = {
38
+ "id": datasets.Value("int32"), # Index of the sample
39
+ "idx": datasets.Value("string"), # Original index in the dataset
40
+ "nl_tokens": datasets.features.Sequence(datasets.Value("string")), # Natural language tokens
41
+ "pl_tokens": datasets.features.Sequence(datasets.Value("string")), # Programming language tokens
42
+ }
43
+
44
+ def generate_urls(self, split_name):
45
+ yield "data", "clozeTest.json"
46
+
47
+ def _generate_examples(self, split_name, file_paths):
48
+ with open(file_paths["data"], encoding="utf-8") as f:
49
+ j = json.load(f)
50
+ index = 0
51
+ for entry in j:
52
+ yield index, dict(
53
+ id=index, idx=entry["idx"], nl_tokens=entry["nl_tokens"], pl_tokens=entry["pl_tokens"]
54
+ )
55
+ index += 1
56
+
57
+
58
+ CLASS_MAPPING = {
59
+ "CodeXGlueCcClozeTestingMaxmin": CodeXGlueCcClozeTestingImpl,
60
+ }
61
+
62
+
63
+ class CodeXGlueCcClozeTestingMaxmin(datasets.GeneratorBasedBuilder):
64
+ BUILDER_CONFIG_CLASS = datasets.BuilderConfig
65
+ BUILDER_CONFIGS = [
66
+ datasets.BuilderConfig(name=name, description=info["description"]) for name, info in DEFINITIONS.items()
67
+ ]
68
+
69
+ def _info(self):
70
+ name = self.config.name
71
+ info = DEFINITIONS[name]
72
+ if info["class_name"] in CLASS_MAPPING:
73
+ self.child = CLASS_MAPPING[info["class_name"]](info)
74
+ else:
75
+ raise RuntimeError(f"Unknown python class for dataset configuration {name}")
76
+ ret = self.child._info()
77
+ return ret
78
+
79
+ def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
80
+ return self.child._split_generators(dl_manager=dl_manager)
81
+
82
+ def _generate_examples(self, split_name, file_paths):
83
+ return self.child._generate_examples(split_name, file_paths)
common.py ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import List
2
+
3
+ import datasets
4
+
5
+
6
+ # Citation, taken from https://github.com/microsoft/CodeXGLUE
7
+ _DEFAULT_CITATION = """@article{CodeXGLUE,
8
+ title={CodeXGLUE: A Benchmark Dataset and Open Challenge for Code Intelligence},
9
+ year={2020},}"""
10
+
11
+
12
+ class Child:
13
+ _DESCRIPTION = None
14
+ _FEATURES = None
15
+ _CITATION = None
16
+ SPLITS = {"train": datasets.Split.TRAIN}
17
+ _SUPERVISED_KEYS = None
18
+
19
+ def __init__(self, info):
20
+ self.info = info
21
+
22
+ def homepage(self):
23
+ return self.info["project_url"]
24
+
25
+ def _info(self):
26
+ # This is the description that will appear on the datasets page.
27
+ return datasets.DatasetInfo(
28
+ description=self.info["description"] + "\n\n" + self._DESCRIPTION,
29
+ features=datasets.Features(self._FEATURES),
30
+ homepage=self.homepage(),
31
+ citation=self._CITATION or _DEFAULT_CITATION,
32
+ supervised_keys=self._SUPERVISED_KEYS,
33
+ )
34
+
35
+ def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
36
+ SPLITS = self.SPLITS
37
+ _URL = self.info["raw_url"]
38
+ urls_to_download = {}
39
+ for split in SPLITS:
40
+ if split not in urls_to_download:
41
+ urls_to_download[split] = {}
42
+
43
+ for key, url in self.generate_urls(split):
44
+ if not url.startswith("http"):
45
+ url = _URL + "/" + url
46
+ urls_to_download[split][key] = url
47
+
48
+ downloaded_files = {}
49
+ for k, v in urls_to_download.items():
50
+ downloaded_files[k] = dl_manager.download_and_extract(v)
51
+
52
+ return [
53
+ datasets.SplitGenerator(
54
+ name=SPLITS[k],
55
+ gen_kwargs={"split_name": k, "file_paths": downloaded_files[k]},
56
+ )
57
+ for k in SPLITS
58
+ ]
59
+
60
+ def check_empty(self, entries):
61
+ all_empty = all([v == "" for v in entries.values()])
62
+ all_non_empty = all([v != "" for v in entries.values()])
63
+
64
+ if not all_non_empty and not all_empty:
65
+ raise RuntimeError("Parallel data files should have the same number of lines.")
66
+
67
+ return all_empty
68
+
69
+
70
+ class TrainValidTestChild(Child):
71
+ SPLITS = {
72
+ "train": datasets.Split.TRAIN,
73
+ "valid": datasets.Split.VALIDATION,
74
+ "test": datasets.Split.TEST,
75
+ }
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"go": {"description": "CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin\n\nCloze tests are widely adopted in Natural Languages Processing to evaluate the performance of the trained language models. The task is aimed to predict the answers for the blank with the context of the blank, which can be formulated as a multi-choice classification problem.\nHere we present the two cloze testing datasets in code domain with six different programming languages: ClozeTest-maxmin and ClozeTest-all. Each instance in the dataset contains a masked code function, its docstring and the target word.\nThe only difference between ClozeTest-maxmin and ClozeTest-all is their selected words sets, where ClozeTest-maxmin only contains two words while ClozeTest-all contains 930 words.", "citation": "@article{CodeXGLUE,\ntitle={CodeXGLUE: An Open Challenge for Code Intelligence},\njournal={arXiv},\nyear={2020},\n}\n@article{feng2020codebert,\ntitle={CodeBERT: A Pre-Trained Model for Programming and Natural Languages},\nauthor={Feng, Zhangyin and Guo, Daya and Tang, Duyu and Duan, Nan and Feng, Xiaocheng and Gong, Ming and Shou, Linjun and Qin, Bing and Liu, Ting and Jiang, Daxin and others},\njournal={arXiv preprint arXiv:2002.08155},\nyear={2020}\n}\n@article{husain2019codesearchnet,\ntitle={CodeSearchNet Challenge: Evaluating the State of Semantic Code Search},\nauthor={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\njournal={arXiv preprint arXiv:1909.09436},\nyear={2019}\n}", "homepage": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "idx": {"dtype": "string", "id": null, "_type": "Value"}, "nl_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pl_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "code_x_glue_cc_cloze_testing_maxmin", "config_name": "go", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 204997, "num_examples": 152, "dataset_name": "code_x_glue_cc_cloze_testing_maxmin"}}, "download_checksums": {"https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/ClozeTesting-maxmin/data/cloze-maxmin/go/clozeTest.json": {"num_bytes": 298893, "checksum": "9b0ba35b614b7b93c537ed52c88d89ca02e186022086c9bb41323eb4342eecf9"}}, "download_size": 298893, "post_processing_size": null, "dataset_size": 204997, "size_in_bytes": 503890}, "java": {"description": "CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin\n\nCloze tests are widely adopted in Natural Languages Processing to evaluate the performance of the trained language models. The task is aimed to predict the answers for the blank with the context of the blank, which can be formulated as a multi-choice classification problem.\nHere we present the two cloze testing datasets in code domain with six different programming languages: ClozeTest-maxmin and ClozeTest-all. Each instance in the dataset contains a masked code function, its docstring and the target word.\nThe only difference between ClozeTest-maxmin and ClozeTest-all is their selected words sets, where ClozeTest-maxmin only contains two words while ClozeTest-all contains 930 words.", "citation": "@article{CodeXGLUE,\ntitle={CodeXGLUE: An Open Challenge for Code Intelligence},\njournal={arXiv},\nyear={2020},\n}\n@article{feng2020codebert,\ntitle={CodeBERT: A Pre-Trained Model for Programming and Natural Languages},\nauthor={Feng, Zhangyin and Guo, Daya and Tang, Duyu and Duan, Nan and Feng, Xiaocheng and Gong, Ming and Shou, Linjun and Qin, Bing and Liu, Ting and Jiang, Daxin and others},\njournal={arXiv preprint arXiv:2002.08155},\nyear={2020}\n}\n@article{husain2019codesearchnet,\ntitle={CodeSearchNet Challenge: Evaluating the State of Semantic Code Search},\nauthor={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\njournal={arXiv preprint arXiv:1909.09436},\nyear={2019}\n}", "homepage": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "idx": {"dtype": "string", "id": null, "_type": "Value"}, "nl_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pl_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "code_x_glue_cc_cloze_testing_maxmin", "config_name": "java", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 785754, "num_examples": 482, "dataset_name": "code_x_glue_cc_cloze_testing_maxmin"}}, "download_checksums": {"https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/ClozeTesting-maxmin/data/cloze-maxmin/java/clozeTest.json": {"num_bytes": 1097733, "checksum": "ee2e7b0ad7d75ecb5e53b668f04fb39bdcebbacda820220b9bbb093136dd4082"}}, "download_size": 1097733, "post_processing_size": null, "dataset_size": 785754, "size_in_bytes": 1883487}, "javascript": {"description": "CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin\n\nCloze tests are widely adopted in Natural Languages Processing to evaluate the performance of the trained language models. The task is aimed to predict the answers for the blank with the context of the blank, which can be formulated as a multi-choice classification problem.\nHere we present the two cloze testing datasets in code domain with six different programming languages: ClozeTest-maxmin and ClozeTest-all. Each instance in the dataset contains a masked code function, its docstring and the target word.\nThe only difference between ClozeTest-maxmin and ClozeTest-all is their selected words sets, where ClozeTest-maxmin only contains two words while ClozeTest-all contains 930 words.", "citation": "@article{CodeXGLUE,\ntitle={CodeXGLUE: An Open Challenge for Code Intelligence},\njournal={arXiv},\nyear={2020},\n}\n@article{feng2020codebert,\ntitle={CodeBERT: A Pre-Trained Model for Programming and Natural Languages},\nauthor={Feng, Zhangyin and Guo, Daya and Tang, Duyu and Duan, Nan and Feng, Xiaocheng and Gong, Ming and Shou, Linjun and Qin, Bing and Liu, Ting and Jiang, Daxin and others},\njournal={arXiv preprint arXiv:2002.08155},\nyear={2020}\n}\n@article{husain2019codesearchnet,\ntitle={CodeSearchNet Challenge: Evaluating the State of Semantic Code Search},\nauthor={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\njournal={arXiv preprint arXiv:1909.09436},\nyear={2019}\n}", "homepage": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "idx": {"dtype": "string", "id": null, "_type": "Value"}, "nl_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pl_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "code_x_glue_cc_cloze_testing_maxmin", "config_name": "javascript", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 594347, "num_examples": 272, "dataset_name": "code_x_glue_cc_cloze_testing_maxmin"}}, "download_checksums": {"https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/ClozeTesting-maxmin/data/cloze-maxmin/javascript/clozeTest.json": {"num_bytes": 836112, "checksum": "8517b7b0ecfcc59ccb19c3253a907e6b4f65549e4b68a8ac249807e50a001204"}}, "download_size": 836112, "post_processing_size": null, "dataset_size": 594347, "size_in_bytes": 1430459}, "php": {"description": "CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin\n\nCloze tests are widely adopted in Natural Languages Processing to evaluate the performance of the trained language models. The task is aimed to predict the answers for the blank with the context of the blank, which can be formulated as a multi-choice classification problem.\nHere we present the two cloze testing datasets in code domain with six different programming languages: ClozeTest-maxmin and ClozeTest-all. Each instance in the dataset contains a masked code function, its docstring and the target word.\nThe only difference between ClozeTest-maxmin and ClozeTest-all is their selected words sets, where ClozeTest-maxmin only contains two words while ClozeTest-all contains 930 words.", "citation": "@article{CodeXGLUE,\ntitle={CodeXGLUE: An Open Challenge for Code Intelligence},\njournal={arXiv},\nyear={2020},\n}\n@article{feng2020codebert,\ntitle={CodeBERT: A Pre-Trained Model for Programming and Natural Languages},\nauthor={Feng, Zhangyin and Guo, Daya and Tang, Duyu and Duan, Nan and Feng, Xiaocheng and Gong, Ming and Shou, Linjun and Qin, Bing and Liu, Ting and Jiang, Daxin and others},\njournal={arXiv preprint arXiv:2002.08155},\nyear={2020}\n}\n@article{husain2019codesearchnet,\ntitle={CodeSearchNet Challenge: Evaluating the State of Semantic Code Search},\nauthor={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\njournal={arXiv preprint arXiv:1909.09436},\nyear={2019}\n}", "homepage": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "idx": {"dtype": "string", "id": null, "_type": "Value"}, "nl_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pl_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "code_x_glue_cc_cloze_testing_maxmin", "config_name": "php", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 705477, "num_examples": 407, "dataset_name": "code_x_glue_cc_cloze_testing_maxmin"}}, "download_checksums": {"https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/ClozeTesting-maxmin/data/cloze-maxmin/php/clozeTest.json": {"num_bytes": 1010305, "checksum": "37a7dd759eca7fa8076d2b9a2ab3991774728555dd7568a3e54b0a152d2c10b8"}}, "download_size": 1010305, "post_processing_size": null, "dataset_size": 705477, "size_in_bytes": 1715782}, "python": {"description": "CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin\n\nCloze tests are widely adopted in Natural Languages Processing to evaluate the performance of the trained language models. The task is aimed to predict the answers for the blank with the context of the blank, which can be formulated as a multi-choice classification problem.\nHere we present the two cloze testing datasets in code domain with six different programming languages: ClozeTest-maxmin and ClozeTest-all. Each instance in the dataset contains a masked code function, its docstring and the target word.\nThe only difference between ClozeTest-maxmin and ClozeTest-all is their selected words sets, where ClozeTest-maxmin only contains two words while ClozeTest-all contains 930 words.", "citation": "@article{CodeXGLUE,\ntitle={CodeXGLUE: An Open Challenge for Code Intelligence},\njournal={arXiv},\nyear={2020},\n}\n@article{feng2020codebert,\ntitle={CodeBERT: A Pre-Trained Model for Programming and Natural Languages},\nauthor={Feng, Zhangyin and Guo, Daya and Tang, Duyu and Duan, Nan and Feng, Xiaocheng and Gong, Ming and Shou, Linjun and Qin, Bing and Liu, Ting and Jiang, Daxin and others},\njournal={arXiv preprint arXiv:2002.08155},\nyear={2020}\n}\n@article{husain2019codesearchnet,\ntitle={CodeSearchNet Challenge: Evaluating the State of Semantic Code Search},\nauthor={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\njournal={arXiv preprint arXiv:1909.09436},\nyear={2019}\n}", "homepage": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "idx": {"dtype": "string", "id": null, "_type": "Value"}, "nl_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pl_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "code_x_glue_cc_cloze_testing_maxmin", "config_name": "python", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 2566353, "num_examples": 1264, "dataset_name": "code_x_glue_cc_cloze_testing_maxmin"}}, "download_checksums": {"https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/ClozeTesting-maxmin/data/cloze-maxmin/python/clozeTest.json": {"num_bytes": 3577929, "checksum": "98cbdaf5900a343d2017aa1b7144a8ee75eac3d0c3ad40812abd7b72fd892e72"}}, "download_size": 3577929, "post_processing_size": null, "dataset_size": 2566353, "size_in_bytes": 6144282}, "ruby": {"description": "CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin\n\nCloze tests are widely adopted in Natural Languages Processing to evaluate the performance of the trained language models. The task is aimed to predict the answers for the blank with the context of the blank, which can be formulated as a multi-choice classification problem.\nHere we present the two cloze testing datasets in code domain with six different programming languages: ClozeTest-maxmin and ClozeTest-all. Each instance in the dataset contains a masked code function, its docstring and the target word.\nThe only difference between ClozeTest-maxmin and ClozeTest-all is their selected words sets, where ClozeTest-maxmin only contains two words while ClozeTest-all contains 930 words.", "citation": "@article{CodeXGLUE,\ntitle={CodeXGLUE: An Open Challenge for Code Intelligence},\njournal={arXiv},\nyear={2020},\n}\n@article{feng2020codebert,\ntitle={CodeBERT: A Pre-Trained Model for Programming and Natural Languages},\nauthor={Feng, Zhangyin and Guo, Daya and Tang, Duyu and Duan, Nan and Feng, Xiaocheng and Gong, Ming and Shou, Linjun and Qin, Bing and Liu, Ting and Jiang, Daxin and others},\njournal={arXiv preprint arXiv:2002.08155},\nyear={2020}\n}\n@article{husain2019codesearchnet,\ntitle={CodeSearchNet Challenge: Evaluating the State of Semantic Code Search},\nauthor={Husain, Hamel and Wu, Ho-Hsiang and Gazit, Tiferet and Allamanis, Miltiadis and Brockschmidt, Marc},\njournal={arXiv preprint arXiv:1909.09436},\nyear={2019}\n}", "homepage": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "idx": {"dtype": "string", "id": null, "_type": "Value"}, "nl_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "pl_tokens": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "code_x_glue_cc_cloze_testing_maxmin", "config_name": "ruby", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 48946, "num_examples": 38, "dataset_name": "code_x_glue_cc_cloze_testing_maxmin"}}, "download_checksums": {"https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/ClozeTesting-maxmin/data/cloze-maxmin/ruby/clozeTest.json": {"num_bytes": 67675, "checksum": "d3c71ae0127b653ee551da3e6a5eea17434c38cc4b2d6349d529e8e37ae4f9d2"}}, "download_size": 67675, "post_processing_size": null, "dataset_size": 48946, "size_in_bytes": 116621}}
dummy/go/0.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa82bbccc3838b66b974baa69b61eb73f5a1edcc8235a162a02fb8b0313fdab5
3
+ size 1665
dummy/java/0.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93397768a9edf19342ceea02fd8619a8918367d9e48419b66ad15569a6e6145e
3
+ size 3193
dummy/javascript/0.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f15ad564bf1d573915abdec225c5284940e7af3c05e9552da0405b4fcb4d79f
3
+ size 2562
dummy/php/0.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c941136b7ca5751b1f147fb853e325605d1746c3c0d88a49bdc6959fe566add
3
+ size 1476
dummy/python/0.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9dbc12ffb6364d7aed40905d793906d3493f8c6759f6644dc1ed53acd97c145
3
+ size 2492
dummy/ruby/0.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9245f85a03cdfb384c8578b880bbba20b0cc2b6417ccebf7fe0181defbb3a443
3
+ size 2027
generated_definitions.py ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ DEFINITIONS = {
2
+ "go": {
3
+ "class_name": "CodeXGlueCcClozeTestingMaxmin",
4
+ "dataset_type": "Code-Code",
5
+ "description": "CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin",
6
+ "dir_name": "ClozeTesting-maxmin",
7
+ "name": "go",
8
+ "parameters": {"language": "go"},
9
+ "project_url": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin",
10
+ "raw_url": "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/ClozeTesting-maxmin/data/cloze-maxmin/go",
11
+ "sizes": {"train": 152},
12
+ },
13
+ "java": {
14
+ "class_name": "CodeXGlueCcClozeTestingMaxmin",
15
+ "dataset_type": "Code-Code",
16
+ "description": "CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin",
17
+ "dir_name": "ClozeTesting-maxmin",
18
+ "name": "java",
19
+ "parameters": {"language": "java"},
20
+ "project_url": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin",
21
+ "raw_url": "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/ClozeTesting-maxmin/data/cloze-maxmin/java",
22
+ "sizes": {"train": 482},
23
+ },
24
+ "javascript": {
25
+ "class_name": "CodeXGlueCcClozeTestingMaxmin",
26
+ "dataset_type": "Code-Code",
27
+ "description": "CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin",
28
+ "dir_name": "ClozeTesting-maxmin",
29
+ "name": "javascript",
30
+ "parameters": {"language": "javascript"},
31
+ "project_url": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin",
32
+ "raw_url": "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/ClozeTesting-maxmin/data/cloze-maxmin/javascript",
33
+ "sizes": {"train": 272},
34
+ },
35
+ "php": {
36
+ "class_name": "CodeXGlueCcClozeTestingMaxmin",
37
+ "dataset_type": "Code-Code",
38
+ "description": "CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin",
39
+ "dir_name": "ClozeTesting-maxmin",
40
+ "name": "php",
41
+ "parameters": {"language": "php"},
42
+ "project_url": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin",
43
+ "raw_url": "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/ClozeTesting-maxmin/data/cloze-maxmin/php",
44
+ "sizes": {"train": 407},
45
+ },
46
+ "python": {
47
+ "class_name": "CodeXGlueCcClozeTestingMaxmin",
48
+ "dataset_type": "Code-Code",
49
+ "description": "CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin",
50
+ "dir_name": "ClozeTesting-maxmin",
51
+ "name": "python",
52
+ "parameters": {"language": "python"},
53
+ "project_url": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin",
54
+ "raw_url": "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/ClozeTesting-maxmin/data/cloze-maxmin/python",
55
+ "sizes": {"train": 1264},
56
+ },
57
+ "ruby": {
58
+ "class_name": "CodeXGlueCcClozeTestingMaxmin",
59
+ "dataset_type": "Code-Code",
60
+ "description": "CodeXGLUE ClozeTesting-maxmin dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin",
61
+ "dir_name": "ClozeTesting-maxmin",
62
+ "name": "ruby",
63
+ "parameters": {"language": "ruby"},
64
+ "project_url": "https://github.com/madlag/CodeXGLUE/tree/main/Code-Code/ClozeTesting-maxmin",
65
+ "raw_url": "https://raw.githubusercontent.com/madlag/CodeXGLUE/main/Code-Code/ClozeTesting-maxmin/data/cloze-maxmin/ruby",
66
+ "sizes": {"train": 38},
67
+ },
68
+ }