发明名称 Systems and methods for estimating an impact of changing a source file in a software
摘要 The technique relates to a system and method for estimating an impact of changing one or more source files in a software based on a clone dependency graph. This technique involves extracting the source files from a repository and detecting code cones present in the source files. After detecting the code clones the clone dependency graph is created. Several graph metrics are calculated and applied to the clone dependency graph to estimate the impact of changing a source file on other source files of the software. Finally, the output is visualized with the help of graph visualization technique.
申请公布号 US9201649(B2) 申请公布日期 2015.12.01
申请号 US201314065386 申请日期 2013.10.28
申请人 Inforsys Limited 发明人 Cheluvaraju Bharath;Viswanathan Sree Aurovindh
分类号 G06F9/44 主分类号 G06F9/44
代理机构 Reed Smith LLP 代理人 Kaufman Marc S.;Vogelbacker Mark T.;Reed Smith LLP
主权项 1. A method, implemented by one or more computing devices, for estimating an impact of changing one or more source files in a software based on a clone dependency graph, the method comprising: extracting the one or more source files of a software from a source code repository; detecting one or more code clones present in the one or more extracted source files of the software based on a predefined threshold; creating the clone dependency graph based on the one or more identified code clones, the clone dependency graph including one or more nodes and one or more edges, the one or more edges having a weight denoting a clone mass, the clone mass having a value equal to a ratio of a number of common lines between the one or more extracted source files and a total length of the one or more source files; measuring one or more graph metrics of the clone dependency graph, wherein the one or more graph metrics include degree centrality, closeness centrality, betweenness centrality, bonacich's centrality, graph clustering index and average path length; and estimating the impact of changing the segment of the one or more source files based on the clone dependency graph and the one or more graph metrics.
地址 Bangalore IN