arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.00385cs.SEcs.IR
收藏

基于搜索引擎的现场软件检索实证研究

An Empirical Study of Software Exceptions in the Field using Search Logs

Foyzul Hassan, Chetan Bansal, Nachiappan Nagappan, Thomas Zimmermann, Ahmed Hassan Awadallah

摘要:

软件工程师花费大量的时间使用Web搜索来完成软件工程任务。这些搜索任务包括查找代码片段、API文档、寻求调试帮助等。在调试错误或崩溃时,软件工程师的常见做法之一是在互联网上搜索有关相关错误或异常跟踪的信息。在本文中,我们分析了查询日志从领先的商业通用搜索引擎(GPSE),如谷歌,雅虎!或Bing进行了一项大规模的软件异常研究。据我们所知,这是第一个大规模的研究,分析如何使用Web搜索来查找有关异常的信息。我们从50亿个网络搜索查询的随机样本中分析了大约100万个异常相关的搜索查询。为了从非结构化查询文本中提取异常,我们构建了一个新颖的高性能机器学习模型,F1得分为0.82。使用机器学习模型,我们从原始查询中提取异常,并进行流行度,努力,成功,查询特征和Web域分析。我们还执行了特定于程序设计语言的分析,以更好地查看异常搜索行为。这些技术可以帮助改进用于异常分析和预测的现有方法、文档和工具。此外,类似的技术可以应用于API、框架等。

英文摘要:

Software engineers spend a substantial amount of time using Web search to accomplish software engineering tasks. Such search tasks include finding code snippets, API documentation, seeking help with debugging, etc. While debugging a bug or crash, one of the common practices of software engineers is to search for information about the associated error or exception traces on the internet. In this paper, we analyze query logs from a leading commercial general-purpose search engine (GPSE) such as Google, Yahoo! or Bing to carry out a large scale study of software exceptions. To the best of our knowledge, this is the first large scale study to analyze how Web search is used to find information about exceptions. We analyzed about 1 million exception related search queries from a random sample of 5 billion web search queries. To extract exceptions from unstructured query text, we built a novel and high-performance machine learning model with a F1-score of 0.82. Using the machine learning model, we extracted exceptions from raw queries and performed popularity, effort, success, query characteristic and web domain analysis. We also performed programming language-specific analysis to give a better view of the exception search behavior. These techniques can help improve existing methods, documentation and tools for exception analysis and prediction. Further, similar techniques can be applied for APIs, frameworks, etc.

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

↑