Source Code Summarization

37 papers with code • 9 benchmarks • 7 datasets

Code Summarization is a task that tries to comprehend code and automatically generate descriptions directly from the source code.

Source: Improving Automatic Source Code Summarization via Deep Reinforcement Learning

Libraries

Use these libraries to find Source Code Summarization models and implementations
2 papers
22

Language-Agnostic Representation Learning of Source Code from Structure and Context

danielzuegner/code-transformer ICLR 2021

Source code (Context) and its parsed abstract syntax tree (AST; Structure) are two complementary representations of the same computer program.

161
21 Mar 2021

Improving Code Summarization with Block-wise Abstract Syntax Tree Splitting

XMUDM/BASTS 14 Mar 2021

In this paper, we present the Block-wise Abstract Syntax Tree Splitting method (BASTS for short), which fully utilizes the rich tree-form syntax structure in ASTs, for improving code summarization.

24
14 Mar 2021

Unified Pre-training for Program Understanding and Generation

wasiahmad/PLBART NAACL 2021

Experiments on code summarization in the English language, code generation, and code translation in seven programming languages show that PLBART outperforms or rivals state-of-the-art models.

178
10 Mar 2021

Neural Code Summarization

shrivastava-piyush/nlp-code-summarization 26 Feb 2021

Code summarization is the task of generating readable summaries that are semantically meaningful and can accurately describe the presumed task of a software.

6
26 Feb 2021

Code Summarization with Structure-induced Transformer

gingasan/sit3 Findings (ACL) 2021

Code summarization (CS) is becoming a promising area in recent language understanding, which aims to generate sensible human language automatically for programming language in the format of source code, serving in the most convenience of programmer developing.

25
29 Dec 2020

GraphCodeBERT: Pre-training Code Representations with Data Flow

microsoft/CodeBERT ICLR 2021

Instead of taking syntactic-level structure of code like abstract syntax tree (AST), we use data flow in the pre-training stage, which is a semantic-level structure of code that encodes the relation of "where-the-value-comes-from" between variables.

2,004
17 Sep 2020

Contrastive Code Representation Learning

parasj/contracode EMNLP 2021

Recent work learns contextual representations of source code by reconstructing tokens from their context.

165
09 Jul 2020

Retrieval-Augmented Generation for Code Summarization via Hybrid GNN

shangqing-liu/CCSD-benchmark-for-code-summarization ICLR 2021

However, automatic code summarization is challenging due to the complexity of the source code and the language gap between the source code and natural language summaries.

21
09 Jun 2020

A Transformer-based Approach for Source Code Summarization

CGCL-codes/naturalcc ACL 2020

Generating a readable summary that describes the functionality of a program is known as source code summarization.

244
01 May 2020

Improved Code Summarization via a Graph Neural Network

acleclair/ICPC2020_GNN 6 Apr 2020

The first approaches to use structural information flattened the AST into a sequence.

67
06 Apr 2020