Tagging a program code portion
AssigneeHewlett Packard Enterprise Development LP
InventorsGuy Wiener, Omer Barkol
Life of this patent
Estimating the term…
Abstract
A data structure is based on examples that include respective program code portions associated with corresponding tags that indicate content of the respective program code portions. A tagger determines at least one tag to associate with a first program code portion based on the data structure. An updated version of the data structure is received, The tagger, which remains unmodified, determines at least one tag to associate with a second program code portion based on the updated version of the data structure.
Claims15
A method comprising:
- receiving, by a system including a processor, a data structure created based on examples that include respective program code portions associated with corresponding tags that indicate content of the respective program code portions;
- determining, by a tagger in the system, at least one tag to associate with a first program code portion based on the data structure;
- receiving, by the system, an updated version of the data structure;
- and
- determining, by the tagger that remains unmodified after receiving the updated version of the data structure, at least one tag to associate with a second program code portion based on the updated version of the data structure.
A system comprising:
- a storage medium to store an index that correlates examples including program code portions with corresponding tags that indicate content of respective program code portions, the index useable to identify tags for program code portions that are to be tagged;
- at least one processor;
- and
- a tagger executable on the at least one processor to:
- receive an updated version of the index that relates to a different collection of examples including program code portions with corresponding tags that indicate content of respective program code portions;
- compare, without modifying the tagger, content of a first program code portion with content of examples including program code portions in the updated version of the index;
- identify, for the first program code portion, at least one tag from the updated version of the index based on the comparing.
An article comprising at least non-transitory one machine-readable storage medium storing instructions that upon execution cause a computer system to:
- receive a first version of a data structure created based on examples that include respective program code portions associated with corresponding tags that indicate content of the respective program code portions;
- determine, by a tagger, at least one tag to associate with a first program code portion based on the data structure;
- receive an updated version of the data structure that contains a further example for a new programming language, anew programming technology, or a new tag not represented by the first version of the data structure;
- and
- determine, by the tagger that remains unmodified after receiving the updated version of the data structure, at least one tag to associate with a second program code portion based on the updated version of the data structure.
Dependencies are inferred from the claim text.