The Metric for Automatic Code Generation Based on Dynamic Abstract Syntax Tree

Wenjun Yao,Ying Jiang, Yang Yang

INTERNATIONAL JOURNAL OF DIGITAL CRIME AND FORENSICS(2023)

引用 0|浏览4
暂无评分
摘要
In order to improve the efficiency and quality of software development, automatic code generation technology is the current focus. The quality of the code generated by the automatic code generation technology is also an important issue. However, existing metrics for code automatic generation ignore that the programming process is a continuous dynamic changeable process. So the metric is a dynamic process. This article proposes a metric method based on dynamic abstract syntax tree (DAST). More specifically, the method first builds a DAST through the interaction in behavior information between the automatic code generation tool and programmer. Then the measurement contents are extracted on the DAST. Finally, the metric is completed with contents extracted. The experiment results show that the method can effectively realize the metrics of automatic code generation. Compared with the MAST method, the method in this article can improve the convergence speed by 80% when training the model, and can shorten the time-consuming by an average of 46% when doing the metric prediction.
更多
查看译文
关键词
Automatic Code Generation, Dynamic Abstract Syntax Tree, Extract Algorithm, Metric
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要