Code Understanding Linter to Detect Variable Misuse

被引:0
|
作者
Ryou, Yeonhee [1 ]
Joh, Sangwoo [1 ]
Yang, Joonmo [1 ]
Kim, Sujin [1 ]
Kim, Youil [1 ]
机构
[1] Samsung Res, Seoul, South Korea
关键词
language models of code; automated code review; bug detection; variable misuse;
D O I
10.1145/3551349.3559497
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
We share our experience in developing Code Understanding Linter, an automated code review tool based on language models of code. We introduce several ideas to make the tool be more practical, including combining two different language models, filtering meaningless outputs from the model, and generating developer-friendly diagnosis messages by interpreting the outputs from the model. On top of those ideas, we describe the design and implementation of an automated code review tool to detect variable-misuse defects in Python codes and suggest how to fix them. We evaluated the tool with a set of code repositories in Samsung Electronics, which contains real-world Python codes. Our experiment proves that our tool can discover hidden defects in the real-world codes, but the false positive rate is far higher than we expected. After manually investigating every false positives, we discuss the limitations of the language models and possible solutions.
引用
收藏
页数:5
相关论文
共 50 条
  • [21] Understanding drug misuse: Models of care and control
    Ward, Jenni
    DRUGS-EDUCATION PREVENTION AND POLICY, 2011, 18 (06) : 493 - 494
  • [22] Understanding alcohol misuse and comorbid psychiatric disorders
    Baigent, MF
    CURRENT OPINION IN PSYCHIATRY, 2005, 18 (03) : 223 - 228
  • [23] Understanding the Context of Stimulant Misuse in College Students
    Wilens, Timothy
    Martelon, MaryKate
    Yule, Amy
    Kaminski, Tamar
    McCabe, Sean
    AMERICAN JOURNAL ON ADDICTIONS, 2019, 28 (03): : 167 - 167
  • [24] Understanding Drug Misuse: Models of Care and Control
    Livingston, Wulf
    BRITISH JOURNAL OF SOCIAL WORK, 2011, 41 (03): : 595 - 597
  • [25] UNDERSTANDING THE CONTEXT OF STIMULANT MISUSE IN COLLEGE STUDENTS
    Wilens, Timothy E.
    Martelon, MaryKate
    Yule, Amy
    Kaminski, Tamar A.
    McCabe, Sean E.
    JOURNAL OF THE AMERICAN ACADEMY OF CHILD AND ADOLESCENT PSYCHIATRY, 2018, 57 (10): : S141 - S142
  • [26] The importance of understanding human misuse of veterinary medications
    Paige, JC
    JOURNAL OF RURAL HEALTH, 2002, 18 (02): : 309 - 310
  • [27] CODE AND DETECT DATA USING TONE PAIRS
    STEER, RW
    ELECTRONIC PRODUCTS MAGAZINE, 1975, 17 (09): : 22 - 24
  • [28] Using Program Slicing to Detect the Dead Code
    AlAbwaini, Nour
    Alda'aje, Amal
    Jaber, Tamara
    Abdallah, Mohammad
    Tamimi, Abdelfatah
    2018 8TH INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND INFORMATION TECHNOLOGY (CSIT), 2018, : 230 - 233
  • [29] LLMs: Understanding Code Syntax and Semantics for Code Analysis
    Ma, Wei
    Wang, Wenhan
    Liu, Ye
    Liu, Shangqing
    Hu, Qiang
    Li, Li
    Liu, Yang
    Lin, Zhihao
    Zhang, Cen
    Nie, Liming
    arXiv, 2023,
  • [30] Stroke Code Overuse or Misuse - A Need for Structured Support Systems
    Mohammad, Asad
    Ortiz, Rafael
    Vydyula, Ravikanth
    Mina, Bushra
    CRITICAL CARE MEDICINE, 2013, 41 (12)