arrow
Return

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
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

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.
Keywords:
Abstract syntax tree
Programming language
Data mining
Feature engineering
Programming idiom
Heterogeneous dataset
Syntactic multilingual probing of pre-trained language models of code
err2025-09-03
err0
errOAAI
errJosé Antonio Hernández López; Martin Weyssow; Jesús Sánchez Cuadrado; Houari Sahraoui
errShare
errSave
Understanding the syntactic rule usage in java
err2017-01-01
err12
PREAI
errQiu, Dong; Li, Bixin; Barr, Earl T.; Su, Zhendong
errShare
errSave
A novel transformer-based software fault prediction using syntactic tree and word embedding
err2026-03-14
err0
PREAI
errThi Minh Phuong Ha; Vu Thu Nguyet Pham; Huu Nhat Minh Nguyen; Thi My Hanh Le; John Healy; Thanh Binh Nguyen
errShare
errSave

Journal

Expert Systems with Applications cover
Expert Systems with Applications
IF:
7.5
Papers:
3.1W
Citations:
13.6W

Organization

U
University of Oviedo
Scholars:
250
Papers: 104
Citations: 4.8K
Cited Papers

Cited Papers

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
errShare
errSave
Towards a collaborative and integrated optimization approach in sustainable freight transportation
err2021-01-01
err0
errOAAI
errAymen Aloui; Nassim Mrabti; Nadia Hamani; Laurent Delahoche
errShare
errSave
Proprioceptive Mechanism for Bioinspired Fish Swimming
err2021-06-08
err0
PREAI
errJ. Sánchez-Rodríguez; F. Celestini; C. Raufaste; M. Argentina
errShare
errSave
Understanding the syntactic rule usage in java
err2017-01-01
err12
PREAI
errQiu, Dong; Li, Bixin; Barr, Earl T.; Su, Zhendong
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
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
errShare
errSave
researcher View more