Code refactor renaming recommender
AssigneeInternational Business Machines Corporation
InventorsLiujia SHAO, Yan LUO, Yan XU
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsLiujia SHAO, Yan LUO, Yan XU
Estimating the term…
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.
A computer-implemented method for code refactor renaming, the method comprising:
A system for code refactor renaming, the system comprising:
A computer program product for code refactor renaming comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processors to perform a function, the function comprising:
Dependencies are inferred from the claim text.