Skip to content

masud-technope/SurfExample-Replication-Package-SCAM2014

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

On the Use of Context in Recommending Exception Handling Code Examples

Accepted at SCAM 2014

On the Use of Context in Recommending Exception Handling Code Examples
Mohammad Masudur Rahman and Chanchal K. Roy

Download this paper: PDF

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.

Experimental Data

Exception & Context Code

  • Exceptions (65)
  • Exception context code (65)

Code Corpus & Ground Truth

  • Corpus code examples (4,400)
  • Solution code examples

Metric Weight Estimation

  • Individual metric values for 650 code examples
  • Individual metric WEKA ARFF file
  • Subtotal metric values for 650 code examples
  • Subtotal metric WEKA ARFF file
  • Estimated Metric Weights

Replication Package

  • Eclipse plug-in
  • SurfExample server

Please cite our work as

@INPROCEEDINGS{scam2014masud, 
author={M. M. Rahman and C. K. Roy}, 
booktitle={Proc. SCAM}, 
title={On the Use of Context in Recommending Exception Handling Code Examples}, 
year={2014}, 
pages={285-294} }

Download this paper: PDF

Something not working as expected?

Contact: Masud Rahman ([email protected])

OR

Create an issue from here