Patent ID: 9110769
Filing Date: 2015-08-18
Classification: G06F

Abstract:
1. A method implemented by one or more computing devices configured to detect and analyze code clones in one or more source code bases, the method comprising: receiving a selection of a subject code snippet based at least in part upon user input; at least partly in response to the receiving of the selection, obtaining the subject code snippet; identifying a group of clone code snippets in the one or more source code bases; comparing statements of the subject code snippet and statements of at least one of the clone code snippets of the group of the identified clone code snippets, wherein the comparing includes identifying differences, similarities, or both between the statements of the subject code snippet and the statements of the at least one of the clone code snippets of the group of the identified clone code snippets; and estimating, by the one or more computing devices and based at least in part on the comparing the statements of the subject code snippet and the statements of the at least one of the clone code snippets of the group, code-improvement-potential properties of one or more of the clone code snippets of the group of the identified clone code snippets.