吉林大学学报(理学版) ›› 2022, Vol. 60 ›› Issue (1): 135-0142.

• • 上一篇    下一篇

基于Git日志的即时软件质量分析框架

黄纬1, 黄晓华1, 张源2, 陈翔3, 钱柱中4   

  1. 1. 南京工程学院 计算机工程学院, 南京 211167; 2. 北京中电普华信息技术有限公司, 北京102208;
    3. 南通大学 信息科学技术学院, 江苏 南通 226019; 4. 南京大学 计算机科学与技术系, 南京 210023
  • 收稿日期:2020-11-19 出版日期:2022-01-26 发布日期:2022-01-26
  • 通讯作者: 黄纬 E-mail:huangw@njit.edu.cn

Framework of Just-in-Time Software Quality Analysis Based on Git Log

HUANG Wei1, HUANG Xiaohua1, ZHANG Yuan2, CHEN Xiang3, QIAN Zhuzhong4   

  1. 1. School of Computer Engineering, Nanjing Institute of Technology, Nanjing 211167, China;
    2. Beijing China-Power Information Technology Co.Ltd.,  Beijing 102208, China; 3. School of Information Science and Technology,  Nantong University, Nantong 226019, Jiangsu Province, China; 4. Department of Computer Science and Technology, Nanjing University, Nanjing 210023, China
  • Received:2020-11-19 Online:2022-01-26 Published:2022-01-26

摘要: 首先, 针对目前现有技术无法自动抽取软件仓库、 标记数据、 构建质量分析模型和分析软件质量的问题, 提出一个针对Python项目的即时软件质量分析框架GIF. 其次, 基于GIF抽取并标注GitHub上最受欢迎的前10个Python项目, 使用3个经典分类器(逻辑回归, 朴素Bayes和随机森林)在AUC和F1值评价指标上进行实验验证. 实验结果表明, GIF框架可即时、 有效地识别Python项目中的软件缺陷, 是一个方便使用的即时软件质量分析框架.

关键词: 软件质量保障, 即时软件质量分析, Python项目, GIF框架

Abstract: Firstly, aiming at the problems that the existing technology could not automatically extract software repository, mark data, build quality analysis model and analyze software quality, we proposed a just-in-time quality analysis framework GIF for Python projects. Secondly, based on GIF, the top 10 most popular Python projects on GitHub were extracted and labeled, and three classical classifiers (logistic regression, naive Bayes and random forest) were used for experimental verification on the evaluation indexes of AUC and F1 values. The experimental results show that GIF framework can identify software defects in Python projects immediately and effectively, it is an easy-to-use just-in-time software quality analysis framework.

Key words: software quality assurance, just-in-time software quality analysis, Python project, GIF framework

中图分类号: 

  • TP311