arrow
Return

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
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

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.
Keywords:
Source code embeddings
Software comparison
Code similarity
code2vec
Machine learning
Automatic detection of Long Method and God Class code smells through neural source code embeddings
err2022-10-01
err25
errOAAI
errKovacevic, Aleksandar; Slivka, Jelena; Vidakovic, Dragan; Grujic, Katarina-Glorija; Luburic, Nikola; Prokic, Simona; Sladic, Goran
errShare
errSave
Automatic detection of code smells using metrics and CodeT5 embeddings: a case study in C#
err2024-02-24
err0
PREAI
errAleksandar Kovačević; Nikola Luburić; Jelena Slivka; Simona Prokić; Katarina-Glorija Grujić; Dragan Vidaković; Goran Sladić
errShare
errSave
KidBright: An Open-Source Embedded Programming Platform with a Dedicated Software Framework in Support of Ecosystems for Learning to Code
err2022-11-04
err0
errOAAI
errTan-a-ram, Surapol; Leelayuttho, Anuchit; Kittipiyakul, Somphong; Pornsukjantra, Wuthipong; Sereevoravitgul, Thundluck; Intarapanich, Apichart; Kaewkamnerd, Saowaluck; Treeumnuk, Dusadee
errShare
errSave
Cross-Project Software Defect Prediction Based on Class Code Similarity
err2022-01-01
err4
errOAAI
errWen, Wanzhi; Shen, Chenqiang; Lu, Xiaohong; Li, Zhixian; Wang, Haoren; Zhang, Ruinian; Zhu, Ningbo
errShare
errSave
Predicting unstable software benchmarks using static source code features
err2021-08-18
err12
errOAAI
errLaaber, Christoph; Basmaci, Mikael; Salza, Pasquale
errShare
errSave

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
6.4K

Organization

U
university of maribor
Scholars:
200
Papers: 99
Citations: 1.8K
Cited Papers

Cited Papers

errShare
errSave
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
errShare
errSave
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
errShare
errSave
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
errShare
errSave
Comparison and evaluation of clone detection tools
err2007-09-01
err510
errOAAI
errBellon, Stefan; Koschke, Rainer; Antoniol, Giuliano; Krinke, Jens; Merlo, Ettore
errShare
errSave
researcher View more