{"id":{"repo_id":"sjsu","oai_identifier":"oai:scholarworks.sjsu.edu:etd_projects-2442"},"canonical_url":"https://search.ndltd.org/etd/sjsu/oai:scholarworks.sjsu.edu:etd_projects-2442","repository":{"repo_id":"sjsu","name":"San Jose State University","base_url":"https://scholarworks.sjsu.edu/do/oai/"},"display":{"title":"Code Quality Enhancement: Evaluating AI Code Generation with Software Metrics","abstract":"With the advancements in the stream of AI in the recent time and the evolution of Generative AI, it is a given that there is a need to effectively integrate AI into daily tasks, including Coding. When talking about Generative AI, one important thing to consider is prompting, which is that way to talk to the AI. Depending on specific needs and tasks the way we need to prompt AI can vary. With rapid development in the field, there are a lot of new benchmarks that evaluate the AI coders on correctness, but to effectively adapt AI into actual coding tasks, we also need to know how the prompts we provide affect the metrics. This project evaluates the impact of 4 different prompting methods on state of the art AI code generator called Qwen 2.5 - 7b Coder. The impact of prompting strategies like Zero Shot prompting, Reflective prompting, Mixture of Experts (MOE) prompting and Few Shot prompting, on critical software quality metrics, including cognitive complexity, code legibility, and cyclomatic complexity is under study to understand what prompting strategies might be of use for what kind of tasks. The study used a dataset of coding problems from Codeforces platform to study the impact of various prompts can have on the production of code that is maintainable, less complex, and simple to read by conducting a systematic comparison. The results can help show how different prompt types affect the non-functional software metrics of AI-generated code and can help close the gap between benchmarks that prioritize pure correctness. These findings contribute to a deeper understanding of prompt engineering’s role in shaping AI-driven software development.","abstract_html":"With the advancements in the stream of AI in the recent time and the evolution of Generative AI, it is a given that there is a need to effectively integrate AI into daily tasks, including Coding. When talking about Generative AI, one important thing to consider is prompting, which is that way to talk to the AI. Depending on specific needs and tasks the way we need to prompt AI can vary. With rapid development in the field, there are a lot of new benchmarks that evaluate the AI coders on correctness, but to effectively adapt AI into actual coding tasks, we also need to know how the prompts we provide affect the metrics. This project evaluates the impact of 4 different prompting methods on state of the art AI code generator called Qwen 2.5 - 7b Coder. The impact of prompting strategies like Zero Shot prompting, Reflective prompting, Mixture of Experts (MOE) prompting and Few Shot prompting, on critical software quality metrics, including cognitive complexity, code legibility, and cyclomatic complexity is under study to understand what prompting strategies might be of use for what kind of tasks. The study used a dataset of coding problems from Codeforces platform to study the impact of various prompts can have on the production of code that is maintainable, less complex, and simple to read by conducting a systematic comparison. The results can help show how different prompt types affect the non-functional software metrics of AI-generated code and can help close the gap between benchmarks that prioritize pure correctness. These findings contribute to a deeper understanding of prompt engineering’s role in shaping AI-driven software development.","abstract_has_math":false,"creators":["Murthy, Sirisha Krishna"],"institution":null,"degree_name":"Master of Science in Computer Science (MSCS)","degree_level":null,"degree_discipline":"Computer Science","degree_department":null,"school":null,"contributors":["William Andreopoulos","Robert Chun","Chung Wen Tsao"],"advisors":[],"committee_chairs":[],"committee_members":[],"year":null,"date_issued":"","date_published":null,"updated_at":"2026-11-26T14:03:30Z","subjects":["AI-generated code","AI-driven software development","Generative AI","Other Computer Engineering"],"languages":[],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier","label":"Identifier","values":["https://scholarworks.sjsu.edu/etd_projects/1442"],"render_values":[{"text":"https://scholarworks.sjsu.edu/etd_projects/1442","href":"https://scholarworks.sjsu.edu/etd_projects/1442","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.31979/etd.756h-fas8","outbound_label":"DOI","outbound_source":"dc:identifier","record_url":"https://doi.org/10.31979/etd.756h-fas8","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier","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%3Asjsu%3Aoai%3Ascholarworks.sjsu.edu%3Aetd_projects-2442","prefix":"oai_dc"},"source_record":{"url":"https://scholarworks.sjsu.edu/do/oai/?verb=GetRecord&metadataPrefix=oai_etdms&identifier=oai%3Ascholarworks.sjsu.edu%3Aetd_projects-2442","prefix":"oai_etdms"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor","label":"Contributor","values":["William Andreopoulos","Robert Chun","Chung Wen Tsao"]},{"key":"dc:creator","label":"Author","values":["Murthy, Sirisha Krishna"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.available","label":"Dc Date Available","values":["2025-12-31T08:00:00Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2024-01-01T08:00:00Z"]},{"key":"dc:type","label":"Dc Type","values":["Master's Project"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science in Computer Science (MSCS)"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["AI-generated code","AI-driven software development","Generative AI","Other Computer Engineering"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["https://doi.org/10.31979/etd.756h-fas8","https://scholarworks.sjsu.edu/etd_projects/1442"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["With the advancements in the stream of AI in the recent time and the evolution of Generative AI, it is a given that there is a need to effectively integrate AI into daily tasks, including Coding. When talking about Generative AI, one important thing to consider is prompting, which is that way to talk to the AI. Depending on specific needs and tasks the way we need to prompt AI can vary. With rapid development in the field, there are a lot of new benchmarks that evaluate the AI coders on correctness, but to effectively adapt AI into actual coding tasks, we also need to know how the prompts we provide affect the metrics. This project evaluates the impact of 4 different prompting methods on state of the art AI code generator called Qwen 2.5 - 7b Coder. The impact of prompting strategies like Zero Shot prompting, Reflective prompting, Mixture of Experts (MOE) prompting and Few Shot prompting, on critical software quality metrics, including cognitive complexity, code legibility, and cyclomatic complexity is under study to understand what prompting strategies might be of use for what kind of tasks. The study used a dataset of coding problems from Codeforces platform to study the impact of various prompts can have on the production of code that is maintainable, less complex, and simple to read by conducting a systematic comparison. The results can help show how different prompt types affect the non-functional software metrics of AI-generated code and can help close the gap between benchmarks that prioritize pure correctness. These findings contribute to a deeper understanding of prompt engineering’s role in shaping AI-driven software development."]},{"key":"dc:title","label":"Title","values":["Code Quality Enhancement: Evaluating AI Code Generation with Software Metrics"]}]}],"canonical_facts":{"dc:contributor":["William Andreopoulos","Robert Chun","Chung Wen Tsao"],"dc:creator":["Murthy, Sirisha Krishna"],"dc:date.available":["2025-12-31T08:00:00Z"],"dc:date.created":["2024-01-01T08:00:00Z"],"dc:description.abstract":["With the advancements in the stream of AI in the recent time and the evolution of Generative AI, it is a given that there is a need to effectively integrate AI into daily tasks, including Coding. When talking about Generative AI, one important thing to consider is prompting, which is that way to talk to the AI. Depending on specific needs and tasks the way we need to prompt AI can vary. With rapid development in the field, there are a lot of new benchmarks that evaluate the AI coders on correctness, but to effectively adapt AI into actual coding tasks, we also need to know how the prompts we provide affect the metrics. This project evaluates the impact of 4 different prompting methods on state of the art AI code generator called Qwen 2.5 - 7b Coder. The impact of prompting strategies like Zero Shot prompting, Reflective prompting, Mixture of Experts (MOE) prompting and Few Shot prompting, on critical software quality metrics, including cognitive complexity, code legibility, and cyclomatic complexity is under study to understand what prompting strategies might be of use for what kind of tasks. The study used a dataset of coding problems from Codeforces platform to study the impact of various prompts can have on the production of code that is maintainable, less complex, and simple to read by conducting a systematic comparison. The results can help show how different prompt types affect the non-functional software metrics of AI-generated code and can help close the gap between benchmarks that prioritize pure correctness. These findings contribute to a deeper understanding of prompt engineering’s role in shaping AI-driven software development."],"dc:identifier":["https://doi.org/10.31979/etd.756h-fas8","https://scholarworks.sjsu.edu/etd_projects/1442"],"dc:subject":["AI-generated code","AI-driven software development","Generative AI","Other Computer Engineering"],"dc:title":["Code Quality Enhancement: Evaluating AI Code Generation with Software Metrics"],"dc:type":["Master's Project"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_name":["Master of Science in Computer Science (MSCS)"]},"updated_at":"2026-11-26T14:03:30Z"}