Düzce Üniversitesi Bilim ve Teknoloji Dergisi (Jan 2022)

Discovering Sequential Source Code Patterns in Software Engineering

  • Kökten Birant,
  • Dilara Kırnapcı

DOI
https://doi.org/10.29130/dubited.905510
Journal volume & issue
Vol. 10, no. 1
pp. 309 – 324

Abstract

Read online

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.

Keywords