Giter Site home page Giter Site logo

ccdemon's Introduction

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.

ccdemon's People

Contributors

llmhyy avatar

Stargazers

lindsey98 avatar Chengnian Sun avatar Xuezhi Song avatar Xiaohong Chen avatar SUN Changsheng avatar Adazhng avatar James avatar  avatar  avatar  avatar  avatar ZhiChen avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.