Virtual assistant with conversion and analysis capabilities
Abstract
Methods and systems for converting computer code are provided. The method may comprise (1) receiving, by one or more processors, a first set of computer code in a first coding language and comprising a plurality of components; (2) generating, by the one or more processors, an interrelationship graph of the plurality of components based upon the first set of computer code, wherein the interrelationship graph represents an interrelationship among the plurality of components; (3) generating, by the one or more processors and based upon the interrelationship graph, a plurality of configuration files associated with at least some of the plurality of components; and/or (4) applying, by the one or more processors, a plurality of templates associated with a second coding language to the plurality of configuration files to generate a second set of computer code in the second coding language.
Claims
exact text as granted — not AI-modifiedWhat is claimed:
1 . A computer-implemented method for converting computer code to a new coding language, comprising:
receiving, by one or more processors, a first set of computer code in a first coding language and comprising a plurality of components; generating, by the one or more processors, an interrelationship graph of the plurality of components based upon the first set of computer code, wherein the interrelationship graph represents an interrelationship among the plurality of components; generating, by the one or more processors and based upon the interrelationship graph, a plurality of configuration files associated with at least some of the plurality of components; and applying, by the one or more processors, a plurality of templates associated with a second coding language to the plurality of configuration files to generate a second set of computer code in the second coding language.
2 . The computer-implemented method of claim 1 , wherein generating the interrelationship graph includes:
parsing, by the one or more processors, the first set of computer code to obtain a plurality of nodes and a plurality of directed edges, wherein the plurality of nodes includes nodes associated with the plurality of components, and the plurality of directed edges represents an interrelationship among the plurality of nodes; and generating, by the one or more processors, the interrelationship graph including the plurality of nodes and the plurality of directed edges.
3 . The computer-implemented method of claim 2 , wherein generating the plurality of configuration files includes: generating, by the one or more processors, the plurality of configuration files based upon the plurality of nodes and the plurality of directed edges.
4 . The computer-implemented method of claim 1 , wherein the interrelationship among the plurality of components comprises at least one of:
(i) an input of a second component of the plurality of components including an output of a first component of the plurality of components, (ii) a second component calling a first component, or (iii) a second component including a first component.
5 . The computer-implemented method of claim 1 , wherein the plurality of components includes at least one of: (i) one or more functions, (ii) one or more classes, or (iii) one or more files.
6 . The computer-implemented method of claim 1 , wherein the plurality of templates is retrieved from a template database or received from a user.
7 . The computer-implemented method of claim 1 , further comprising:
adding, by the one or more processors, metadata to the interrelationship graph; and filtering, by the one or more processors, the plurality of nodes based upon the metadata.
8 . The computer-implemented method of claim 1 , wherein:
the plurality of the configuration files includes a plurality of parameters, and at least one parameter of the plurality of parameters is associated with a function, wherein the function generates a value associated with the at least one parameter when applying the plurality of templates to the plurality of configuration files.
9 . A computing system for converting computer code to a new coding language, comprising:
one or more processors; a memory storing executable instructions thereon that, when executed by the one or more processors, cause the one or more processors to:
receive a first set of computer code in a first coding language and comprising a plurality of components;
generate an interrelationship graph of the plurality of components based upon the first set of computer code, wherein the interrelationship graph represents an interrelationship among the plurality of components;
generate, based upon the interrelationship graph, a plurality of configuration files associated with at least some of the plurality of components; and
apply a plurality of templates associated with a second coding language to the plurality of configuration files to generate a second set of computer code in the second coding language.
10 . The computing system of claim 9 , wherein to generate the interrelationship graph, the executable instructions, when executed by the one or more processors, further cause the one or more processors to:
parse the first set of computer code to obtain a plurality of nodes and a plurality of directed edges, wherein the plurality of nodes includes nodes associated with the plurality of components, and the plurality of directed edges represents an interrelationship among the plurality of nodes; and generate the interrelationship graph including the plurality of nodes and the plurality of directed edges.
11 . The computing system of claim 10 , wherein to generate the plurality of configuration files, the executable instructions, when executed by the one or more processors, further cause the one or more processors to: generate the plurality of configuration files based upon the plurality of nodes and the plurality of directed edges.
12 . The computing system of claim 9 , wherein the interrelationship among the plurality of components comprises at least one of:
(i) an input of a second component of the plurality of components including an output of a first component of the plurality of components, (ii) a second component calling a first component, or (iii) a second component including a first component.
13 . The computing system of claim 9 , wherein the plurality of components includes at least one of: (i) one or more functions, (ii) one or more classes, or (iii) one or more files.
14 . The computing system of claim 9 , wherein the plurality of templates is retrieved from a template database or received from a user.
15 . The computing system of claim 9 , wherein the executable instructions, when executed by the one or more processors, further cause the one or more processors to:
add metadata to the interrelationship graph; and filter the plurality of nodes based upon the metadata.
16 . The computing system of claim 9 , wherein:
the plurality of the configuration files includes a plurality of parameters, and at least one parameter of the plurality of parameters is associated with a function, wherein the function generates a value associated with the at least one parameter when applying the plurality of templates to the plurality of configuration files.
17 . A computer readable storage medium comprising non-transitory computer readable instructions stored thereon for converting computer code to a new coding language, wherein the instructions, when executed by one or more processors, cause the one or more processors to:
receive a first set of computer code in a first coding language and comprising a plurality of components; generate an interrelationship graph of the plurality of components based upon the first set of computer code, wherein the interrelationship graph represents an interrelationship among the plurality of components; generate, based upon the interrelationship graph, a plurality of configuration files associated with at least some of the plurality of components; and apply a plurality of templates associated with a second coding language to the plurality of configuration files to generate a second set of computer code in the second coding language.
18 . The computer readable storage medium of claim 17 , wherein to generate the interrelationship graph, the instructions when executed by the one or more processors, cause the one or more processors to:
parse the first set of computer code to obtain a plurality of nodes and a plurality of directed edges, wherein the plurality of nodes includes nodes associated with the plurality of components, and the plurality of directed edges represents an interrelationship among the plurality of nodes; and generate the interrelationship graph including the plurality of nodes and the plurality of directed edges.
19 . The computer readable storage medium of claim 17 , wherein to generate the plurality of configuration files, the instructions when executed by the one or more processors, cause the one or more processors to: generate the plurality of configuration files based upon the plurality of nodes and the plurality of directed edges.
20 . The computing system of claim 17 , wherein the executable instructions, when executed by the one or more processors, further cause the one or more processors to:
add metadata to the interrelationship graph; and filter the plurality of nodes based upon the metadata.Join the waitlist — get patent alerts
Track US2024289103A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.