arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.09072cs.SE
收藏

CLARA:代码理解与分析开发者的伴侣

CLARA: A Developer's Companion for Code Comprehension and Analysis

Ahmed Adnan, Mushfiqur Rahman, Saad Sakib Noor, Kazi Sakib

AI总结:

CLARA是一个浏览器扩展,利用先进推理模型帮助开发者和研究人员进行代码理解、重构和质量检测,经用户研究验证其有用、准确且实用。

摘要:

对开源项目代码库进行代码理解与分析是开发者和研究人员经常执行的任务。然而,从业者用于协助此类任务的现有工具通常需要事先进行项目设置,缺乏上下文感知,并且涉及大量手动工作。为了解决这个问题,我们提出了CLARA,一个浏览器扩展,利用最先进的推理模型来协助开发者和研究人员:(i)理解代码文件和代码片段,(ii)代码重构,以及(iii)代码质量属性检测。我们使用现有数据集和方法对CLARA的推理模型进行了定性评估,并进行了包含10名开发者和学术研究人员的全面用户研究,以评估其可用性和实用性。结果表明,CLARA在代码理解与分析任务中是有用的、准确的和实用的。CLARA是一个开源工具,可在https://github.com/SaadNoor555/CLARA_tool_demo获取。展示CLARA全部功能的视频可在https://youtu.be/VDKVXvIH41Q?si=qBFsmS_Y4m_9x3YH找到。

英文摘要:

Code comprehension and analysis of open-source project codebases is a task frequently performed by developers and researchers. However, existing tools that practitioners use for assistance with such tasks often require prior project setup, lack context-awareness, and involve significant manual effort. To address this, we present CLARA, a browser extension that utilizes a state-of-the-art inference model to assist developers and researchers in: (i) comprehending code files and code fragments, (ii) code refactoring, and (iii) code quality attribute detection. We qualitatively evaluated CLARA's inference model using existing datasets and methodology, and performed a comprehensive user study with 10 developers and academic researchers to assess its usability and usefulness. The results show that CLARA is useful, accurate, and practical in code comprehension and analysis tasks. CLARA is an open-source tool available at https://github.com/SaadNoor555/CLARA_tool_demo. A video showing the full capabilities of CLARA can be found at https://youtu.be/VDKVXvIH41Q?si=qBFsmS_Y4m_9x3YH.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑