{"id":{"repo_id":"sask","oai_identifier":"oai:harvest.usask.ca:10388/18057"},"canonical_url":"https://search.ndltd.org/etd/sask/oai:harvest.usask.ca:10388/18057","repository":{"repo_id":"sask","name":"University of Saskatchewan","base_url":"https://harvest.usask.ca/server/oai/request"},"display":{"title":"Exploring Cross-Language Software Similarity Analysis Using Source Code Context","abstract":"The rapid growth of multi-language and cross-platform software development has created an urgent need for effective techniques to identify functional similarity across programming languages. Developers routinely reuse or reimplement functionally similar code blocks across cross-language and multilingual software systems, resulting in intentional and unintentional cross-language similar code fragments, as well as the adaptation of APIs and libraries that serve similar purposes but are implemented in different languages. While these adaptations can improve portability and broaden software reach to various users, they also increase development cost, maintenance complexity, and the potential for inconsistency or defects. Despite recent advances in machine learning, code representation learning, and Large Language Models (LLMs), existing approaches for cross-language software similarity often struggle with deep syntactic reasoning, diverse coding styles, and limited availability of high-quality multi-lingual code datasets. This thesis is grounded in the premise that accurate detection of cross-language code similarity can significantly mitigate longstanding challenges in cross-language software development and maintenance. Motivated by this premise, the thesis investigates the foundational problem of establishing reliable, robust cross-language code-similarity measures. The proposed investigation aims to support a wide range of software engineering tasks, including single-language, cross-language, and multi-language development and maintenance activities. Drawing on a comprehensive systematic literature review, the thesis identifies key limitations in the state of the art and proposes five complementary contributions across four levels of code granularity. First, it introduces a universal software similarity detector (CroLSim) that categorizes cross-language software applications by leveraging API call documentation similarity. Second, it presents a source code feature-driven and API documentation-adapted cross-language clone detection model (CLCDSA) that combines syntactic features with API documentation semantics similarity to identify cross-language clones more accurately. Third, it develops an LLM-guided, multimodal framework (XLCoCo) that fuses multi-intent source code information retrieval from LLMs and attention-based VAEs to predict structural feature similarity, improving the performance of cross-language code-to-code search and clone detection tasks. Fourth, it proposes XLibRec, a technique for recommending analogical cross-language libraries by mining reliable library usage information from different developer community discussion forums, along with Library short descriptions collected from various package managers. Finally, it introduces XAPIRec, an efficient method for analogical API mapping based on API usage patterns, mined from functionally equivalent API usage patterns collected in an automatic way, and LLM-driven API document similarity, which completely replaces the need to manually mine functionally similar parallel code fragments or any prior knowledge of true mapped API or a labeled API mapping dataset. Together, these contributions form a scalable ecosystem that advances automation, accuracy, and practical applicability in industry-level cross-language software development and maintenance. The techniques are extensively evaluated against state-of-the-art baselines across diverse datasets and programming languages, demonstrating consistent improvements in precision, recall, ranking quality, and real-world usability. Overall, this thesis offers a unified framework to support developers and organizations in building, understanding, and maintaining robust cross-language software systems in large scale.","abstract_html":"The rapid growth of multi-language and cross-platform software development has created an urgent need for effective techniques to identify functional similarity across programming languages. Developers routinely reuse or reimplement functionally similar code blocks across cross-language and multilingual software systems, resulting in intentional and unintentional cross-language similar code fragments, as well as the adaptation of APIs and libraries that serve similar purposes but are implemented in different languages. While these adaptations can improve portability and broaden software reach to various users, they also increase development cost, maintenance complexity, and the potential for inconsistency or defects. Despite recent advances in machine learning, code representation learning, and Large Language Models (LLMs), existing approaches for cross-language software similarity often struggle with deep syntactic reasoning, diverse coding styles, and limited availability of high-quality multi-lingual code datasets. This thesis is grounded in the premise that accurate detection of cross-language code similarity can significantly mitigate longstanding challenges in cross-language software development and maintenance. Motivated by this premise, the thesis investigates the foundational problem of establishing reliable, robust cross-language code-similarity measures. The proposed investigation aims to support a wide range of software engineering tasks, including single-language, cross-language, and multi-language development and maintenance activities. Drawing on a comprehensive systematic literature review, the thesis identifies key limitations in the state of the art and proposes five complementary contributions across four levels of code granularity. First, it introduces a universal software similarity detector (CroLSim) that categorizes cross-language software applications by leveraging API call documentation similarity. Second, it presents a source code feature-driven and API documentation-adapted cross-language clone detection model (CLCDSA) that combines syntactic features with API documentation semantics similarity to identify cross-language clones more accurately. Third, it develops an LLM-guided, multimodal framework (XLCoCo) that fuses multi-intent source code information retrieval from LLMs and attention-based VAEs to predict structural feature similarity, improving the performance of cross-language code-to-code search and clone detection tasks. Fourth, it proposes XLibRec, a technique for recommending analogical cross-language libraries by mining reliable library usage information from different developer community discussion forums, along with Library short descriptions collected from various package managers. Finally, it introduces XAPIRec, an efficient method for analogical API mapping based on API usage patterns, mined from functionally equivalent API usage patterns collected in an automatic way, and LLM-driven API document similarity, which completely replaces the need to manually mine functionally similar parallel code fragments or any prior knowledge of true mapped API or a labeled API mapping dataset. Together, these contributions form a scalable ecosystem that advances automation, accuracy, and practical applicability in industry-level cross-language software development and maintenance. The techniques are extensively evaluated against state-of-the-art baselines across diverse datasets and programming languages, demonstrating consistent improvements in precision, recall, ranking quality, and real-world usability. Overall, this thesis offers a unified framework to support developers and organizations in building, understanding, and maintaining robust cross-language software systems in large scale.","abstract_has_math":false,"creators":["Nafi, Kawser Wazed"],"institution":"University of Saskatchewan","degree_name":"Doctor of Philosophy (Ph.D.)","degree_level":"Doctoral","degree_discipline":"Computer Science","degree_department":"Computer Science","school":null,"contributors":[],"advisors":["Roy, Chanchal K","Roy, Banani","Schneider, Kevin A"],"committee_chairs":[],"committee_members":["Mondal, Debajoti","Mondal, Manishankar","Khan, Shahedul","Gutwin, Carl","Eager, Derek","Yoshida, Norihiro"],"year":2026,"date_issued":"2026-03-06","date_published":"2026-03-06","updated_at":"2026-11-19T10:12:14Z","subjects":["Cross-Language Software Similarity, Source Code Analysis, Deep Learning, Cross-Language Library and API Recommendation"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[{"key":"person:identifier.orcid","label":"ORCID","values":["0009-0009-8062-5732"],"render_values":[{"text":"0009-0009-8062-5732","href":"https://orcid.org/0009-0009-8062-5732","code":true}]}]},"links":{"outbound_url":"https://hdl.handle.net/10388/18057","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10388/18057","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"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%2F18057","prefix":"oai_dc"},"source_record":{"url":"https://harvest.usask.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aharvest.usask.ca%3A10388%2F18057","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Roy, Chanchal K","Roy, Banani","Schneider, Kevin A"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Mondal, Debajoti","Mondal, Manishankar","Khan, Shahedul","Gutwin, Carl","Eager, Derek","Yoshida, Norihiro"]},{"key":"dc:creator","label":"Author","values":["Nafi, Kawser Wazed"]},{"key":"person:identifier.orcid","label":"ORCID","values":["0009-0009-8062-5732"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-03-06T20:23:14Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2026-03-06T20:23:14Z"]},{"key":"dc:date.copyright","label":"Dc Date Copyright","values":["2026"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2025-12"]},{"key":"dc:date.issued","label":"Date","values":["2026-03-06"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["December 2025"]},{"key":"dc:date.updated","label":"Dc Date Updated","values":["2026-03-06T20:23:14Z"]},{"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":["Doctoral"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy (Ph.D.)"]},{"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":["Cross-Language Software Similarity, Source Code Analysis, Deep Learning, Cross-Language Library and API Recommendation"]}]},{"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/18057"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["The rapid growth of multi-language and cross-platform software development has created an urgent need for effective techniques to identify functional similarity across programming languages. Developers routinely reuse or reimplement functionally similar code blocks across cross-language and multilingual software systems, resulting in intentional and unintentional cross-language similar code fragments, as well as the adaptation of APIs and libraries that serve similar purposes but are implemented in different languages. While these adaptations can improve portability and broaden software reach to various users, they also increase development cost, maintenance complexity, and the potential for inconsistency or defects. Despite recent advances in machine learning, code representation learning, and Large Language Models (LLMs), existing approaches for cross-language software similarity often struggle with deep syntactic reasoning, diverse coding styles, and limited availability of high-quality multi-lingual code datasets. This thesis is grounded in the premise that accurate detection of cross-language code similarity can significantly mitigate longstanding challenges in cross-language software development and maintenance. Motivated by this premise, the thesis investigates the foundational problem of establishing reliable, robust cross-language code-similarity measures. The proposed investigation aims to support a wide range of software engineering tasks, including single-language, cross-language, and multi-language development and maintenance activities. Drawing on a comprehensive systematic literature review, the thesis identifies key limitations in the state of the art and proposes five complementary contributions across four levels of code granularity. First, it introduces a universal software similarity detector (CroLSim) that categorizes cross-language software applications by leveraging API call documentation similarity. Second, it presents a source code feature-driven and API documentation-adapted cross-language clone detection model (CLCDSA) that combines syntactic features with API documentation semantics similarity to identify cross-language clones more accurately. Third, it develops an LLM-guided, multimodal framework (XLCoCo) that fuses multi-intent source code information retrieval from LLMs and attention-based VAEs to predict structural feature similarity, improving the performance of cross-language code-to-code search and clone detection tasks. Fourth, it proposes XLibRec, a technique for recommending analogical cross-language libraries by mining reliable library usage information from different developer community discussion forums, along with Library short descriptions collected from various package managers. Finally, it introduces XAPIRec, an efficient method for analogical API mapping based on API usage patterns, mined from functionally equivalent API usage patterns collected in an automatic way, and LLM-driven API document similarity, which completely replaces the need to manually mine functionally similar parallel code fragments or any prior knowledge of true mapped API or a labeled API mapping dataset. Together, these contributions form a scalable ecosystem that advances automation, accuracy, and practical applicability in industry-level cross-language software development and maintenance. The techniques are extensively evaluated against state-of-the-art baselines across diverse datasets and programming languages, demonstrating consistent improvements in precision, recall, ranking quality, and real-world usability. Overall, this thesis offers a unified framework to support developers and organizations in building, understanding, and maintaining robust cross-language software systems in large scale."]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Exploring Cross-Language Software Similarity Analysis Using Source Code Context"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Roy, Chanchal K","Roy, Banani","Schneider, Kevin A"],"dc:contributor.committeemember":["Mondal, Debajoti","Mondal, Manishankar","Khan, Shahedul","Gutwin, Carl","Eager, Derek","Yoshida, Norihiro"],"dc:creator":["Nafi, Kawser Wazed"],"dc:date.accessioned":["2026-03-06T20:23:14Z"],"dc:date.available":["2026-03-06T20:23:14Z"],"dc:date.copyright":["2026"],"dc:date.created":["2025-12"],"dc:date.issued":["2026-03-06"],"dc:date.submitted":["December 2025"],"dc:date.updated":["2026-03-06T20:23:14Z"],"dc:description.abstract":["The rapid growth of multi-language and cross-platform software development has created an urgent need for effective techniques to identify functional similarity across programming languages. Developers routinely reuse or reimplement functionally similar code blocks across cross-language and multilingual software systems, resulting in intentional and unintentional cross-language similar code fragments, as well as the adaptation of APIs and libraries that serve similar purposes but are implemented in different languages. While these adaptations can improve portability and broaden software reach to various users, they also increase development cost, maintenance complexity, and the potential for inconsistency or defects. Despite recent advances in machine learning, code representation learning, and Large Language Models (LLMs), existing approaches for cross-language software similarity often struggle with deep syntactic reasoning, diverse coding styles, and limited availability of high-quality multi-lingual code datasets. This thesis is grounded in the premise that accurate detection of cross-language code similarity can significantly mitigate longstanding challenges in cross-language software development and maintenance. Motivated by this premise, the thesis investigates the foundational problem of establishing reliable, robust cross-language code-similarity measures. The proposed investigation aims to support a wide range of software engineering tasks, including single-language, cross-language, and multi-language development and maintenance activities. Drawing on a comprehensive systematic literature review, the thesis identifies key limitations in the state of the art and proposes five complementary contributions across four levels of code granularity. First, it introduces a universal software similarity detector (CroLSim) that categorizes cross-language software applications by leveraging API call documentation similarity. Second, it presents a source code feature-driven and API documentation-adapted cross-language clone detection model (CLCDSA) that combines syntactic features with API documentation semantics similarity to identify cross-language clones more accurately. Third, it develops an LLM-guided, multimodal framework (XLCoCo) that fuses multi-intent source code information retrieval from LLMs and attention-based VAEs to predict structural feature similarity, improving the performance of cross-language code-to-code search and clone detection tasks. Fourth, it proposes XLibRec, a technique for recommending analogical cross-language libraries by mining reliable library usage information from different developer community discussion forums, along with Library short descriptions collected from various package managers. Finally, it introduces XAPIRec, an efficient method for analogical API mapping based on API usage patterns, mined from functionally equivalent API usage patterns collected in an automatic way, and LLM-driven API document similarity, which completely replaces the need to manually mine functionally similar parallel code fragments or any prior knowledge of true mapped API or a labeled API mapping dataset. Together, these contributions form a scalable ecosystem that advances automation, accuracy, and practical applicability in industry-level cross-language software development and maintenance. The techniques are extensively evaluated against state-of-the-art baselines across diverse datasets and programming languages, demonstrating consistent improvements in precision, recall, ranking quality, and real-world usability. Overall, this thesis offers a unified framework to support developers and organizations in building, understanding, and maintaining robust cross-language software systems in large scale."],"dc:format.mimetype":["application/pdf"],"dc:identifier.uri":["https://hdl.handle.net/10388/18057"],"dc:language.iso":["en"],"dc:subject":["Cross-Language Software Similarity, Source Code Analysis, Deep Learning, Cross-Language Library and API Recommendation"],"dc:title":["Exploring Cross-Language Software Similarity Analysis Using Source Code Context"],"dc:type":["Thesis","text"],"others:access_status":["open.access"],"person:identifier.orcid":["0009-0009-8062-5732"],"thesis:degree_department":["Computer Science"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_level":["Doctoral"],"thesis:degree_name":["Doctor of Philosophy (Ph.D.)"],"thesis:institution_name":["University of Saskatchewan"]},"updated_at":"2026-11-19T10:12:14Z"}