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 implementationsDatasets
Latest papers
Language-Agnostic Representation Learning of Source Code from Structure and Context
Source code (Context) and its parsed abstract syntax tree (AST; Structure) are two complementary representations of the same computer program.
Improving Code Summarization with Block-wise Abstract Syntax Tree Splitting
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.
Unified Pre-training for Program Understanding and Generation
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.
Neural Code Summarization
Code summarization is the task of generating readable summaries that are semantically meaningful and can accurately describe the presumed task of a software.
Code Summarization with Structure-induced Transformer
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.
GraphCodeBERT: Pre-training Code Representations with Data Flow
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.
Contrastive Code Representation Learning
Recent work learns contextual representations of source code by reconstructing tokens from their context.
Retrieval-Augmented Generation for Code Summarization via Hybrid GNN
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.
A Transformer-based Approach for Source Code Summarization
Generating a readable summary that describes the functionality of a program is known as source code summarization.
Improved Code Summarization via a Graph Neural Network
The first approaches to use structural information flattened the AST into a sequence.