• KSII Transactions on Internet and Information Systems
    Monthly Online Journal (eISSN: 1976-7277)

Automatic identification of Java Method Naming Patterns Using Cascade K-Medoids

Vol. 12, No. 2, February 27, 2018
10.3837/tiis.2018.02.020, Download Paper (Free):

Abstract

This paper suggests an automatic approach to extracting Java method implementation patterns associated with method identifiers using Cascade K-Medoids. Java method implementation patterns indicate recurring implementations for achieving the purpose described in the method identifier with the given parameters and return type. If the implementation is different from the purpose, readers of the code tend to take more time to comprehend the method, which eventually affects to the increment of software maintenance cost. In order to automatically identify implementation patterns and its representative sample code, we first propose three groups of feature vectors for characterizing the Java method signature, method body and their relation. Then, we apply Cascade K-Medoids by enhancing the K-Medoids algorithm with the Calinski and Harrabasez algorithm. As the evaluation of our approach, we identified 16,768 implementation patterns of 7,169 method identifiers from 50 open source projects. The implementation patterns have been validated by the 30 industrial practitioners with from 1 to 6 years industrial experience, resulting in 86% of the precision.


Statistics

Show / Hide Statistics

Statistics (Cumulative Counts from December 1st, 2015)
Multiple requests among the same browser session are counted as one view.
If you mouse over a chart, the values of data points will be shown.


Cite this article

[IEEE Style]
T. Kim, S. Kim, J. Kim, J. Choi, J. Lee, Y. Cho and Y. Nam, "Automatic identification of Java Method Naming Patterns Using Cascade K-Medoids," KSII Transactions on Internet and Information Systems, vol. 12, no. 2, pp. 873-891, 2018. DOI: 10.3837/tiis.2018.02.020.

[ACM Style]
Tae-young Kim, Suntae Kim, Jeong-Ah Kim, Jae-Young Choi, Jee-Huong Lee, Youngwha Cho, and Young-Kwang Nam. 2018. Automatic identification of Java Method Naming Patterns Using Cascade K-Medoids. KSII Transactions on Internet and Information Systems, 12, 2, (2018), 873-891. DOI: 10.3837/tiis.2018.02.020.