Naming Bug Detection Using Transformer-Based Method Name Suggestion.

被引:0
|
作者
Minehisa T. [1 ]
Aman H. [2 ]
Kawahara M. [2 ]
机构
[1] Graduate School of Sc. and Eng., Ehime University
[2] Center for Information Technology, Ehime University
关键词
Bug detection - Code readability - Conventional modeling - Convolutional neural network - Empirical studies - [!text type='Java']Java[!/text] methods - Machine learning models;
D O I
10.11309/jssst.39.4_17
中图分类号
学科分类号
摘要
The name of a method is an essential clue to comprehending what the method does. An inconsistency between the method’s behavior and its name—especially its first word—is referred to as a “naming bug,” leading to deterioration in the code readability. This paper proposes applying a Transformer-based machine learning model to detect naming bugs in Java methods. The proposed model can evaluate a method name’s consistency by suggesting a proper name from the method’s body. The empirical study proves the proposed model outperforms the conventional model using Doc2Vec, Word2Vec, and convolutional neural network. © 2022 Japan Society for Software Science and Technology. All rights reserved.
引用
收藏
页码:17 / 23
页数:6
相关论文
共 50 条
  • [31] A Generalized Transformer-Based Pulse Detection Algorithm
    Dematties, Dario
    Wen, Chenyu
    Zhang, Shi-Li
    ACS SENSORS, 2022, 7 (09) : 2710 - 2720
  • [32] Transformer-based mass detection in digital mammograms
    Betancourt Tarifa A.S.
    Marrocco C.
    Molinara M.
    Tortorella F.
    Bria A.
    Journal of Ambient Intelligence and Humanized Computing, 2023, 14 (03) : 2723 - 2737
  • [33] Survey of Transformer-Based Object Detection Algorithms
    Li, Jian
    Du, Jianqiang
    Zhu, Yanchen
    Guo, Yongkun
    Computer Engineering and Applications, 2023, 59 (10) : 48 - 64
  • [34] BlinkLinMulT: Transformer-Based Eye Blink Detection
    Fodor, Adam
    Fenech, Kristian
    Lorincz, Andras
    JOURNAL OF IMAGING, 2023, 9 (10)
  • [35] A transformer-based approach to irony and sarcasm detection
    Rolandos Alexandros Potamias
    Georgios Siolas
    Andreas - Georgios Stafylopatis
    Neural Computing and Applications, 2020, 32 : 17309 - 17320
  • [36] Vision Transformer-Based Tailing Detection in Videos
    Lee, Jaewoo
    Lee, Sungjun
    Cho, Wonki
    Siddiqui, Zahid Ali
    Park, Unsang
    APPLIED SCIENCES-BASEL, 2021, 11 (24):
  • [37] Transformer-Based Intrusion Detection for IoT Networks
    Akuthota, Uday Chandra
    Bhargava, Lava
    IEEE INTERNET OF THINGS JOURNAL, 2025, 12 (05): : 6062 - 6067
  • [38] A transformer-based IDE plugin for vulnerability detection
    Mamede, Claudia
    Pinconschi, Eduard
    Abreu, Rui
    PROCEEDINGS OF THE 37TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, ASE 2022, 2022,
  • [39] Transformer-based vehicle detection for surveillance images
    Jin, Zhi
    Zhang, Qian
    Gou, Chao
    Lu, Qiang
    Li, Xiying
    JOURNAL OF ELECTRONIC IMAGING, 2022, 31 (05)
  • [40] Adaptation of Transformer-Based Models for Depression Detection
    Adebanji, Olaronke O.
    Ojo, Olumide E.
    Calvo, Hiram
    Gelbukh, Irina
    Sidorov, Grigori
    COMPUTACION Y SISTEMAS, 2024, 28 (01): : 151 - 165