arXivDaily arXiv每日学术速递 周一至周五更新
看起来今天可以划水了
arXiv 1802.06997cs.SE
收藏

对GitHub README文件的内容进行分类

Categorizing the Content of GitHub README Files

Gede Artha Azriadi Prana, Christoph Treude, Ferdian Thung, Thushari Atapattu, David Lo

摘要:

README文件在塑造开发人员对软件存储库的第一印象和记录存储库托管的软件项目方面发挥着重要作用。然而,我们缺乏对典型README文件内容的系统性理解,也缺乏可以自动处理这些文件的工具。为了缩小这一差距,我们进行了一项定性研究,涉及从393个随机抽样的GitHub存储库中手动注释4,226个README文件部分,我们设计和评估了一个分类器和一组可以自动分类这些部分的功能。我们发现,讨论存储库的“什么”和“如何”的信息非常普遍,而许多README文件缺乏关于存储库的目的和状态的信息。我们的多标签分类器可以预测8个不同的类别,达到了0.746的F1分数。为了评估分类的有用性,我们使用自动确定的类来使用徽章标记GitHub README文件中的部分,并向20名软件专业人员展示带有和不带这些徽章的文件。大多数参与者认为,自动标记的部分的基础上,我们的分类,以方便信息发现。这项工作使软件存储库的所有者能够提高其文档的质量,并有可能使软件开发社区更容易在GitHub README文件中发现相关信息。

英文摘要:

README files play an essential role in shaping a developer's first impression of a software repository and in documenting the software project that the repository hosts. Yet, we lack a systematic understanding of the content of a typical README file as well as tools that can process these files automatically. To close this gap, we conduct a qualitative study involving the manual annotation of 4,226 README file sections from 393 randomly sampled GitHub repositories and we design and evaluate a classifier and a set of features that can categorize these sections automatically. We find that information discussing the `What' and `How' of a repository is very common, while many README files lack information regarding the purpose and status of a repository. Our multi-label classifier which can predict eight different categories achieves an F1 score of 0.746. To evaluate the usefulness of the classification, we used the automatically determined classes to label sections in GitHub README files using badges and showed files with and without these badges to twenty software professionals. The majority of participants perceived the automated labeling of sections based on our classifier to ease information discovery. This work enables the owners of software repositories to improve the quality of their documentation and it has the potential to make it easier for the software development community to discover relevant information in GitHub README files.

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

↑