Systems and methods for detection of code clones
OwnerJinfu CHEN, Yuan WANG +2inventors
InventorsJinfu CHEN, Yuan WANG, Dong QIU, Xin XIA
Life of this patent
Estimating the term…
Loading patent…
OwnerJinfu CHEN, Yuan WANG +2inventors
InventorsJinfu CHEN, Yuan WANG, Dong QIU, Xin XIA
Estimating the term…
Methods and devices are described for detecting code clones in a software program. The source code of the software program is processed into a group of n-gram representations. A clone index is generated for each respective code portion defined in the normalized source code, where each clone index includes a feature vector encoding features of the respective code portion based on the n-gram representations corresponding to the respective code portion. Comparison of the clone indexes is used to detect a code clone, based on matching the feature vectors of the clone indexes.
A method comprising:
A device comprising:
A non-transitory computer readable medium having instructions encoded thereon, wherein the instructions, when executed by a processing unit of a device, cause the device to:
Dependencies are inferred from the claim text.