Pull requests (PRs) on GitHub often include hyperlinks to issues, commits, and documentation that reviewers must manually inspect, which can lead to context switching and increased cognitive load. We conduct an empirical study of 486,423 PRs from 50 popular GitHub repositories and find that hyperlinks are pervasive, with an average of 4.69 links per PR description and a highly skewed distribution. Motivated by these findings, we propose an automated approach that ranks the links within a PR description by their contextual relevance. We compare techniques spanning lexical, semantic, and supervised methods, including TF-IDF, large language model (LLM)-based encoders, cross-encoder rerankers, and Learning-to-Rank (LTR). On a manually annotated dataset of 700 high-link-density PRs, our LTR model achieves the best ranking performance. We implement the approach as a GitHub Action, MonnetalX, which presents the ranked links together with summaries of the top-ranked resources. A human evaluation involving 14 participants shows that the ranked links help reviewers save time, stay focused, and reduce cognitive load, with 85.7% of participants rating the reduction in cognitive load as good or excellent. Our results show that links are pervasive in PR descriptions. LTR with lexical and semantic features performs best for link ranking, and link ranking benefits software developers by saving time, enabling greater focus, and reducing cognitive load.


翻译:暂无翻译

0
下载
关闭预览

相关内容

【反馈循环自编码器】FEEDBACK RECURRENT AUTOENCODER
专知会员服务
23+阅读 · 2020年1月28日
disentangled-representation-papers
CreateAMind
26+阅读 · 2018年9月12日
Network Embedding 指南
专知
22+阅读 · 2018年8月13日
GitHub获赞过千:PyTorch 自然语言处理项目Top 5
新智元
12+阅读 · 2018年7月10日
论文浅尝 | Question Answering over Freebase
开放知识图谱
19+阅读 · 2018年1月9日
[深度学习] AlexNet,GoogLeNet,VGG,ResNet简化版
机器学习和数学
20+阅读 · 2017年10月13日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
7+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
5+阅读 · 2014年12月31日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
10+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
9+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
5+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
9+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
8+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
16+阅读 · 11月25日
相关VIP内容
【反馈循环自编码器】FEEDBACK RECURRENT AUTOENCODER
专知会员服务
23+阅读 · 2020年1月28日
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
7+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
5+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员