Skip to content
/ ccdemon Public

A Clone-Based Approach for Recommending Modification on Pasted Code

Notifications You must be signed in to change notification settings

llmhyy/ccdemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

CCDemon

A Clone-Based Approach for Recommending Modification on Pasted Code

Snapshot of CCDemon

Introduction

This project is built for recommending the to-be-modified code slot and content on a pasted code. When a user copies a piece of code in projects, we consider its cloned code as historical result of copy-and-paste practice and the clone difference as historical result of modification on the pasted code. We mine the modification rules from clone differences. With these rules, CCDemon can even dynamically adjust the modification recommendations when programmers are modifying the pasted code. More details can be checked in the following paper:

Yun Lin, Xin Peng, Zhenchang Xing, Diwen Zheng, and Wenyun Zhao. 2015. Clone-based and interactive recommendation for modifying pasted code. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering (ESEC/FSE 2015). ACM, New York, NY, USA, 520-531. DOI=http://dx.doi.org/10.1145/2786805.2786871

Dependency

The project depends on Clonepedia, MCIDiff, and Data Mining code repository. Please refer to the link for the configuration of MCIDiff.

Set Up

When using CCDemon, users have to keep two things in mind:

  1. transfer the line delimiter of Java files to windows style (i.e., \r\n);
  2. forbid Eclipse's default code indentation function by Windows>>Preferences>>Java>>Editor>>Typing>>unselect "Adjust indentation"

Contact

If you have any problem on using our code, please feel free to contact me by: [email protected] or [email protected]. You can also contact Prof. Xin Peng ([email protected]) or Prof. Zhenchang Xing ([email protected]) for more information.

About

A Clone-Based Approach for Recommending Modification on Pasted Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages