---
configs:
- config_name: dl_trans
data_files:
- split: train
path: "CodeTrans Datasets/DLTrans/dl_train.json"
- split: validation
path: "CodeTrans Datasets/DLTrans/dl_valid.json"
- split: test
path: "CodeTrans Datasets/DLTrans/dl_test.json"
- config_name: llm_trans
data_files: "CodeTrans Datasets/LLMTrans/LLMTrans.json"
- config_name: multilingual_trans
data_files:
- split: train
path: "CodeTrans Datasets/MultilingualTrans/multilingual_train.json"
- split: validation
path: "CodeTrans Datasets/MultilingualTrans/multilingual_valid.json"
- split: test
path: "CodeTrans Datasets/MultilingualTrans/multilingual_test.json"
- config_name: niche_trans
data_files:
- split: train
path: "CodeTrans Datasets/NicheTrans/niche_train.json"
- split: validation
path: "CodeTrans Datasets/NicheTrans/niche_valid.json"
- split: test
path: "CodeTrans Datasets/NicheTrans/niche_test.json"
---
---
license: apache-2.0
---
### This is an exact copy of the dataset from the original github repo: https://github.com/WeixiangYAN/CodeTransOcean.git
# [CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translation](https://arxiv.org/abs/2310.04951)
**CodeTransOcean**, a large-scale comprehensive benchmark that supports the largest variety of programming languages for code translation. CodeTransOcean consists of three novel multilingual datasets, namely, **MultilingualTrans** supporting translations between multiple popular programming languages, **NicheTrans** for translating between niche programming languages and popular ones, and **LLMTrans** for evaluating executability of translated code by large language models (LLMs). CodeTransOcean also includes a novel cross-framework dataset, **DLTrans**, for translating deep learning code across different frameworks.
## Datasets
🤗[Hugging Face](https://huggingface.co/datasets/Owos/CodeTransOcean-copy) or [Google Drive](https://drive.google.com/file/d/1xw6Edqf_nknKoei_LC49n4EtvNQezKGe/view?usp=sharing)
## Code
The MultilingualTrans, NicheTrans, and DLTrans datasets were experimented with on CodeT5+, and the code is in the [CodeT5+](https://github.com/WeixiangYAN/CodeTransOcean/tree/main/CodeT5%2B) file.
The LLMTrans dataset was experimented with on GPT-3.5, and the code is in the [ChatGPT](https://github.com/WeixiangYAN/CodeTransOcean/tree/main/ChatGPT) file.
## Citation
Please cite the paper if you use the data or code from CodeTransOcean.
```
@article{yan2023codetransocean,
title={CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translation},
author={Yan, Weixiang and Tian, Yuchen and Li, Yunzhe and Chen, Qian and Wang, Wen},
journal={arXiv preprint arXiv:2310.04951},
year={2023}
}
```
## Contact
For questions, please feel free to reach out via email at ``yanweixiang.ywx@gmail.com``.