paper-with-me

Papers

Code Completion by Modeling Flattened Abstract Syntax Trees as Graphs

2021-03-17 · Yanlin Wang, Hui Li

Code completion has become an essential component of integrated development environments. Contemporary code completion methods rely on the abstract syntax tree (AST) to generate syntactically correct code. However, they cannot fully capture the sequential and repetitive patterns of writing code and the structural information of the AST. To alleviate these problems, we propose a new code completion approach named CCAG, which models the flattened sequence of a partial AST as an AST graph. CCAG uses our proposed AST Graph Attention Block to capture different dependencies in the AST graph for representation learning in code completion. The sub-tasks of code completion are optimized via multi-task learning in CCAG, and the task balance is automatically achieved using uncertainty without the need to tune task weights. The experimental results show that CCAG has superior performance than state-of-the-art approaches and it is able to provide intelligent code completion.

📄 PDF Abstract BibTeX arXiv:2103.09499

Code (0)

등록된 구현이 없습니다.

Tasks

Code CompletionGraph AttentionMulti-Task LearningRepresentation Learning

Similar Papers 제목 키워드 기반

Structural Language Models of Code

2019-09-30 · ICML 2020 1 · Uri Alon, Roy Sadaka, Omer Levy, Eran Yahav

We address the problem of any-code completion - generating a missing piece of source code in a given program without any restriction on the vocabulary or structure. We introduce a new approach to any-code completion that…

C++ codeCode CompletionCode GenerationLanguage Modeling+1

VerilogCoder: Autonomous Verilog Coding Agents with Graph-based Planning and Abstract Syntax Tree (AST)-based Waveform Tracing Tool

2024-08-15 · Chia-Tung Ho, Haoxing Ren, Brucek Khailany

Due to the growing complexity of modern Integrated Circuits (ICs), automating hardware design can prevent a significant amount of human error from the engineering process and result in less errors. Verilog is a popular h…

Code Generation

A Structural Model for Contextual Code Changes

2020-05-27 · Shaked Brody, Uri Alon, Eran Yahav

We address the problem of predicting edit completions based on a learned model that was trained on past edits. Given a code snippet that is partially edited, our goal is to predict a completion of the edit for the rest o…

EditCompletionmodel

Syntax-Aware On-the-Fly Code Completion

2022-11-09 · Wannita Takerngsaksiri, Chakkrit Tantithamthavorn, Yuan-Fang Li

Code completion aims to help improve developers' productivity by suggesting the next code tokens from a given context. Various approaches have been proposed to incorporate abstract syntax tree (AST) information for model…

Code Completion

SemLayer: Semantic-aware Generative Segmentation and Layer Construction for Abstract Icons

2026-03-25 · Haiyang Xu, Ronghuan Wu, Li-Yi Wei, Nanxuan Zhao 외 arxiv

Graphic icons are a cornerstone of modern design workflows, yet they are often distributed as flattened single-path or compound-path graphics, where the original semantic layering is lost. This absence of semantic decomp…