Please use this identifier to cite or link to this item: http://hdl.handle.net/10071/35761
Author(s): Prendi, G.
Sousa, H.
Santos, A. L.
Ribeiro, R.
Editor: Luis Veiga
Ricardo Rocha
Date: 2015
Title: Exploring APIs with N-gram language models
Book title/volume: INFORUM 2015: Atas do 7º Simpósio Nacional de Informática
Pages: 296 - 310
Event title: INFORUM 2015
Reference: Prendi, G., Sousa, H., Santos, A. L., & Ribeiro, R. (2015). Exploring APIs with N-gram language models. In L. Veiga, R. Rocha (Eds.), INFORUM 2015: Atas do 7º Simpósio Nacional de Informática (pp. 296-310) UBI. http://hdl.handle.net/10071/35761
ISBN: 978-989-654-248-1
Keywords: APIs
Java -- Java
Perplexity
Source code mining
Code completion
N-gram language models
Abstract: Software development requires the use of external Application Programming Interfaces (APIs) in order to reuse libraries and frameworks. Programmers often struggle with unfamiliar APIs. Such difficulties often lead to an incorrect sequence of API calls that may not produce the desired outcome. Language models have shown the ability to capture regularities in text as well as in code. In this paper we explore the use of n-gram language models and their ability to capture regularities in APIs. We explored some of the most widely used APIs with the Java programming language, training several language models over hundreds of GitHub Java projects that use these APIs. The evaluation shows perplexity values for these language models that hint the possibility of using them to produce a tool to assist developers with code completion when using an unfamiliar API. On the one hand, such a tool may help developers to write correct API call sequences more efficiently; and, on the other hand, allows them to explore the features offered by the API.
Peerreviewed: yes
Access type: Open Access
Appears in Collections:ISTAR-CRN - Comunicações a conferências nacionais

Files in This Item:
File SizeFormat 
conferenceObject_24695.pdf523,78 kBAdobe PDFView/Open


FacebookTwitterDeliciousLinkedInDiggGoogle BookmarksMySpaceOrkut
Formato BibTex mendeley Endnote Logotipo do DeGóis Logotipo do Orcid 

Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.