{"id":{"repo_id":"lethbridge","oai_identifier":"oai:opus.uleth.ca:10133/7296"},"canonical_url":"https://search.dev.ndltd.org/etd/lethbridge/oai:opus.uleth.ca:10133/7296","repository":{"repo_id":"lethbridge","name":"University of Lethbridge","base_url":"https://opus.uleth.ca/server/oai/request"},"display":{"title":"Investigating the impact of programming styles to improve code quality using machine learning and sociolinguistic features","abstract":"In this research we investigated whether sociolinguistic factors such as gender, region, and expertise influence programming styles and code quality. We collected and processed over 700,000 C++ programs from GitHub and Codeforces to build data sets for training Random Forest and BERT models to classify programmer groups. While capturing stylistic patterns, experimental results showed that context-based models outperform metrics-based models. To measure code quality, we combined the Maintainability Index and difficulty metrics to label code as compliant or non-compliant. We further fine-tuned the T5 model for code transformation to generate stylistically improved code. However, due to the limitations of encoder–decoder LLMs, the generated code samples were non-executable. To address this, we developed a CodeBERT-based recommendation model that generates targeted, metric-driven guidance to improve code quality. Finally, we implemented a prototype tool that combines classifications, code quality, and improvement suggestions, providing pedagogically meaningful feedback for learners and researchers.","abstract_html":"In this research we investigated whether sociolinguistic factors such as gender, region, and expertise influence programming styles and code quality. We collected and processed over 700,000 C++ programs from GitHub and Codeforces to build data sets for training Random Forest and BERT models to classify programmer groups. While capturing stylistic patterns, experimental results showed that context-based models outperform metrics-based models. To measure code quality, we combined the Maintainability Index and difficulty metrics to label code as compliant or non-compliant. We further fine-tuned the T5 model for code transformation to generate stylistically improved code. However, due to the limitations of encoder–decoder LLMs, the generated code samples were non-executable. To address this, we developed a CodeBERT-based recommendation model that generates targeted, metric-driven guidance to improve code quality. Finally, we implemented a prototype tool that combines classifications, code quality, and improvement suggestions, providing pedagogically meaningful feedback for learners and researchers.","abstract_has_math":false,"creators":["Abdullah, Deen Mohammad","University of Lethbridge. Faculty of Arts and Science"],"institution":null,"degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025","date_published":"2025","updated_at":"2026-11-17T02:17:47Z","subjects":["programming styles","code quality","sociolinguistic factors","coding style","software metrics","large language models"],"languages":[],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10133/7296","outbound_label":"Handle","outbound_source":"mods:identifier.uri","record_url":"https://hdl.handle.net/10133/7296","record_label":"Repository record","record_kind":"handle","record_source":"mods:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.dev.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.dev.ndltd.org%3Arepo%3Alethbridge%3Aoai%3Aopus.uleth.ca%3A10133%2F7296","prefix":"oai_dc"},"source_record":{"url":"https://opus.uleth.ca/server/oai/request?verb=GetRecord&metadataPrefix=mets&identifier=oai%3Aopus.uleth.ca%3A10133%2F7296","prefix":"mets"},"metadata_groups":[{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.issued","label":"Date","values":["2025"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["programming styles","code quality","sociolinguistic factors","coding style","software metrics","large language models"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["hdl:10133/7296"]},{"key":"mods:identifier.uri","label":"Mods Identifier URI","values":["https://hdl.handle.net/10133/7296"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.other","label":"Dc Description Other","values":["In this research we investigated whether sociolinguistic factors such as gender, region, and expertise influence programming styles and code quality. We collected and processed over 700,000 C++ programs from GitHub and Codeforces to build data sets for training Random Forest and BERT models to classify programmer groups. While capturing stylistic patterns, experimental results showed that context-based models outperform metrics-based models. To measure code quality, we combined the Maintainability Index and difficulty metrics to label code as compliant or non-compliant. We further fine-tuned the T5 model for code transformation to generate stylistically improved code. However, due to the limitations of encoder–decoder LLMs, the generated code samples were non-executable. To address this, we developed a CodeBERT-based recommendation model that generates targeted, metric-driven guidance to improve code quality. Finally, we implemented a prototype tool that combines classifications, code quality, and improvement suggestions, providing pedagogically meaningful feedback for learners and researchers."]},{"key":"dc:title","label":"Title","values":["Investigating the impact of programming styles to improve code quality using machine learning and sociolinguistic features"]},{"key":"mods:dateaccessioned","label":"Mods Dateaccessioned","values":["2026-02-04T23:08:31Z"]},{"key":"mods:dateavailable","label":"Mods Dateavailable","values":["2026-02-04T23:08:31Z"]},{"key":"mods:languageterm.rfc3066","label":"Mods Languageterm RFC 3066","values":["en"]},{"key":"mods:namepart","label":"Mods Namepart","values":["Rice, Jacqueline E.","Abdullah, Deen Mohammad","University of Lethbridge. Faculty of Arts and Science"]},{"key":"mods:roleterm.text","label":"Mods Roleterm Text","values":["supervisor","author"]}]}],"canonical_facts":{"dc:date.issued":["2025"],"dc:description.other":["In this research we investigated whether sociolinguistic factors such as gender, region, and expertise influence programming styles and code quality. We collected and processed over 700,000 C++ programs from GitHub and Codeforces to build data sets for training Random Forest and BERT models to classify programmer groups. While capturing stylistic patterns, experimental results showed that context-based models outperform metrics-based models. To measure code quality, we combined the Maintainability Index and difficulty metrics to label code as compliant or non-compliant. We further fine-tuned the T5 model for code transformation to generate stylistically improved code. However, due to the limitations of encoder–decoder LLMs, the generated code samples were non-executable. To address this, we developed a CodeBERT-based recommendation model that generates targeted, metric-driven guidance to improve code quality. Finally, we implemented a prototype tool that combines classifications, code quality, and improvement suggestions, providing pedagogically meaningful feedback for learners and researchers."],"dc:identifier":["hdl:10133/7296"],"dc:subject":["programming styles","code quality","sociolinguistic factors","coding style","software metrics","large language models"],"dc:title":["Investigating the impact of programming styles to improve code quality using machine learning and sociolinguistic features"],"dc:type":["Thesis"],"mods:dateaccessioned":["2026-02-04T23:08:31Z"],"mods:dateavailable":["2026-02-04T23:08:31Z"],"mods:identifier.uri":["https://hdl.handle.net/10133/7296"],"mods:languageterm.rfc3066":["en"],"mods:namepart":["Rice, Jacqueline E.","Abdullah, Deen Mohammad","University of Lethbridge. Faculty of Arts and Science"],"mods:roleterm.text":["supervisor","author"]},"updated_at":"2026-11-17T02:17:47Z"}