paper-with-me

홈 › Papers

SmartPaste: Learning to Adapt Source Code

2017-05-22 · Miltiadis Allamanis, Marc Brockschmidt

Deep Neural Networks have been shown to succeed at a range of natural language tasks such as machine translation and text summarization. While tasks on source code (ie, formal languages) have been considered recently, most work in this area does not attempt to capitalize on the unique opportunities offered by its known syntax and structure. In this work, we introduce SmartPaste, a first task that requires to use such information. The task is a variant of the program repair problem that requires to adapt a given (pasted) snippet of code to surrounding, existing source code. As first solutions, we design a set of deep neural models that learn to represent the context of each variable location and variable usage in a data flow-sensitive way. Our evaluation suggests that our models can learn to solve the SmartPaste task in many cases, achieving 58.6% accuracy, while learning meaningful representation of variable usages.

📄 PDF Abstract BibTeX arXiv:1705.07867

Code (0)

등록된 구현이 없습니다.

Tasks

Machine TranslationProgram RepairText SummarizationTranslation

Similar Papers 제목 키워드 기반

AdaptivePaste: Code Adaptation through Learning Semantics-aware Variable Usage Representations

2022-05-23 · Xiaoyu Liu, Jinu Jang, Neel Sundaresan, Miltiadis Allamanis 외

In software development, it is common for programmers to copy-paste or port code snippets and then adapt them to their use case. This scenario motivates the code adaptation task -- a variant of program repair which aims …

Program Repair

SNR-adaptive deep joint source-channel coding for wireless image transmission

2021-01-30 · Mingze Ding, Jiahui Li, Mengyao Ma, Xiaopeng Fan

Considering the problem of joint source-channel coding (JSCC) for multi-user transmission of images over noisy channels, an autoencoder-based novel deep joint source-channel coding scheme is proposed in this paper. In th…

Decoder

PDGMM-VAE: A Variational Autoencoder with Adaptive Per-Dimension Gaussian Mixture Model Priors for Nonlinear ICA

2026-03-20 · Yuan-Hao Wei, Yan-Jie Sun arxiv

Independent component analysis is a core framework within blind source separation for recovering latent source signals from observed mixtures under statistical independence assumptions. In this work, we propose PDGMM-VAE…

Multi-Source Domain Adaptation and Semi-Supervised Domain Adaptation with Focus on Visual Domain Adaptation Challenge 2019

2019-10-08 · Yingwei Pan, Yehao Li, Qi Cai, Yang Chen 외

This notebook paper presents an overview and comparative analysis of our systems designed for the following two tasks in Visual Domain Adaptation Challenge (VisDA-2019): multi-source domain adaptation and semi-supervised…

Domain AdaptationSelf-LearningSemi-supervised Domain Adaptation

LLM4CodeRE: Generative AI for Code Decompilation Analysis and Reverse Engineering

2026-04-07 · Hamed Jelodar, Samita Bai, Tochukwu Emmanuel Nwankwo, Parisa Hamedi 외 arxiv

Code decompilation analysis is a fundamental yet challenging task in malware reverse engineering, particularly due to the pervasive use of sophisticated obfuscation techniques. Although recent large language models (LLMs…