Source code change analysis with deep learning based programming model

被引:0
|
作者
Babita Pathik
Meena Sharma
机构
[1] Institute of Engineering & Technology,IT
[2] DAVV,Department of Computer Engineering
[3] Institute of Engineering & Technology,undefined
[4] DAVV,undefined
来源
关键词
Change impact analysis; Abstract syntax tree; Path2Vec; Deep learning; Word embedding; Distance metrics; Attention; Un-parsing;
D O I
暂无
中图分类号
学科分类号
摘要
Analyzing the change in source code is a very crucial activity for object-oriented parallel programming software. This paper suggested an Impact analysis method with Attention BiLSTM (IABLSTM) for detecting the changes and their affected part in the object-oriented software system. Classical approaches based on control flow graph, program dependence analysis, latent dirichlet allocation, and data mining have been used for change impact analysis. A Path2Vec approach is presented in the paper, combining a deep learning technique with word embedding to analyze and identify the change. The paper considers two versions of a python program for experiment and generates the abstract syntax tree (AST). Then extract the path to produce a token sequence. Next, convert the token sequence into unique vectors by applying a word embedding layer. The BiLSTM network encodes the sequence into a vector representation. After that, compare the embedded output with the use of cosine distance metrics. We trained the neural network model with the embedded outcome. Then decode the resultant token sequence into a path of AST. Finally, convert the AST path back to code using the un-parsing technique. To strengthen the parallel programming based proposed model, we combined the attention mechanism to emphasize and detect the differences in the code. The model is detecting the change of code efficiently. The experimental results show that our proposed model's change detection accuracy increases significantly compared with other conventional models for change impact analysis. The proposed method can also be applied for impact analysis on object-oriented based parallel programming. The empirical evaluation shows that the model outperforms change detection with approximately 85% validation accuracy.
引用
收藏
相关论文
共 50 条
  • [31] Source Code Analysis in Programming Education: Evaluating Learning Content with Self-Organizing Maps
    Jevtic, Marko
    Mladenovic, Sasa
    Granic, Andrina
    APPLIED SCIENCES-BASEL, 2023, 13 (09):
  • [32] A parallel deep learning-based code clone detection model
    Zhang, Xiangping
    Liu, Jianxun
    Shi, Min
    JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 2023, 181
  • [33] Generating Pseudo-Code from Source Code Using Deep Learning
    Alhefdhi, Abdulaziz
    Dam, Hoa Khanh
    Hata, Hideaki
    Ghose, Aditya
    2018 25TH AUSTRALASIAN SOFTWARE ENGINEERING CONFERENCE (ASWEC), 2018, : 21 - 25
  • [34] DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detection
    Chen, Yizheng
    Ding, Zhoujie
    Alowain, Lamya
    Chen, Xinyun
    Wagner, David
    PROCEEDINGS OF THE 26TH INTERNATIONAL SYMPOSIUM ON RESEARCH IN ATTACKS, INTRUSIONS AND DEFENSES, RAID 2023, 2023, : 654 - 668
  • [35] Automated Deep Learning Optimization via DSL-Based Source Code Transformation
    Wang, Ruixin
    Lu, Minghai
    Yu, Cody Hao
    Lai, Yi-Hsiang
    Zhang, Tianyi
    PROCEEDINGS OF THE 33RD ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2024, 2024, : 479 - 490
  • [36] A performant deep learning model for sentiment analysis of climate change
    Lydiri, Mustapha
    El Mourabit, Yousef
    El Habouz, Youssef
    Fakir, Mohamed
    SOCIAL NETWORK ANALYSIS AND MINING, 2022, 13 (01)
  • [37] A performant deep learning model for sentiment analysis of climate change
    Mustapha Lydiri
    Yousef El Mourabit
    Youssef El Habouz
    Mohamed Fakir
    Social Network Analysis and Mining, 13
  • [38] CPGVA: Code Property Graph based Vulnerability Analysis by Deep Learning
    Wang Xiaomeng
    Zhang Tao
    Wu Runpu
    Xin Wei
    Hou Changyu
    2018 10TH INTERNATIONAL CONFERENCE ON ADVANCED INFOCOMM TECHNOLOGY (ICAIT), 2018, : 184 - 188
  • [39] A Review of Deep Learning-Based Binary Code Similarity Analysis
    Du, Jiang
    Wei, Qiang
    Wang, Yisen
    Sun, Xiangjie
    ELECTRONICS, 2023, 12 (22)
  • [40] REAL-TIME INDEPENDENT VECTOR ANALYSIS WITH A DEEP-LEARNING-BASED SOURCE MODEL
    Kang, Fang
    Yang, Feiran
    Yang, Jun
    2021 IEEE SPOKEN LANGUAGE TECHNOLOGY WORKSHOP (SLT), 2021, : 665 - 669