{"id":{"repo_id":"sask","oai_identifier":"oai:harvest.usask.ca:10388/16866"},"canonical_url":"https://search.ndltd.org/etd/sask/oai:harvest.usask.ca:10388/16866","repository":{"repo_id":"sask","name":"University of Saskatchewan","base_url":"https://harvest.usask.ca/server/oai/request"},"display":{"title":"Exploring Code Version Migration Challenges Through the Lens of Neural Analysis","abstract":"The evolution of programming languages introduces continuous improvements in performance, maintainability, and security. However, this evolution often leads to challenges in version migration, where compatibility issues, syntax changes, and dependency management complexities become significant obstacles. Python, a widely-used language in fields like web development, data science, and machine learning, has seen considerable migration challenges, particularly during the transition from Python 2.x to Python 3.x. Despite the availability of documentation and tools, developers continue to face difficulties due to a lack of systematically categorized resources and real-world insights into migration issues. To address this, we conducted a comprehensive analysis of Python version migration challenges that consists of 1.9 million Python-related Stack Overflow (SO) posts. In this thesis, We have leveraged a multi-step process, starting with topic modeling to find the seven distinct categories and then through manual analysis of 400 random questions to build a version-migration catalogue. We expanded the manually labeled dataset to 6,905 entries through prompt-engineering the Large Language Models (LLMs) that eventually be used to build classifier to complement the catalogue. Additionally, we proposed a retrieval-augmented generation (RAG)-based tool that utilizes a vector database of Stack Overflow Q\\&A pairs to assist developers by providing context-aware solutions for migration-related questions. Our contributions in this thesis are three-folds. First, we propose a novel version-migration issue related catalogue using topic modeling and manual analysis. Second, we show that leveraging few-shot prompting with human-evaluation can lead to build models to scale the dataset size further minimizing manual efforts including human-hours. Third, we provide a context-aware domain-specific consistent classifier and a RAG-Based tool that can be used for different domain-specific tasks such as automatic tagging support and provide more relevant answers to domain-specific questions. Our evaluation shows that fine-tuned DeBERTa-based classifiers achieved state-of-the-art performance in this domain with a F1-score of 77\\%. Moreover, our findings revealed that library and framework compatibility issues were the most prevalent, with unanswered rates of 22.4\\% and 21.8\\%, and average resolution delays of 55 and 44 days, respectively. This study provides the first comprehensive exploration of Python version migration challenges by offering a fine-grained dataset, a deeper understanding of migration-related challenges, and foundational work towards practical, scalable automated migration assistance tools.","abstract_html":"The evolution of programming languages introduces continuous improvements in performance, maintainability, and security. However, this evolution often leads to challenges in version migration, where compatibility issues, syntax changes, and dependency management complexities become significant obstacles. Python, a widely-used language in fields like web development, data science, and machine learning, has seen considerable migration challenges, particularly during the transition from Python 2.x to Python 3.x. Despite the availability of documentation and tools, developers continue to face difficulties due to a lack of systematically categorized resources and real-world insights into migration issues. To address this, we conducted a comprehensive analysis of Python version migration challenges that consists of 1.9 million Python-related Stack Overflow (SO) posts. In this thesis, We have leveraged a multi-step process, starting with topic modeling to find the seven distinct categories and then through manual analysis of 400 random questions to build a version-migration catalogue. We expanded the manually labeled dataset to 6,905 entries through prompt-engineering the Large Language Models (LLMs) that eventually be used to build classifier to complement the catalogue. Additionally, we proposed a retrieval-augmented generation (RAG)-based tool that utilizes a vector database of Stack Overflow Q\\&amp;A pairs to assist developers by providing context-aware solutions for migration-related questions. Our contributions in this thesis are three-folds. First, we propose a novel version-migration issue related catalogue using topic modeling and manual analysis. Second, we show that leveraging few-shot prompting with human-evaluation can lead to build models to scale the dataset size further minimizing manual efforts including human-hours. Third, we provide a context-aware domain-specific consistent classifier and a RAG-Based tool that can be used for different domain-specific tasks such as automatic tagging support and provide more relevant answers to domain-specific questions. Our evaluation shows that fine-tuned DeBERTa-based classifiers achieved state-of-the-art performance in this domain with a F1-score of 77\\%. Moreover, our findings revealed that library and framework compatibility issues were the most prevalent, with unanswered rates of 22.4\\% and 21.8\\%, and average resolution delays of 55 and 44 days, respectively. This study provides the first comprehensive exploration of Python version migration challenges by offering a fine-grained dataset, a deeper understanding of migration-related challenges, and foundational work towards practical, scalable automated migration assistance tools.","abstract_has_math":false,"creators":["Amin, H M Sadman"],"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, Dr. Chanchal K","Deters, Dr. Ralph"],"committee_chairs":[],"committee_members":["Roy, Dr. Banani","Schneider, Dr. Kevin"],"year":null,"date_issued":"","date_published":null,"updated_at":"2026-11-19T09:54:16Z","subjects":["Stack Overflow, Version Migration, Mining Software Repository, Large Language Models"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10388/16866","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10388/16866","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":"embargoed","embargo_until":"2026-04-22","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%2F16866","prefix":"oai_dc"},"source_record":{"url":"https://harvest.usask.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aharvest.usask.ca%3A10388%2F16866","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Roy, Dr. Chanchal K","Deters, Dr. Ralph"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Roy, Dr. Banani","Schneider, Dr. Kevin"]},{"key":"dc:creator","label":"Author","values":["Amin, H M Sadman"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-04-22T17:54:55Z"]},{"key":"dc:date.copyright","label":"Dc Date Copyright","values":["2025"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2025-04"]},{"key":"dc:date.embargo","label":"Dc Date Embargo","values":["2026-04-22"]},{"key":"dc:date.liftdate","label":"Dc Date Liftdate","values":["2026-04-22"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["April 2025"]},{"key":"dc:date.updated","label":"Dc Date Updated","values":["2025-04-22T17:54:55Z"]},{"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":["Stack Overflow, Version Migration, Mining Software Repository, Large Language Models"]}]},{"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/16866"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["The evolution of programming languages introduces continuous improvements in performance, maintainability, and security. However, this evolution often leads to challenges in version migration, where compatibility issues, syntax changes, and dependency management complexities become significant obstacles. Python, a widely-used language in fields like web development, data science, and machine learning, has seen considerable migration challenges, particularly during the transition from Python 2.x to Python 3.x. Despite the availability of documentation and tools, developers continue to face difficulties due to a lack of systematically categorized resources and real-world insights into migration issues. To address this, we conducted a comprehensive analysis of Python version migration challenges that consists of 1.9 million Python-related Stack Overflow (SO) posts. In this thesis, We have leveraged a multi-step process, starting with topic modeling to find the seven distinct categories and then through manual analysis of 400 random questions to build a version-migration catalogue. We expanded the manually labeled dataset to 6,905 entries through prompt-engineering the Large Language Models (LLMs) that eventually be used to build classifier to complement the catalogue. Additionally, we proposed a retrieval-augmented generation (RAG)-based tool that utilizes a vector database of Stack Overflow Q\\&A pairs to assist developers by providing context-aware solutions for migration-related questions. Our contributions in this thesis are three-folds. First, we propose a novel version-migration issue related catalogue using topic modeling and manual analysis. Second, we show that leveraging few-shot prompting with human-evaluation can lead to build models to scale the dataset size further minimizing manual efforts including human-hours. Third, we provide a context-aware domain-specific consistent classifier and a RAG-Based tool that can be used for different domain-specific tasks such as automatic tagging support and provide more relevant answers to domain-specific questions. Our evaluation shows that fine-tuned DeBERTa-based classifiers achieved state-of-the-art performance in this domain with a F1-score of 77\\%. Moreover, our findings revealed that library and framework compatibility issues were the most prevalent, with unanswered rates of 22.4\\% and 21.8\\%, and average resolution delays of 55 and 44 days, respectively. This study provides the first comprehensive exploration of Python version migration challenges by offering a fine-grained dataset, a deeper understanding of migration-related challenges, and foundational work towards practical, scalable automated migration assistance tools."]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Exploring Code Version Migration Challenges Through the Lens of Neural Analysis"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Roy, Dr. Chanchal K","Deters, Dr. Ralph"],"dc:contributor.committeemember":["Roy, Dr. Banani","Schneider, Dr. Kevin"],"dc:creator":["Amin, H M Sadman"],"dc:date.accessioned":["2025-04-22T17:54:55Z"],"dc:date.copyright":["2025"],"dc:date.created":["2025-04"],"dc:date.embargo":["2026-04-22"],"dc:date.liftdate":["2026-04-22"],"dc:date.submitted":["April 2025"],"dc:date.updated":["2025-04-22T17:54:55Z"],"dc:description.abstract":["The evolution of programming languages introduces continuous improvements in performance, maintainability, and security. However, this evolution often leads to challenges in version migration, where compatibility issues, syntax changes, and dependency management complexities become significant obstacles. Python, a widely-used language in fields like web development, data science, and machine learning, has seen considerable migration challenges, particularly during the transition from Python 2.x to Python 3.x. Despite the availability of documentation and tools, developers continue to face difficulties due to a lack of systematically categorized resources and real-world insights into migration issues. To address this, we conducted a comprehensive analysis of Python version migration challenges that consists of 1.9 million Python-related Stack Overflow (SO) posts. In this thesis, We have leveraged a multi-step process, starting with topic modeling to find the seven distinct categories and then through manual analysis of 400 random questions to build a version-migration catalogue. We expanded the manually labeled dataset to 6,905 entries through prompt-engineering the Large Language Models (LLMs) that eventually be used to build classifier to complement the catalogue. Additionally, we proposed a retrieval-augmented generation (RAG)-based tool that utilizes a vector database of Stack Overflow Q\\&A pairs to assist developers by providing context-aware solutions for migration-related questions. Our contributions in this thesis are three-folds. First, we propose a novel version-migration issue related catalogue using topic modeling and manual analysis. Second, we show that leveraging few-shot prompting with human-evaluation can lead to build models to scale the dataset size further minimizing manual efforts including human-hours. Third, we provide a context-aware domain-specific consistent classifier and a RAG-Based tool that can be used for different domain-specific tasks such as automatic tagging support and provide more relevant answers to domain-specific questions. Our evaluation shows that fine-tuned DeBERTa-based classifiers achieved state-of-the-art performance in this domain with a F1-score of 77\\%. Moreover, our findings revealed that library and framework compatibility issues were the most prevalent, with unanswered rates of 22.4\\% and 21.8\\%, and average resolution delays of 55 and 44 days, respectively. This study provides the first comprehensive exploration of Python version migration challenges by offering a fine-grained dataset, a deeper understanding of migration-related challenges, and foundational work towards practical, scalable automated migration assistance tools."],"dc:format.mimetype":["application/pdf"],"dc:identifier.uri":["https://hdl.handle.net/10388/16866"],"dc:language.iso":["en"],"dc:subject":["Stack Overflow, Version Migration, Mining Software Repository, Large Language Models"],"dc:title":["Exploring Code Version Migration Challenges Through the Lens of Neural Analysis"],"dc:type":["Thesis","text"],"others:access_status":["open.access"],"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-19T09:54:16Z"}