Task-Oriented API Usage Examples Prompting Powered By Programming Task Knowledge Graph

Jiamou Sun, Zhenchang Xing, Xin Peng, Xiwei Xu, Liming Zhu
{"title":"Task-Oriented API Usage Examples Prompting Powered By Programming Task Knowledge Graph","authors":"Jiamou Sun, Zhenchang Xing, Xin Peng, Xiwei Xu, Liming Zhu","doi":"10.26226/morressier.613b5418842293c031b5b5eb","DOIUrl":null,"url":null,"abstract":"Programming tutorials demonstrate programming tasks with code examples. However, our study of Stack Overflow questions reveals the low utilization of high-quality programming tutorials, which is caused task description mismatch and code information overload. Neither document search nor recently proposed activity-centric search can address these two barriers. In this work, we enrich the programming task knowledge graph with actions extracted from comments in code examples and more forms of activity sentences. To overcome the task description mismatch problem, we use code matching based task search method to find relevant programming tasks and code examples to the code under development. We integrate our knowledge graph and task search method in the IDE, and develop an observe-push based tool to prompt developers with API usage examples in explicit task contexts. To alleviate the code information overload problem, our tool highlights programming task and API information in the prompted tutorial excerpts and code examples based on the underlying knowledge graph. Our evaluation confirms the high quality of the constructed knowledge graph, and show that our code matching based task search can recommend effective code solutions to programming issues asked on Stack Overflow. Through an user study, we demonstrate that our tool is useful for assisting developers in finding and using relevant programming tutorials in their programming tasks.","PeriodicalId":205629,"journal":{"name":"2021 IEEE International Conference on Software Maintenance and Evolution (ICSME)","volume":"57 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-06-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"6","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 IEEE International Conference on Software Maintenance and Evolution (ICSME)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.26226/morressier.613b5418842293c031b5b5eb","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 6

Abstract

Programming tutorials demonstrate programming tasks with code examples. However, our study of Stack Overflow questions reveals the low utilization of high-quality programming tutorials, which is caused task description mismatch and code information overload. Neither document search nor recently proposed activity-centric search can address these two barriers. In this work, we enrich the programming task knowledge graph with actions extracted from comments in code examples and more forms of activity sentences. To overcome the task description mismatch problem, we use code matching based task search method to find relevant programming tasks and code examples to the code under development. We integrate our knowledge graph and task search method in the IDE, and develop an observe-push based tool to prompt developers with API usage examples in explicit task contexts. To alleviate the code information overload problem, our tool highlights programming task and API information in the prompted tutorial excerpts and code examples based on the underlying knowledge graph. Our evaluation confirms the high quality of the constructed knowledge graph, and show that our code matching based task search can recommend effective code solutions to programming issues asked on Stack Overflow. Through an user study, we demonstrate that our tool is useful for assisting developers in finding and using relevant programming tutorials in their programming tasks.
由编程任务知识图驱动的面向任务的API使用示例提示
编程教程用代码示例演示编程任务。然而,我们对堆栈溢出问题的研究揭示了高质量编程教程的低利用率,这导致了任务描述不匹配和代码信息过载。文档搜索和最近提出的以活动为中心的搜索都不能解决这两个障碍。在这项工作中,我们通过从代码示例中的注释和更多形式的活动句中提取动作来丰富编程任务知识图。为了克服任务描述不匹配的问题,我们使用基于代码匹配的任务搜索方法为正在开发的代码找到相关的编程任务和代码示例。我们在IDE中集成了我们的知识图谱和任务搜索方法,并开发了一个基于观察推送的工具来提示开发人员在明确的任务上下文中使用API的示例。为了缓解代码信息过载问题,我们的工具在提示的教程摘录和基于底层知识图的代码示例中突出显示编程任务和API信息。我们的评估证实了构建的知识图的高质量,并表明我们基于代码匹配的任务搜索可以为Stack Overflow上提出的编程问题推荐有效的代码解决方案。通过用户研究,我们证明了我们的工具对于帮助开发人员在他们的编程任务中查找和使用相关的编程教程是有用的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信