Code and data for ICSME 2022 research track paper "Cross-Modal Contrastive Learning for Code Search"
You can obtain the dataset directly from this link. Note that you may need to "gzip -d" the data file to "*.jsonl".
- python>=3.6
- torch==1.4.0
- transformers>=2.5.0
sh run.sh
sh test.sh
python evaluator/evaluator.py -a dataset/test.jsonl -p saved_models/predictions.jsonl