SysRepoAnalysis: A tool to analyze and identify critical areas of source code repositories

Armando Sousa, Gisele Ribeiro, G. Avelino, Lincoln S. Rocha, Ricardo Britto
{"title":"SysRepoAnalysis: A tool to analyze and identify critical areas of source code repositories","authors":"Armando Sousa, Gisele Ribeiro, G. Avelino, Lincoln S. Rocha, Ricardo Britto","doi":"10.1145/3555228.3555281","DOIUrl":null,"url":null,"abstract":"SysRepoAnalysis is an open-source, multi-user web tool that allows online analysis of git repositories by extracting historical information from source code files over time, using mining software repository techniques. Such data can be useful for the development team to find critical areas of the code repository that have a high maintenance effort over time. The main metrics used are cyclomatic complexity, accumulation of LOC modifications (based on code-churn), and frequency of occurrence of files in commits over time. In addition, we use the composition of these metrics to find very complex source code files that are frequently modified and have many LOCs changed over time. Besides, to calculate these metrics, the tool allows the generation and display of a treemap of the repository’s directory and file structure and the rendering of a heatmap based on the metric chosen to be analyzed. Such features can be useful in helping the development team to find critical source code files or areas that contain such files. In this way, it can help the development team to make decisions regarding the choice of candidate files for refactorings that can generate a high maintenance effort. Among the main features of SysRepoAnalysis, we can highlight: control of user authentication and authorization, cloning and asynchronous analysis of user repositories (via message broker using producers and consumers), historical analysis and export of modified commits and files, calculation and export of results of the analyzed metrics and treemap generation of the repository’s directory and file structure, as well as the rendering of heatmap based on the metric chosen to be analyzed. The source code tool is published in GitHub repository1 and there is a presentation about the tool in Video2 3","PeriodicalId":178472,"journal":{"name":"Proceedings of the XXXVI Brazilian Symposium on Software Engineering","volume":"301 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-10-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the XXXVI Brazilian Symposium on Software Engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3555228.3555281","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

SysRepoAnalysis is an open-source, multi-user web tool that allows online analysis of git repositories by extracting historical information from source code files over time, using mining software repository techniques. Such data can be useful for the development team to find critical areas of the code repository that have a high maintenance effort over time. The main metrics used are cyclomatic complexity, accumulation of LOC modifications (based on code-churn), and frequency of occurrence of files in commits over time. In addition, we use the composition of these metrics to find very complex source code files that are frequently modified and have many LOCs changed over time. Besides, to calculate these metrics, the tool allows the generation and display of a treemap of the repository’s directory and file structure and the rendering of a heatmap based on the metric chosen to be analyzed. Such features can be useful in helping the development team to find critical source code files or areas that contain such files. In this way, it can help the development team to make decisions regarding the choice of candidate files for refactorings that can generate a high maintenance effort. Among the main features of SysRepoAnalysis, we can highlight: control of user authentication and authorization, cloning and asynchronous analysis of user repositories (via message broker using producers and consumers), historical analysis and export of modified commits and files, calculation and export of results of the analyzed metrics and treemap generation of the repository’s directory and file structure, as well as the rendering of heatmap based on the metric chosen to be analyzed. The source code tool is published in GitHub repository1 and there is a presentation about the tool in Video2 3
SysRepoAnalysis:一个分析和识别源代码存储库关键区域的工具
SysRepoAnalysis是一个开源的、多用户的web工具,通过使用挖掘软件存储库技术,从源代码文件中提取历史信息,允许在线分析git存储库。这样的数据对于开发团队查找代码存储库中需要大量维护的关键区域非常有用。使用的主要指标是圈复杂度、LOC修改的累积(基于代码的混乱),以及随着时间的推移提交中文件出现的频率。此外,我们使用这些指标的组合来查找经常被修改的非常复杂的源代码文件,并且随着时间的推移有许多loc发生了变化。此外,为了计算这些指标,该工具允许生成和显示存储库目录和文件结构的树状图,并基于要分析的指标呈现热图。这样的特性可以帮助开发团队找到关键的源代码文件或包含这些文件的区域。通过这种方式,它可以帮助开发团队做出关于选择候选文件进行重构的决策,从而产生高维护工作量。在SysRepoAnalysis的主要特性中,我们可以强调:用户身份验证和授权的控制、用户存储库的克隆和异步分析(通过使用生产者和消费者的消息代理)、修改提交和文件的历史分析和导出、分析指标的结果的计算和导出、存储库目录和文件结构的树状图生成,以及基于选择要分析的指标的热图呈现。源代码工具发布在GitHub存储库中1,在视频2 3中有一个关于该工具的演示
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书