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 条
  • [41] A transformer-based approach to irony and sarcasm detection
    Potamias, Rolandos Alexandros
    Siolas, Georgios
    Stafylopatis, Andreas-Georgios
    NEURAL COMPUTING & APPLICATIONS, 2020, 32 (23): : 17309 - 17320
  • [42] Transformer-based Conformal Predictors for Paraphrase Detection
    Giovannotti, Patrizio
    Gammerman, Alex
    CONFORMAL AND PROBABILISTIC PREDICTION AND APPLICATIONS, VOL 152, 2021, 152 : 243 - 265
  • [43] A multilevel bridge corrosion detection method by transformer-based segmentation in a stitched view
    Lu, Ziyue
    Jiang, Tengjiao
    Slavic, Janko
    Froseth, Gunnstein T.
    JOURNAL OF CIVIL STRUCTURAL HEALTH MONITORING, 2025,
  • [44] An Efficient CNN plus Sparse Transformer-Based Intrusion Detection Method for IoT
    Zhang, Yiying
    Fan, Yifan
    Guo, Zhenkun
    Ma, Hao
    Guan, Qianqian
    Jiang, Wei
    Li, Wenjing
    ADVANCED INTELLIGENT COMPUTING TECHNOLOGY AND APPLICATIONS, PT X, ICIC 2024, 2024, 14871 : 482 - 493
  • [45] Novel variant transformer-based method for aluminum profile surface defect detection
    Ye, Shixiong
    Wu, Jiling
    Jin, Yuzhen
    Cui, Jingyu
    MEASUREMENT SCIENCE AND TECHNOLOGY, 2025, 36 (02)
  • [46] Vision Transformer-Based Anomaly Detection Method for Offshore Platform Monitoring Data
    Zhu, Quanhua
    Wu, Qingpeng
    Yue, Yalin
    Bao, Yuequan
    Zhang, Tao
    Wang, Xueliang
    Jiang, Zhentao
    Chen, Haozheng
    STRUCTURAL CONTROL & HEALTH MONITORING, 2024, 2024
  • [47] Transformer-Based Global PointPillars 3D Object Detection Method
    Zhang, Lin
    Meng, Hua
    Yan, Yunbing
    Xu, Xiaowei
    ELECTRONICS, 2023, 12 (14)
  • [48] A Comparative Study of Transformer-based Neural Text Representation Techniques on Bug Triaging
    Dipongkor, Atish Kumar
    Moran, Kevin
    2023 38TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, ASE, 2023, : 1012 - 1023
  • [49] An Unsupervised Method for Industrial Image Anomaly Detection with Vision Transformer-Based Autoencoder
    Yang, Qiying
    Guo, Rongzuo
    SENSORS, 2024, 24 (08)
  • [50] A Transformer-based Neural Architecture Search Method
    Wang, Shang
    Tang, Huanrong
    Ouyang, Jianquan
    PROCEEDINGS OF THE 2023 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE COMPANION, GECCO 2023 COMPANION, 2023, : 691 - 694