{"id":{"repo_id":"carleton","oai_identifier":"oai:carleton.scholaris.ca:20.500.14718/43436"},"canonical_url":"https://search.ndltd.org/etd/carleton/oai:carleton.scholaris.ca:20.500.14718/43436","repository":{"repo_id":"carleton","name":"Carleton University","base_url":"https://carleton.scholaris.ca/server/oai/request"},"display":{"title":"Leveraging Language Models to Improve Code Quality Through Code Linting and Automated Test Repair","abstract":"This thesis aims to evaluate how well Language Models (LMs) can help to improve code quality through two tasks: code linting and automated test repair. Code linters identify issues in code, but are often specialized and limited to certain issues. This thesis aims to use LMs to create a code linting approach that can replicate the results of applying multiple code linters. After training LMs on a dataset of code issues, the models achieved 84.9% accuracy in issue detection and 83.6% accuracy in issue identification, outperforming two popular code linters. Automatically repairing test cases helps code quality by allowing developers to focus on code rather than false test failures. LMs are trained to repair broken tests based on changes to the underlying code. LMs are able to repair tests with a 66.1% exact match rate, and a 80.0% plausible repair, showing that LMs can effectively repair test cases.","abstract_html":"This thesis aims to evaluate how well Language Models (LMs) can help to improve code quality through two tasks: code linting and automated test repair. Code linters identify issues in code, but are often specialized and limited to certain issues. This thesis aims to use LMs to create a code linting approach that can replicate the results of applying multiple code linters. After training LMs on a dataset of code issues, the models achieved 84.9% accuracy in issue detection and 83.6% accuracy in issue identification, outperforming two popular code linters. Automatically repairing test cases helps code quality by allowing developers to focus on code rather than false test failures. LMs are trained to repair broken tests based on changes to the underlying code. LMs are able to repair tests with a 66.1% exact match rate, and a 80.0% plausible repair, showing that LMs can effectively repair test cases.","abstract_has_math":false,"creators":["Holden, Darren Alexander"],"institution":"Carleton University","degree_name":"Master of Applied Science (M.App.Sc.)","degree_level":"Master's","degree_discipline":"Engineering, Electrical and Computer","degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2024,"date_issued":"2024","date_published":"2024","updated_at":"2026-11-19T07:08:25Z","subjects":["Artificial intelligence","Computer science"],"languages":["en"],"rights":["Copyright © 2024 the author(s). Theses may be used for non-commercial research, educational, or related academic purposes only. Such uses include personal study, distribution to students, research and scholarship. Theses may only be shared by linking to the Carleton University Institutional Repository and no part may be copied without proper attribution to the author; no part may be used for commercial purposes directly or indirectly via a for-profit platform; no adaptation or derivative works are permitted without consent from the copyright owner."],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/20.500.14718/43436"],"render_values":[{"text":"https://hdl.handle.net/20.500.14718/43436","href":"https://hdl.handle.net/20.500.14718/43436","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.22215/etd/2024-16181","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.22215/etd/2024-16181","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","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%3Acarleton%3Aoai%3Acarleton.scholaris.ca%3A20.500.14718%2F43436","prefix":"oai_dc"},"source_record":{"url":"https://carleton.scholaris.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Acarleton.scholaris.ca%3A20.500.14718%2F43436","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.other","label":"Dc Contributor Other","values":["Ahmadeza Saboor Yaraghi (Co-Author)","Nafiseh Kahani (Supervisor)","Lionel Briand (Co-Author)"]},{"key":"dc:creator","label":"Author","values":["Holden, Darren Alexander"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-04-08T20:56:51Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-04-08T20:56:51Z"]},{"key":"dc:date.issued","label":"Date","values":["2024"]},{"key":"dc:publisher","label":"Institution","values":["Carleton University"]},{"key":"dc:type","label":"Dc Type","values":["thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Engineering, Electrical and Computer"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master's"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Applied Science (M.App.Sc.)"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject.lcsh","label":"Dc Subject Lcsh","values":["Artificial intelligence","Computer science"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["Copyright © 2024 the author(s). Theses may be used for non-commercial research, educational, or related academic purposes only. Such uses include personal study, distribution to students, research and scholarship. Theses may only be shared by linking to the Carleton University Institutional Repository and no part may be copied without proper attribution to the author; no part may be used for commercial purposes directly or indirectly via a for-profit platform; no adaptation or derivative works are permitted without consent from the copyright owner."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["10.22215/etd/2024-16181"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/20.500.14718/43436"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["This thesis aims to evaluate how well Language Models (LMs) can help to improve code quality through two tasks: code linting and automated test repair. Code linters identify issues in code, but are often specialized and limited to certain issues. This thesis aims to use LMs to create a code linting approach that can replicate the results of applying multiple code linters. After training LMs on a dataset of code issues, the models achieved 84.9% accuracy in issue detection and 83.6% accuracy in issue identification, outperforming two popular code linters. Automatically repairing test cases helps code quality by allowing developers to focus on code rather than false test failures. LMs are trained to repair broken tests based on changes to the underlying code. LMs are able to repair tests with a 66.1% exact match rate, and a 80.0% plausible repair, showing that LMs can effectively repair test cases."]},{"key":"dc:title","label":"Title","values":["Leveraging Language Models to Improve Code Quality Through Code Linting and Automated Test Repair"]},{"key":"local:lac.licence","label":"Local Lac Licence","values":["true"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.other":["Ahmadeza Saboor Yaraghi (Co-Author)","Nafiseh Kahani (Supervisor)","Lionel Briand (Co-Author)"],"dc:creator":["Holden, Darren Alexander"],"dc:date.accessioned":["2025-04-08T20:56:51Z"],"dc:date.available":["2025-04-08T20:56:51Z"],"dc:date.issued":["2024"],"dc:description.abstract":["This thesis aims to evaluate how well Language Models (LMs) can help to improve code quality through two tasks: code linting and automated test repair. Code linters identify issues in code, but are often specialized and limited to certain issues. This thesis aims to use LMs to create a code linting approach that can replicate the results of applying multiple code linters. After training LMs on a dataset of code issues, the models achieved 84.9% accuracy in issue detection and 83.6% accuracy in issue identification, outperforming two popular code linters. Automatically repairing test cases helps code quality by allowing developers to focus on code rather than false test failures. LMs are trained to repair broken tests based on changes to the underlying code. LMs are able to repair tests with a 66.1% exact match rate, and a 80.0% plausible repair, showing that LMs can effectively repair test cases."],"dc:identifier.doi":["10.22215/etd/2024-16181"],"dc:identifier.uri":["https://hdl.handle.net/20.500.14718/43436"],"dc:language.iso":["en"],"dc:publisher":["Carleton University"],"dc:rights":["Copyright © 2024 the author(s). Theses may be used for non-commercial research, educational, or related academic purposes only. Such uses include personal study, distribution to students, research and scholarship. Theses may only be shared by linking to the Carleton University Institutional Repository and no part may be copied without proper attribution to the author; no part may be used for commercial purposes directly or indirectly via a for-profit platform; no adaptation or derivative works are permitted without consent from the copyright owner."],"dc:subject.lcsh":["Artificial intelligence","Computer science"],"dc:title":["Leveraging Language Models to Improve Code Quality Through Code Linting and Automated Test Repair"],"dc:type":["thesis"],"local:lac.licence":["true"],"others:access_status":["open.access"],"thesis:degree_discipline":["Engineering, Electrical and Computer"],"thesis:degree_level":["Master's"],"thesis:degree_name":["Master of Applied Science (M.App.Sc.)"]},"updated_at":"2026-11-19T07:08:25Z"}