Data processing method and device

The invention discloses a data processing method. The method comprises the steps: extracting first code structure information based on a source code file, comparing the similarity with second code structure information generated based on a to-be-compared code file according to the first code structu...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: HUANG ZHENHUAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a data processing method. The method comprises the steps: extracting first code structure information based on a source code file, comparing the similarity with second code structure information generated based on a to-be-compared code file according to the first code structure information, and obtaining the similarity between the source code file and the to-be-compared code file. Compared with the prior art, the calculation burden can be greatly reduced, and the data processing efficiency is improved. Compared with a source code file, the first code structure information has the characteristic of small occupied storage space, so that the storage space of a computer running the data processing method is effectively saved. 本申请公开一种数据处理方法,基于源代码文件提取第一代码结构信息,并根据第一代码结构信息与基于待比较代码文件生成的第二代码结构信息比较相似性,进而得到源代码文件和待比较代码文件的相似性。相较于现有技术,可以大大减少计算负担,提升数据处理效率。由于第一代码结构信息相较于源代码文件,具有占用存储空间较小的特点,因此有效节省运行上述数据处理方法的计算机的存储空间。