Databases Reference
In-Depth Information
Chapter 10
Mining API Usage Specifications via
Searching Source Code from the Web
Suresh Thummalapenta
Department of Computer Science, North Carolina State University
Tao Xie
Department of Computer Science, North Carolina State University
Madhuri R. Marri
Department of Computer Science, North Carolina State University
10.1 Introduction ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 357
10.2 Life-Cycle Model :::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 360
10.3 Example SE Task: Detecting Exception-Handling Defects ::::::::::::::: 361
10.4 Search Phase :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 362
10.5 Analyze Phase ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 364
10.5.1 Resolve Object Types ::::::::::::::::::::::::::::::::::::::::::::: 365
10.5.2 Generate Candidates :::::::::::::::::::::::::::::::::::::::::::::: 365
10.6 Mine Phase :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 369
10.7 Apply Phase ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 371
10.8 Summary :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 372
Bibliography ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 372
10.1 Introduction
The emergence of the web has revolutionized traditional software devel-
opment. In modern software development, programmers often reuse or adapt
existing frameworks or libraries rather than developing similar artifacts from
scratch. Furthermore, programmers often learn how to reuse Application Pro-
gramming Interfaces (APIs) provided by these frameworks or libraries via
searching for relevant code examples from open source code, transforming tra-
ditional software development to search-driven development. Therefore, open
source code available on the web has become a common platform for sharing
357
 
 
 
Search WWH ::




Custom Search