SYSTEMS AND METHODS FOR DETECTION OF CODE CLONES

    公开(公告)号:US20230418578A1

    公开(公告)日:2023-12-28

    申请号:US18463956

    申请日:2023-09-08

    CPC classification number: G06F8/443 G06F8/73

    Abstract: 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.

Patent Agency Ranking