Kusshal parquet-converter commited on
Commit
fb0cbee
·
0 Parent(s):

Duplicate from google/code_x_glue_cc_clone_detection_big_clone_bench

Browse files

Co-authored-by: Parquet-converter (BOT) <parquet-converter@users.noreply.huggingface.co>

.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,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - found
4
+ language_creators:
5
+ - found
6
+ language:
7
+ - code
8
+ license:
9
+ - c-uda
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 1M<n<10M
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - text-classification
18
+ task_ids:
19
+ - semantic-similarity-classification
20
+ pretty_name: CodeXGlueCcCloneDetectionBigCloneBench
21
+ dataset_info:
22
+ features:
23
+ - name: id
24
+ dtype: int32
25
+ - name: id1
26
+ dtype: int32
27
+ - name: id2
28
+ dtype: int32
29
+ - name: func1
30
+ dtype: string
31
+ - name: func2
32
+ dtype: string
33
+ - name: label
34
+ dtype: bool
35
+ splits:
36
+ - name: train
37
+ num_bytes: 2888035029
38
+ num_examples: 901028
39
+ - name: validation
40
+ num_bytes: 1371399358
41
+ num_examples: 415416
42
+ - name: test
43
+ num_bytes: 1220662565
44
+ num_examples: 415416
45
+ download_size: 1279275281
46
+ dataset_size: 5480096952
47
+ configs:
48
+ - config_name: default
49
+ data_files:
50
+ - split: train
51
+ path: data/train-*
52
+ - split: validation
53
+ path: data/validation-*
54
+ - split: test
55
+ path: data/test-*
56
+ ---
57
+ # Dataset Card for "code_x_glue_cc_clone_detection_big_clone_bench"
58
+
59
+ ## Table of Contents
60
+ - [Dataset Description](#dataset-description)
61
+ - [Dataset Summary](#dataset-summary)
62
+ - [Supported Tasks and Leaderboards](#supported-tasks)
63
+ - [Languages](#languages)
64
+ - [Dataset Structure](#dataset-structure)
65
+ - [Data Instances](#data-instances)
66
+ - [Data Fields](#data-fields)
67
+ - [Data Splits](#data-splits-sample-size)
68
+ - [Dataset Creation](#dataset-creation)
69
+ - [Curation Rationale](#curation-rationale)
70
+ - [Source Data](#source-data)
71
+ - [Annotations](#annotations)
72
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
73
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
74
+ - [Social Impact of Dataset](#social-impact-of-dataset)
75
+ - [Discussion of Biases](#discussion-of-biases)
76
+ - [Other Known Limitations](#other-known-limitations)
77
+ - [Additional Information](#additional-information)
78
+ - [Dataset Curators](#dataset-curators)
79
+ - [Licensing Information](#licensing-information)
80
+ - [Citation Information](#citation-information)
81
+ - [Contributions](#contributions)
82
+
83
+ ## Dataset Description
84
+
85
+ - **Homepage:** https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/Clone-detection-BigCloneBench
86
+
87
+ ### Dataset Summary
88
+
89
+ CodeXGLUE Clone-detection-BigCloneBench dataset, available at https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/Clone-detection-BigCloneBench
90
+
91
+ Given two codes as the input, the task is to do binary classification (0/1), where 1 stands for semantic equivalence and 0 for others. Models are evaluated by F1 score.
92
+ The dataset we use is BigCloneBench and filtered following the paper Detecting Code Clones with Graph Neural Network and Flow-Augmented Abstract Syntax Tree.
93
+
94
+ ### Supported Tasks and Leaderboards
95
+
96
+ - `semantic-similarity-classification`: The dataset can be used to train a model for classifying if two given java methods are cloens of each other.
97
+
98
+ ### Languages
99
+
100
+ - Java **programming** language
101
+
102
+ ## Dataset Structure
103
+
104
+ ### Data Instances
105
+
106
+ An example of 'test' looks as follows.
107
+ ```
108
+ {
109
+ "func1": " @Test(expected = GadgetException.class)\n public void malformedGadgetSpecIsCachedAndThrows() throws Exception {\n HttpRequest request = createCacheableRequest();\n expect(pipeline.execute(request)).andReturn(new HttpResponse(\"malformed junk\")).once();\n replay(pipeline);\n try {\n specFactory.getGadgetSpec(createContext(SPEC_URL, false));\n fail(\"No exception thrown on bad parse\");\n } catch (GadgetException e) {\n }\n specFactory.getGadgetSpec(createContext(SPEC_URL, false));\n }\n",
110
+ "func2": " public InputStream getInputStream() throws TGBrowserException {\n try {\n if (!this.isFolder()) {\n URL url = new URL(this.url);\n InputStream stream = url.openStream();\n return stream;\n }\n } catch (Throwable throwable) {\n throw new TGBrowserException(throwable);\n }\n return null;\n }\n",
111
+ "id": 0,
112
+ "id1": 2381663,
113
+ "id2": 4458076,
114
+ "label": false
115
+ }
116
+ ```
117
+
118
+ ### Data Fields
119
+
120
+ In the following each data field in go is explained for each config. The data fields are the same among all splits.
121
+
122
+ #### default
123
+
124
+ |field name| type | description |
125
+ |----------|------|---------------------------------------------------|
126
+ |id |int32 | Index of the sample |
127
+ |id1 |int32 | The first function id |
128
+ |id2 |int32 | The second function id |
129
+ |func1 |string| The full text of the first function |
130
+ |func2 |string| The full text of the second function |
131
+ |label |bool | 1 is the functions are not equivalent, 0 otherwise|
132
+
133
+ ### Data Splits
134
+
135
+ | name |train |validation| test |
136
+ |-------|-----:|---------:|-----:|
137
+ |default|901028| 415416|415416|
138
+
139
+ ## Dataset Creation
140
+
141
+ ### Curation Rationale
142
+
143
+ [More Information Needed]
144
+
145
+ ### Source Data
146
+
147
+ #### Initial Data Collection and Normalization
148
+
149
+ Data was mined from the IJaDataset 2.0 dataset.
150
+ [More Information Needed]
151
+
152
+ #### Who are the source language producers?
153
+
154
+ [More Information Needed]
155
+
156
+ ### Annotations
157
+
158
+ #### Annotation process
159
+
160
+ Data was manually labeled by three judges by automatically identifying potential clones using search heuristics.
161
+ [More Information Needed]
162
+
163
+ #### Who are the annotators?
164
+
165
+ [More Information Needed]
166
+
167
+ ### Personal and Sensitive Information
168
+
169
+ [More Information Needed]
170
+
171
+ ## Considerations for Using the Data
172
+
173
+ ### Social Impact of Dataset
174
+
175
+ [More Information Needed]
176
+
177
+ ### Discussion of Biases
178
+
179
+ Most of the clones are type 1 and 2 with type 3 and especially type 4 being rare.
180
+
181
+ [More Information Needed]
182
+
183
+ ### Other Known Limitations
184
+
185
+ [More Information Needed]
186
+
187
+ ## Additional Information
188
+
189
+ ### Dataset Curators
190
+
191
+ https://github.com/microsoft, https://github.com/madlag
192
+
193
+ ### Licensing Information
194
+
195
+ Computational Use of Data Agreement (C-UDA) License.
196
+
197
+ ### Citation Information
198
+
199
+ ```
200
+ @inproceedings{svajlenko2014towards,
201
+ title={Towards a big data curated benchmark of inter-project code clones},
202
+ author={Svajlenko, Jeffrey and Islam, Judith F and Keivanloo, Iman and Roy, Chanchal K and Mia, Mohammad Mamun},
203
+ booktitle={2014 IEEE International Conference on Software Maintenance and Evolution},
204
+ pages={476--480},
205
+ year={2014},
206
+ organization={IEEE}
207
+ }
208
+
209
+ @inproceedings{wang2020detecting,
210
+ title={Detecting Code Clones with Graph Neural Network and Flow-Augmented Abstract Syntax Tree},
211
+ author={Wang, Wenhan and Li, Ge and Ma, Bo and Xia, Xin and Jin, Zhi},
212
+ booktitle={2020 IEEE 27th International Conference on Software Analysis, Evolution and Reengineering (SANER)},
213
+ pages={261--271},
214
+ year={2020},
215
+ organization={IEEE}
216
+ }
217
+ ```
218
+
219
+ ### Contributions
220
+
221
+ Thanks to @madlag (and partly also @ncoop57) for adding this dataset.
data/test-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa6070bbcf222e8820ffd54394c58fd7415a3047b53a8600c26f13fcc2d3e237
3
+ size 73274624
data/test-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3041c74294df1cf3dedef1f1e8cd48ec8b5fac4f9f8ce3f2cf23fa89b8c0e22f
3
+ size 73531556
data/test-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cabaa1a2baec5704465960dbac045ef6a1e9ea321b1282cc00d1d239c2e434d5
3
+ size 73451480
data/train-00000-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e697520aa623001cdead968ea33dbedc151eab09a799edc9a97e8f41737d97c2
3
+ size 135781192
data/train-00001-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14d12e9a8d668c3653fb40a315a05dc125e21d5a4bcda877784d6948efa8a308
3
+ size 141782535
data/train-00002-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25fc34400a381b530c9aa5e018c1b376116a31fb6d957e67c07eb29499391700
3
+ size 136258214
data/train-00003-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9628497bef6e09c95ebec0b1c1420ef26975aa97c544607fb2cc424fc889a54
3
+ size 135629068
data/train-00004-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1f9e30aa06db2a4bc38b2f27e087c930d1339c276890927f66ea860f2619735
3
+ size 135570525
data/train-00005-of-00006.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0987845a65b404e24b5f872a0d317f7dea05ff348494fec1f70facd6cad5107f
3
+ size 135937619
data/validation-00000-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78977bd996d61415ba5a264d48df3cb7f37217ebbdc133c1135a570c88e84fe8
3
+ size 79253146
data/validation-00001-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80d7d626a51e55aafd30f52a2ca3d5d3421f9659dbaa9f89516044e9ce7fbf67
3
+ size 79386757
data/validation-00002-of-00003.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc34145b23539b34f86d05c62119d123287f128933217c7c4f3e92be1a0b3f92
3
+ size 79418565