International Business Machines Corporation
CODE REFACTOR RENAMING RECOMMENDER

Last updated:

Abstract:

An approach to code refactor renaming may be provided. Source code with a naming convention for functions and classes can be presented to a machine learning model. The model may identify the names for functions and classes. The identified names may be tokenized. Docstrings associated with functions and classes may be identified. Code for the identified functions and classes and associated may be input into a feature vector generation mechanism. A model may be trained mapping the generated feature vectors to tokenized identified names, via regression. The model can be utilized to analyze input code with the same naming convention to predict names for functions and classes, allowing for the recommendation of function and class names in accordance with the programming code naming convention.

Status:
Application
Type:

Utility

Filling date:

11 Dec 2020

Issue date:

16 Jun 2022