A Method of Automatically Generating Java Function Comments Based on Program Analysis

A program analysis, automatic generation technology, applied in the field of computer and software, which can solve problems such as accuracy, understandability and fluency defects

Active Publication Date: 2022-05-31
NANJING UNIV
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At the same time, common problems in the process of distributed collaborative development are: when developers develop or review code, they often spend more time understanding the code written by other developers
However, the previous work did not make full use of the information contained in the project that is beneficial to annotation generation and the advantages of deep learning, resulting in certain defects in the accuracy, comprehensibility and fluency of the generated annotations.

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 Method of Automatically Generating Java Function Comments Based on Program Analysis
  • A Method of Automatically Generating Java Function Comments Based on Program Analysis
  • A Method of Automatically Generating Java Function Comments Based on Program Analysis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] Given a code fragment X=x

[0031] Similarly, given a pass code fragment X', the encoder can also get its hidden state in the model

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 is a method for automatically generating Java function annotations based on program analysis: first, collect a large number of open source projects on GitHub, extract Java function information and calling relationships based on program analysis technology, and form a training data set; Network technology has trained a function-to-comment translation model, which can automatically generate comments for functions, and the effect is obvious; it effectively solves the problems of scarcity, irregularity and inconsistency of existing function comments in the current project, and improves code readability and maintainability.

Description

A method for automatic generation of Java function annotations based on program analysis technical field [0001] The present invention belongs to the field of computer technology, especially the field of software technology. The present invention proposes a program-based Analyzed Java function annotation automatic generation method, which can automatically generate annotations for functions by building a recurrent neural network model. release. Effectively solve the scarcity, irregularity, inconsistency and other problems of existing function annotations in the current project, thereby improving the Code readability and maintainability. Background technique [0002] With the rapid development of Internet technology and the rapid changes in the software industry, more and more projects have begun to Use a distributed collaborative development model. Developers usually build their own branches, develop on their own branches, and follow Then merge the branch into the ...

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): G06F8/73G06N3/04G06N3/08G06F8/30
CPCG06F8/73G06N3/08G06F8/315G06N3/045
Inventor 许蕾周航
Owner NANJING 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