You can find the paper here: https://arxiv.org/abs/2103.11626
data folder contains multiple folders and files:
repetition folder contains MSR datasets WITH duplicate pairsunique folder contains MSR datasets WITHOUT duplicate pairssstubs(Large|Small).json files contain dataset in JSON formatsstubs(Large|Small)-(train|test|val).json files contain dataset split in JSON formatsplit/(large|small) folders contain dataset in text format (what the CodeBERT works with)git lfs install git clone https://github.com/EhsanMashhadi/MSR2021-ProgramRepair.gitcd MSR2021-ProgramRepairgit clone https://huggingface.co/microsoft/codebert-basepretrained_model variable in script filespip install torch==1.4.0pip install transformers==2.5.0bash ./scripts/codebert/train.shbash ./scripts/codebert/test.shpip install OpenNMT-py==2.2.0bash ./scripts/simple-lstm/build_vocab.shbash ./scripts/simple-lstm/train.shbash ./scripts/simple-lstm/test.sh(This is the original version used to run the simple LSTM experiments in the paper.)
pip install OpenNMT-py==1.2.0bash ./scripts/simple-lstm/legacy/preprocess.shbash ./scripts/simple-lstm/legacy/train.shbash ./scripts/simple-lstm/legacy/test.shsize and type variables value in script files to run different experiments (large | small, unique | repetition).CUDA and PyTorch compatibilityCUDA_VISIBLE_DEVICES, gpu_rank, and world_size based on your GPU numbers in all scripts.gpu_rank, and world_size options in all scripts.$ claude mcp add MSR2021-ProgramRepair \
-- python -m otcore.mcp_server <graph>