xCodeEval / loader.py
sbmaruf's picture
Update loader.py
49161aa
raw
history blame
1.83 kB
import datasets
SHORT_LANG_MAP = {
"GNU C++": "C++",
"GNU C++17": "C++",
"MS C++ 2017": "C++",
"MS C++": "C++",
"Java 8": "Java",
"Java 6": "Java",
"GNU C++11": "C++",
"Java 11": "Java",
"GNU C++14": "C++",
"Mono C#": "C#",
"GNU C": "C",
"Python 3": "Python",
"PyPy 3": "Python",
"GNU C11": "C",
"Go": "Go",
"Rust": "Rust",
"PyPy 2": "Python",
"Python 2": "Python",
"MS C#": "C#",
"Kotlin": "Kotlin",
"GNU C++0x": "C++",
"Java 7": "Java",
"Node.js": "Javascript",
".NET Core C#": "C#",
"PHP": "PHP",
"GNU C++17 Diagnostics": "C++",
"Clang++17 Diagnostics": "C++",
"JavaScript": "Javascript",
"Ruby": "Ruby",
"C# 10": "C#",
"C# 8": "C#",
"Clang++20 Diagnostics": "C++",
"GNU C++17 (64)": "C++",
"GNU C++20 (64)": "C++",
"Java 17": "Java",
"Kotlin 1.4": "Kotlin",
"Kotlin 1.5": "Kotlin",
"Kotlin 1.6": "Kotlin",
"Kotlin 1.7": "Kotlin",
"PyPy 3-64": "Python",
"Python 3 + libs": "Python",
"Ruby 3": "Ruby",
"Rust 2021": "Rust",
}
prog_synthesis_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "program_synthesis")
code_translation_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "code_translation")
tag_classification_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "tag_classification")
apr_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "apr")
pcode_compilation_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "code_compilation")
retrieval_code_code_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "retrieval_code_code")
retrieval_nl_code_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "retrieval_nl_code")
retrieval_corpus_dataset = datasets.load_dataset("NTU-NLP-sg/xCodeEval", "retrieval_corpus")