arrow
返回

Fold2Vec: Towards a Statement-Based Representation of Code for Code Comprehension

delete2023-02-13
delete4
delete
OA
AI
F
Francesco Bertolotti *
W
Walter Cazzola
DOI:10.1145/3514232delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
We introduce a novel approach to source code representation to be used in combination with neural networks. Such a representation is designed to permit the production of a continuous vector for each code statement. In particular, we present how the representation is produced in the case of Java source code. We test our representation for three tasks: code summarization, statement separation, and code search. We compare with the state-of-the-art non-autoregressive and end-to-end models for these tasks. We conclude that all tasks benefit from the proposed representation to boost their performance in terms of F1-score, accuracy, and mean reciprocal rank, respectively. Moreover, we show how models trained on code summarization and models trained on statement separation can be combined to address methods with tangled responsibilities, meaning that these models can be used to detect code misconduct.
Keyword:
Big code
learning representations
method name suggestion
intent identification

期刊

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
论文数:
1.2K
被引数:
3.4K

机构

U
University of Milan
学者数:
5.1W
论文数: 3.9W
被引数: 5.0W
引用论文

引用论文

Acid catalysis in hydrolytic reactions水解反应中的酸催化
err1929-01-01
err0
PREAI
errJ. N. Brönsted; W. F. K. Wynne-Jones
err分享
err收藏
Resistance Training and Youth阻力训练和青年
err1989-11-01
err0
errOAAI
errWilliam J. Kraemer; Andrew C. Fry; Peter N. Frykman; Brian Conroy; Jay Hoffman
err分享
err收藏
err分享
err收藏
Endogenous gene selection for relative quantification PCR and IL6 transcript levels in the PBMC’s of severe and non-severe dengue cases
err2018-08-02
err0
errOAAI
errVigneshwari Easwar Kumar; Cleetus Cherupanakkal; Minna Catherine; Tamilarasu Kadhiravan; Narayanan Parameswaran; Soundravally Rajendiran; Agieshkumar Balakrishna Pillai
err分享
err收藏
Coronary artery bypass grafting: Factors affecting outcomes
err2020-09-16
err0
errOAAI
errTer‐Er Kusu‐Orkar; Muhammed Kermali; Nina Oguamanam; Christiana Bithas; Amer Harky
err分享
err收藏
An empirical study of identifier splitting techniques
err2013-08-08
err49
PREAI
errHill, Emily; Binkley, David; Lawrie, Dawn; Pollock, Lori; Vijay-Shanker, K.
err分享
err收藏
The Unreasonable Effectiveness of Data数据有效性的不合理
err2009-03-01
err1.0K
PREAI
errHalevy, Alon; Norvig, Peter; Pereira, Fernando
err分享
err收藏
学者 查看更多内容