Inicio  /  Aerospace  /  Vol: 10 Par: 5 (2023)  /  Artículo
ARTÍCULO
TITULO

A Flexible Code Review Framework for Combining Defect Detection and Review Comments

Xi Chen    
Lei Dong    
Hong-Chang Li    
Xin-Peng Yao    
Peng Wang and Shuang Yao    

Resumen

Defects and errors in code are different in that they are not detected by editors or compilers but pose a potential risk to software operation. For safety-critical software such as airborne software, the code review process is necessary to ensure the proper operation of software applications and even an aircraft. The traditional manual review method can no longer meet the current needs with the dramatic increase in code sizes and variety. To this end, we propose Deep Reviewer, a general and flexible code review framework that automatically detects code defects and correlates the review comments of the defects. The framework first preprocesses the data using several methods, including the proposed D2U flow. Then, features are extracted and matched by the detector, which contains a pair of twin LSTM models, one for code defect type detection and the other for review comment retrieval. Finally, the review comment output function is implemented based on the masks generated by the code defect types. The method is validated using a large public dataset, SARD. For the binary-classification task, the test results of the proposed are 98.68% and 98.67% in terms of precision and F1 score, respectively. For the multi-classification task, the proposed framework shows a significant advantage over other methods.

 Artículos similares

       
 
Brian Bachinilla, Ana Evangelista, Milind Siddhpura, Assed N. Haddad and Bruno B. F. da Costa    
High-speed railway is trending in developing countries for economic reasons, mobility in the aftermath of COVID-19, and environmental concerns. The high-speed railway operators continuously improve the operational speed to transport more passengers in le... ver más
Revista: Infrastructures

 
Aaron Raymond See, Jose Antonio G. Choco and Kohila Chandramohan    
Touch is one most of the important aspects of human life. Nearly all interactions, when broken down, involve touch in one form or another. Recent advances in technology, particularly in the field of virtual reality, have led to increasing interest in the... ver más
Revista: Applied Sciences

 
Ya-Qian Xiao and Chi-Wai Kan    
Three-dimensional printing (3DP) allows for the creation of highly complex products and offers customization for individual users. It has generated significant interest and shows great promise for textile and fashion design. Here, we provide a timely and... ver más
Revista: Coatings

 
Carlos Pinto, Rui Pinto and Gil Gonçalves    
The autonomous and adaptable identification of anomalies in industrial contexts, particularly in the physical processes of Cyber-Physical Production Systems (CPPS), requires using critical technologies to identify failures correctly. Most of the existing... ver más
Revista: Algorithms

 
Syed Agha Hassnain Mohsan, Muhammad Asghar Khan, Alireza Mazinani, Mohammed H. Alsharif and Ho-Shin Cho    
In recent decades, wireless power transfer (WPT) has gained significant interest from both academic and industrial experts. It possesses natural electrical isolation between transmitter and receiver components, ensuring a secure charging mechanism in an ... ver más