Predicting Query Quality for Applications of Text Retrieval to Software Engineering Tasks

Author:

Mills Chris1,Bavota Gabriele2,Haiduc Sonia1,Oliveto Rocco3,Marcus Andrian4,Lucia Andrea De5

Affiliation:

1. Florida State University, FL, USA

2. Università della Svizzera italiana, Lugano, Switzerland

3. University of Molise, Pesche, IS, Italy

4. University of Texas at Dallas, TX, USA

5. University of Salerno, Fisciano (SA), Italy

Abstract

Context: Since the mid-2000s, numerous recommendation systems based on text retrieval (TR) have been proposed to support software engineering (SE) tasks such as concept location, traceability link recovery, code reuse, impact analysis, and so on. The success of TR-based solutions highly depends on the query submitted, which is either formulated by the developer or automatically extracted from software artifacts. Aim: We aim at predicting the quality of queries submitted to TR-based approaches in SE. This can lead to benefits for developers and for the quality of software systems alike. For example, knowing when a query is poorly formulated can save developers the time and frustration of analyzing irrelevant search results. Instead, they could focus on reformulating the query. Also, knowing if an artifact used as a query leads to irrelevant search results may uncover underlying problems in the query artifact itself. Method: We introduce an automatic query quality prediction approach for software artifact retrieval by adapting NL-inspired solutions to their use on software data. We present two applications and evaluations of the approach in the context of concept location and traceability link recovery, where TR has been applied most often in SE. For concept location, we use the approach to determine if the list of retrieved code elements is likely to contain code relevant to a particular change request or not, in which case, the queries are good candidates for reformulation. For traceability link recovery, the queries represent software artifacts. In this case, we use the query quality prediction approach to identify artifacts that are hard to trace to other artifacts and may therefore have a low intrinsic quality for TR-based traceability link recovery. Results: For concept location, the evaluation shows that our approach is able to correctly predict the quality of queries in 82% of the cases, on average, using very little training data. In the case of traceability recovery, the proposed approach is able to detect hard to trace artifacts in 74% of the cases, on average. Conclusions: The results of our evaluation on applications for concept location and traceability link recovery indicate that our approach can be used to predict the results of a TR-based approach by assessing the quality of the text query. This can lead to saved effort and time, as well as the identification of software artifacts that may be difficult to trace using TR.

Funder

NSF

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Cited by 23 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. XCoS: Explainable Code Search Based on Query Scoping and Knowledge Graph;ACM Transactions on Software Engineering and Methodology;2023-09-29

2. A Systematic Review of Automated Query Reformulations in Source Code Search;ACM Transactions on Software Engineering and Methodology;2023-09-28

3. Automatic Query Quality Prediction Using Feed Forward Neural Network;2023 IEEE 4th Annual Flagship India Council International Subsections Conference (INDISCON);2023-08-05

4. DigBug—Pre/post-processing operator selection for accurate bug localization;Journal of Systems and Software;2022-07

5. Predictive Models in Software Engineering: Challenges and Opportunities;ACM Transactions on Software Engineering and Methodology;2022-04-09

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3