Skip to main navigation Skip to search Skip to main content

Code Clone Configuration as a Multi-Objective Search Problem

  • Universidade Estadual Do Ceara

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Clone detection is an automated process for finding duplicated code within a project's code base or between online sources. Nowadays, the code cloning community advocates that developers must be aware of the clones they may have in their code bases. In modern clone detection, rank-based tools appear as the ones able to handle the large code corpora that are necessary to identify online clones. However, such tools are sensitive to their parameters, which directly affects their clone detection abilities. Moreover, existing parameter optimization approaches for clone detectors are not meant for rank-based tools. To overcome this issue and facilitate empirical studies of code clones, we introduce Multi-objective Code Clone Configuration, a new approach based on multi-objective optimization to search for an optimal set of parameters for a rank-based clone detection tool. In our empirical evaluation, we ran 3 baseline search algorithms and NSGA-II to assess their performance in this new optimization problem. Additionally, we compared the optimized configurations with the default one. Our results show that NSGA-II was the algorithm that achieved the best performance, finding better configurations than those of the baseline algorithms. Finally, the optimized configurations achieved improvements of 71.08% and 46.29% for our fitness functions.

Original languageEnglish
Title of host publicationProceedings of the 18th ACM/IEEE International Symposium on Empirical Software Engineering and Measurement, ESEM 2024
PublisherIEEE Computer Society
Pages503-509
Number of pages7
ISBN (Electronic)9798400710476
DOIs
Publication statusPublished - 24 Oct 2024
Event18th ACM/IEEE International Symposium on Empirical Software Engineering and Measurement, ESEM 2024 - Barcelona, Spain
Duration: 24 Oct 202425 Oct 2024

Publication series

NameInternational Symposium on Empirical Software Engineering and Measurement
ISSN (Print)1949-3770
ISSN (Electronic)1949-3789

Conference

Conference18th ACM/IEEE International Symposium on Empirical Software Engineering and Measurement, ESEM 2024
Country/TerritorySpain
CityBarcelona
Period24/10/2425/10/24

Keywords

  • Clone Detection
  • Multi-objective Optimization
  • Search-based Software Engineering

Fingerprint

Dive into the research topics of 'Code Clone Configuration as a Multi-Objective Search Problem'. Together they form a unique fingerprint.

Cite this