arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.06042cs.SE
收藏

识别GitHub拉取请求中的bot活动并发布评论

Identifying bot activity in GitHub pull request and issue comments

Mehdi Golzadeh, Alexandre Decan, Eleni Constantinou, Tom Mens

摘要:

开发机器人在Github上用于自动化重复性活动。这些机器人通过问题评论和拉取请求评论与人类演员进行通信。识别这些机器人评论可以防止与软件开发相关的社会技术研究中的偏见。为了自动识别它们,我们提出了一个基于自然语言处理的分类模型。从19,282个PR和问题评论的平衡地面事实数据集开始,我们使用词袋和TF-IDF技术的组合将评论编码为向量。我们训练了一系列的二进制分类器,以预测基于此向量表示的评论类型(人类或机器人)。多项朴素贝叶斯分类器提供最佳结果。它在包含50%数据的测试集上的性能达到了0.88的平均精度,召回率和F1得分。尽管该模型在pull request和issue comments上显示了有希望的结果,但需要进一步的工作来将该模型推广到其他类型的活动,如提交消息和代码审查。

英文摘要:

Development bots are used on Github to automate repetitive activities. Such bots communicate with human actors via issue comments and pull request comments. Identifying such bot comments allows preventing bias in socio-technical studies related to software development. To automate their identification, we propose a classification model based on natural language processing. Starting from a balanced ground-truth dataset of 19,282 PR and issue comments, we encode the comments as vectors using a combination of the bag of words and TF-IDF techniques. We train a range of binary classifiers to predict the type of comment (human or bot) based on this vector representation. A multinomial Naive Bayes classifier provides the best results. Its performance on a test set containing 50% of the data achieves an average precision, recall, and F1 score of 0.88. Although the model shows a promising result on the pull request and issue comments, further work is required to generalize the model on other types of activities, like commit messages and code reviews.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑