loading
Papers Papers/2022 Papers Papers/2022

Research.Publish.Connect.

Paper

Authors: E. N. Akimova 1 ; 2 ; A. V. Bersenev 1 ; 2 ; A. Yu. Cheshkov 3 ; A. Yu. Deikov 1 ; 2 ; K. S. Kobylkin 1 ; 2 ; A. V. Konygin 1 ; I. P. Mezentsev 1 ; 2 and V. E. Misilov 1 ; 2

Affiliations: 1 N. N. Krasovskii Institute of Mathematics and Mechanics, Ekaterinburg, Russian Federation ; 2 Ural Federal University, Ekaterinburg, Russian Federation ; 3 Huawei Russian Research Institute, Moscow, Russian Federation

Keyword(s): Anomaly Detection, Code Quality, Defect Prediction.

Abstract: The software development community has been using handcrafted code quality metrics for a long time. Despite their widespread use, these metrics have a number of known shortcomings. The metrics do not take into account project-specific coding conventions, the wisdom of the crowd, etc. To address these issues, we propose a novel semantic-based approach to calculating an anomaly index for the source code. This index called A-INDEX is the output of a model trained in unsupervised mode on a source code corpus. The larger the index value, the more atypical the code fragment is. To test A-INDEX we use it to find anomalous code fragments in Python repositories. We also apply the index for a variant of the source code defect prediction problem. Using BugsInPy and PyTraceBugs datasets, we investigate how A-INDEX changes when the bug is fixed. The experiments show that in 63% of cases, the index decreases when the bug is fixed. If one keeps only those code fragments for which the index changes significantly, then in 71% of cases the index decreases when the bug is fixed. (More)

CC BY-NC-ND 4.0

Sign In Guest: Register as new SciTePress user now for free.

Sign In SciTePress user: please login.

PDF ImageMy Papers

You are not signed in, therefore limits apply to your IP address 3.141.24.134

In the current month:
Recent papers: 100 available of 100 total
2+ years older papers: 200 available of 200 total

Paper citation in several formats:
Akimova, E.; Bersenev, A.; Bersenev, A.; Cheshkov, A.; Deikov, A.; Deikov, A.; Kobylkin, K.; Konygin, A.; Mezentsev, I. and Misilov, V. (2022). A-Index: Semantic-based Anomaly Index for Source Code. In Proceedings of the 17th International Conference on Evaluation of Novel Approaches to Software Engineering - ENASE; ISBN 978-989-758-568-5; ISSN 2184-4895, SciTePress, pages 259-266. DOI: 10.5220/0010984600003176

@conference{enase22,
author={E. N. Akimova. and A. V. Bersenev. and A. Yu. Bersenev. and A. Yu. Cheshkov. and A. Yu. Deikov. and A. V. Deikov. and K. S. Kobylkin. and A. V. Konygin. and I. P. Mezentsev. and V. E. Misilov.},
title={A-Index: Semantic-based Anomaly Index for Source Code},
booktitle={Proceedings of the 17th International Conference on Evaluation of Novel Approaches to Software Engineering - ENASE},
year={2022},
pages={259-266},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0010984600003176},
isbn={978-989-758-568-5},
issn={2184-4895},
}

TY - CONF

JO - Proceedings of the 17th International Conference on Evaluation of Novel Approaches to Software Engineering - ENASE
TI - A-Index: Semantic-based Anomaly Index for Source Code
SN - 978-989-758-568-5
IS - 2184-4895
AU - Akimova, E.
AU - Bersenev, A.
AU - Bersenev, A.
AU - Cheshkov, A.
AU - Deikov, A.
AU - Deikov, A.
AU - Kobylkin, K.
AU - Konygin, A.
AU - Mezentsev, I.
AU - Misilov, V.
PY - 2022
SP - 259
EP - 266
DO - 10.5220/0010984600003176
PB - SciTePress