Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Enhancing Match Detection Process Using Chi-Square Equation for Improving Type-3 and Type-4 Clones in Java Applications

Author 1: Noormaizzattul Akmaliza Abdullah Author 2: Al-Fahim Mubarak-Ali Author 3: Mohd Azwan Mohamad Hamza Author 4: Siti Salwani Yaacob
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 16, No. 4 · Published 2025

DOI: https://doi.org/10.14569/IJACSA.2025.0160477

Abstract

Generic Code Clone Detection (GCCD) is a code clone detection model that use distance measure equation, enabling detection of all types of code clones, naming clone Type-1, Type-2, Type-3 and Type-4 in Java programming language applications. However, the detection process of GCCD did not focus on detecting clones of Type-3 and Type-4. Hence, this paper suggested two experiments to incorporate enhancements to the GCCD in order to improve the detection rate of clone Type-3 and clone Type-4. The implementation of Chi-square distance in the match detection process produced a significant result increase in the experiment specifically on clones Type-3 and Type-4, in comparison with the Euclidean distance in GCCD, which allows the increase of detection rate due to the dissimilarity of the distance measures. Based on the results, the suggested enhancement using Chi-square distance on match detection process outperforms GCCD in terms of improving code clone detection results based on clone Type-3 and Type-4, as the objectives for each experiment are carried, contributes to the research on improving the code clone detection result.

Keywords

How to Cite this Article

Abdullah, N. A., Mubarak-Ali, A., Hamza, M. A. M., & Yaacob, S. S. (2025). Enhancing Match Detection Process Using Chi-Square Equation for Improving Type-3 and Type-4 Clones in Java Applications. International Journal of Advanced Computer Science and Applications, 16(4). https://doi.org/10.14569/IJACSA.2025.0160477

Abdullah, Noormaizzattul Akmaliza, et al.. "Enhancing Match Detection Process Using Chi-Square Equation for Improving Type-3 and Type-4 Clones in Java Applications." International Journal of Advanced Computer Science and Applications, vol. 16, no. 4, 2025, https://doi.org/10.14569/IJACSA.2025.0160477.

@article{Abdullah2025,
  title     = {Enhancing Match Detection Process Using Chi-Square Equation for Improving Type-3 and Type-4 Clones in Java Applications},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {16},
  number    = {4},
  year      = {2025},
  publisher = {The Science and Information Organization},
  author    = {Noormaizzattul Akmaliza Abdullah and Al-Fahim Mubarak-Ali and Mohd Azwan Mohamad Hamza and Siti Salwani Yaacob},
  doi       = {10.14569/IJACSA.2025.0160477},
  url       = {https://doi.org/10.14569/IJACSA.2025.0160477}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.