arrow
返回

Software system comparison with semantic source code embeddings

delete2022-03-17
delete6
PRE
AI
S
Sašo Karakatič
A
Aleksej Miloševič
T
Tjaša Heričko *
DOI:10.1007/s10664-022-10122-9delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
This paper presents a novel approach for comparing software systems by calculating the robust Hausdorff distance between semantic source code embeddings of individual software components, i.e., methods. The proposed approach represents each software as a set of vectors, where every vector is a semantic source code embedding of a particular method. The code embeddings are constructed from abstract syntax trees of the methods with the help of attention-based neural network models that capture the semantics of the methods. Previous research has shown that comparing semantic source code embeddings can reveal semantic relationships between the two methods. We utilize this characteristic to estimate the semantic similarity between the two software systems by computing the robust Hausdorff distance. In the experiment, a pre-trained code2vec neural network model is used to create the source code vector representations of several open-source Java-based libraries. Several variations of the robust Hausdorff distance are evaluated. The results show that the proposed approach can effectively estimate the semantic similarity, reflecting the software library's scopes, software evolution, and individual parts (e.g., packages) of those libraries.
Keyword:
Source code embeddings
Software comparison
Code similarity
code2vec
Machine learning

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

U
university of maribor
学者数:
4.5K
论文数: 4.1K
被引数: 1
引用论文

引用论文

err分享
err收藏
Adult Image Content Classification Using Global Features and Skin Region Detection
err2010-08-18
err0
PREAI
errHakan Sevimli; Ersin Esen; Tuğrul K. Ateş; Ezgi C. Ozan; Mashar Tekin; K. Berker Loğoğlu; Ayça Müge Sevinç; Ahmet Saracoğlu; Adnan Yazici; A. Aydin Alatan
err分享
err收藏
Investigation of Structural and Optical Properties of MoO[sub 3]-PbO-B[sub 2]O[sub 3]:V[sub 2]O[sub 5] Glasses
err2011-01-01
err0
PREAI
errSanjay; N. Kishore; A. Agarwal; S. K. Tripathi; Keya Dharamvir; Ranjan Kumar; G. S. S. Saini
err分享
err收藏
A model-based controller of a three-level stacked-cell grid connected converter
err2015-11-01
err0
PREAI
errG. Escobar; P. R. Martinez-Rodriguez; E. I. Pool; A. E. Pena-Quintal; G. Vazquez; J. M. Sosa
err分享
err收藏
Comparison and evaluation of clone detection tools克隆检测工具的比较与评价
err2007-09-01
err510
errOAAI
errBellon, Stefan; Koschke, Rainer; Antoniol, Giuliano; Krinke, Jens; Merlo, Ettore
err分享
err收藏
学者 查看更多内容