Empirical Study of Co-Renamed Identifiers

12/05/2022
by   Yuki Osumi, et al.
0

Background: The renaming of program identifiers is the most common refactoring operation. Because some identifiers are related to each other, developers may need to rename related identifiers together. Aims: To understand how developers rename multiple identifiers simultaneously, it is necessary to consider the relationships between identifiers in the program and the brief matching for non-identical but semantically similar identifiers. Method: We investigate the relationships between co-renamed identifiers and identify the types of their relationships that contribute to improving the recommendation using more than 1M of renaming instances collected from the histories of open-source software projects. We also evaluate and compare the impact of co-renaming and the relationships between identifiers when inflections occur in the words in identifiers are taken into account. Results: We revealed several relationships of identifiers that are frequently found in the co-renamed identifiers, such as the identifiers of methods in the same class or an identifier defining a variable and another used for initializing the variable, depending on the type of the renamed identifiers. Additionally, the consideration of inflections did not affect the tendency of the relationships. Conclusion: These results suggest an approach that prioritizes the identifiers to be recommended depending on their types and the type of the renamed identifier.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/11/2022

GitHub Sponsors: Exploring a New Way to Contribute to Open Source

GitHub Sponsors, launched in 2019, enables donations to individual open ...
research
08/30/2019

An Empirical Study of the Relationships between Code Readability and Software Complexity

Code readability and software complexity are important software quality ...
research
05/20/2020

Representation of Developer Expertise in Open Source Software

With tens of millions of projects and developers, the OSS ecosystem is b...
research
12/13/2018

Expressions of Sentiments During Code Reviews: Male vs. Female

Background: As most of the software development organizations are male-d...
research
08/19/2022

Fixing Dockerfile Smells: An Empirical Study

Background. Containerization technologies are widely adopted in the DevO...
research
06/22/2019

The Connection Between Burnout and Personality Types in Software Developers

This paper examines the connection between the Five Factor Model persona...
research
10/20/2022

Forest: Structural Code Editing with Multiple Cursors

Software developers frequently refactor code. Often, a single logical re...

Please sign up or login with your details

Forgot password? Click here to reset