ExPort: Detecting and visualizing API usages in large source code repositories

Evan Moritz, Mario Linares-Vasquez, Denys Poshyvanyk, Mark Grechanik, Collin McMillan, Malcom Gethers
2013 2013 28th IEEE/ACM International Conference on Automated Software Engineering (ASE)  
This paper presents a technique for automatically mining and visualizing API usage examples. In contrast to previous approaches, our technique is capable of finding examples of API usage that occur across several functions in a program. This distinction is important because of a gap between what current API learning tools provide and what programmers need: current tools extract relatively small examples from single files/functions, even though programmers use APIs to build large software. The
more » ... rge software. The small examples are helpful in the initial stages of API learning, but leave out details that are helpful in later stages. Our technique is intended to fill this gap. It works by representing software as a Relational Topic Model, where API calls and the functions that use them are modeled as a document network. Given a starting API, our approach can recommend complex API usage examples mined from a repository of over 14 million Java methods.
doi:10.1109/ase.2013.6693127 dblp:conf/kbse/MoritzVPGMG13 fatcat:4hlqaxx57nag3h5b6st6cjuy3q