Discovering Sequential Source Code Patterns in Software Engineering

Autor: Kökten Birant, Dilara Kırnapcı
Jazyk: English<br />Turkish
Rok vydání: 2022
Předmět:
Zdroj: Düzce Üniversitesi Bilim ve Teknoloji Dergisi, Vol 10, Iss 1, Pp 309-324 (2022)
Druh dokumentu: article
ISSN: 2148-2446
DOI: 10.29130/dubited.905510
Popis: Discovering sequential patterns in source codes is an important issue in software engineering since it can provide useful knowledge to help in a variety of tasks such as code completion, code refactoring, developer profiling, and code complexity measurement. This paper proposes a new framework, called Source Code Miner (SCodeMiner), which discovers frequent sequential rules within a software project. The proposed framework firstly transforms a Java code into a sequence data and then applies a sequential pattern mining (SPM) algorithm. This study is also original in that it compares four SPM algorithms in terms of computational time, including sequential pattern discovery using equivalence classes (SPADE), prefix-projected sequential pattern mining (PrefixSpan), bi-directional extension (BIDE+), and last position induction (LAPIN). The experiments that carried out on an open-source software project showed that the proposed SCodeMiner framework is an effective mining tool in identifying coding patterns.
Databáze: Directory of Open Access Journals