A programming information recommendation method and device based on similar code recognition

An information recommendation and code technology, applied in the field of programming information recommendation based on similar code identification, can solve problems such as inaccurate description of code defects and difficulties in code repair, and achieve targeted results

Active Publication Date: 2022-01-11
SUN YAT SEN UNIV
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to provide a programming information recommendation method and device based on similar code identification to solve the technical problems of inaccurate description of code defects and difficulty in code repair during programming

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A programming information recommendation method and device based on similar code recognition
  • A programming information recommendation method and device based on similar code recognition

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] Embodiments of the present invention provide a method and device for recommending programming information based on similar code identification, so as to solve the technical problems of inaccurate description of code defects and difficulty in code repair during the programming process.

[0037] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the associated drawings. A preferred embodiment of the invention is shown in the drawings. However, the present invention can be embodied in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that the disclosure of the present invention will be thorough and complete.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of the invention. The terms used h...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention provides a method and device for recommending programming information based on similar code identification, wherein the method includes: extracting suspicious codes to obtain multiple first code fragments and multiple first comments; extracting programming information to obtain multiple first code fragments Two code fragments and multiple first scene keywords; multiple first code fragments and multiple second code fragments are input into the clone detection tool and clone detection is performed to obtain multiple clone pairs; wherein, each clone pair is composed of the first The code fragment and the second code fragment are composed; the first annotation and the first scene keyword are used as a sentence pair, and the sentence pair similarity is calculated according to the trained Word2Vec model; the clone pairs are sorted in descending order according to the sentence pair similarity, and the ranking High clone pairs are recommended as programming information. The invention comprehensively considers scene keywords and code similarities, can help to retrieve code defect causes, and the recommended programming information is more targeted, and can improve defect repair efficiency.

Description

technical field [0001] The invention relates to the technical field of software detection and repair, in particular to a method and device for recommending programming information based on similar code identification. Background technique [0002] Programmers often encounter technical problems that are difficult to solve independently in the process of programming, and usually rely on the Internet to search for corresponding problems to solve. Traditional code defect retrieval mainly relies on programmers to search for text matching of defect descriptions, program error messages, etc., to find information to solve code defects, such as online blogs, Q&A communities, etc. However, programmers are not always able to accurately describe the problems they encounter in language, and there are also cases where the error message of the program is difficult to locate the problem. challenge. [0003] There are two main methods for existing code problem retrieval. One is to search f...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/9535G06F8/75G06F16/955
CPCG06F16/9535G06F16/955G06F8/75
Inventor 王彤黄袁陈湘萍周晓聪郑子彬
Owner SUN YAT SEN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products