DocumentCode :
3235524
Title :
Mining Source Code for Structural Regularities
Author :
Lozano, Angela ; Kellens, Andy ; Mens, Kim ; Arevalo, Gabriela
Author_Institution :
ICTEAM, Univ. Catholique de Louvain, Louvain-la-Neuve, Belgium
fYear :
2010
fDate :
13-16 Oct. 2010
Firstpage :
22
Lastpage :
31
Abstract :
During software development, design rules and contracts in the source code are often encoded through regularities, such as API usage protocols, coding idioms and naming conventions. The structural regularities that govern a program can aid in comprehension and maintenance of the application, but are often implicit or undocumented. Tool support for extracting these regularities from the source code can provide developers useful insights. But building such tool support is not trivial, in particular, because the informal nature of regularities results in frequent deviations and exceptions to these regularities. We propose an automated approach, based on association rule mining, to discover the structural regularities that govern the source code of a software system. We chose this technique because of its resilience to exceptions. In general, tool support for mining regularities tends to discover a huge amount of rules, making interpretation of the results hard and time-consuming. To ease the interpretation, we reduce the results to a minimal canonical form, and group them to obtain a more rational description of the discovered regularities. As an initial feasibility study of our approach, we applied it on two open-source systems, namely Intensive (Smalltalk) and FreeCol (Java).
Keywords :
data mining; public domain software; software development management; software maintenance; source coding; API usage protocols; FreeCol; association rule mining; coding idioms; naming conventions; open-source systems; software system; source code mining; structural regularities; Algorithm design and analysis; Arrays; Association rules; Electronic mail; Protocols; Redundancy; association rules; mining source code; regularities; static analysis;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Reverse Engineering (WCRE), 2010 17th Working Conference on
Conference_Location :
Beverly, MA
ISSN :
1095-1350
Print_ISBN :
978-1-4244-8911-4
Type :
conf
DOI :
10.1109/WCRE.2010.12
Filename :
5645481
Link To Document :
بازگشت