Datasets
Standard Dataset
CoSQAPlus

- Citation Author(s):
- Submitted by:
- Jing Gong
- Last updated:
- Thu, 04/10/2025 - 02:55
- DOI:
- 10.21227/yj8s-z247
- Data Format:
- License:
- Categories:
- Keywords:
Abstract
Semantic code search, retrieving code that matches a given natural language query, is an important task to improve productivity in software engineering. Existing code search datasets face limitations: they rely on human annotators who assess code primarily through semantic understanding rather than functional verification, leading to potential inaccuracies and scalability issues. Additionally, current evaluation metrics often overlook the multi-choice nature of code search. This paper introduces CoSQA+, pairing high-quality queries from CoSQA with multiple suitable codes. We develop an automated pipeline featuring multiple model-based candidate selections and the novel test-driven agent annotation system. Among a single Large Language Model (LLM) annotator and Python expert annotators (without test-based verification), agents leverage test-based verification and achieve the highest accuracy of 92.0%. Through extensive experiments, CoSQA+ has demonstrated superior quality over CoSQA. Models trained on CoSQA+ exhibit improved performance.
Research paper
Documentation
Attachment | Size |
---|---|
1002.99 KB |