Mining on Students’ Execution Logs and Repairing Compilation Errors Based on Deep Learning

Author:

Shi Ruoyan1,Hu Jianpeng1,Lin Bo1

Affiliation:

1. School of Electronic and Electrical Engineering, Shanghai University of Engineering Science, Shanghai 201600, China

Abstract

Automatic program repair techniques based on deep neural networks have attracted widespread attention from researchers due to the high degree of automation and generality. However, there is a scarcity of high-quality labeled datasets available for training program repair models. This study proposes a method of mining reasonable program repair examples from student program execution logs. Additionally, we introduce the Rookie Simulator (RS), which simulates the error patterns commonly made by novice programmers and generates a large number of program repair sample pairs. To address the issue of low repair rates for infrequent and complex error patterns in compilation errors, the study proposes the attention-enhanced capsule network for program repair (ACNPR), a program repair model that integrates compiler feedback information and utilizes capsule networks to capture complex semantic features. Experimental evaluations were conducted using publicly available datasets, including the DeepFix, TEGCER, and a real course dataset named SUES-COJ mined in this study. The results indicate that our method consistently outperforms current state-of-the-art models in terms of full repair rates.

Funder

Shanghai Collaborative Innovation Center of data intelligence technology

Publisher

MDPI AG

Subject

Fluid Flow and Transfer Processes,Computer Science Applications,Process Chemistry and Technology,General Engineering,Instrumentation,General Materials Science

Reference34 articles.

1. Tracy, C., Stu, Z., Ellen, W., and Lecia, B. (2015, January 4–7). Booming Enrollments: Good Times?. Proceedings of the 46th ACM Technical Symposium on Computer Science Education, Kansas City, MO, USA.

2. Survey of Automatic Program Repair Techniques;Jiang;J. Softw.,2021

3. Weimer, W., Nguyen, T.V., Le Goues, C., and Forrest, S. (2009, January 16–24). Automatically finding patches using genetic programming. Proceedings of the 31st International Conference on Software Engineering, Vancouver, BC, Canada.

4. Qi, Y., Mao, X., Lei, Y., Dai, Z., and Wang, C. (June, January 31). The strength of random search on automated program repair. Proceedings of the 36th International Conference on Software Engineering, New York, NY, USA.

5. Improved representation and genetic operators for linear genetic programming for automated program repair;Oliveira;Empir. Softw. Eng.,2018

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3