RefSearch:一款面向代码重构的搜索引擎
RefSearch: A Search Engine for Refactoring
AI总结:
本研究针对代码重构中场景适用性判断难的问题,设计实现了重构案例搜索引擎RefSearch,支持易用查询语言检索,通过检测器采集案例并提供网页界面,经4个场景验证了查询表达力与搜索性能,已开源。
摘要:
在软件开发过程中,开发者经常通过重构源代码来提升代码质量。重构过程中的一大难题是判断当前场景是否适用重构操作。为辅助这一决策过程,本研究旨在检索与当前重构场景相似的历史重构案例。我们设计并实现了名为RefSearch的系统,支持用户通过易用的查询语言检索重构案例。该系统借助两款重构检测器采集重构实例,并提供网页界面用于查询和浏览案例。我们采用4个重构场景作为测试用例,评估了查询语言的表达能力与系统的搜索性能。RefSearch可通过https://github.com/salab/refsearch获取。
英文摘要:
Developers often refactor source code to improve its quality during software development. A challenge in refactoring is to determine if it can be applied or not. To help with this decision-making process, we aim to search for past refactoring cases that are similar to the current refactoring scenario. We have designed and implemented a system called RefSearch that enables users to search for refactoring cases through a user-friendly query language. The system collects refactoring instances using two refactoring detectors and provides a web interface for querying and browsing the cases. We used four refactoring scenarios as test cases to evaluate the expressiveness of the query language and the search performance of the system. RefSearch is available at https://github.com/salab/refsearch.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。