{"id":{"repo_id":"sask","oai_identifier":"oai:harvest.usask.ca:10388/15503"},"canonical_url":"https://search.ndltd.org/etd/sask/oai:harvest.usask.ca:10388/15503","repository":{"repo_id":"sask","name":"University of Saskatchewan","base_url":"https://harvest.usask.ca/server/oai/request"},"display":{"title":"Enhancing Deep Learning Based Clone Detection","abstract":"Code clones are code fragments that share syntactic or semantic similarities. Clones arise when software engineers modify or adapt preexisting codes inside or between codebases to reuse them. It incurs a negative impact and, hence, is crucial for a wide range of software maintenance tasks. Thus, a lot of research focuses on identifying clones and comprehending how they affect current software systems. With the rise of deep learning, clone detection techniques have witnessed high performance but they often lack consistent evaluation, leading to an inaccurate assessment of their true potential. Furthermore, the scarcity of cross-language clone data hinders language-agnostic model development in the era of multi-language development. In addition to these difficulties, future clones become pivotal because they affect how software evolves. In this thesis, we set out to alleviate these challenges through a multi-faceted approach, encompassing a thorough evaluation of existing techniques, improvements in cross-language clone detection, and the development of predictive models for forecasting future clones. At first, we propose a multi-step evaluation approach of the state-of-the-art deep learning models for clone detection. We evaluated three single-language models (ASTNN, CodeBERT, GMN) and two cross-language models (CLCDSA, C4) on benchmarks such as BigCloneBench, SemanticCloneBench, GPTCloneBench and CLCDSA dataset. Moreover, we assessed the models' robustness through random perturbations exploiting mutation operations on SemanticCloneBench. We found that single-language models' performances drop drastically on semantic clones whereas the language-agnostic model (C4) has a more robust performance. Then, we introduced a data augmentation technique for cross-language clone detection models leveraging a pre-trained transcompiler. Experimental results showed that this approach improves the performance of cutting-edge cross-language clone detection models. We also proposed a pipeline to adapt a single-language model (GMN) by leveraging a transcompiler for cross-language clone detection. Subsequently, based on this idea, we released a language-agnostic clone detector, TransClone. Furthermore, we propose a novel approach to predict future syntactic clones. Our experiments showed that CodeBERT, fine-tuned on the existing cloned and non-cloned fragments performs highly in predicting future clone-prone code fragments. We also demonstrate that it is possible to reliably forecast the future file where such clone-prone fragments will be cloned. Our findings yield an efficient evaluation strategy, enhancement of cross-language clone detection models in a low-resource environment, and transfer-learning models for forecasting future clones.","abstract_html":"Code clones are code fragments that share syntactic or semantic similarities. Clones arise when software engineers modify or adapt preexisting codes inside or between codebases to reuse them. It incurs a negative impact and, hence, is crucial for a wide range of software maintenance tasks. Thus, a lot of research focuses on identifying clones and comprehending how they affect current software systems. With the rise of deep learning, clone detection techniques have witnessed high performance but they often lack consistent evaluation, leading to an inaccurate assessment of their true potential. Furthermore, the scarcity of cross-language clone data hinders language-agnostic model development in the era of multi-language development. In addition to these difficulties, future clones become pivotal because they affect how software evolves. In this thesis, we set out to alleviate these challenges through a multi-faceted approach, encompassing a thorough evaluation of existing techniques, improvements in cross-language clone detection, and the development of predictive models for forecasting future clones. At first, we propose a multi-step evaluation approach of the state-of-the-art deep learning models for clone detection. We evaluated three single-language models (ASTNN, CodeBERT, GMN) and two cross-language models (CLCDSA, C4) on benchmarks such as BigCloneBench, SemanticCloneBench, GPTCloneBench and CLCDSA dataset. Moreover, we assessed the models&#x27; robustness through random perturbations exploiting mutation operations on SemanticCloneBench. We found that single-language models&#x27; performances drop drastically on semantic clones whereas the language-agnostic model (C4) has a more robust performance. Then, we introduced a data augmentation technique for cross-language clone detection models leveraging a pre-trained transcompiler. Experimental results showed that this approach improves the performance of cutting-edge cross-language clone detection models. We also proposed a pipeline to adapt a single-language model (GMN) by leveraging a transcompiler for cross-language clone detection. Subsequently, based on this idea, we released a language-agnostic clone detector, TransClone. Furthermore, we propose a novel approach to predict future syntactic clones. Our experiments showed that CodeBERT, fine-tuned on the existing cloned and non-cloned fragments performs highly in predicting future clone-prone code fragments. We also demonstrate that it is possible to reliably forecast the future file where such clone-prone fragments will be cloned. Our findings yield an efficient evaluation strategy, enhancement of cross-language clone detection models in a low-resource environment, and transfer-learning models for forecasting future clones.","abstract_has_math":false,"creators":["Pinku, Subroto Nag"],"institution":"University of Saskatchewan","degree_name":"Master of Science (M.Sc.)","degree_level":"Masters","degree_discipline":"Computer Science","degree_department":"Computer Science","school":null,"contributors":[],"advisors":["Roy, Chanchal K.","Mondal, Debajyoti"],"committee_chairs":[],"committee_members":["Roy, Banani","Stakhanova, Natalia"],"year":2024,"date_issued":"2024-02-27","date_published":"2024-02-27","updated_at":"2026-11-19T10:01:12Z","subjects":["Code Clone","Code Clone Detection","Deep Learning","Large Language Model","Graph Neural Network","Benchmarking","Data Augmentation","Transclone","Clone-proneness","Semantic Clone","Cross-Language Clone","Software Clone","Software Maintenance","Software Quality"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[{"key":"person:identifier.orcid","label":"ORCID","values":["0009-0006-4800-2509"],"render_values":[{"text":"0009-0006-4800-2509","href":"https://orcid.org/0009-0006-4800-2509","code":true}]}]},"links":{"outbound_url":"https://hdl.handle.net/10388/15503","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10388/15503","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":"embargoed","embargo_until":"2025-02-27","access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Asask%3Aoai%3Aharvest.usask.ca%3A10388%2F15503","prefix":"oai_dc"},"source_record":{"url":"https://harvest.usask.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aharvest.usask.ca%3A10388%2F15503","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Roy, Chanchal K.","Mondal, Debajyoti"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Roy, Banani","Stakhanova, Natalia"]},{"key":"dc:creator","label":"Author","values":["Pinku, Subroto Nag"]},{"key":"person:identifier.orcid","label":"ORCID","values":["0009-0006-4800-2509"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2024-02-28T17:03:47Z"]},{"key":"dc:date.copyright","label":"Dc Date Copyright","values":["2024"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2024-02"]},{"key":"dc:date.embargo","label":"Dc Date Embargo","values":["2025-02-27"]},{"key":"dc:date.issued","label":"Date","values":["2024-02-27"]},{"key":"dc:date.liftdate","label":"Dc Date Liftdate","values":["2025-02-27"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["February 2024"]},{"key":"dc:date.updated","label":"Dc Date Updated","values":["2024-02-28T17:03:48Z"]},{"key":"dc:type","label":"Dc Type","values":["Thesis","text"]},{"key":"thesis:degree_department","label":"Department","values":["Computer Science"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science (M.Sc.)"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Saskatchewan"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Code Clone","Code Clone Detection","Deep Learning","Large Language Model","Graph Neural Network","Benchmarking","Data Augmentation","Transclone","Clone-proneness","Semantic Clone","Cross-Language Clone","Software Clone","Software Maintenance","Software Quality"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10388/15503"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Code clones are code fragments that share syntactic or semantic similarities. Clones arise when software engineers modify or adapt preexisting codes inside or between codebases to reuse them. It incurs a negative impact and, hence, is crucial for a wide range of software maintenance tasks. Thus, a lot of research focuses on identifying clones and comprehending how they affect current software systems. With the rise of deep learning, clone detection techniques have witnessed high performance but they often lack consistent evaluation, leading to an inaccurate assessment of their true potential. Furthermore, the scarcity of cross-language clone data hinders language-agnostic model development in the era of multi-language development. In addition to these difficulties, future clones become pivotal because they affect how software evolves. In this thesis, we set out to alleviate these challenges through a multi-faceted approach, encompassing a thorough evaluation of existing techniques, improvements in cross-language clone detection, and the development of predictive models for forecasting future clones. At first, we propose a multi-step evaluation approach of the state-of-the-art deep learning models for clone detection. We evaluated three single-language models (ASTNN, CodeBERT, GMN) and two cross-language models (CLCDSA, C4) on benchmarks such as BigCloneBench, SemanticCloneBench, GPTCloneBench and CLCDSA dataset. Moreover, we assessed the models' robustness through random perturbations exploiting mutation operations on SemanticCloneBench. We found that single-language models' performances drop drastically on semantic clones whereas the language-agnostic model (C4) has a more robust performance. Then, we introduced a data augmentation technique for cross-language clone detection models leveraging a pre-trained transcompiler. Experimental results showed that this approach improves the performance of cutting-edge cross-language clone detection models. We also proposed a pipeline to adapt a single-language model (GMN) by leveraging a transcompiler for cross-language clone detection. Subsequently, based on this idea, we released a language-agnostic clone detector, TransClone. Furthermore, we propose a novel approach to predict future syntactic clones. Our experiments showed that CodeBERT, fine-tuned on the existing cloned and non-cloned fragments performs highly in predicting future clone-prone code fragments. We also demonstrate that it is possible to reliably forecast the future file where such clone-prone fragments will be cloned. Our findings yield an efficient evaluation strategy, enhancement of cross-language clone detection models in a low-resource environment, and transfer-learning models for forecasting future clones."]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Enhancing Deep Learning Based Clone Detection"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Roy, Chanchal K.","Mondal, Debajyoti"],"dc:contributor.committeemember":["Roy, Banani","Stakhanova, Natalia"],"dc:creator":["Pinku, Subroto Nag"],"dc:date.accessioned":["2024-02-28T17:03:47Z"],"dc:date.copyright":["2024"],"dc:date.created":["2024-02"],"dc:date.embargo":["2025-02-27"],"dc:date.issued":["2024-02-27"],"dc:date.liftdate":["2025-02-27"],"dc:date.submitted":["February 2024"],"dc:date.updated":["2024-02-28T17:03:48Z"],"dc:description.abstract":["Code clones are code fragments that share syntactic or semantic similarities. Clones arise when software engineers modify or adapt preexisting codes inside or between codebases to reuse them. It incurs a negative impact and, hence, is crucial for a wide range of software maintenance tasks. Thus, a lot of research focuses on identifying clones and comprehending how they affect current software systems. With the rise of deep learning, clone detection techniques have witnessed high performance but they often lack consistent evaluation, leading to an inaccurate assessment of their true potential. Furthermore, the scarcity of cross-language clone data hinders language-agnostic model development in the era of multi-language development. In addition to these difficulties, future clones become pivotal because they affect how software evolves. In this thesis, we set out to alleviate these challenges through a multi-faceted approach, encompassing a thorough evaluation of existing techniques, improvements in cross-language clone detection, and the development of predictive models for forecasting future clones. At first, we propose a multi-step evaluation approach of the state-of-the-art deep learning models for clone detection. We evaluated three single-language models (ASTNN, CodeBERT, GMN) and two cross-language models (CLCDSA, C4) on benchmarks such as BigCloneBench, SemanticCloneBench, GPTCloneBench and CLCDSA dataset. Moreover, we assessed the models' robustness through random perturbations exploiting mutation operations on SemanticCloneBench. We found that single-language models' performances drop drastically on semantic clones whereas the language-agnostic model (C4) has a more robust performance. Then, we introduced a data augmentation technique for cross-language clone detection models leveraging a pre-trained transcompiler. Experimental results showed that this approach improves the performance of cutting-edge cross-language clone detection models. We also proposed a pipeline to adapt a single-language model (GMN) by leveraging a transcompiler for cross-language clone detection. Subsequently, based on this idea, we released a language-agnostic clone detector, TransClone. Furthermore, we propose a novel approach to predict future syntactic clones. Our experiments showed that CodeBERT, fine-tuned on the existing cloned and non-cloned fragments performs highly in predicting future clone-prone code fragments. We also demonstrate that it is possible to reliably forecast the future file where such clone-prone fragments will be cloned. Our findings yield an efficient evaluation strategy, enhancement of cross-language clone detection models in a low-resource environment, and transfer-learning models for forecasting future clones."],"dc:format.mimetype":["application/pdf"],"dc:identifier.uri":["https://hdl.handle.net/10388/15503"],"dc:language.iso":["en"],"dc:subject":["Code Clone","Code Clone Detection","Deep Learning","Large Language Model","Graph Neural Network","Benchmarking","Data Augmentation","Transclone","Clone-proneness","Semantic Clone","Cross-Language Clone","Software Clone","Software Maintenance","Software Quality"],"dc:title":["Enhancing Deep Learning Based Clone Detection"],"dc:type":["Thesis","text"],"others:access_status":["open.access"],"person:identifier.orcid":["0009-0006-4800-2509"],"thesis:degree_department":["Computer Science"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_level":["Masters"],"thesis:degree_name":["Master of Science (M.Sc.)"],"thesis:institution_name":["University of Saskatchewan"]},"updated_at":"2026-11-19T10:01:12Z"}