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 条
  • [1] Transformer-based Bug/Feature Classification
    Ozturk, Ceyhun E.
    Yilmaz, Eyup Halit
    Koksal, Omer
    2023 31ST SIGNAL PROCESSING AND COMMUNICATIONS APPLICATIONS CONFERENCE, SIU, 2023,
  • [2] TSLocator: A Transformer-Based Approach to Bug Localization
    HUCheng
    XIAOYuliang
    WuhanUniversityJournalofNaturalSciences, 2021, 26 (02) : 200 - 206
  • [3] A Novel Transformer-Based Adaptive Object Detection Method
    Su, Shuzhi
    Chen, Runbin
    Fang, Xianjin
    Zhang, Tian
    ELECTRONICS, 2023, 12 (03)
  • [4] Transformer-Based Flood Detection Using Multiclass Segmentation
    Park, Joo-Chan
    Kim, Dong-Geon
    Yang, Ji-Ro
    Kang, Kyo-Seok
    2023 IEEE INTERNATIONAL CONFERENCE ON BIG DATA AND SMART COMPUTING, BIGCOMP, 2023, : 291 - 292
  • [5] HTrans: Transformer-based Method for Hardware Trojan Detection and Localization
    Li, Yilin
    Li, Shan
    Shen, Haihua
    2023 IEEE 32ND ASIAN TEST SYMPOSIUM, ATS, 2023, : 31 - 36
  • [6] A Transformer-Based DeepFake-Detection Method for Facial Organs
    Xue, Ziyu
    Liu, Qingtong
    Shi, Haichao
    Zou, Ruoyu
    Jiang, Xiuhua
    ELECTRONICS, 2022, 11 (24)
  • [7] Transformer-Based Method for Unsupervised Anomaly Detection of Flight Data
    Yu, Hao
    Wu, Honglan
    Sun, Youchao
    Liu, Hao
    2023 ASIA-PACIFIC INTERNATIONAL SYMPOSIUM ON AEROSPACE TECHNOLOGY, VOL I, APISAT 2023, 2024, 1050 : 1816 - 1826
  • [8] Rail surface defect detection using a transformer-based network
    Guo, Feng
    Liu, Jian
    Qian, Yu
    Xie, Quanyi
    JOURNAL OF INDUSTRIAL INFORMATION INTEGRATION, 2024, 38
  • [9] Automatic Detection of Sensitive Data Using Transformer-Based Classifiers
    Petrolini, Michael
    Cagnoni, Stefano
    Mordonini, Monica
    FUTURE INTERNET, 2022, 14 (08)
  • [10] Transformer-Based Approach to Melanoma Detection
    Cirrincione, Giansalvo
    Cannata, Sergio
    Cicceri, Giovanni
    Prinzi, Francesco
    Currieri, Tiziana
    Lovino, Marta
    Militello, Carmelo
    Pasero, Eros
    Vitabile, Salvatore
    SENSORS, 2023, 23 (12)