Professional Documents
Culture Documents
AUTOMATIC CODE
COMMENTS
GENERATION BY
AARUSHI DUA 2K20/CO/005
ABHEEK KAUSHAL 2K20/CO/017
ANUBHAV GUPTA 2K20/CO/085
02
TODAY' 1
CODE CLONE DETECTION
PRESENT 2
3
AUTOMATIC COMMENT GENERATION ALGORITHMS
COMMENT EXTRACTION
ATION 4
5
RNN BASED ALGORITHMS
The npl is weekly structured while the In natural language vocabulary is limited to
programming languages are formal the most common words and the words
languages and source code written in outside are called unknown words. While
them are unambiguous and structured. in coding vocabulary consists of keywords,
This is the main challenge for the rnn operators and identifiers so that data set
model. which stores the unique tokens after
replacing numerals and string becomes
very huge.
03
CODE CLONE
DETECTION INTRODUCTION
Code clone detection based comment generation algorithms are concerned with utilizing code
clone detection technique to find similar code in a database, and the corresponding comments
of the matched code or discussion text are viewed as comments for the target code.
JavaDoc Comment
EXTRACTIONSingle-line
public class, or a public/protected
method/variable.
Comment
Single-line comment starts with a
double slash (//). In the previous Block Comment
work, we were able to extract full
Block Comment: Block
sentences easily from Stack
comment is delimited by /*...*/.
Overflow posts, which is not the
It is similar to the JavaDoc
case in this work with single-line
comment except it can appear
comments.
anywhere in the source code.
05
RNN BASED
BRIEF
INTRODUCTION
ALGORITHMS
Encoder-Decoder framework In deep neural network based comment generation
systems encoder-decoder structure, also known as sequence to sequence model, is
generally exploited. In the structure of encoder-decoder, the encoder
plays the role of encoding source code into a fixed-sized
vector; and the decoder is responsible for decoding source
code vector and predicting comments for source code. The
difference among various encoder-decoder structures lies in the form of inputs and the
type of neural network
06
GLOBAL
GRAPH CONSTRUCTION - We aim to exploit the information
available at the class level. To do so, we connect the target
ENCODER
function to all other functions in the same class to form a class-
level contextual graph.