Code Processing Method and Apparatus, Device, and Medium
AssigneeHuawei Cloud Computing Technologies Co., Ltd.
InventorsYawei Wang, Petrochenko Pavel, Karpenko Dmitry
Life of this patent
Estimating the term…
Abstract
Code inputted by a user is received through a user interface. A feature of context of to-be-completed code is determined based on the code inputted by the user. Next, at least one candidate item of the to-be-completed code is determined from a context database based on the feature of context of the to-be-completed code. The context database stores sample code and a feature of context of the sample code. Then, the at least one candidate item is presented to the user through the user interface.
Claims20
A code processing method, comprising:
- receiving, through a user interface, first code from a user;
- determining a first feature of context of to-be-completed code based on the code;
- determining at least one candidate item of the to-be-completed code from a context database based on the first feature, wherein the context database stores sample code and a second feature of context of the sample code;
- and
- presenting the at least one candidate item to the user through the user interface.
A code processing apparatus, wherein the apparatus comprises:
- an interface configured to receive, through a user interface, first code from a user;
- a feature extractor configured to determine a first feature of context of to-be-completed code based on the first code;
- and
- one or more processors coupled to the interface and the feature extractor and configured to determine at least one candidate item of the to-be-completed code from a context database based on the first feature,
- wherein the context database stores sample code and a second feature of context of the sample code, and
- wherein the interface is further configured to present the at least one candidate item to the user through the user interface.
Dependencies are inferred from the claim text.