Janus
Eclipse plug-in that aims to automate both the detection and the refactoring of code clones
Install / Use
/learn @uazadi/JanusREADME
Janus
Janus is an Eclipse plug-in that aims to automate the code clones detection and refactoring through an iterative workflow, depicted in the figure below.
<p align="center"> <img src="https://github.com/uazadi/Janus/blob/master/icons/JanusFlow.png" width="700"> </p>- Source code pre-processing: the source code is loaded in memory, normalised and filtered based on the user needs;
- Refactoring-Aware Detection of code clones: the duplicate code detection has been model as a not costrained optimization problem, which is composed by two main functions. The Similarity function that detect the cloned statements and it quantifies some feature of the duplicate code. The Refactoring Risk that aim to estimate the effort requested to accomplish the refactoring.
- Code Clones Refactoring: Janus is currently able to apply automatically three type of refactoring techiques that remove automatically cloned statements Extract Method, Extract and Pull-Up Method and Extract Superclass.
- Behavioural Checks: After the refactoring Janus is able to automatically compile the project and lunch the classes contain a main method and the JUnit test cases selected by the User. Furthermore, if even one of the fails Janus is able texecute automatically the fallback since the entire refactoring process is subjected to versioning via Git.
Below the Stack diagram of Janus’s architecture is provided
<p align="center"> <img src="https://github.com/uazadi/Janus/blob/master/icons/StackDiagram.png" width="700"> </p>Information
If you would like more information about this tool:
- read my Master thesis
- check out the presentation
Problems
For report any problem please check if already exist an Issue on GitHub about it:
- if there isn't one please add an Issue
- if there is one please leave a comment
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
