The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.

The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.

Date of Patent:
Mar. 14, 2023

Filed:

Dec. 11, 2020
Applicant:

International Business Machines Corporation, Armonk, NY (US);

Inventors:

Liujia Shao, Markham, CA;

Yan Luo, Concord, CA;

Yan Xu, Richmond Hill, CA;

Attorney:
Primary Examiner:
Int. Cl.
CPC ...
G06F 8/72 (2018.01); G06N 5/04 (2006.01); G06N 20/00 (2019.01); G06F 8/71 (2018.01);
U.S. Cl.
CPC ...
G06F 8/72 (2013.01); G06N 5/04 (2013.01); G06N 20/00 (2019.01); G06F 8/71 (2013.01);
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.


Find Patent Forward Citations

Loading…