DocumentCode :
175559
Title :
On the Use of Context in Recommending Exception Handling Code Examples
Author :
Rahman, Md Mamunur ; Roy, Chanchal K.
Author_Institution :
Dept. of Comput. Sci., Univ. of Saskatchewan, Saskatoon, SK, Canada
fYear :
2014
fDate :
28-29 Sept. 2014
Firstpage :
285
Lastpage :
294
Abstract :
Studies show that software developers often either misuse exception handling features or use them inefficiently, and such a practice may lead an undergoing software project to a fragile, insecure and non-robust application system. In this paper, we propose a context-aware code recommendation approach that recommends exception handling code examples from a number of popular open source code repositories hosted at GitHub. It collects the code examples exploiting GitHub code search API, and then analyzes, filters and ranks them against the code under development in the IDE by leveraging not only the structural (i.e., graph-based) and lexical features but also the heuristic quality measures of exception handlers in the examples. Experiments with 4,400 code examples and 65 exception handling scenarios as well as comparisons with four existing approaches show that the proposed approach is highly promising.
Keywords :
application program interfaces; exception handling; public domain software; software maintenance; ubiquitous computing; GitHub code search API; IDE; context-aware code recommendation approach; exception handling code examples; filtering; heuristic quality measures; lexical features; open source code repositories; ranking; software development; software maintenance; structural features; Cloning; Context; Estimation; Measurement; Programming; Software; Uniform resource locators; Exception handler; context-relevance; lexical similarity; structural similarity;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Source Code Analysis and Manipulation (SCAM), 2014 IEEE 14th International Working Conference on
Conference_Location :
Victoria, BC
Type :
conf
DOI :
10.1109/SCAM.2014.15
Filename :
6975662
Link To Document :
بازگشت