MACs: Mining API code snippets for code reuse

Gespeichert in:
Bibliographische Detailangaben
Titel: MACs: Mining API code snippets for code reuse
Autoren: Hsu, Sheng-Kuei johnsu.tw@gamil.com, Lin, Shi-Jen1 sjlin@mgt.ncu.edu.tw
Quelle: Expert Systems with Applications. Jun2011, Vol. 38 Issue 6, p7291-7301. 11p.
Schlagwörter: *CODE reuse, *ASSOCIATION rule mining, *SOURCE code, *COMPUTER software development, *OBJECT-oriented programming, *PROTOTYPES, *SEQUENTIAL pattern mining, *RECOMMENDER systems
Abstract: Abstract: We apply data mining to source code projects to guide developers through related API usage patterns: “Developers who code the program statement also code…” Given a set of source code files, the mined association rules suggest related code snippets to form the components of object-oriented programs. The mined sequential rules predict likely additional API sequences within a method. After an initial program statement is given, our MACs prototype can correctly predict useful related API code snippets. In our evaluation, we present two studies investigating the usefulness of MACs in software development tasks. One study evaluated the utility of MACs’s association pattern recommendations. The other evaluated usefulness of sequential pattern recommendations, and both drew from a sample of eight source code projects from SourceForge.net. Our experimental evaluation shows that MACs has significant potential to assist developers, especially API newcomers, and provides an alternative method for code reuse. [Copyright &y& Elsevier]
Datenbank: Academic Search Index
Beschreibung
Abstract:Abstract: We apply data mining to source code projects to guide developers through related API usage patterns: “Developers who code the program statement also code…” Given a set of source code files, the mined association rules suggest related code snippets to form the components of object-oriented programs. The mined sequential rules predict likely additional API sequences within a method. After an initial program statement is given, our MACs prototype can correctly predict useful related API code snippets. In our evaluation, we present two studies investigating the usefulness of MACs in software development tasks. One study evaluated the utility of MACs’s association pattern recommendations. The other evaluated usefulness of sequential pattern recommendations, and both drew from a sample of eight source code projects from SourceForge.net. Our experimental evaluation shows that MACs has significant potential to assist developers, especially API newcomers, and provides an alternative method for code reuse. [Copyright &y& Elsevier]
ISSN:09574174
DOI:10.1016/j.eswa.2010.12.021