{"id":{"repo_id":"sask","oai_identifier":"oai:harvest.usask.ca:10388/17342"},"canonical_url":"https://search.ndltd.org/etd/sask/oai:harvest.usask.ca:10388/17342","repository":{"repo_id":"sask","name":"University of Saskatchewan","base_url":"https://harvest.usask.ca/server/oai/request"},"display":{"title":"Toward a Human-Centric Just-In-Time Runtime Error Prediction","abstract":"Just-in-time bug prediction aims to identify potential runtime errors before code is committed, enabling earlier intervention and improving software reliability. While static analysis tools such as SonarQube detect certain issues, many context-sensitive runtime bugs still escape detection until execution. Large language models (LLMs) offer new opportunities to detect such faults directly from source code, yet their systematic application to runtime error prediction at the token level remains underexplored. This thesis presents a three-phase framework for token-level just-in-time runtime error prediction. Phase one, addresses data scarcity by generating a synthetic corpus of buggy–fixed Java method pairs for three prevalent runtime errors, NullPointerException, IllegalStateException, and AssertionError, using zero-shot and few-shot prompting with GPT-4o. Outputs are validated through manual inspection and cross-validation with LLaMA-3 (8B) and Claude-opus-4, supported by static tools (CK, Tree-Sitter), ensuring syntactic correctness and semantic realism. Phase two, fine-tunes transformer models (CodeBERT, CodeT5, CodeGPT) for token classification, aiming to localize potentially buggy patterns statically from source code alone. Augmenting inputs with Abstract Syntax Tree (AST) embeddings and node types improves localization, with CodeBERT achieving the highest F1 scores for NullPointerException cases. Data generated through zero-shot prompting shows stronger generalization to unseen scenarios. Phase three integrates the best-performing model into a Visual Studio Code extension that provides method-level, inline feedback as developers write code. In a user study and comparison with SonarQube, the extension identified subtle, context-specific patterns beyond the reach of rule-based analysis while maintaining low cognitive load through human–computer interaction–informed design. Together, these phases deliver a validated dataset, an empirical evaluation of structure-aware LLMs for token-level runtime bug localization, and a deployable IDE assistant, advancing the state of AI-driven just-in-time bug prediction.","abstract_html":"Just-in-time bug prediction aims to identify potential runtime errors before code is committed, enabling earlier intervention and improving software reliability. While static analysis tools such as SonarQube detect certain issues, many context-sensitive runtime bugs still escape detection until execution. Large language models (LLMs) offer new opportunities to detect such faults directly from source code, yet their systematic application to runtime error prediction at the token level remains underexplored. This thesis presents a three-phase framework for token-level just-in-time runtime error prediction. Phase one, addresses data scarcity by generating a synthetic corpus of buggy–fixed Java method pairs for three prevalent runtime errors, NullPointerException, IllegalStateException, and AssertionError, using zero-shot and few-shot prompting with GPT-4o. Outputs are validated through manual inspection and cross-validation with LLaMA-3 (8B) and Claude-opus-4, supported by static tools (CK, Tree-Sitter), ensuring syntactic correctness and semantic realism. Phase two, fine-tunes transformer models (CodeBERT, CodeT5, CodeGPT) for token classification, aiming to localize potentially buggy patterns statically from source code alone. Augmenting inputs with Abstract Syntax Tree (AST) embeddings and node types improves localization, with CodeBERT achieving the highest F1 scores for NullPointerException cases. Data generated through zero-shot prompting shows stronger generalization to unseen scenarios. Phase three integrates the best-performing model into a Visual Studio Code extension that provides method-level, inline feedback as developers write code. In a user study and comparison with SonarQube, the extension identified subtle, context-specific patterns beyond the reach of rule-based analysis while maintaining low cognitive load through human–computer interaction–informed design. Together, these phases deliver a validated dataset, an empirical evaluation of structure-aware LLMs for token-level runtime bug localization, and a deployable IDE assistant, advancing the state of AI-driven just-in-time bug prediction.","abstract_has_math":false,"creators":["Eslamloo, Parnian"],"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, Banani"],"committee_chairs":[],"committee_members":["Rochan, Mirgank","Gutwin, Carl"],"year":2025,"date_issued":"2025-09-23","date_published":"2025-09-23","updated_at":"2026-11-19T10:02:32Z","subjects":["Bug prediction, Bug Localization, LLMs, Transformer Models, Finetuning, Software Maintenance, Runtime Error, Java"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10388/17342","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10388/17342","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":"embargoed","embargo_until":"2027-09-23","access_note":"Embargoed until 2027-09-23"},"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%2F17342","prefix":"oai_dc"},"source_record":{"url":"https://harvest.usask.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aharvest.usask.ca%3A10388%2F17342","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Roy, Banani"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Rochan, Mirgank","Gutwin, Carl"]},{"key":"dc:creator","label":"Author","values":["Eslamloo, Parnian"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-09-23T20:33:38Z"]},{"key":"dc:date.copyright","label":"Dc Date Copyright","values":["2025"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2025-09"]},{"key":"dc:date.embargo","label":"Dc Date Embargo","values":["2027-09-23"]},{"key":"dc:date.issued","label":"Date","values":["2025-09-23"]},{"key":"dc:date.liftdate","label":"Dc Date Liftdate","values":["2027-09-23"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["September 2025"]},{"key":"dc:date.updated","label":"Dc Date Updated","values":["2025-09-23T20:33:38Z"]},{"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":["Bug prediction, Bug Localization, LLMs, Transformer Models, Finetuning, Software Maintenance, Runtime Error, Java"]}]},{"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/17342"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Just-in-time bug prediction aims to identify potential runtime errors before code is committed, enabling earlier intervention and improving software reliability. While static analysis tools such as SonarQube detect certain issues, many context-sensitive runtime bugs still escape detection until execution. Large language models (LLMs) offer new opportunities to detect such faults directly from source code, yet their systematic application to runtime error prediction at the token level remains underexplored. This thesis presents a three-phase framework for token-level just-in-time runtime error prediction. Phase one, addresses data scarcity by generating a synthetic corpus of buggy–fixed Java method pairs for three prevalent runtime errors, NullPointerException, IllegalStateException, and AssertionError, using zero-shot and few-shot prompting with GPT-4o. Outputs are validated through manual inspection and cross-validation with LLaMA-3 (8B) and Claude-opus-4, supported by static tools (CK, Tree-Sitter), ensuring syntactic correctness and semantic realism. Phase two, fine-tunes transformer models (CodeBERT, CodeT5, CodeGPT) for token classification, aiming to localize potentially buggy patterns statically from source code alone. Augmenting inputs with Abstract Syntax Tree (AST) embeddings and node types improves localization, with CodeBERT achieving the highest F1 scores for NullPointerException cases. Data generated through zero-shot prompting shows stronger generalization to unseen scenarios. Phase three integrates the best-performing model into a Visual Studio Code extension that provides method-level, inline feedback as developers write code. In a user study and comparison with SonarQube, the extension identified subtle, context-specific patterns beyond the reach of rule-based analysis while maintaining low cognitive load through human–computer interaction–informed design. Together, these phases deliver a validated dataset, an empirical evaluation of structure-aware LLMs for token-level runtime bug localization, and a deployable IDE assistant, advancing the state of AI-driven just-in-time bug prediction."]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Toward a Human-Centric Just-In-Time Runtime Error Prediction"]},{"key":"others:access_status","label":"Others Access Status","values":["embargo"]}]}],"canonical_facts":{"dc:contributor.advisor":["Roy, Banani"],"dc:contributor.committeemember":["Rochan, Mirgank","Gutwin, Carl"],"dc:creator":["Eslamloo, Parnian"],"dc:date.accessioned":["2025-09-23T20:33:38Z"],"dc:date.copyright":["2025"],"dc:date.created":["2025-09"],"dc:date.embargo":["2027-09-23"],"dc:date.issued":["2025-09-23"],"dc:date.liftdate":["2027-09-23"],"dc:date.submitted":["September 2025"],"dc:date.updated":["2025-09-23T20:33:38Z"],"dc:description.abstract":["Just-in-time bug prediction aims to identify potential runtime errors before code is committed, enabling earlier intervention and improving software reliability. While static analysis tools such as SonarQube detect certain issues, many context-sensitive runtime bugs still escape detection until execution. Large language models (LLMs) offer new opportunities to detect such faults directly from source code, yet their systematic application to runtime error prediction at the token level remains underexplored. This thesis presents a three-phase framework for token-level just-in-time runtime error prediction. Phase one, addresses data scarcity by generating a synthetic corpus of buggy–fixed Java method pairs for three prevalent runtime errors, NullPointerException, IllegalStateException, and AssertionError, using zero-shot and few-shot prompting with GPT-4o. Outputs are validated through manual inspection and cross-validation with LLaMA-3 (8B) and Claude-opus-4, supported by static tools (CK, Tree-Sitter), ensuring syntactic correctness and semantic realism. Phase two, fine-tunes transformer models (CodeBERT, CodeT5, CodeGPT) for token classification, aiming to localize potentially buggy patterns statically from source code alone. Augmenting inputs with Abstract Syntax Tree (AST) embeddings and node types improves localization, with CodeBERT achieving the highest F1 scores for NullPointerException cases. Data generated through zero-shot prompting shows stronger generalization to unseen scenarios. Phase three integrates the best-performing model into a Visual Studio Code extension that provides method-level, inline feedback as developers write code. In a user study and comparison with SonarQube, the extension identified subtle, context-specific patterns beyond the reach of rule-based analysis while maintaining low cognitive load through human–computer interaction–informed design. Together, these phases deliver a validated dataset, an empirical evaluation of structure-aware LLMs for token-level runtime bug localization, and a deployable IDE assistant, advancing the state of AI-driven just-in-time bug prediction."],"dc:format.mimetype":["application/pdf"],"dc:identifier.uri":["https://hdl.handle.net/10388/17342"],"dc:language.iso":["en"],"dc:subject":["Bug prediction, Bug Localization, LLMs, Transformer Models, Finetuning, Software Maintenance, Runtime Error, Java"],"dc:title":["Toward a Human-Centric Just-In-Time Runtime Error Prediction"],"dc:type":["Thesis","text"],"others:access_status":["embargo"],"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-19T10:02:32Z"}