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 条
  • [21] Transformer-Based Fault Detection Using Pressure Signals for Hydraulic Pumps
    Ran Kim, A.
    Seon Kim, Ha
    Young Kim, Sun
    IEEE ACCESS, 2024, 12 : 145795 - 145808
  • [22] Transformer-Based Parking Slot Detection Using Fixed Anchor Points
    Bui, Quang Huy
    Suhr, Jae Kyu
    IEEE ACCESS, 2023, 11 : 104417 - 104427
  • [23] Fake review detection using transformer-based enhanced LSTM and RoBERTa
    Mohawesh R.
    Bany Salameh H.
    Jararweh Y.
    Alkhalaileh M.
    Maqsood S.
    International Journal of Cognitive Computing in Engineering, 2024, 5 : 250 - 258
  • [24] On the Use of Transformer-Based Models for Intent Detection Using Clustering Algorithms
    Moura, Andre
    Lima, Pedro
    Mendonca, Fabio
    Mostafa, Sheikh Shanawaz
    Morgado-Dias, Fernando
    APPLIED SCIENCES-BASEL, 2023, 13 (08):
  • [25] A transformer-based cloud detection approach using Sentinel 2 imageries
    Singh, Rohit
    Biswas, Mantosh
    Pal, Mahesh
    INTERNATIONAL JOURNAL OF REMOTE SENSING, 2023, 44 (10) : 3194 - 3208
  • [26] Efficient crop row detection using transformer-based parameter prediction
    Guo, Zhiming
    Quan, Longzhe
    Sun, Deng
    Lou, Zhaoxia
    Geng, Yuhang
    Chen, Tianbao
    Xue, Yi
    He, Jinbing
    Hou, Pengbiao
    Wang, Chuan
    Wang, Jiakang
    BIOSYSTEMS ENGINEERING, 2024, 246 : 13 - 25
  • [27] Transformer-based malware detection using process resource utilization metrics
    Natsos, Dimosthenis
    Symeonidis, Andreas L.
    RESULTS IN ENGINEERING, 2025, 25
  • [28] A Transformer-Based Framework for Tiny Object Detection
    Liao, Yi-Kai
    Lin, Gong-Si
    Yeh, Mei-Chen
    2023 ASIA PACIFIC SIGNAL AND INFORMATION PROCESSING ASSOCIATION ANNUAL SUMMIT AND CONFERENCE, APSIPA ASC, 2023, : 373 - 377
  • [29] A TRANSFORMER-BASED SIAMESE NETWORK FOR CHANGE DETECTION
    Bandara, Wele Gedara Chaminda
    Patel, Vishal M.
    2022 IEEE INTERNATIONAL GEOSCIENCE AND REMOTE SENSING SYMPOSIUM (IGARSS 2022), 2022, : 207 - 210
  • [30] Transformer-based models for multimodal irony detection
    Tomás D.
    Ortega-Bueno R.
    Zhang G.
    Rosso P.
    Schifanella R.
    Journal of Ambient Intelligence and Humanized Computing, 2023, 14 (6) : 7399 - 7410