{"id":{"repo_id":"queens","oai_identifier":"oai:queensu.scholaris.ca:1974/36109"},"canonical_url":"https://search.ndltd.org/etd/queens/oai:queensu.scholaris.ca:1974/36109","repository":{"repo_id":"queens","name":"Queens University","base_url":"https://qspace.library.queensu.ca/server/oai/request"},"display":{"title":"Knowledge Units of Programming Languages - A Novel Perspective for Leveraging Source Code to Support Software Engineering Tasks","abstract":"Traditional code metrics (e.g., LOC and cyclomatic complexity) do not reveal system traits that are tied to certain building blocks of a given programming language. We conjecture that taking these building blocks of a programming language into account when studying software systems can lead to further insights about software systems. In this vein, we introduce Knowledge Units (KUs), a novel perspective of the source code of software systems. We define a KU as a cohesive set of key capabilities that are offered by one or more building blocks of a given programming language. This thesis investigates whether KUs can serve as an effective lens to study several core dimensions of software engineering: code, process, human, and the emerging domain of Foundation Models and Large Language Models (FM/LLMs). We conceptualize and operationalize KUs for the Java and Python programming languages and present a framework demonstrating how KUs can be applied to study the source code of software systems and support the automation of various software engineering tasks. Specifically, we examine the use of KUs for supporting four important software engineering tasks. First, we show that KU-based features are different from traditional metrics and effective in predicting post-release defects. Second, we design KUREC, a KU-based reviewer recommender that models developers’ expertise and improves reviewer assignment in pull requests. Third, we propose KULTC, a KU-based prediction model that links developers' programming language expertise to their likelihood of becoming long-time contributors in OSS projects. Finally, we conduct the first study examining the representativeness of code-generation benchmarks for FM/LLMs through the lens of KUs, revealing significant gaps in how existing benchmarks capture real-world programming language concepts. We further introduce a framework for automatically generating KU-based tasks to augment and improve the representativeness of benchmark datasets for FM/LLMs. Our extensive empirical studies and evaluation results demonstrate that KUs offer an effective and conceptually grounded lens for analyzing the source code of software systems and supporting a wide range of software engineering tasks. Beyond their practical utility, KUs also open a promising new direction for software engineering research.","abstract_html":"Traditional code metrics (e.g., LOC and cyclomatic complexity) do not reveal system traits that are tied to certain building blocks of a given programming language. We conjecture that taking these building blocks of a programming language into account when studying software systems can lead to further insights about software systems. In this vein, we introduce Knowledge Units (KUs), a novel perspective of the source code of software systems. We define a KU as a cohesive set of key capabilities that are offered by one or more building blocks of a given programming language. This thesis investigates whether KUs can serve as an effective lens to study several core dimensions of software engineering: code, process, human, and the emerging domain of Foundation Models and Large Language Models (FM/LLMs). We conceptualize and operationalize KUs for the Java and Python programming languages and present a framework demonstrating how KUs can be applied to study the source code of software systems and support the automation of various software engineering tasks. Specifically, we examine the use of KUs for supporting four important software engineering tasks. First, we show that KU-based features are different from traditional metrics and effective in predicting post-release defects. Second, we design KUREC, a KU-based reviewer recommender that models developers’ expertise and improves reviewer assignment in pull requests. Third, we propose KULTC, a KU-based prediction model that links developers&#x27; programming language expertise to their likelihood of becoming long-time contributors in OSS projects. Finally, we conduct the first study examining the representativeness of code-generation benchmarks for FM/LLMs through the lens of KUs, revealing significant gaps in how existing benchmarks capture real-world programming language concepts. We further introduce a framework for automatically generating KU-based tasks to augment and improve the representativeness of benchmark datasets for FM/LLMs. Our extensive empirical studies and evaluation results demonstrate that KUs offer an effective and conceptually grounded lens for analyzing the source code of software systems and supporting a wide range of software engineering tasks. Beyond their practical utility, KUs also open a promising new direction for software engineering research.","abstract_has_math":false,"creators":["Ahasanuzzaman, Md"],"institution":"Queen's University at Kingston","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":"Computing","school":null,"contributors":[],"advisors":["Hassan, Ahmed E."],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-03-04","date_published":"2026-03-04","updated_at":"2026-11-19T09:08:27Z","subjects":["Program Analysis","Knowledge Units","Defect Prediction","Reviewer Recommendation","Large language models (LLMs)","FM/LLMs","Machine Learning","AI","Software engineering","Empirical Study","Long Time Contributors"],"languages":["eng"],"rights":["Attribution 4.0 International"],"rights_urls":["http://creativecommons.org/licenses/by/4.0/"],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/1974/36109","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/1974/36109","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%3Aqueens%3Aoai%3Aqueensu.scholaris.ca%3A1974%2F36109","prefix":"oai_dc"},"source_record":{"url":"https://qspace.library.queensu.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aqueensu.scholaris.ca%3A1974%2F36109","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.department","label":"Department","values":["Computing"]},{"key":"dc:contributor.supervisor","label":"Supervisor","values":["Hassan, Ahmed E."]},{"key":"dc:creator","label":"Author","values":["Ahasanuzzaman, Md"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-03-04T14:50:08Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-03-04"]},{"key":"dc:relation.ispartofseries","label":"Dc Relation Ispartofseries","values":["Canadian theses"]},{"key":"dc:type","label":"Dc Type","values":["thesis"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Queen's University at Kingston"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Program Analysis","Knowledge Units","Defect Prediction","Reviewer Recommendation","Large language models (LLMs)","FM/LLMs","Machine Learning","AI","Software engineering","Empirical Study","Long Time Contributors"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["eng"]},{"key":"dc:rights","label":"Dc Rights","values":["Attribution 4.0 International"]},{"key":"dc:rights.uri","label":"Rights URI","values":["http://creativecommons.org/licenses/by/4.0/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1974/36109"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Traditional code metrics (e.g., LOC and cyclomatic complexity) do not reveal system traits that are tied to certain building blocks of a given programming language. We conjecture that taking these building blocks of a programming language into account when studying software systems can lead to further insights about software systems. In this vein, we introduce Knowledge Units (KUs), a novel perspective of the source code of software systems. We define a KU as a cohesive set of key capabilities that are offered by one or more building blocks of a given programming language. This thesis investigates whether KUs can serve as an effective lens to study several core dimensions of software engineering: code, process, human, and the emerging domain of Foundation Models and Large Language Models (FM/LLMs). We conceptualize and operationalize KUs for the Java and Python programming languages and present a framework demonstrating how KUs can be applied to study the source code of software systems and support the automation of various software engineering tasks. Specifically, we examine the use of KUs for supporting four important software engineering tasks. First, we show that KU-based features are different from traditional metrics and effective in predicting post-release defects. Second, we design KUREC, a KU-based reviewer recommender that models developers’ expertise and improves reviewer assignment in pull requests. Third, we propose KULTC, a KU-based prediction model that links developers' programming language expertise to their likelihood of becoming long-time contributors in OSS projects. Finally, we conduct the first study examining the representativeness of code-generation benchmarks for FM/LLMs through the lens of KUs, revealing significant gaps in how existing benchmarks capture real-world programming language concepts. We further introduce a framework for automatically generating KU-based tasks to augment and improve the representativeness of benchmark datasets for FM/LLMs. Our extensive empirical studies and evaluation results demonstrate that KUs offer an effective and conceptually grounded lens for analyzing the source code of software systems and supporting a wide range of software engineering tasks. Beyond their practical utility, KUs also open a promising new direction for software engineering research."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["PhD"]},{"key":"dc:title","label":"Title","values":["Knowledge Units of Programming Languages - A Novel Perspective for Leveraging Source Code to Support Software Engineering Tasks"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.department":["Computing"],"dc:contributor.supervisor":["Hassan, Ahmed E."],"dc:creator":["Ahasanuzzaman, Md"],"dc:date.accessioned":["2026-03-04T14:50:08Z"],"dc:date.issued":["2026-03-04"],"dc:description.abstract":["Traditional code metrics (e.g., LOC and cyclomatic complexity) do not reveal system traits that are tied to certain building blocks of a given programming language. We conjecture that taking these building blocks of a programming language into account when studying software systems can lead to further insights about software systems. In this vein, we introduce Knowledge Units (KUs), a novel perspective of the source code of software systems. We define a KU as a cohesive set of key capabilities that are offered by one or more building blocks of a given programming language. This thesis investigates whether KUs can serve as an effective lens to study several core dimensions of software engineering: code, process, human, and the emerging domain of Foundation Models and Large Language Models (FM/LLMs). We conceptualize and operationalize KUs for the Java and Python programming languages and present a framework demonstrating how KUs can be applied to study the source code of software systems and support the automation of various software engineering tasks. Specifically, we examine the use of KUs for supporting four important software engineering tasks. First, we show that KU-based features are different from traditional metrics and effective in predicting post-release defects. Second, we design KUREC, a KU-based reviewer recommender that models developers’ expertise and improves reviewer assignment in pull requests. Third, we propose KULTC, a KU-based prediction model that links developers' programming language expertise to their likelihood of becoming long-time contributors in OSS projects. Finally, we conduct the first study examining the representativeness of code-generation benchmarks for FM/LLMs through the lens of KUs, revealing significant gaps in how existing benchmarks capture real-world programming language concepts. We further introduce a framework for automatically generating KU-based tasks to augment and improve the representativeness of benchmark datasets for FM/LLMs. Our extensive empirical studies and evaluation results demonstrate that KUs offer an effective and conceptually grounded lens for analyzing the source code of software systems and supporting a wide range of software engineering tasks. Beyond their practical utility, KUs also open a promising new direction for software engineering research."],"dc:description.degree":["PhD"],"dc:identifier.uri":["https://hdl.handle.net/1974/36109"],"dc:language.iso":["eng"],"dc:relation.ispartofseries":["Canadian theses"],"dc:rights":["Attribution 4.0 International"],"dc:rights.uri":["http://creativecommons.org/licenses/by/4.0/"],"dc:subject":["Program Analysis","Knowledge Units","Defect Prediction","Reviewer Recommendation","Large language models (LLMs)","FM/LLMs","Machine Learning","AI","Software engineering","Empirical Study","Long Time Contributors"],"dc:title":["Knowledge Units of Programming Languages - A Novel Perspective for Leveraging Source Code to Support Software Engineering Tasks"],"dc:type":["thesis"],"others:access_status":["open.access"],"thesis:institution_name":["Queen's University at Kingston"]},"updated_at":"2026-11-19T09:08:27Z"}