Skip to content

Reference implementation of the master's thesis "Analysis and Optimization of Unsupervised Code-to-Code Translation"

License

Notifications You must be signed in to change notification settings

yakuhzi/c2c-translation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analysis and Optimization of Unsupervised Code-to-Code Translation

This repository contains the code and resources of the master's thesis Analysis and Optimization of Unsupervised Code-to-Code Translation at the university of Heidelberg 2022. It is a fork of the original repository CodeGen from Facebook, which provided most of the code and the pretrained models for TransCoder, DOBF and TransCoder-ST.

Almost all code and scripts that were added during the master thesis can be found under codegen_sources/scripts.

Setup

Repository

Run the following command to clone the repository

git clone https://github.com/yakuhzi/c2c-translation.git
cd c2c-translation

Install dependencies

Run the following script to install all required dependencies.

install_env.sh

The script will also download the pretrained TransCoder and TransCoder-ST models and the validation and test set for evaluation.

Experiments & Results

The results of all experiments are also shown in detail in this Excel.

Other Work

License

The validation and test parallel datasets from GeeksForGeeks, and the evaluation scripts under data/transcoder_evaluation_gfg are released under the Creative Commons Attribution-ShareAlike 2.0 license. See https://creativecommons.org/licenses/by-sa/2.0/ for more information.

The rest of the repository is under the MIT license. See LICENSE for more details.

About

Reference implementation of the master's thesis "Analysis and Optimization of Unsupervised Code-to-Code Translation"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 64.5%
  • Java 21.9%
  • C++ 11.3%
  • Shell 1.7%
  • Other 0.6%