Disclosure of Invention
The embodiment of the application provides a code editing auxiliary method and a code editing auxiliary tool, which at least solve the technical problem that the related code editing auxiliary tool can only provide a static code detection function and is difficult to meet the requirements of users.
According to one aspect of the embodiment of the application, a code editing auxiliary method is provided, which comprises the steps of obtaining a first code input by a target object in an interactive interface of an intelligent programming editor, retrieving and generating code editing auxiliary information associated with the first code from a preset retrieval database by utilizing a retrieval enhancement generation model, analyzing the code editing auxiliary information by utilizing a pre-trained agent decision model to generate an adjustment suggestion for the first code, and displaying the adjustment suggestion in the interactive interface.
Optionally, the intelligent programming editor is Monaco-editor, the interactive interface is a human-computer interactive interface customized by the target object, and the method comprises the steps of responding to an access request of the target object for accessing Monaco-editor, configuring a programming language environment corresponding to the access request, wherein Monaco-editor supports multi-language programming, and receiving the first code input by the target object in the interactive interface.
Optionally, after the first code input by the target object in the interactive interface of the intelligent programming editor is acquired, the method further comprises the steps of carrying out grammar structure analysis on the first code by utilizing the intelligent programming editor to obtain a code analysis result, wherein the code analysis result comprises at least one of code elements and grammar tree structures of the first code, if the code elements hit a preset metadata template and/or the grammar tree structures hit the preset grammar template, code editing prompt information corresponding to the metadata template and/or the grammar template is directly displayed in the interactive interface, and if the code elements miss the metadata template and the grammar tree structures miss the grammar template, the first code is continuously searched and analyzed by utilizing the search enhancement generation model.
Optionally, before the retrieval enhancement generation model is utilized to retrieve and generate the code editing auxiliary information related to the first code from a preset retrieval database, the method further comprises configuring the retrieval database and indexing data in the retrieval database, wherein the retrieval database comprises historical codes and historical programming documents, configuring model parameters of the retrieval enhancement generation model, the model parameters comprise a retrieval range, response time, accuracy and a callback function, and configuring a retrieval algorithm of the retrieval enhancement generation model to be a retrieval algorithm based on vector space similarity.
Optionally, the code editing auxiliary information related to the first code is searched and generated from a preset search database by using a search enhancement generation model, and the method comprises the steps of preprocessing the first code by using an intelligent programming editor to obtain a second code, wherein the preprocessing comprises at least one of code standardization, redundant code removal, error code correction and semantic enhancement, and the history code and history programming document related to the second code are searched from the search database by using the search enhancement generation model as the code editing auxiliary information.
Optionally, the agent decision model is obtained by training historical programming data of the target object, the pre-trained agent decision model is used for analyzing the code editing auxiliary information to generate an adjustment suggestion for the first code, the adjustment suggestion comprises the step of analyzing the code editing auxiliary information by the agent decision model to generate an adjustment suggestion matched with the programming style and habit of the target object, wherein the adjustment suggestion comprises an error modification suggestion for the first code and a structural optimization suggestion for the first code.
Optionally, after the adjustment suggestion is displayed in the interactive interface, the method further comprises the steps of obtaining feedback information aiming at the adjustment suggestion and input by the target object in the interactive interface, and training the agent decision model again according to the feedback information.
According to another aspect of the embodiment of the application, a code editing auxiliary tool is provided, which comprises an intelligent programming editor, a search enhancement generation model and an agent decision model, wherein the intelligent programming editor is used for providing an interactive interface, acquiring a first code input by a target object in the interactive interface, displaying an adjustment suggestion for the first code generated by the agent decision model, the search enhancement generation model is used for searching and generating code editing auxiliary information related to the first code from a preset search database, and the agent decision model is used for analyzing the code editing auxiliary information to generate the adjustment suggestion.
According to another aspect of the embodiments of the present application, there is also provided a computer program product comprising a computer program, wherein the computer program implements the above-mentioned code editing assistance method when executed by a processor.
According to another aspect of the embodiment of the present application, there is also provided an electronic device including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-described code editing assistance method by the computer program.
In the embodiment of the application, a first code input by a target object in an interactive interface of an intelligent programming editor is acquired, code editing auxiliary information related to the first code is searched and generated from a preset search database by utilizing a search enhancement generation model, the code editing auxiliary information is analyzed by utilizing a pre-trained agent decision model to generate an adjustment suggestion for the first code, and the adjustment suggestion is displayed in the interactive interface. By integrating the retrieval enhancement generation model, the agent decision model and the intelligent programming editor, the embodiment of the application can provide deep code logic understanding and real-time optimization suggestions according to the current code context, which is beneficial to improving the programming efficiency and effectively reducing potential errors in the code. The application solves the technical problems that the related code editing auxiliary tool only can provide a static code detection function and is difficult to meet the requirements of users.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims and drawings of the present application are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present application, there is provided a code editing assistance method, it being noted that the steps shown in the flowcharts of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
Fig. 1 is a flow chart of a code editing assisting method according to an embodiment of the present application, as shown in fig. 1, the method includes the following steps:
step S102, a first code input by a target object in an interactive interface of an intelligent programming editor is obtained;
Step S104, searching and generating code editing auxiliary information associated with the first code from a preset search database by using a search enhancement generation model;
step S106, analyzing the code editing auxiliary information by using a pre-trained agent decision model to generate an adjustment suggestion for the first code;
step S108, displaying the adjustment suggestion in the interactive interface.
The steps of the code editing assistance method will be described below with reference to specific embodiments.
In order to improve programming efficiency and provide deep code logic understanding and real-time optimization suggestions according to the current code context in the programming process, the application provides a code editing auxiliary tool according to a code editing auxiliary method, and the code editing auxiliary tool integrates a retrieval enhancement generation model, an agent decision model and an intelligent programming editor, thereby providing a series of higher-level code auxiliary functions.
At the time of selecting the base platform of the intelligent programming editor, monaco Editor may be selected. Monaco Editor is a powerful code editor developed by microsoft, which originates from the Visual Studio Code project. As a fully open source solution Monaco Editor can run in a web page environment and provide rich APIs to support a variety of functions such as grammar highlighting, code complementation, code navigation and code formatting, etc. It can support multiple programming languages, such as JavaScript, typeScript, python and c++, etc., and can load corresponding language services according to the language that needs to be supported.
The retrieval enhancement generation model integrates two technical means of retrieval and generation, and is specially used for understanding and generating natural language text design. It can search the external authoritative knowledge base before generating the content, thereby generating more accurate and comprehensive information. The search enhancement generation model can provide a wider source of information and higher accuracy than a conventional generation model that relies solely on training data within the model. In the application of the invention, the retrieval enhancement generation model is integrated into an intelligent programming editor, and can provide relevant and timely data support according to the real-time change of the programming environment.
Agents in the fields of computer science and artificial intelligence refer to automated entities that are capable of performing tasks and making decisions. In software engineering, an agent is usually based on a large language model, has the capabilities of planning, memorizing and using tools, and can independently complete tasks. In a specific implementation of the invention, the agent decision model is able to analyze problems that may exist in the current programming task based on information provided by the search enhancement generation model, and generate specific code optimization suggestions and error correction schemes accordingly.
The specific implementation flow of code editing by using the retrieval enhancement generation model, the agent decision model and the intelligent programming editor is as follows:
First, the target object accesses the Monaco-editor-based intelligent programming editor via the Web interface and sets the desired programming language environment, the intelligent programming editor is further provided with a man-machine interface customized for the specific target object, and when the target object initiates a request for accessing Monaco-editor, the system responds to the request and configures the corresponding programming language environment. The system then receives a first code entered by the target object in this custom interactive interface.
Optionally, after the first code input by the target object in the interactive interface of the intelligent programming editor is acquired, the intelligent programming editor may be utilized to perform syntax structure analysis on the first code, so as to obtain a code analysis result, thereby enabling identification of potential errors and optimization points. The code analysis result comprises at least one of a code element and a grammar tree structure of a first code, wherein if the code element hits a preset metadata template or the grammar tree structure hits the preset grammar template, code editing prompt information corresponding to the metadata template or the grammar template is directly displayed in an interactive interface, and if the code element does not hit the metadata template and the grammar tree structure does not hit the grammar template, the first code is continuously searched and analyzed by using a search enhancement generation model.
In view of the nature of the programming language and the type of common programming problems, a suitable search enhancement generation model framework needs to be selected, in order to be able to handle a large amount of text data and to optimize to identify key structures and patterns in the programming language, the search enhancement generation model may also be configured prior to retrieving and generating code editing assistance information associated with the first code from a pre-set search database using the search enhancement generation model, by configuring the search database and indexing the data in the search database for quick retrieval, wherein the search database comprises historical codes, historical programming documents to ensure that the data covers a plurality of programming languages and common programming scenarios, by configuring model parameters of the search enhancement generation model, wherein the model parameters comprise search range, response time, accuracy and callback functions to ensure quick and accurate provision of programming suggestions in a real-time environment, by configuring a search algorithm based on vector space similarity, e.g. using a search algorithm such as TF-ID (FTerm Frequency-Inverse Document Frequency, frequency-inverse document frequency) or BERT (Bidirectional Encoder Representations from Transformers, bi-directional transform encoder characterization) to assess similarity between queries and documents. As another alternative implementation, the algorithm can be optimized through a machine learning technology, and algorithm parameters can be adjusted in real time to adapt to different query types and requirements of target objects.
After the above configuration of the search enhancement generation model is completed, the model is utilized to search and generate code editing auxiliary information related to the first code from a preset search database, and the steps of firstly preprocessing the first code by using an intelligent programming editor to obtain a second code, wherein the preprocessing comprises at least one of code standardization, redundant code removal, error code correction and semantic enhancement so as to improve the relevance and accuracy of the search, and then the search enhancement generation model is utilized to search historical codes and historical programming documents related to the second code from the search database as code editing auxiliary information, which are used as a basis for providing code editing suggestions.
Optionally, before the analysis of the above-mentioned code editing assistance information with the agent decision model, the agent decision model needs to be trained, and when training, first, historical programming data of the target object needs to be collected, where the data may include previous code segments, comments, version control histories, code review feedback, and any other data related to programming habits and styles, and the collected data is cleaned and preprocessed for training the model, which may include removing unnecessary parts, standardized formats, extracting features, etc., redefining features that help the model understand programming style and habits, such as code structure, common design patterns, common class libraries, code annotation styles, etc., and after selecting the model architecture, the selected model architecture is trained using the historical programming data, the training is aimed at allowing the modeler to recognize the programming habits of the specific target object, and generating reasonable code adjustment suggestions based on those habits. During training, supervised learning methods (e.g., if the historical data contains explicit improvement suggestions) or reinforcement learning methods (encouraging the generation of more programming style-compliant suggestions via a rewards mechanism) may be used. After model training is complete, the performance of the model needs to be assessed using the unseen dataset, which can be done in a number of ways, such as using cross-validation techniques to ensure that the model can be generalized to new data, the assessment metrics may include accuracy, recall, F1 score, or other metrics suitable for the task. Once the model reaches a satisfactory level of performance, it can be deployed into an intelligent programming editor. The model can also continuously learn and self-improve through the interactive data of the target object in the using process so as to adapt to the latest habit of the user.
Optionally, after the agent decision model described above is obtained, the code editing assistance information is combined with the context of the current user code, analyzed by the model, and adjustment suggestions for the first code, i.e. adjustment suggestions matching the programming style and habit of the target object, are generated. These suggestions include, but are not limited to, error modification suggestions for the first code, structural optimization suggestions for the first code, and adjustment suggestions for the first code presented by the interactive interface of the intelligent programming editor.
After the adjustment suggestion is displayed in the interactive interface, an interactive feedback loop may be performed, specifically, feedback information about the adjustment suggestion, which is input by the target object in the interactive interface, is obtained, where the feedback may be acceptance, rejection, or further modification suggestion of the suggestion. The system collects feedback information of the user, records the feedback information as new training data, and retrains or fine-tunes the model by using the new collected data, so that the model can better adapt to the preference and specific requirements of the user, and the process is repeated to form a closed-loop learning mechanism. Through continuous feedback and training, the agent decision model can more accurately respond to the specific requirements of users, thereby improving the coding efficiency and the code quality.
In the embodiment of the application, a first code input by a target object in an interactive interface of an intelligent programming editor is acquired, code editing auxiliary information related to the first code is searched and generated from a preset search database by utilizing a search enhancement generation model, the code editing auxiliary information is analyzed by utilizing a pre-trained agent decision model to generate an adjustment suggestion for the first code, and the adjustment suggestion is displayed in the interactive interface. By integrating the retrieval enhancement generation model, the agent decision model and the intelligent programming editor, the embodiment of the application can provide deep code logic understanding and real-time optimization suggestions according to the current code context, which is beneficial to improving the programming efficiency and effectively reducing potential errors in the code. The application solves the technical problems that the related code editing auxiliary tool only can provide a static code detection function and is difficult to meet the requirements of users.
Example 2
There is also provided a code editing aid for implementing the code editing aid method of embodiment 1 according to an embodiment of the present application, as shown in fig. 2, the code editing aid at least including an intelligent programming editor 21, a retrieval enhancement generation model 22, and an agent decision model 23, wherein:
the intelligent programming editor 21 is used for providing an interactive interface, acquiring a first code input by a target object in the interactive interface, and displaying an adjustment suggestion for the first code generated by an agent decision model;
A search enhancement generation model 22 for searching from a preset search database and generating code editing auxiliary information associated with the first code;
And the agent decision model 23 is used for analyzing the code editing auxiliary information and generating adjustment suggestions.
The functions of each module of the code editing aid will be described below in connection with specific implementation procedures.
First, the target object accesses the Monaco-editor-based intelligent programming editor via the Web interface and sets the desired programming language environment, the intelligent programming editor is further provided with a man-machine interface customized for the specific target object, and when the target object initiates a request for accessing Monaco-editor, the system responds to the request and configures the corresponding programming language environment. The system then receives a first code entered by the target object in this custom interactive interface.
Optionally, after the intelligent programming editor obtains the first code input by the target object in the interactive interface of the intelligent programming editor, the intelligent programming editor may be utilized to perform syntax structure analysis on the first code to obtain a code analysis result, so as to identify potential errors and optimization points. The code analysis result comprises at least one of a code element and a grammar tree structure of a first code, wherein if the code element hits a preset metadata template or the grammar tree structure hits the preset grammar template, code editing prompt information corresponding to the metadata template or the grammar template is directly displayed in an interactive interface, and if the code element does not hit the metadata template and the grammar tree structure does not hit the grammar template, the first code is continuously searched and analyzed by using a search enhancement generation model.
In view of the nature of the programming language and the type of common programming problems, a suitable search enhancement generation model framework needs to be selected, in order to be able to handle a large amount of text data and to optimize to identify key structures and patterns in the programming language, the search enhancement generation model may also be configured prior to retrieving and generating code editing assistance information associated with the first code from a pre-set search database using the search enhancement generation model, by configuring the search database and indexing the data in the search database for quick retrieval, wherein the search database comprises historical codes, historical programming documents to ensure that the data covers a plurality of programming languages and common programming scenarios, by configuring model parameters of the search enhancement generation model, wherein the model parameters comprise search range, response time, accuracy and callback functions to ensure quick and accurate provision of programming suggestions in a real-time environment, by configuring a search algorithm based on vector space similarity, e.g. using a search algorithm such as TF-ID or BERT embedding to evaluate similarity between queries and documents. As another alternative implementation, the algorithm can be optimized through a machine learning technology, and algorithm parameters can be adjusted in real time to adapt to different query types and requirements of target objects.
After the above configuration of the search enhancement generation model is completed, the model is utilized to search and generate code editing auxiliary information related to the first code from a preset search database, and the steps of firstly preprocessing the first code by using an intelligent programming editor to obtain a second code, wherein the preprocessing comprises at least one of code standardization, redundant code removal, error code correction and semantic enhancement so as to improve the relevance and accuracy of the search, and then the search enhancement generation model is utilized to search historical codes and historical programming documents related to the second code from the search database as code editing auxiliary information, which are used as a basis for providing code editing suggestions.
Optionally, before the analysis of the above-mentioned code editing assistance information with the agent decision model, the agent decision model needs to be trained, and when training, first, historical programming data of the target object needs to be collected, where the data may include previous code segments, comments, version control histories, code review feedback, and any other data related to programming habits and styles, and the collected data is cleaned and preprocessed for training the model, which may include removing unnecessary parts, standardized formats, extracting features, etc., redefining features that help the model understand programming style and habits, such as code structure, common design patterns, common class libraries, code annotation styles, etc., and after selecting the model architecture, the selected model architecture is trained using the historical programming data, the training is aimed at allowing the modeler to recognize the programming habits of the specific target object, and generating reasonable code adjustment suggestions based on those habits. During training, supervised learning methods (e.g., if the historical data contains explicit improvement suggestions) or reinforcement learning methods (encouraging the generation of more programming style-compliant suggestions via a rewards mechanism) may be used. After model training is complete, the performance of the model needs to be assessed using the unseen dataset, which can be done in a number of ways, such as using cross-validation techniques to ensure that the model can be generalized to new data, the assessment metrics may include accuracy, recall, F1 score, or other metrics suitable for the task. Once the model reaches a satisfactory level of performance, it can be deployed into an intelligent programming editor. The model can also continuously learn and self-improve through the interactive data of the target object in the using process so as to adapt to the latest habit of the user.
Optionally, after the agent decision model described above is obtained, the code editing assistance information is combined with the context of the current user code, analyzed by the model, and adjustment suggestions for the first code, i.e. adjustment suggestions matching the programming style and habit of the target object, are generated. These suggestions include, but are not limited to, error modification suggestions for the first code, structural optimization suggestions for the first code, and adjustment suggestions for the first code presented by the interactive interface of the intelligent programming editor.
After the adjustment suggestion is displayed in the interactive interface of the intelligent programming editor, an interactive feedback loop may also be performed, specifically, feedback information for the adjustment suggestion, which is input by the target object in the interactive interface, may be obtained, where the feedback may be an acceptance, rejection, or further modification suggestion of the suggestion. The system collects feedback information of the user, records the feedback information as new training data, and retrains or fine-tunes the model by using the new collected data, so that the model can better adapt to the preference and specific requirements of the user, and the process is repeated to form a closed-loop learning mechanism. Through continuous feedback and training, the agent decision model can more accurately respond to the specific requirements of users, thereby improving the coding efficiency and the code quality.
It should be noted that, each module in the code editing auxiliary tool in the embodiment of the present application corresponds to each implementation step of the code editing auxiliary method in embodiment 1 one by one, and since the detailed description has been already made in embodiment 1, some details not shown in the embodiment may refer to embodiment 1, and will not be repeated here.
Example 3
According to an embodiment of the present application, there is also provided a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the code editing assistance method in embodiment 1.
According to an embodiment of the present application, there is also provided a nonvolatile storage medium including a stored computer program, wherein a device in which the nonvolatile storage medium is located executes the code editing assistance method in embodiment 1 by running the computer program.
According to an embodiment of the present application, there is also provided a processor for running a computer program, wherein the computer program when run performs the code editing assistance method in embodiment 1.
There is also provided, according to an embodiment of the present application, an electronic device including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the code editing assistance method in embodiment 1 by the computer program.
The method comprises the steps of obtaining a first code input by a target object in an interactive interface of an intelligent programming editor, searching and generating code editing auxiliary information associated with the first code from a preset search database by utilizing a search enhancement generation model, analyzing the code editing auxiliary information by utilizing a pre-trained agent decision model to generate an adjustment suggestion for the first code, and displaying the adjustment suggestion in the interactive interface.
As an alternative embodiment, the electronic device may be in the form of a mobile terminal, a computer terminal or similar computing device. Fig. 3 shows a block diagram of a hardware structure of an electronic device for implementing the code editing assistance method. As shown in fig. 3, the electronic device 30 may include one or more processors 302 (shown in the figures as 302a, 302b, 302 n), a memory 304 for storing data, and a transmission means 306 for communication functions (the processor 302 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA or the like). Among other things, a display, an input/output interface (I/O interface), a Universal Serial BUS (USB) port (which may be included as one of the ports of the BUS BUS), a network interface, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 3 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, electronic device 30 may also include more or fewer components than shown in FIG. 3, or have a different configuration than shown in FIG. 3.
It should be noted that the one or more processors 302 and/or other data processing circuits described above may be referred to generally herein as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Furthermore, the data processing circuitry may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in electronic device 30. As referred to in embodiments of the application, the data processing circuit acts as a processor control (e.g., selection of the path of the variable resistor termination connected to the interface).
The memory 304 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the code editing assistance method in the embodiment of the present application, and the processor 302 executes the software programs and modules stored in the memory 304, thereby executing various functional applications and data processing, that is, implementing the vulnerability detection method of the application program. Memory 304 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 304 may further include memory remotely located relative to processor 302, which may be connected to electronic device 30 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 306 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of electronic device 30. In one example, the transmission means 306 comprises a network adapter (Network Interface Controller, NIC) that can be connected to other network devices via a base station to communicate with the internet. In one example, the transmission device 306 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the electronic device 30.
The foregoing embodiment numbers are merely for the purpose of description and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of units may be a logic function division, and there may be another division manner in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method of the various embodiments of the present application. The storage medium includes a U disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, etc. which can store the program code.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.