arrow
返回

Analyzing syntactic constructs of Java programs with machine learning

delete2023-04-01
delete3
delete
OA
AI
F
Francisco Ortín *
G
Guillermo Facundo Colunga
M
Miguel García
DOI:10.1016/j.eswa.2022.119398delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
The massive number of open-source projects in public repositories has notably increased in the last years. Such repositories represent valuable information to be mined for different purposes, such as documenting recurrent syntactic constructs, analyzing the particular constructs used by experts and beginners, using them to teach programming and to detect bad programming practices, and building programming tools such as decompilers, Integrated Development Environments or Intelligent Tutoring Systems. An inherent problem of source code is that its syntactic information is represented with tree structures, while traditional machine learning algorithms use n-dimensional datasets. Therefore, we present a feature engineering process to translate tree structures into homogeneous and heterogeneous n-dimensional datasets to be mined. Then, we run different interpretable (supervised and unsupervised) machine learning algorithms to mine the syntactic information of more than 17 million syntactic constructs in Java code. The results reveal interesting information such as the Java constructs that are barely (and widely) used (e.g., bitwise operators, union types and static blocks), different language features and patterns mostly (and barely) used by beginners (and experts), the discovery of particular types of source code (e.g., helper or utility classes, data transfer objects and too complex abstractions), and how complexity is an inherent characteristic in some clusters of syntactic constructs.
Keyword:
Abstract syntax tree
Programming language
Data mining
Feature engineering
Programming idiom
Heterogeneous dataset
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Expert Systems with Applications 封面图
Expert Systems with Applications
IF:
7.5
论文数:
3.0W
被引数:
10.2W

机构

U
University of Oviedo
学者数:
1.1W
论文数: 1.0W
被引数: 15
引用论文

引用论文

Digital Imaging and Vision Analysis in Science Project improves the self-efficacy and skill of undergraduate students in computational work
err
IF0
err2020-10-26
err0
errOAAI
errTessa Durham Brooks; Raychelle Burks; Erin Doyle; Mark Meysenburg; Tim Frey
err分享
err收藏
Towards a collaborative and integrated optimization approach in sustainable freight transportation
err2021-01-01
err0
errOAAI
errAymen Aloui; Nassim Mrabti; Nadia Hamani; Laurent Delahoche
err分享
err收藏
Proprioceptive Mechanism for Bioinspired Fish Swimming
err2021-06-08
err0
PREAI
errJ. Sánchez-Rodríguez; F. Celestini; C. Raufaste; M. Argentina
err分享
err收藏
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
An Efficient and Scalable Platform for Java Source Code Analysis Using Overlaid Graph Representations
err2020-01-01
err18
errOAAI
errRodriguez-Prieto, Oscar; Mycroft, Alan; Ortin, Francisco
err分享
err收藏
学者 查看更多内容