Categorizing and Recommending API Usage Patterns Based on Degree Centralities and Pattern Distances

Shin-Jie Lee, Wu Chen Su, Chi En Huang, Jie Lin You

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Although efforts have been made on discovering and searching API usage patterns, how to categorize and recommend follow-up API usage patterns is still largely unexplored. This paper advances the state-of-the-art by proposing two methods for categorizing and recommending API usage patterns: first, categories of the usage patterns are automatically identified based on a proposed degree centrality-based clustering algorithm, and second, follow-up usage patterns of an adopted pattern are recommended based on a proposed metric of measuring distances between patterns. In the experimental evaluations, the patterns categorization can achieve 85.4% precision rate with 83% recall rate. The patterns recommendation had approximately half a chance of correctly predicting the follow-up patterns that were actually used by the programmers.

Original languageEnglish
Title of host publicationProceedings - 2016 International Computer Symposium, ICS 2016
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages583-588
Number of pages6
ISBN (Electronic)9781509034383
DOIs
Publication statusPublished - 2017 Feb 16
Event2016 International Computer Symposium, ICS 2016 - Chiayi, Taiwan
Duration: 2016 Dec 152016 Dec 17

Publication series

NameProceedings - 2016 International Computer Symposium, ICS 2016

Other

Other2016 International Computer Symposium, ICS 2016
CountryTaiwan
CityChiayi
Period16-12-1516-12-17

All Science Journal Classification (ASJC) codes

  • Computer Vision and Pattern Recognition
  • Hardware and Architecture
  • Computer Networks and Communications
  • Computer Science Applications

Fingerprint Dive into the research topics of 'Categorizing and Recommending API Usage Patterns Based on Degree Centralities and Pattern Distances'. Together they form a unique fingerprint.

  • Cite this

    Lee, S-J., Su, W. C., Huang, C. E., & You, J. L. (2017). Categorizing and Recommending API Usage Patterns Based on Degree Centralities and Pattern Distances. In Proceedings - 2016 International Computer Symposium, ICS 2016 (pp. 583-588). [7858542] (Proceedings - 2016 International Computer Symposium, ICS 2016). Institute of Electrical and Electronics Engineers Inc.. https://doi.org/10.1109/ICS.2016.0120