Co-changing code volume prediction through association rule mining and linear regression model. (1st March 2016)
- Record Type:
- Journal Article
- Title:
- Co-changing code volume prediction through association rule mining and linear regression model. (1st March 2016)
- Main Title:
- Co-changing code volume prediction through association rule mining and linear regression model
- Authors:
- Lee, Shin-Jie
Lo, Li Hsiang
Chen, Yu-Cheng
Shen, Shi-Min - Abstract:
- Highlights: We propose an approach to predicting co-changing code volume. The success rate of co-changing methods identification is 82%. Co-changing code volume is predicted using a derived regression line. MAE of predictions is 95.3% less than the one of a naive approach. Abstract: Code smells are symptoms in the source code that indicate possible deeper problems and may serve as drivers for code refactoring. Although effort has been made on identifying divergent changes and shotgun surgeries, little emphasis has been put on predicting the volume of co-changing code that appears in the code smells. More specifically, when a software developer intends to perform a particular modification task on a method, a predicted volume of code that will potentially be co-changed with the method could be considered as significant information for estimating the modification effort. In this paper, we propose an approach to predicting volume of co-changing code affected by a method to be modified. The approach has the following key features: co-changing methods can be identified for detecting divergent changes and shotgun surgeries based on association rules mined from change histories; and volume of co-changing code affected by a method to be modified can be predicted through a derived fitted regression line with t -test based on the co-changing methods identification results. The experimental results show that the success rate of co-changing methods identification is 82% with a suggestedHighlights: We propose an approach to predicting co-changing code volume. The success rate of co-changing methods identification is 82%. Co-changing code volume is predicted using a derived regression line. MAE of predictions is 95.3% less than the one of a naive approach. Abstract: Code smells are symptoms in the source code that indicate possible deeper problems and may serve as drivers for code refactoring. Although effort has been made on identifying divergent changes and shotgun surgeries, little emphasis has been put on predicting the volume of co-changing code that appears in the code smells. More specifically, when a software developer intends to perform a particular modification task on a method, a predicted volume of code that will potentially be co-changed with the method could be considered as significant information for estimating the modification effort. In this paper, we propose an approach to predicting volume of co-changing code affected by a method to be modified. The approach has the following key features: co-changing methods can be identified for detecting divergent changes and shotgun surgeries based on association rules mined from change histories; and volume of co-changing code affected by a method to be modified can be predicted through a derived fitted regression line with t -test based on the co-changing methods identification results. The experimental results show that the success rate of co-changing methods identification is 82% with a suggested threshold, and the numbers of correct identifications would not be influenced by the increasing number of commits as a project continuously evolves. Additionally, the mean absolute error of co-changing code volume predictions is 133 lines of code which is 95.3% less than the one of a naive approach. … (more)
- Is Part Of:
- Expert systems with applications. Volume 45(2016)
- Journal:
- Expert systems with applications
- Issue:
- Volume 45(2016)
- Issue Display:
- Volume 45, Issue 2016 (2016)
- Year:
- 2016
- Volume:
- 45
- Issue:
- 2016
- Issue Sort Value:
- 2016-0045-2016-0000
- Page Start:
- 185
- Page End:
- 194
- Publication Date:
- 2016-03-01
- Subjects:
- Co-changing code volume prediction -- Co-changing methods identification
Expert systems (Computer science) -- Periodicals
Systèmes experts (Informatique) -- Périodiques
Electronic journals
006.33 - Journal URLs:
- http://www.sciencedirect.com/science/journal/09574174 ↗
http://www.elsevier.com/journals ↗ - DOI:
- 10.1016/j.eswa.2015.09.023 ↗
- Languages:
- English
- ISSNs:
- 0957-4174
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 3842.004220
British Library DSC - BLDSS-3PM
British Library HMNTS - ELD Digital store - Ingest File:
- 1139.xml