Clear and concise code is necessary to ensure maintainability, so it is crucial that the software is as simple as possible to understand, to avoid bugs and, above all, vulnerabilities. There are many ways to enhance software without changing its functionality, considering the extract method refactoring the primary process to reduce the effort required for code comprehension. The cognitive complexity measure employed in this work is the one defined by SonarSource, which is a company that develops well-known applications for static code analysis. This extraction problem can be modeled as a combinatorial optimization problem. The main difficulty arises from the existence of different criteria for evaluating the solutions obtained, requiring the formulation of the code extraction problem as a multi-objective optimization problem using alternative methods. We propose a multi-objective integer linear programming model to obtain a set of solutions that reduce the cognitive complexity of a given piece of code, such as balancing the number of lines of code and its cognitive complexity. In addition, several algorithms have been developed to validate the model. These algorithms have been integrated into a tool that enables the parameterised resolution of the problem of reducing software cognitive complexity.
From Prediction to Application: Language Model-based Code Knowledge Tracing with Domain Adaptive Pre-Training and Automatic Feedback System with Pedagogical Prompting for Comprehensive Programming Education
Enuma Inc(Enuma公司);University of Memphis(孟菲斯大学);Daegu National University of Education(大邱教育大学);Seoul National University(首尔大学);Seoul Metropolitan Office of Education(首尔市教育厅);Korea University(高丽大学)
Automatic Programming: Large Language Models and Beyond
Chinese University of Hong Kong(香港中文大学);Columbia University(哥伦比亚大学);National University of Singapore(新加坡国立大学);Concordia University(康考迪亚大学);University of Melbourne(墨尔本大学)
MaCTG: Multi-Agent Collaborative Thought Graph for Automatic Programming
School of Computer Science, University of Auckland(计算机科学系,奥克兰大学);School of Information and Communication Technology, Griffith University(信息与通信技术系,格里菲斯大学);Beijing Institute of Technology(北京理工大学);Suzhou Industrial Park Monash Research Institute of Science and Technology(苏州工业园区莫纳什科学与技术研究所);School of Computing, National University of Singapore(计算系,新加坡国立大学)