• Home
  • Search
  • CodeHow: Effective Code Search Based on API Understanding and Extended Boolean Model (E)
  • Open Access IconOpen Access
  • Cite Icon280
  • https://doi.org/10.1109/ase.2015.42Copy DOI Icon

CodeHow: Effective Code Search Based on API Understanding and Extended Boolean Model (E)

  • Nov 1, 2015
  • Fei Lv +5 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Over the years of software development, a vast amount of source code has been accumulated. Many code search tools were proposed to help programmers reuse previously-written code by performing free-text queries over a large-scale codebase. Our experience shows that the accuracy of these code search tools are often unsatisfactory. One major reason is that existing tools lack of query understanding ability. In this paper, we propose CodeHow, a code search technique that can recognize potential APIs a user query refers to. Having understood the potentially relevant APIs, CodeHow expands the query with the APIs and performs code retrieval by applying the Extended Boolean model, which considers the impact of both text similarity and potential APIs on code search. We deploy the backend of CodeHow as a Microsoft Azure service and implement the front-end as a Visual Studio extension. We evaluate CodeHow on a large-scale codebase consisting of 26K C# projects downloaded from GitHub. The experimental results show that when the top 1 results are inspected, CodeHow achieves a precision score of 0.794 (i.e., 79.4% of the first returned results are relevant code snippets). The results also show that CodeHow outperforms conventional code search tools. Furthermore, we perform a controlled experiment and a survey of Microsoft developers. The results confirm the usefulness and effectiveness of CodeHow in programming practices.

Similar Papers
  • Research Article
  • Citations15

Big Code Search: A Bibliography

  • Aug 26, 2023
  • ACM Computing Surveys
  • Kisub Kim +7
  • Conference Article
  • Citations8

A case study of paired interleaving for evaluating code search techniques

  • Feb 01, 2014
  • Kostadin Damevski +2
  • Conference Article
  • Citations621

Deep code search

  • May 27, 2018
  • Xiaodong Gu +2
  • Research Article
  • Citations49

Example overflow: using social media for code recommendation

  • Jun 04, 2012
  • Alexey Zagalsky +2
  • Research Article
  • Citations14

IECS: Intent-Enforced Code Search via Extended Boolean Model

  • Jul 08, 2017
  • Journal of Intelligent & Fuzzy Systems
  • Yangrui Yang +1
  • Research Article
  • Citations1

Fault Localization from the Semantic Code Search Perspective

  • Aug 26, 2025
  • ACM Transactions on Software Engineering and Methodology
  • Yihao Qin +8
  • Research Article
  • Citations28

CodeMatcher: Searching Code Based on Sequential Semantics of Important Query Words

  • Sep 28, 2021
  • ACM Transactions on Software Engineering and Methodology
  • Chao Liu +5
  • Conference Article
  • Citations30

Is a Single Model Enough? MuCoS: A Multi-Model Ensemble Learning Approach for Semantic Code Search

  • Oct 26, 2021
  • Lun Du +5
  • Research Article
  • Citations5

SECON: Maintaining Semantic Consistency in Data Augmentation for Code Search

  • Jan 16, 2025
  • ACM Transactions on Information Systems
  • Xu Zhang +5
  • Conference Article

Scaling up evaluation of code search tools through developer usage metrics

  • Mar 01, 2015
  • Kostadin Damevski +2
  • Conference Article
  • Citations44

Adaptive Deep Code Search

  • Jul 13, 2020
  • Chunyang Ling +3
  • PDF
  • Research Article
  • Citations11

Incorporating Code Structure and Quality in Deep Code Search

  • Feb 16, 2022
  • Applied Sciences
  • Hao Yu +3
  • Research Article
  • Citations12

RAPID: Zero-Shot Domain Adaptation for Code Search with Pre-Trained Models

  • Jun 03, 2024
  • ACM Transactions on Software Engineering and Methodology
  • Guodong Fan +5
  • Research Article
  • Citations1

Deep Semantics-Enhanced Neural Code Search

  • Nov 28, 2024
  • Electronics
  • Ying Yin +5
  • Research Article

METHOD OF PARALLEL HYBRID SEARCH FOR LARGE-SCALE CODE REPOSITORIES

  • Sep 22, 2025
  • Radio Electronics Computer Science Control
  • Вікторія Бойко
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.