Code search via topic-enriched dependence graph matching
Source code contains textual, structural, and semantic information, which can all be leveraged for effective search. Some studies have proposed semantic code search where users can specify query topics in a natural language. Other studies can search through system dependence graphs. In this paper, w...
Saved in:
Main Authors: | , , |
---|---|
Format: | text |
Language: | English |
Published: |
Institutional Knowledge at Singapore Management University
2011
|
Subjects: | |
Online Access: | https://ink.library.smu.edu.sg/sis_research/1397 https://ink.library.smu.edu.sg/context/sis_research/article/2396/viewcontent/CodeSearchTopicEnriched_2011.pdf |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Singapore Management University |
Language: | English |
id |
sg-smu-ink.sis_research-2396 |
---|---|
record_format |
dspace |
spelling |
sg-smu-ink.sis_research-23962017-02-05T02:45:02Z Code search via topic-enriched dependence graph matching WANG, Shaowei LO, David JIANG, Lingxiao Source code contains textual, structural, and semantic information, which can all be leveraged for effective search. Some studies have proposed semantic code search where users can specify query topics in a natural language. Other studies can search through system dependence graphs. In this paper, we propose a semantic dependence search engine that integrates both kinds of techniques and can retrieve code snippets based on expressive user queries describing both topics and dependencies. Users can specify their search targets in a free form format describing desired topics (i.e., high-level semantic or functionality of the target code); a specialized graph query language allows users to describe low-level data and control dependencies in code and thus helps to refine the queries described in the free format. Our empirical evaluation on a number of software maintenance tasks shows that our search engine can efficiently locate desired code fragments accurately. 2011-10-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/1397 info:doi/10.1109/WCRE.2011.69 https://ink.library.smu.edu.sg/context/sis_research/article/2396/viewcontent/CodeSearchTopicEnriched_2011.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University Code search dependence graphs topic modelling Software Engineering |
institution |
Singapore Management University |
building |
SMU Libraries |
continent |
Asia |
country |
Singapore Singapore |
content_provider |
SMU Libraries |
collection |
InK@SMU |
language |
English |
topic |
Code search dependence graphs topic modelling Software Engineering |
spellingShingle |
Code search dependence graphs topic modelling Software Engineering WANG, Shaowei LO, David JIANG, Lingxiao Code search via topic-enriched dependence graph matching |
description |
Source code contains textual, structural, and semantic information, which can all be leveraged for effective search. Some studies have proposed semantic code search where users can specify query topics in a natural language. Other studies can search through system dependence graphs. In this paper, we propose a semantic dependence search engine that integrates both kinds of techniques and can retrieve code snippets based on expressive user queries describing both topics and dependencies. Users can specify their search targets in a free form format describing desired topics (i.e., high-level semantic or functionality of the target code); a specialized graph query language allows users to describe low-level data and control dependencies in code and thus helps to refine the queries described in the free format. Our empirical evaluation on a number of software maintenance tasks shows that our search engine can efficiently locate desired code fragments accurately. |
format |
text |
author |
WANG, Shaowei LO, David JIANG, Lingxiao |
author_facet |
WANG, Shaowei LO, David JIANG, Lingxiao |
author_sort |
WANG, Shaowei |
title |
Code search via topic-enriched dependence graph matching |
title_short |
Code search via topic-enriched dependence graph matching |
title_full |
Code search via topic-enriched dependence graph matching |
title_fullStr |
Code search via topic-enriched dependence graph matching |
title_full_unstemmed |
Code search via topic-enriched dependence graph matching |
title_sort |
code search via topic-enriched dependence graph matching |
publisher |
Institutional Knowledge at Singapore Management University |
publishDate |
2011 |
url |
https://ink.library.smu.edu.sg/sis_research/1397 https://ink.library.smu.edu.sg/context/sis_research/article/2396/viewcontent/CodeSearchTopicEnriched_2011.pdf |
_version_ |
1770571105937915904 |