许多平台利用协作标记来在搜索或导航时为用户提供更快、更准确的结果。标签可以传达不同的概念,例如主要特性、技术、功能和软件存储库的目标。最近,GitHub允许用户使用主题标签来注释存储库。它还提供了一组特色主题,以及在社区的帮助下精心策划的可能的别名。这就创造了一个机会,通过训练模型向开发人员推荐高质量的主题标签,使用这个初始的主题种子来自动注释所有剩余的存储库。在这项工作中,我们研究了应用多标签分类技术预测软件仓库的主题。首先,我们将大量的用户自定义主题映射到GitHub上的主题。其核心思想是从项目的可用文档中获取更多信息。我们的数据包含有关$152$ K GitHub存储库和$228$特色主题。然后,我们将监督模型应用于存储库的文本信息,如描述、README文件、wiki页面和文件名。我们评估我们的方法的性能定量和定性。我们提出的模型分别达到了$0.890$和$0.805$的Recall@5和LRAP分数。此外,根据用户的评估,我们的方法是高度能够推荐一个正确的和完整的主题集。最后,我们使用我们的模型来开发一个名为\texttt{Repository Catalogue}的在线工具,它可以自动预测GitHub存储库的主题,并且可以公开使用。
英文摘要:
Many platforms exploit collaborative tagging to provide their users with faster and more accurate results while searching or navigating. Tags can communicate different concepts such as the main features, technologies, functionality, and the goal of a software repository. Recently, GitHub has enabled users to annotate repositories with topic tags. It has also provided a set of featured topics, and their possible aliases carefully curated with the help of the community. This creates the opportunity to use this initial seed of topics to automatically annotate all remaining repositories, by training models that recommend high-quality topic tags to developers.
In this work, we study the application of multi-label classification techniques to predict software repositories' topics. First, we map the large space of user-defined topics to those featured by GitHub. The core idea is to derive more information from projects' available documentation. Our data contains about $152$K GitHub repositories and $228$ featured topics. Then, we apply supervised models on repositories' textual information such as descriptions, README files, wiki pages, and file names. We assess the performance of our approach both quantitatively and qualitatively. Our proposed model achieves Recall@5 and LRAP scores of $0.890$ and $0.805$, respectively. Moreover, based on users' assessment, our approach is highly capable of recommending a correct and complete set of topics. Finally, we use our models to develop an online tool named \texttt{Repository Catalogue}, that automatically predicts topics for GitHub repositories and is publicly available.
LLM-based Content Classification Approach for GitHub Repositories by the README Files
Department of Computing and Built Environment(计算与环境系);Birmingham City University(伯明翰城市大学);Department of Computer Science and Software Engineering(计算机科学与软件工程系);School of Engineering(工程学院);Penn State University, Behrend, Erie PA(宾夕法尼亚州立大学贝伦分校,埃里普斯帕州);Department of Electrical Engineering(电气工程系);UET Taxila(塔希尔工程大学)
Towards Leveraging Large Language Model Summaries for Topic Modeling in Source Code
Dept. of Informatics, Systems and Communication, University of Milano-Bicocca(信息与通信系统系,米兰-比科卡大学);Dept. of Human and Social Sciences, University of Bergamo(人文与社会科学系,贝拉戈莫大学)