You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CoEdPilot: Recommending Code Edits with Learned Prior Edit Relevance, Project-wise Awareness, and Interactive Nature
Description
This repository contains the training and evaluation code for the paper "CoEdPilot: Recommending Code Edits with Learned Prior Edit Relevance, Project-wise Awareness, and Interactive Nature" by Chenyan Liu, Yufan Cai, Yun Lin, Yuhuan Huang, Yunrui Pei, Bo Jiang, Ping Yang, Jin Song Dong, and Hong Mei. Presented at ISSTA'24.
For proposed VS Code extension, please refer to CoEdPilot-VSCode, with detailed deployment instructions.
🎥 Demo
Note
Please click the image to watch the demo video on YouTube.
🔥 Try CoEdPilot Extension
Please refer to the CoEdPilot-VSCode repository to deploy your own CoEdPilot assistant as VS Code extension.
All backend models are available in HuggingFace, as detailed in the CoEdPilot-VSCode repository.
Backend models can be deployed on localhost, remote server and via docker.
💬 If you have any questions or feedback, please reach out to us via GitHub Issues.
📂 Contents
More detailed READMEs are available in each subdirectory.
/dependency_analyzer: The inference script and pre-trained model for the dependency analyzer.
/file_locator: The training script for semantic embedding model and the inference script to combine the score of dependency and semantic similarity.
/line_locator: The training and inference script for line-locator.
/generator: The training and inference script for edit-generator.
🚀 Getting Started
Our model scripts require Python 3.10 and Pytorch with CUDA.
If you find our work helpful, please consider citing our paper:
@inproceedings{liu2024coedpilot,
title={CoEdPilot: Recommending Code Edits with Learned Prior Edit Relevance, Project-wise Awareness, and Interactive Nature},
author={Liu, Chenyan and Cai, Yufan and Lin, Yun and Huang, Yuhuan and Pei, Yunrui and Jiang, Bo and Yang, Ping and Dong, Jin Song and Mei, Hong},
booktitle={Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis},
pages={466--478},
year={2024}
}
About
Source code for "CoEdPilot: Recommending Code Edits with Learned Prior Edit Relevance, Project-wise Awareness, and Interactive Nature"