Unsupervised Classifying of Software Source Code Using Graph Neural Networks

被引:0
|
作者
Vytovtov, Petr [1 ,2 ]
Chuvilin, Kirill [1 ]
机构
[1] Moscow Inst Phys & Technol, Moscow, Russia
[2] Samsung R&D Inst Russia, Moscow, Russia
基金
俄罗斯基础研究基金会;
关键词
D O I
10.23919/fruct.2019.8711909
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Usually automated programming systems consist of two parts: source code analysis and source code generation. This paper is focused on the first part. Automated source code analysis can be useful for errors and vulnerabilities searching and for representing source code snippets for further investigating. Also gotten representations can be used for synthesizing source code snippets of certain types. A machine learning approach is used in this work. The training set is formed by augmented abstract syntax trees of Java classes. A graph autoencoder is trained and a latent representation of Java classes graphs is inspected. Experiments showed that the proposed model can split Java classes graphs to common classes with some business logic implementation and interfaces and utility classes. The results are good enough be used for more accurate software source code generation.
引用
收藏
页码:518 / 524
页数:7
相关论文
共 50 条
  • [1] Classifying construction contractors using unsupervised-learning neural networks
    Elazouni, Ashraf M.
    [J]. JOURNAL OF CONSTRUCTION ENGINEERING AND MANAGEMENT, 2006, 132 (12) : 1242 - 1253
  • [2] Source Code Classification Using Neural Networks
    Gilda, Shlok
    [J]. PROCEEDINGS OF 2017 14TH INTERNATIONAL JOINT CONFERENCE ON COMPUTER SCIENCE AND SOFTWARE ENGINEERING (JCSSE), 2017,
  • [3] DeepCut: Unsupervised Segmentation using Graph Neural Networks Clustering
    Aflalo, Amit
    Bagon, Shai
    Kashti, Tamar
    Eldar, Yonina
    [J]. 2023 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION WORKSHOPS, ICCVW, 2023, : 32 - 41
  • [4] Classifying Code Commits with Convolutional Neural Networks
    Meng, Na
    Jiang, Zijian
    Zhong, Hao
    [J]. 2021 INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS (IJCNN), 2021,
  • [5] An Efficient Programming Rule Extraction and Detection of Violations in Software Source Code using Neural networks
    Pravin, A.
    Srinivasan, S.
    [J]. 2012 FOURTH INTERNATIONAL CONFERENCE ON ADVANCED COMPUTING (ICOAC), 2012,
  • [6] Unsupervised Resource Allocation with Graph Neural Networks
    Cranmer, Miles
    Melchior, Peter
    Nord, Brian
    [J]. NEURIPS 2020 WORKSHOP ON PRE-REGISTRATION IN MACHINE LEARNING, VOL 148, 2020, 148 : 272 - 284
  • [7] Algorithm Selection for Software Verification Using Graph Neural Networks
    Leeson, Will
    Dwyer, Matthew B.
    [J]. ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2024, 33 (03)
  • [8] Approach to Searching Software Source Code with Graph Embedding
    Ling, Chun-Yang
    Zou, Yan-Zhen
    Lin, Ze-Qi
    Xie, Bing
    Zhao, Jun-Feng
    [J]. Ruan Jian Xue Bao/Journal of Software, 2019, 30 (05): : 1481 - 1497
  • [9] Source Code Authorship Identification Using Deep Neural Networks
    Kurtukova, Anna
    Romanov, Aleksandr
    Shelupanov, Alexander
    [J]. SYMMETRY-BASEL, 2020, 12 (12): : 1 - 17
  • [10] Automatically Generating Code Comment Using Heterogeneous Graph Neural Networks
    Jin, Dun
    Liu, Peiyu
    Zhu, Zhenfang
    [J]. 2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2022), 2022, : 1078 - 1088