Datasets:
Size:
1M<n<10M
ArXiv:
Tags:
programming-language
code
program-synthesis
automatic-code-repair
code-retrieval
code-translation
License:
Update loader.py
Browse files
loader.py
CHANGED
@@ -1,6 +1,51 @@
|
|
1 |
-
|
2 |
import datasets
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
prog_synthesis_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "program_synthesis")
|
5 |
code_translation_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "code_translation")
|
6 |
tag_classification_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "tag_classification")
|
|
|
|
|
1 |
import datasets
|
2 |
|
3 |
+
SHORT_LANG_MAP = {
|
4 |
+
"GNU C++": "C++",
|
5 |
+
"GNU C++17": "C++",
|
6 |
+
"MS C++ 2017": "C++",
|
7 |
+
"MS C++": "C++",
|
8 |
+
"Java 8": "Java",
|
9 |
+
"Java 6": "Java",
|
10 |
+
"GNU C++11": "C++",
|
11 |
+
"Java 11": "Java",
|
12 |
+
"GNU C++14": "C++",
|
13 |
+
"Mono C#": "C#",
|
14 |
+
"GNU C": "C",
|
15 |
+
"Python 3": "Python",
|
16 |
+
"PyPy 3": "Python",
|
17 |
+
"GNU C11": "C",
|
18 |
+
"Go": "Go",
|
19 |
+
"Rust": "Rust",
|
20 |
+
"PyPy 2": "Python",
|
21 |
+
"Python 2": "Python",
|
22 |
+
"MS C#": "C#",
|
23 |
+
"Kotlin": "Kotlin",
|
24 |
+
"GNU C++0x": "C++",
|
25 |
+
"Java 7": "Java",
|
26 |
+
"Node.js": "Javascript",
|
27 |
+
".NET Core C#": "C#",
|
28 |
+
"PHP": "PHP",
|
29 |
+
"GNU C++17 Diagnostics": "C++",
|
30 |
+
"Clang++17 Diagnostics": "C++",
|
31 |
+
"JavaScript": "Javascript",
|
32 |
+
"Ruby": "Ruby",
|
33 |
+
"C# 10": "C#",
|
34 |
+
"C# 8": "C#",
|
35 |
+
"Clang++20 Diagnostics": "C++",
|
36 |
+
"GNU C++17 (64)": "C++",
|
37 |
+
"GNU C++20 (64)": "C++",
|
38 |
+
"Java 17": "Java",
|
39 |
+
"Kotlin 1.4": "Kotlin",
|
40 |
+
"Kotlin 1.5": "Kotlin",
|
41 |
+
"Kotlin 1.6": "Kotlin",
|
42 |
+
"Kotlin 1.7": "Kotlin",
|
43 |
+
"PyPy 3-64": "Python",
|
44 |
+
"Python 3 + libs": "Python",
|
45 |
+
"Ruby 3": "Ruby",
|
46 |
+
"Rust 2021": "Rust",
|
47 |
+
}
|
48 |
+
|
49 |
prog_synthesis_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "program_synthesis")
|
50 |
code_translation_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "code_translation")
|
51 |
tag_classification_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "tag_classification")
|