Code Completion by Modeling Flattened Abstract Syntax Trees as Graphs

نویسندگان

چکیده

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

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Compressed Abstract Syntax Trees for Mobile Code

Abstract syntax trees (ASTs) have numerous advantages as a mobile code format over the more commonly used bytecode-based formats. Not only are ASTs portable, inherently safer, and more suitable for optimization, but we show that they also compress more densely. We have developed a prototype framework for AST compression, which we have used to compress Java programs. Our generic implementation r...

متن کامل

Merkelized Abstract Syntax Trees

In the context of modern cryptosystems, a common theme is the creation of distributed trust networks. In most of these designs, permanent storage of a contract is required. However, permanent storage can become a major performance and cost bottleneck. As a result, good code compression schemes are a key factor in scaling these contract based cryptosystems. For this project, we formalize and imp...

متن کامل

Canonical Abstract Syntax Trees

This paper presents GOM, a language for describing abstract syntax trees and generating a Java implementation for those trees. GOM includes features allowing to specify and modify the interface of the data structure. These features provide in particular the capability to maintain the internal representation of data in canonical form with respect to a rewrite system. This explicitly guarantees t...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Proceedings of the ... AAAI Conference on Artificial Intelligence

سال: 2021

ISSN: ['2159-5399', '2374-3468']

DOI: https://doi.org/10.1609/aaai.v35i16.17650