Information processing method, device, equipment and storage medium
By collecting the shortcut keys and function information input by the user, the cloud IDE shortcut keys are automatically configured, which solves the problems of low configuration efficiency and poor user experience in the existing technology, realizes efficient and personalized shortcut key configuration, and improves development efficiency. and user experience.
Patent Information
- Application Number
- CN202111342232.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-11-12
AI Technical Summary
Existing cloud IDEs have problems with low efficiency and poor user experience in shortcut key configuration. Manual configuration is complex and time-consuming, and the default configured shortcut keys may not match user habits, resulting in reduced development efficiency.
By collecting the shortcut keys and corresponding function information input by the user, the association between the shortcut keys and the functions is automatically established and bound to the user identification to achieve automatic configuration and differentiated configuration to meet the user's habitual needs.
It improves the efficiency of shortcut key configuration, reduces manual participation time, provides shortcut key configuration that conforms to user habits, and improves user experience and development efficiency.
Smart Images

Figure CN114116096B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and is related to but not limited to information processing methods, devices, equipment and storage media. Background Art
[0002] With the rapid development of computer technology, more and more technologies are applied in the financial field. The traditional financial industry is gradually transforming to Fintech. However, due to the security and real-time requirements of the financial industry, higher requirements are also placed on technology. With the continuous development of computer technology, development teams use integrated development environment (IDE) software to build new software, web pages, services and applications. Only one IDE tool can provide developers with all the functions they need.
[0003] Cloud IDE enables developers in different locations to collaborate in real time when writing code, simplifying the process of testing and deploying code. Cloud IDE's shortcut key configuration includes two options: one is that users manually configure on the cloud IDE device according to their own usage habits; the other is that users directly use the default shortcut keys configured on the cloud IDE device. For the first option, the manual configuration process is more complicated and time-consuming; for the other option, the default configured shortcut keys may not match the user's actual usage habits. Summary of the invention
[0004] The present application provides an information processing method, apparatus, device, and storage medium. The solution can automatically configure shortcut keys based on a collected first information set, thereby improving the efficiency of shortcut key configuration; it can also realize automatic configuration of shortcut keys based on the user dimension, thereby improving the user experience.
[0005] The technical solution of this application is implemented as follows:
[0006] The present application provides an information processing method, the method comprising:
[0007] Obtaining a user identifier of a first user, where the user identifier is used to point to the first user;
[0008] Obtaining a first information set; the first information set includes at least one first information subset; the first information subset includes at least one input shortcut key input by the first user collected within a collection period and at least one function corresponding to each of the at least one input shortcut key;
[0009] Based on the first information set, determining a first function corresponding to a first input shortcut key; at least one input shortcut key included in the first information set includes the first input shortcut key, and at least one function included in the first information set includes the first function;
[0010] An association relationship between the first input shortcut key and the first function is established, and the association relationship is bound to the first user; so that when the first user triggers the first input shortcut key, an operation corresponding to the first function is executed.
[0011] The present application provides an information processing device, the device comprising:
[0012] A first obtaining unit, configured to obtain a user identifier of a first user, wherein the user identifier is used to point to the first user;
[0013] A second obtaining unit is used to obtain a first information set; the first information set includes at least one first information subset; the first information subset includes at least one input shortcut key input by the first user collected within a collection period and at least one function corresponding to each of the at least one input shortcut key;
[0014] a determining unit, configured to determine, based on the first information set, a first function corresponding to a first input shortcut key; the at least one input shortcut key included in the first information set includes the first input shortcut key, and the at least one function included in the first information set includes the first function;
[0015] A configuration unit is used to establish an association relationship between the first input shortcut key and the first function, and bind the association relationship to the first user; so that when the first user triggers the first input shortcut key, the operation corresponding to the first function is executed.
[0016] The present application also provides an electronic device, comprising: a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the above-mentioned information processing method when executing the program.
[0017] The present application also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned information processing method is implemented.
[0018] The information processing method, apparatus, device and storage medium provided by the present application include: obtaining a user identifier of a first user, the user identifier is used to point to the first user; obtaining a first information set; the first information set includes at least one first information subset; the first information subset includes at least one input shortcut key input by the first user collected within a collection period and at least one function corresponding to each of the at least one input shortcut key; based on the first information set, determining the first function corresponding to the first input shortcut key; the at least one input shortcut key included in the first information set includes the first input shortcut key, and the at least one function included in the first information set includes the first function; establishing an association relationship between the first input shortcut key and the first function, and binding the association relationship to the first user; so that when the first user triggers the first input shortcut key, the operation corresponding to the first function is executed. The information processing method provided by the present application can determine the first function corresponding to the first input shortcut key based on the collected first information set, establish an association relationship between the first function and the first input shortcut key, and bind the association relationship to the first user identifier. In this way, first, the entire process of configuring shortcut keys is automatically completed by the device without human intervention, which reduces human and time resources and improves the efficiency of shortcut key configuration; second, the configured shortcut keys are configured based on the first information set, and the first information set is collected based on the user's usage habits, so the configured shortcut keys can meet the user's usage habits; third, the association between the first input shortcut key and the first function is bound to the first user identifier, so that when the first user inputs the first input shortcut key, the first function is responded to; for other users inputting the first shortcut key, there is no response; that is, the same input shortcut key may correspond to different functions for different users to adapt to the habits of different users and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 An optional structural diagram of an information processing system provided in an embodiment of the present application;
[0020] Figure 2 An optional structural diagram of an information processing system provided in an embodiment of the present application;
[0021] Figure 3 An optional flowchart of the information processing method provided in the embodiment of the present application
[0022] Figure 4 An optional flowchart of the information processing method provided in the embodiment of the present application;
[0023] Figure 5An optional flowchart of the information processing method provided in the embodiment of the present application;
[0024] Figure 6 An optional flowchart of the information processing method provided in the embodiment of the present application;
[0025] Figure 7 An optional flowchart of the information processing method provided in the embodiment of the present application;
[0026] Figure 8 An optional flowchart of the information processing method provided in the embodiment of the present application;
[0027] Fig. 9 An optional flowchart of the information processing method provided in the embodiment of the present application;
[0028] Fig.10 An optional flowchart of the information processing method provided in the embodiment of the present application;
[0029] Fig.11 An optional flowchart of the information processing method provided in the embodiment of the present application;
[0030] Fig.12 An optional flowchart of the information processing method provided in the embodiment of the present application;
[0031] Fig.13 An optional flowchart of the information processing method provided in the embodiment of the present application;
[0032] Fig.14 An optional flowchart of the information processing method provided in the embodiment of the present application;
[0033] Fig.15 An optional flowchart of the information processing method provided in the embodiment of the present application;
[0034] Fig.16 An optional flowchart of the information processing method provided in the embodiment of the present application;
[0035] Fig.17 An optional structural diagram of an information processing device provided in an embodiment of the present application;
[0036] Fig.18 An optional structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0038] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0039] In the following description, the terms "first\second\third" are used only as examples to distinguish different objects, and do not represent a specific order for the objects, nor do they have a limitation on the order of precedence. It is understandable that "first\second\third" can be interchanged with a specific order or order of precedence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0041] The embodiments of the present application may provide information processing methods and devices, equipment and storage media. In practical applications, the information processing method may be implemented by an information processing device, and each functional entity in the information processing device may be collaboratively implemented by hardware resources of the electronic device, such as computing resources such as a processor, and communication resources (such as for supporting various communication methods such as optical cables and cellular).
[0042] The information processing method provided in the embodiment of the present application is applied to an information processing system, and the information processing system includes an electronic device. The electronic device obtains a user identifier of a first user, and the user identifier is used to point to the first user; obtains a first information set; the first information set includes at least one first information subset; the first information subset includes at least one input shortcut key input by the first user collected within a collection cycle and at least one function corresponding to each of the at least one input shortcut key; based on the first information set, determines the first function corresponding to the first input shortcut key; the at least one input shortcut key included in the first information set includes the first input shortcut key, and the at least one function included in the first information set includes the first function; establishes an association relationship between the first input shortcut key and the first function, and binds the association relationship to the first user; so that when the first user is monitored to trigger the first input shortcut key, the operation corresponding to the first function is performed.
[0043] As an example, the structure of the information processing system 10 may be as follows: Figure 1 As shown, it includes: electronic device 101, and electronic device 101 supports a first service 1011.
[0044] The electronic device 101 executes the following by supporting the first service 1011: obtaining a user identifier of a first user, wherein the user identifier is used to point to the first user; obtaining a first information set; the first information set includes at least one first information subset; the first information subset includes at least one input shortcut key input by the first user collected within a collection period and at least one function corresponding to each of the at least one input shortcut key; determining a first function corresponding to the first input shortcut key based on the first information set; at least one input shortcut key included in the first information set includes the first input shortcut key, and at least one function included in the first information set includes the first function; establishing an association relationship between the first input shortcut key and the first function, and binding the association relationship to the first user; so that when the first user is monitored to trigger the first input shortcut key, the operation corresponding to the first function is executed.
[0045] The first service 1011 may be any service, and an exemplary first service 1011 may be an IDE service or a browser service.
[0046] As another example, the structure of the information processing system 10 may be as follows: Figure 2 As shown, it includes: an electronic device 101, and the electronic device 101 supports a first service 1011 and a second service 1012.
[0047] With the cooperation of the first service 1011 and the second service, the electronic device obtains a user identifier of a first user, wherein the user identifier is used to point to the first user; obtains a first information set; the first information set includes at least one first information subset; the first information subset includes at least one input shortcut key input by the first user collected within a collection period and at least one function corresponding to each of the at least one input shortcut key; based on the first information set, determines a first function corresponding to the first input shortcut key; at least one input shortcut key included in the first information set includes the first input shortcut key, and at least one function included in the first information set includes the first function; establishes an association relationship between the first input shortcut key and the first function, and binds the association relationship to the first user; so that when it is monitored that the first user triggers the first input shortcut key, the operation corresponding to the first function is executed.
[0048] The first service 1011 is different from the second service 1012. In one example, the first service 1011 is an IDE service, and the second service 1012 is a browser service.
[0049] The electronic device 101 may include a mobile terminal device (eg, a mobile phone, a tablet computer, etc.) or a non-mobile terminal device (eg, a desktop computer, a server, etc.).
[0050] Next, combine Figure 1 or Figure 2 The schematic diagram of the information processing system shown illustrates various embodiments of the information processing method and apparatus, device and storage medium provided in the embodiments of the present application.
[0051] In a first aspect, an embodiment of the present application provides an information processing method, which is applied to an information processing device; wherein the information processing device can be deployed in Figure 1 or Figure 2 The electronic device 101 in the embodiment of the present application is described below.
[0052] Figure 3 A schematic diagram of an optional information processing method is shown. The information processing method provided in the embodiment of the present application may include but is not limited to Figure 3 S301 to S304 shown.
[0053] S301: The electronic device obtains a user identification of a first user.
[0054] The user identifier is used to point to the first user. The embodiment of the present application does not specifically limit the specific form of the user identifier, and can be configured according to actual needs. For example, the user identifier can be a digital number. For another example, the user identifier can also be specific information representing the first user.
[0055] The embodiment of the present application does not limit the implementation method of obtaining the user identification of the first user, and can be configured according to actual needs. For example, a user identification can be generated according to the relevant information of the user device, or different identifications can be configured for different user devices in advance and notified to the user devices, and then the electronic device receives the user identification of the first user sent by the user device.
[0056] S302: The electronic device obtains a first information set.
[0057] The first information set includes at least one first information subset; the first information subset includes at least one input shortcut key of the first user input collected within a collection period and at least one function corresponding to each input shortcut key in the at least one input shortcut key.
[0058] The embodiment of the present application does not limit the number of first information subsets included in the first information set, and can be configured according to actual needs. The more first information subsets included in the first information set, the higher the accuracy of the configured shortcut key.
[0059] A shortcut key can refer to a key or a combination of multiple keys. For example, the T key can be used as a shortcut key, or the combination of the Ctrl key and the S key can be used as a shortcut key. An input shortcut key refers to a shortcut key input by a user.
[0060] Functions can represent operations performed by the electronic device. For example, a function can correspond to an operation of opening file 1, or a function can correspond to an operation of saving file 1.
[0061] Example 1: The electronic device obtains a first information set including five first information subsets, namely first information subset 1, first information subset 2, first information subset 3, first information subset 4 and first information subset 5; the first information set is; first information subset 1 includes: K1, A1, A2, A4, A6, A3, K3, A1, A2, A4, K2, A3; first information subset 2 includes: K2, A3, A2, A4, K3, A4, K6, A1, A2 , A4, K1, A2, A3, A1, K5, A4, K4, A3; the first information subset 3 includes in sequence: K3, A1, A2, A4, A6, K1, A2, A5, A4, A6; the first information subset 4 includes in sequence: K1, A1, A2, A5, A6, A3, K3, A1, A2, A4, K2, A3, A6; the first information subset 5 includes in sequence: K4, A3, A2, A4, A6, A3, K1, A3, A7, A4, K2, A3. K plus different numbers represent different shortcut keys; A plus numbers represent different functions.
[0062] S303: The electronic device determines a first function corresponding to a first input shortcut key based on the first information set.
[0063] The at least one input shortcut key included in the first information set includes a first input shortcut key, and the at least one function included in the first information set includes a first function.
[0064] The electronic device calculates a correlation degree between the first input shortcut key and at least one function included in the first information set, and determines a first function corresponding to the first input shortcut key based on the correlation degree of the function.
[0065] The embodiment of the present application does not limit the specific method and conditions for determining the first function, and can be configured according to actual needs.
[0066] Exemplarily, the first information set includes three functions, function 1, function 2 and function 3. The electronic device determines that the first input shortcut key is most associated with function 1 and determines function 1 as the first function.
[0067] S304: The electronic device establishes an association relationship between the first input shortcut key and the first function, and binds the association relationship to the first user, so that when the first user triggers the first input shortcut key, the electronic device executes an operation corresponding to the first function.
[0068] The embodiment of the present application does not specifically limit the manner of establishing the association relationship between the first input shortcut key and the first function, and can be configured according to actual needs. For example, the association relationship between the identifier of the first input shortcut key and the identifier of the first function can be established in the form of a table.
[0069] The information processing scheme provided by the embodiment of the present application includes: obtaining a user identifier of a first user, the user identifier is used to point to the first user; obtaining a first information set; the first information set includes at least one first information subset; the first information subset includes at least one input shortcut key input by the first user collected within a collection period and at least one function corresponding to each of the at least one input shortcut key; based on the first information set, determining the first function corresponding to the first input shortcut key; the at least one input shortcut key included in the first information set includes the first input shortcut key, and the at least one function included in the first information set includes the first function; establishing an association relationship between the first input shortcut key and the first function, and binding the association relationship to the first user; so that when the first user triggers the first input shortcut key, the operation corresponding to the first function is executed. The information processing method provided by the present application can determine the first function corresponding to the first input shortcut key based on the collected first information set, establish an association relationship between the first function and the first input shortcut key, and bind the association relationship to the first user identifier. In this way, first, the entire process of configuring shortcut keys is automatically completed by the device without human intervention, which reduces human and time resources and improves the efficiency of shortcut key configuration; second, the configured shortcut keys are configured based on the first information set, and the first information set is collected based on the user's usage habits, so the configured shortcut keys can meet the user's usage habits; third, the association between the first input shortcut key and the first function is bound to the first user identifier, so that when the first user inputs the first input shortcut key, the first function is responded to; for other users inputting the first shortcut key, there is no response; that is, the same input shortcut key may correspond to different functions for different users to adapt to the habits of different users and improve the user experience.
[0070] The information processing method provided in the embodiment of the present application further includes a collection process of the first information set. The collection process may include but is not limited to the following implementation mode 1 or implementation mode 2.
[0071] Implementation method 1: collecting first information for an application scenario of a service;
[0072] Implementation method 2: collecting first information for application scenarios of two services.
[0073] Implementation method 1 may be implemented as follows: when the electronic device monitors an input shortcut key, the electronic device collects and records the input shortcut keys and functions input by the first user within a collection period in chronological order through the service, and calls the collected input shortcut keys and functions input by the first user within the collection period a first information subset, and uses at least one function between the collected first input shortcut key and the second input shortcut key as at least one function corresponding to the first shortcut key.
[0074] It can be understood that each time an input shortcut key is monitored, the same processing method as the input shortcut key can be used to obtain a set of first information subsets; in this way, after multiple collections, multiple first information subsets can be obtained.
[0075] When the first service is a browser service and the second service is an integrated development environment IDE service, implementation mode 2 may be implemented as follows: when a second input shortcut key input by the first user is monitored, the following processing is performed for the second input shortcut key: if the second input shortcut key does not belong to the shortcut keys supported by the first service, a first information subset corresponding to the first collection period is collected by the second service in the first collection period; if the second input shortcut key belongs to the shortcut keys supported by the first service, the second input shortcut key is collected by the first service, and information is collected in the first collection period by the second service; wherein the second input shortcut key collected by the first service and the information collected by the second service constitute a first information subset corresponding to the first collection period.
[0076] The second input shortcut key is any input shortcut key.
[0077] It can be understood that each time an input shortcut key is monitored, the same processing method as the second input shortcut key can be used to obtain a set of first information subsets; in this way, after multiple collections, multiple first information subsets can be obtained.
[0078] It should be noted that: when the second input shortcut key is the same as the default shortcut key of the first service, the second service cannot collect the second input shortcut key because the shortcut key priority of the first service is higher than the shortcut key priority of the second service. Therefore, the first service collects the second input shortcut key, and after the first service collects the second input shortcut key, it notifies the second service to collect the user's information within the first collection cycle.
[0079] Next, a process of S303 in which the electronic device determines the first function corresponding to the first input shortcut key based on the first information set is described.
[0080] S303 may include but is not limited to Figure 4 S3031 to S3034 shown.
[0081] S3031. The electronic device determines a function set corresponding to the first input shortcut key based on the first information set.
[0082] The function set includes at least one function subset, and a function subset includes a function corresponding to a first input shortcut key in a first information subset.
[0083] The electronic device identifies at least one function corresponding to each input shortcut key for each first information subset in the first information set, and then determines a function set corresponding to the first input shortcut key.
[0084] Based on Example 1, Example 2 may include: when the first input shortcut key is K1, the function set corresponding to the first input shortcut key may include 5 function subsets, namely function subset 1, function subset 2, function subset 3, function subset 3 and function subset 5; function subset 1 includes A1, A2, A4, A6, A3 in sequence, function subset 2 includes A2, A3, A1 in sequence, function subset 3 includes A2, A5, A4, A6 in sequence, function subset 4 includes A1, A2, A5, A6, A3 in sequence, and function subset 5 includes A3, A7, A4 in sequence.
[0085] S3032: The electronic device determines a linked list corresponding to each function in the function set based on a function subset included in the function set.
[0086] The linked list represents the position of the function in the function set.
[0087] Taking the linked list of the second function as an example, the electronic device determines the appearance position of the second function in each function subset based on the function subsets included in the function set, and uses the appearance position as the linked list corresponding to the second function.
[0088] The appearance position of the second function in each function subset can be represented by a step length.
[0089] Based on Example 2, Example 3 may include: the linked list corresponding to function A2 can be expressed as a first step length, a second step length, a third step length and a fourth step length, the first step length represents the position of function A2 in function subset 1, the second step length represents the position of function A2 in function subset 2, the third step length represents the position of function A2 in function subset 3, and the fourth step length represents the position of function A2 in function subset 4; and the value of the first step length can be 2, the values of the second and third step lengths can be 3, and the value of the fourth step length can be 2.
[0090] S3033: The electronic device calculates, for each of the functions, a degree of association corresponding to the function.
[0091] The association degree corresponding to the function indicates the association degree between the function and the first input shortcut key.
[0092] The embodiment of the present application does not limit the specific method of calculating the correlation degree corresponding to the function, and can be configured according to actual needs.
[0093] S3034: When the difference between the relevance degree of the second function and the relevance degree of the third function is greater than a relevance degree difference threshold, the electronic device determines that the second function is the first function.
[0094] The association degree of the second function is greater than the association degree of the functions included in the function set except the second function; the association degree of the third function is less than the association degree of the second function, and greater than the association degree of the functions included in the function set except the second function and the third function.
[0095] The electronic device traverses the associations of all functions included in the function set. If the difference between the association of the second function (corresponding to the function with the highest association) and the association of the third function (corresponding to the function with the second highest association) is greater than the association threshold, the second function is determined to be the first function.
[0096] The embodiment of the present application does not limit the specific value of the correlation threshold, and can be configured according to actual needs. For example, the correlation threshold can be 0.3.
[0097] It should be noted that if there is no second function that meets the conditions, it means that the number of first information subsets included in the first information set is not large enough, and further first information subsets need to be collected to determine a second function that meets the conditions as the first function.
[0098] It can be understood that the electronic device may also determine the function with the greatest corresponding correlation among the functions included in the function set as the first function.
[0099] Optionally, between executing S3031 and S3032, the information processing method provided in the embodiment of the present application may also include but is not limited to S3031A and S3031B shown below.
[0100] S3031A: The electronic device counts the frequency of each function included in the function set.
[0101] The frequency of a feature is the ratio of the number of features in a feature set to the number of feature subsets.
[0102] Based on 2, Example 4 may include: the number of function A2 in the function set is 4, and the number of function subsets is 5, so the frequency of function A2 is 0.8. Using the same method, it can be calculated that the frequency of function A3 is 0.8, the frequency of function A3 is 0.8, the frequency of function A1 is 0.6, the frequency of function A4 is 0.6, the frequency of function A6 is 0.6, the frequency of function A5 is 0.4, and the frequency of function A7 is 0.2.
[0103] S3031B: The electronic device deletes the fourth function in the function subset included in the function set.
[0104] The frequency of the fourth function is less than the frequency threshold.
[0105] The embodiment of the present application does not specifically limit the frequency threshold, and can be configured according to actual needs. In one example, the frequency threshold is 0.5.
[0106] Based on Example 2, Example 5 may include: when the frequency threshold is 0.5, the fourth function includes function A5 and function A7, and the deleted function set includes 5 function subsets, namely function subset 1, function subset 2, function subset 3, function subset 3 and function subset 5; function subset 1 includes A1, A2, A4, A6, A3 in sequence, function subset 2 includes A2, A3, A1 in sequence, function subset 3 includes A2, A4, A6 in sequence, function subset 4 includes A1, A2, A6, A3 in sequence, and function subset 5 includes A3 and A4 in sequence.
[0107] In this way, after deleting the functions with a frequency less than the threshold, the data volume of the function set is reduced, the data volume of subsequent processing is reduced, and the complexity and time of processing are reduced; at the same time, the accuracy of the first function can be improved.
[0108] Next, the electronic device calculates the correlation degree corresponding to each function in S3033. The process of calculating the correlation degree corresponding to each function is similar, and the process is explained by taking one function as an example, which may include but not limited to the following S30331 to S30333.
[0109] S30331. The electronic device divides the length of the linked list corresponding to the function by a reference length to obtain a length ratio of the linked list.
[0110] The length of the linked list represents the number of function subsets including functions in the function set.
[0111] The embodiment of the present application does not limit the value of the reference length, and can be configured according to actual needs. In one possible implementation, the reference length can be configured as an empirical value; in another possible implementation, the length of the linked list corresponding to a function in the function set can be used as the reference length.
[0112] Exemplarily, the maximum length among the lengths of the linked lists corresponding to the functions in the function set may be used as the reference length.
[0113] Based on Example 3, the length of the linked list corresponding to Function 2 is 4, and the length of the linked list corresponding to Function 2 is 4.
[0114] S30332. The electronic device divides the weight of the linked list corresponding to the function by the reference weight to obtain a weight ratio.
[0115] The weight of the linked list is related to the position where the linked list representation appears.
[0116] In a possible implementation, the weight of the linked list is the sum of weights corresponding to multiple step lengths, wherein the smaller the step length is, the greater the weight corresponding to the step length is.
[0117] The embodiment of the present application does not limit the specific value of the reference weight and can be configured according to actual needs.
[0118] In one possible implementation, the reference weight may be configured as an empirical value; in another possible implementation, the weight corresponding to the reference length and the minimum step length may be used as the reference length.
[0119] S30333. The electronic device multiplies the length ratio of the linked list by the weight ratio to obtain the degree of association corresponding to the function.
[0120] It is understandable that the correlation degree of the function correspondence can also be calculated by other methods, where it is only necessary to satisfy that the correlation degree of the function correspondence is positively correlated with the frequency of the function occurrence and negatively correlated with the step length in the linked list corresponding to the function.
[0121] Next, a process of establishing an association relationship between the first input shortcut key and the first function by the electronic device at S304 is described. The process may include but is not limited to the following implementation A1 or implementation A2.
[0122] Implementation method A1: establishing an association relationship for an application scenario of a service;
[0123] Implementation method A2: establishing an association relationship for application scenarios of two services.
[0124] Implementation A1 may include but is not limited to Figure 5 S3041 to S3044 shown.
[0125] S3041: The electronic device obtains a first input shortcut key and a built-in shortcut key corresponding to the first function.
[0126] There is a first association relationship between the built-in shortcut key and the first function.
[0127] It can be understood that the electronic device can be connected to the first function through the built-in shortcut key and the first association relationship.
[0128] S3042: The electronic device matches the first input shortcut key with an extended shortcut key in an extended shortcut key list.
[0129] The extended shortcut key list may include at least one extended shortcut key.
[0130] The electronic device matches the first input shortcut key with the extended shortcut keys in the extended shortcut key list one by one, and determines whether there is an extended shortcut key that is the same as the content of the first input shortcut. If so, it is considered that the extended shortcut key in the extended shortcut key list is hit, and the following S3043 is executed accordingly. If not, it is considered that the extended shortcut key in the extended shortcut key list pool is not hit, and the following S3044 is executed.
[0131] S3043: If an extended shortcut key in the extended shortcut key list is hit, the electronic device establishes a second association relationship between the hit extended shortcut key and the built-in shortcut key.
[0132] If an extended shortcut key in the extended shortcut key list is hit, the electronic device establishes a second association relationship between the hit extended shortcut key and the built-in shortcut key, so that the built-in shortcut key can be connected to through the second association relationship and the first input shortcut key.
[0133] S3044: If no extended shortcut key in the extended shortcut key list pool is hit, the electronic device adds the first input shortcut key to the extended shortcut key list; and establishes a third association relationship between the first input shortcut key and the built-in shortcut key.
[0134] If the electronic device does not hit the extended shortcut key in the extended shortcut key list pool, then add the first input shortcut key to the extended shortcut key list; establish a third association relationship between the first input shortcut key and the built-in shortcut key; so that the built-in shortcut key can be connected to through the third association relationship and the first input shortcut key.
[0135] It should be noted that if there is no first association relationship between the built-in shortcut and the first function, the electronic device directly establishes a fourth association relationship between the first input shortcut key and the first function, so as to link to the first function through the first input shortcut key and the fourth association relationship.
[0136] When the first service is a browser service and the second service is an integrated development environment IDE service, implementation A2 can be implemented as follows: the difference from implementation A1 lies in that the extended shortcut keys in the extension pool list are configured through the extension module of the browser, and a corresponding extended shortcut key is configured for each default shortcut key of the browser; and the browser modifies the trigger event of the first function triggered by the built-in shortcut key through a script, and sends the trigger event to the IDE service.
[0137] Since the priority of the extended shortcut key configured by the extension module is higher than the priority of the default shortcut key of the browser, when the input shortcut key is the same as the default shortcut key of the browser, the extension module of the browser can monitor the input shortcut key, and connect to the corresponding extended shortcut key based on the input shortcut key, and link to the corresponding built-in shortcut key through the second association relationship or the third association relationship between the extended shortcut key and the built-in shortcut key. The IDE service triggers the function corresponding to the input shortcut key through the received trigger event.
[0138] The following describes a process in which the electronic device obtains the user identification of the first user at S301. The process may include but is not limited to the following S3011 and S3012.
[0139] S3011. The electronic device obtains device information of at least one dimension of the first user device.
[0140] The embodiment of the present application does not specifically limit the number of dimensions of the acquired device information, and can be configured according to actual needs. The larger the number of dimensions of the acquired device information, the higher the accuracy of the determined user identification; the accuracy of the user identification is used to characterize the accuracy of identifying the first user through the user identification.
[0141] In one example, the device information of at least one dimension acquired by the electronic device may include at least one of the following: basic information of the device (device information of the first dimension) and configuration information of the device.
[0142] Exemplarily, the basic information of the device may include one or more of the following: user agent information, time zone information, screen size information, resolution information, font information, and plug-in information.
[0143] The configuration information of a device may include one or more of the following: characteristic information of a graphics processing unit (GPU) of the device, characteristic information of an image driver, and characteristic information of a graphics card, wherein the characteristic information is used to characterize the difference between the configuration information of different devices.
[0144] S3012. The electronic device combines the device information of the at least one dimension and performs a hash calculation to obtain the first user identifier.
[0145] After combining the device information of at least one dimension, the electronic device performs a hash operation on the combined information through a multiplication rotation (murmur3) algorithm to obtain a first user identifier.
[0146] Next, the process of S3011 an electronic device acquiring device information of at least one dimension is described. The process may include but is not limited to the following S30111 to S30113.
[0147] S30111. The electronic device draws a first image through the first user device.
[0148] The first image includes at least one of a two-dimensional image and a three-dimensional image; the first image represents the different configuration information between the devices.
[0149] Exemplarily, the first image may be a canvas image or a gradient image.
[0150] In a possible implementation manner, the first image is a hidden image, that is, the first image is not displayed.
[0151] The electronic device automatically draws the first image based on a pre-written script and through configuration information pre-configured by the electronic device.
[0152] S30112. The electronic device converts the first image into first data.
[0153] The first data is binary data representing the first image by printing characters.
[0154] The electronic device converts the first image into binary data representing the first image by printing characters as first data.
[0155] S30113. The electronic device performs a hash operation on the first data to obtain device information of a first dimension.
[0156] The device information of the first dimension represents the device configuration information of the first user; and the at least one dimension includes the first dimension.
[0157] Exemplarily, the electronic device performs a hash operation on the first data using the murmur3 algorithm to obtain device information of the first dimension.
[0158] Below, taking the first service being a browser service and the second service being a cloud IDE service as an example, the information processing method provided in the embodiment of the present application is described.
[0159] To facilitate understanding, some technical terms are briefly explained.
[0160] Integrated Development Environment (IDE): is a software platform that can be used to eliminate various problems in managing a development environment. Among them, IDE provides programmers and developers with tools for software development in an "all-in-one system". They are designed to work with specific application platforms to overcome obstacles in the software development life cycle.
[0161] Cloud IDE: An integrated development cloud platform based on the World Wide Web (web), usually composed of a code editor, compiler, command line, debugger, and application programming interface (API) or graphical user interface (GUI) builder.
[0162] Shortcut key: also known as quick key or hot key, refers to using certain specific keys, key sequences or key combinations to complete an operation instead of using the mouse.
[0163] Hash: An input of arbitrary length is transformed into an output of fixed length through a hash algorithm. The output is the hash value.
[0164] User Agent (UA) is a special string header that allows the server to identify the operating system and version, central processing unit (CPU) type, browser and version, etc. used by the client.
[0165] Canvas: refers to a dynamic drawing tag in Hyper Text Markup Language (HTML) 5. Canvas can be used to generate or process advanced images.
[0166] Cyclic Redundancy Check (CRC) code: is a commonly used checksum code with error detection and correction capabilities.
[0167] Web Graphics Library (Web GL): A 3-dimension (3D) graphics standard used to render 3D images on web pages.
[0168] Murmur Hash 3: A non-cryptographic hash function suitable for general hash lookups. It can generate 32-bit or 128-bit hash values.
[0169] Base64 encoding: A method of representing binary data based on 64 printable characters.
[0170] Google Chrome extensions: small custom software modules that can be used to modify the user interface, block ads, and manage data (cookies) stored on the user's local terminal.
[0171] Chrome shortcut keys: refers to the default shortcut keys in the Chrome browser.
[0172] Extension shortcut keys: refers to the customized shortcut keys of Chrome browser extensions. The corresponding extension shortcut keys can be matched according to the user's usage habits.
[0173] User shortcut keys: refers to the shortcut keys set by users according to their daily usage habits, which can also be called key combinations.
[0174] Mouse Trap library: a javascript library for monitoring and processing keyboard shortcuts.
[0175] Development teams usually use IDE software to build new software, web pages, services, and applications. Only one IDE tool is needed to provide developers with the required functions, and because they work across platforms, they do not need to be integrated separately. Therefore, it can be used to encode programming languages such as javascript, My Sql, and Python to a specific platform. Among them, it is common to create a website from scratch with a text editor. With the rapid development of technologies such as images and containers, many software are hosted in the cloud, and IDE is no exception. More and more cloud IDE applications are born. Cloud IDE is a web-based integrated development cloud platform, usually composed of a code editor, compiler, command line, debugger, and API or GUI builder.
[0176] Cloud IDEs have many advantages, including no downloading and installation required, simplifying real-time collaboration between developers writing code in different locations, making it easier to test and deploy code, and they are ideal for developers who want to try new languages, frameworks, or tools without installing them locally.
[0177] In order to improve the developer experience, most cloud IDE systems now provide default shortcut keys and custom shortcut key functions. Users need to configure shortcut keys that suit their habits when using them for the first time. Some cloud IDE systems used for instant coding do not have custom functions, and users can only use their default shortcut keys. In addition, due to the limitations of the default shortcut keys of the browser, the default shortcut keys of some functions of the cloud IDE system may conflict with the native IDE system.
[0178] In the related art, on the one hand, for some cloud IDE systems that provide instant coding, in order to provide the function of coding and viewing results anytime and anywhere, the login authentication module is abandoned, and the same system configuration and system default shortcut keys are provided to all developers, and user-defined shortcut keys are not supported. In this way, since the usage habits of each developer are different, some users must change their development habits to adapt to the cloud IDE system.
[0179] On the other hand, for other cloud IDE systems, although custom shortcut key modules have been added, users still need to spend a lot of time configuring shortcut keys that suit their own habits in order to improve development efficiency after logging into the system for the first time, which results in a long time spent on configuring shortcut keys.
[0180] On the other hand, since the cloud IDE system is essentially a web system, the use of shortcut keys must adapt to some browser rules. When the IDE system shortcut keys conflict with the browser default shortcut keys, the browser default behavior will be prioritized, and the cloud IDE system shortcut keys will not respond. If some key shortcut keys conflict, it may cause irreversible negative effects. Native IDE applications can listen to freely combined shortcut keys to respond to user behavior. The existing cloud IDE default shortcut keys actively avoid the browser default shortcut keys, and developers must also avoid these conflicting shortcut keys when customizing shortcut keys. This requires developers who switch from native IDE to cloud IDE to be forced to change their usage habits.
[0181] Simply put, some real-time coding IDE systems do not have a login authentication module and do not provide shortcut customization. Developers can only use the system default shortcuts, forcing users to change their usage habits. Some IDEs have a login authentication module. Although they provide a custom shortcut function, it takes a lot of time to configure shortcuts that suit your own habits when switching from a native IDE to a cloud IDE system. In addition, when configuring custom shortcuts, because of the existence of browser default shortcuts, you need to actively avoid them to prevent conflicts. From a certain perspective, this still forces users to change their usage habits and reduces development efficiency.
[0182] The IDE system provided in the embodiment of the present application has the following characteristics:
[0183] 1. No need to spend more time and energy to configure shortcut keys, user shortcut keys can be automatically configured.
[0184] 2. No need to log in, differentiated configuration of user shortcut keys can be achieved according to the usage habits of different users.
[0185] 3. Support users to use shortcut keys that suit their own usage habits, without considering the limitations of the browser's default shortcut keys, and enjoy the same shortcut key usage experience as the native IDE.
[0186] The differentiated shortcut key automatic configuration scheme provided in the embodiment of the present application can be automatically configured, that is, when using the cloud IDE, users do not need to spend a lot of time to configure shortcut keys, and the system will actively complete this configuration work; and the configured differentiated shortcut keys can meet the usage habits of different users, rather than a set of unified default shortcut keys, so that users can focus more on their own coding work and improve efficiency. This solution identifies different users based on the multi-dimensional attributes of the browser, and then collects the user's unique shortcut key behavior information, and at the same time performs statistical analysis on the collected information to obtain the user's shortcut key usage habits, thereby completing the automatic configuration of shortcut keys.
[0187] The specific process may include but is not limited to the following steps:
[0188] 1. Automatically identify the accessing user based on the browser information through the cloud IDE service and generate a unique ID for the user.
[0189] For cloud IDEs without a login authentication module, if you want to provide differentiated shortcut key configurations for different users, you first need to identify different users. First, collect user information and generate a unique user ID based on the collected user information to distinguish different users and save differentiated user configuration information.
[0190] The user information may include browser basic information (equivalent to device basic information), canvas information (equivalent to device configuration information), and Web GL information (equivalent to device configuration information).
[0191] First, the cloud IDE system collects basic browser information, including User Agent, time zone, screen size, resolution, fonts, plug-ins, etc.
[0192] Secondly, the cloud IDE system collects canvas information.
[0193] Due to the differences in graphics processing units (GPUs), graphics drivers, and graphics cards on different user devices, the rendering parameters, anti-aliasing algorithms, etc. used by the system graphics card when drawing canvas graphics are different, so the CRC checksums of the drawn images are also different. Based on this principle, the canvas information of the user device is collected as part of the user information.
[0194] Specifically, Figure 6 As shown, a hidden Canvas image (equivalent to the first figure) is drawn through the script. After the image is drawn, its base64 data information (dataurl) is obtained. Then the murmur3 digest calculation is performed on the dataurl string to obtain a 32-bit result, which is recorded as canvas information (also called canvas ID) and used as part of the user ID.
[0195] Web GL information is very similar to Canvas information in that they both use the browser to render text and images off-screen, which can be used to distinguish users based on their graphics drivers and device hardware. Based on this principle, Web GL information for the browser is collected.
[0196] Specifically, Figure 7 As shown, first create a shader, use the shader created by Web GL drawing technology to draw a hidden gradient image, then convert the gradient image into a base64 string, then integrate the string, enumerate some other basic information of Web GL rendering including Web GL version, shader language version, vendor and supported extensions, add these additional information to the base64 string, perform murmur3 digest calculation on the integrated string, and get a 32-bit result, which is recorded as Web GL information (also called Web GL ID), and is used as part of generating the user ID.
[0197] like Figure 8 As shown, the basic browser information (for example, user agent, time zone, screen size, resolution, fonts and plug-ins), canvas information and Web GL information are used as data source signals, and the murmur3 summary calculation is performed as a whole to finally generate a 32-bit hash value as the user's unique identifier.
[0198] 2. Collection of user shortcut keys.
[0199] Since collecting the user's shortcut key data is an important prerequisite for formulating shortcut key configurations that suit different users' habits, after identifying different users, differentiated shortcut key configurations are then performed for different users.
[0200] The main ideas include: when a shortcut key is triggered to call up a function of the cloud IDE, if the system does not respond or responds to other functions, the mouse action is usually used to call up the system function. Therefore, listen to the input key combination, and after listening to the key combination, collect and record the operations of the next collection cycle (mouse clicks, scrolling or dragging, etc.), as well as other shortcut keys entered during the collection cycle (the operations and shortcut keys together are equivalent to the first information subset). Among them, recording other shortcut keys in the collection cycle is mainly to prevent subsequent interference with the analysis of user behavior. For example, when other key combinations are triggered during the collection cycle, the collection operation will not be initiated again to prevent sample duplication.
[0201] Specifically, the collection process may include:
[0202] First, use the Mouse Trap library in the IDE service to monitor common key combinations, and add monitoring points (the monitoring points can be recorded as Ki, i represents different key combinations), bind the key combinations to the corresponding functional modules, and call the shortcut keys bound to the functional modules built-in shortcut keys. For specific configurations, refer to the settings of other more mature cloud IDEs in the industry. Similarly, add trigger event tracking points at each function bound to the built-in shortcut keys (the event tracking points can be recorded as Aj, j represents different functions).
[0203] Due to the existence of default browser shortcuts, users cannot use shortcuts as they wish in native IDEs. There is a restriction: when a key combination entered by a user happens to match a default browser shortcut, the function corresponding to the key combination in the browser will be prioritized, while the function with the shortcut as a built-in shortcut in the cloud IDE system will be ignored. The built-in shortcuts in some cloud IDE systems avoid the default browser shortcuts. It is well known that Chrome browser extensions can set shortcuts, which are called extended shortcuts. Extended shortcuts can be used to override user input key combinations. When a user browses a web page, when a key combination matches an extended shortcut, it will be intercepted by the extension system. Based on this feature, the user shortcut collection process is cleverly designed.
[0204] When monitoring and counting user key combinations, there are two situations depending on whether the input shortcut key overlaps with the default browser shortcut key: the first is that the user input shortcut key does not overlap with the default browser shortcut key, and the user key behavior is monitored through the cloud IDE service, and the operation of the next collection cycle is recorded; the second is that the user input shortcut key overlaps with the default browser shortcut key, and the cloud IDE service cannot monitor the key combination because the default browser shortcut key has a higher priority, and the cloud IDE cannot collect the user's next behavior. In this way, the automatic configurator in the browser can be used to assist in collecting the operation of the next collection cycle. Among them, the automatic configurator is implemented based on the extension module of the browser service (for example, the chrome browser). Specifically, the extended shortcut key list pool is configured in the automatic configurator of the browser service in advance to correspond to the default browser shortcut key one by one. When the user uses the cloud IDE, the input key combination matches a certain extended shortcut key, which is intercepted by the automatic configurator at this time. The automatic configurator notifies the cloud IDE service to capture the shortcut key input by the user and instructs the IDE service to collect the operation of the next collection cycle.
[0205] Whether the collection is actively performed by the cloud IDE service or assisted by the browser's automatic configurator, a string of recorded codes starting with the monitored key combination will be obtained in the end, such as: [K2A1A3A4, K1A1A2A3K2A2] (indicating the shortcut keys collected in one collection cycle).
[0206] 3. Analyze the rules between key combinations and IDE service functions through browser services.
[0207] The behavior analyzer determines the system function most relevant to the currently input key combination (equivalent to the first key combination) from the collected information, namely the target system function (equivalent to the first function, also referred to as the target function). Specifically, it may include but is not limited to the following four points:
[0208] First, data cutting and classification.
[0209] As mentioned above, each collected record can be represented by an array, such as [K1, A1, A2, A4, A6, A3, K3, A2, A4, K2...], where K represents the key combination, A represents the system function, and the following numbers are used to distinguish different key combinations or system functions. The array is divided into multiple segments based on the key combination as a node, each segment contains a key combination and multiple system functions, and the remaining records are processed in the same way to obtain multiple groups of data, which are classified according to the key combination, and finally a list of data sets for each key combination is obtained.
[0210] like Fig. 9 As shown, the collected data may include record 1 (equivalent to the first information subset 1), record 2 (equivalent to the first information subset 2), record 3 (equivalent to the first information subset 3), record 4 (equivalent to the first information subset 4) and record 5 (equivalent to the first information subset 5). Among them, record 1 includes K1, A1, A2, A4, A6, A3, K3, A1, A2, A4, K2, A3; record 2 includes K2, A3, A2, A4, K3, A4, K6, A1, A2, A4, K1, A2, A3, A1, K5, A4, K4, A3; record 3 includes K3, A1, A2, A4, A6, K1, A2, A5, A4, A6; record 4 includes K1, A1, A2, A5, A6, A3, K3, A1, A2, A4, K2, A3, A6; record 5 includes K4, A3, A2, A4, A6, A3, K1, A3, A7, A4, K2, A3.
[0211] After cutting and classifying the collected data, the K1 data set list can be obtained as follows: Fig.10 As shown, including: A1, A2, A4, A6, A3; A2, A3, A1; A2, A5, A4, A6; A1, A2, A5, A6, A3; A3, A7, A4.
[0212] Second point, filter out low-frequency functions.
[0213] Traverse the data set list of each key, find all independent items (equivalent to functions) in the data set, each independent item corresponds to a different function, calculate the frequency corresponding to each independent item, and delete the independent items whose frequency value is less than the frequency threshold (Lmin) from the original data set, so as to obtain a new set of data sets.
[0214] For example, the frequencies of all independent items in the K1 dataset list are as follows: Fig.11As shown in the figure, the frequency of A2 is 0.8, the frequency of A3 is 0.8, the frequency of A1 is 0.6, the frequency of A4 is 0.6, the frequency of A6 is 0.6, the frequency of A5 is 0.4, and the frequency of A7 is 0.2. If the frequency threshold is 0.5, A5 and A7 will be deleted. The filtered K1 data set list is as follows: Fig.12 As shown, including: A1, A2, A4, A6, A3; A2, A3, A1; A2, A4, A6; A1, A2, A6, A3; A3, A4.
[0215] Third, create an independent necklace table group.
[0216] A one-way data linked list is created for each independent item in the filtered data set. A one-way data linked list includes at least one node; each node has a counter and a pointer. The value of the counter is used to represent the distance of the node under each independent item in the filtered data set (also known as the step length of the key combination), and the pointer is used to save the order of the list. As time goes by, the relevance of the function gradually decreases, and different weight values are mapped to each step length, 1->s1, 2->s2, 3->s3, ..., n->sn (s1>s2>s3>...>sn). Among them, n represents the step length; sn represents the weight value corresponding to the step length of n.
[0217] Arrange all independent necklace lists in descending order according to the length of the linked list to obtain an independent necklace list group.
[0218] like Fig.13 As shown, the independent necklace table group of K1 may include the one-way data linked list of independent item A2, the one-way data linked list of A3, the one-way data linked list of A1, the one-way data linked list of A4, and the one-way data linked list of A6. Among them, the one-way data linked list of independent item A2 includes 4 nodes, node A1, node A2, node A3 and node A4, the step length of node A1 is 2, the step length of node A2 is 1, the step length of node A3 is 1, and the step length of node A4 is 2; the one-way data linked list of independent item A3 includes 4 nodes, node B1, node B2, node B3 and node B4, the step length of node B1 is 5, the step length of node B2 is 2, the step length of node B3 is 4, and the step length of node B4 is 1; the one-way data linked list of independent item A1 includes 3 The one-way data linked list of independent item A4 includes three nodes, namely, node C1, node C2 and node C3. The step length of node C1 is 1, the step length of node C2 is 3, and the step length of node C3 is 1. The one-way data linked list of independent item A4 includes three nodes, namely, node D1, node D2 and node D3. The step length of node D1 is 3, the step length of node D2 is 2, and the step length of node D3 is 2. The one-way data linked list of independent item A6 includes three nodes, namely, node E1, node E2 and node E3. The step length of node E1 is 4, the step length of node E2 is 3, and the step length of node E3 is 3.
[0219] Fourth, determine the target system functions.
[0220] After obtaining the linked list group, the association degree of different independent items is calculated through the browser service. Among them, the higher the frequency of occurrence of the independent item and the closer the distance to the key combination (the shorter the step length), the stronger the association degree.
[0221] The length of the first linked list in the linked list group is taken as the reference L, and the association degree of each independent item is calculated. For example, the association degree of the independent item can be calculated by the following formula (1).
[0222]
[0223] Among them, R n represents the association degree of independent item n; P' represents the length ratio of independent items; W represents the weight of independent items; Ln represents the length of the linked list of n, and L represents the length of the benchmark linked list; ∑Q n represents the sum of the weights of each node of the independent item n; s1 represents the weight of the benchmark linked list.
[0224] Among the correlations of multiple independent items, find the first two correlations with the largest correlation values, recorded as Rmax1 and Rmax2. If the difference between Rmax1 and Rmax2 is greater than the minimum interval threshold, it is determined that the independent item corresponding to Rmax1 is the target system function most relevant to the user input key combination; if the difference between Rmax1 and Rmax2 is less than or equal to the minimum interval threshold, it is determined that the sample data is insufficient to obtain the strongest associated independent item, and it is necessary to continue collecting user behavior and expand the sample data.
[0225] Repeat steps 1-2 after collecting user behavior records, create a new one-way linked list for the newly added independent items, and add the new one-way linked list to the linked list group. For repeated independent items, just add new nodes to the original linked list. The newly added nodes can be shown in the figure Fig.14 As shown by the dotted line in the middle, the correlation degree of each independent item is then recalculated until the target system function can be determined.
[0226] 4. Automatically configure user shortcut keys.
[0227] When the behavior analyzer obtains the target system function corresponding to the key combination input by the user, it notifies the cloud IDE service to initiate a user shortcut configuration request to the user center in the automatic configurator. The request parameters carry the user ID, key combination, and the built-in shortcut key corresponding to the target system function. Fig.15As shown, after receiving the configuration request, the automatic configurator matches the key combination with the extended shortcut key list pool. If a certain extended shortcut key is hit, the mapping relationship between the current key combination and the built-in shortcut key of the target system function is bound to the user and configured under the current user ID. If there is no hit, it means that the key combination in the configuration request belongs to the cloud IDE itself. In order to be intercepted by the automatic configurator in the future and differentiated based on different users, the automatic configurator needs to add an extended shortcut key to the list pool for the key combination. The key value of the newly added extended shortcut key is equal to the key combination. Then, the above steps are performed in the same way to bind the mapping relationship between the key combination and the built-in shortcut key of the target system function to the user and register it under the current user ID.
[0228] As shown in Figure 15, after completing the configuration, the user center saves a mapping relationship between the current user (user A) for the key combination (user shortcut key) and the built-in shortcut key of the target system function, and at the same time ensures that there is an extended shortcut key that matches the input key combination in the extended shortcut key list pool (for example, including extended shortcut key K1, extended shortcut key K2, extended shortcut key K3, extended shortcut key Kn, etc.). When the user enters the shortcut key, it is intercepted by the extended shortcut key, and the built-in shortcut key bound to this shortcut key is queried in the mapping relationship of user A under the user center (for example, including the mapping relationship of user A, the mapping relationship of user B, and the mapping relationship of user C) according to the key combination.
[0229] Next, you need to resend the built-in shortcut listening event so that the cloud IDE can respond to the target system function. This can be achieved through the automatic configurator using the chrome extension. For example, the content scripts in the chrome extension module are Java Script scripts that run in the web page and can obtain detailed information about the page visited by the browser. Modify this information and simulate the emission of the built-in shortcut listening event in the content scripts based on this feature. At this time, the cloud IDE listens to the event and responds to the target function, thereby completing the differential automatic configuration of the shortcuts.
[0230] The process can be as follows Fig.16 As shown, the information processing process may include a user registration process, a first information collection process, a target function determination process, and an automatic configuration process.
[0231] The user registration process may include: when a user visits for the first time, generating a user ID and storing it in a user center.
[0232] The process of collecting the first information may include: when monitoring an input key combination, determining whether the input key combination is intercepted by the extended shortcut key list pool; if intercepted, determining in the user center whether the input shortcut key has been collected for the user; if collected, simulating the emission of a built-in shortcut key trigger event; if not collected or not intercepted, notifying the cloud IDE service to collect the user behavior.
[0233] The target function determination process may include: cutting the collected user behavior data, deleting low-frequency independent items, creating a linked list group of independent items, calculating the correlation of independent items, and determining the target function.
[0234] The automatic configuration process may include: the cloud IDE service initiates a configuration request to determine whether any extended shortcut key is hit, and if so, establishes an association relationship between the extended shortcut key and the built-in shortcut key corresponding to the target function; if not, adds an extended shortcut key, and establishes an association relationship between the added extended shortcut key and the built-in shortcut key corresponding to the target function.
[0235] The shortcut key configuration scheme provided in the embodiment of the present application has the following effects: no need to log in, differentiated shortcut key configuration for different users can be achieved according to the usage habits of different users; it supports automatic configuration of user shortcut keys, without spending extra time and energy to configure shortcut keys, allowing users to focus on coding work and improve work efficiency; it supports users to use shortcut keys that are in line with their own usage habits, without considering the limitations of the browser's default shortcut keys, and enjoy the same shortcut key usage experience as the native IDE.
[0236] To implement the above information processing method, an information processing device according to an embodiment of the present application is provided as follows: Fig.17 The structure of the information processing device is described below.
[0237] like Fig.17 As shown, the information processing device 170 includes: a first obtaining unit 1701, a second obtaining unit 1702, a determining unit 1703 and a configuring unit 1704. Among them:
[0238] A first obtaining unit 1701 is configured to obtain a user identifier of a first user, where the user identifier is used to point to the first user;
[0239] The second obtaining unit 1702 is used to obtain a first information set; the first information set includes at least one first information subset; the first information subset includes at least one input shortcut key input by the first user collected within a collection period and at least one function corresponding to each of the at least one input shortcut key;
[0240] A determining unit 1703 is configured to determine, based on the first information set, a first function corresponding to a first input shortcut key; the at least one input shortcut key included in the first information set includes the first input shortcut key, and the at least one function included in the first information set includes the first function;
[0241] Configuration unit 1704 is used to establish an association relationship between the first input shortcut key and the first function, and bind the association relationship to the first user; so that when the first user triggers the first input shortcut key, the operation corresponding to the first function is executed.
[0242] In some embodiments, the information processing device 170 further includes a collection unit.
[0243] When monitoring the second input shortcut key input by the first user, perform the following processing for the second input shortcut key:
[0244] If the second input shortcut key does not belong to the shortcut keys supported by the first service, collecting the first information subset corresponding to the first collection period in the first collection period through the second service; the first service is a browser service; the second service is an integrated development environment IDE service;
[0245] If the second input shortcut key is a shortcut key supported by the first service, the second input shortcut key is collected through the first service, and information is collected through the second service in the first collection period, and the second input shortcut key collected by the first service and the information collected by the second service constitute a first information subset corresponding to the first collection period.
[0246] In some embodiments, the determining unit 1703 is further configured to:
[0247] Based on the first information set, determine a function set corresponding to the first input shortcut key, the function set including at least one function subset, and a function subset includes a function corresponding to the first input shortcut key in the first information subset;
[0248] Based on the function subsets included in the function set, determining a linked list corresponding to each function in the function set, wherein the linked list represents an appearance position of the function in the function set;
[0249] For each of the functions, calculating a correlation degree corresponding to the function, the correlation degree representing a degree of correlation between the function and the first input shortcut key;
[0250] When the difference between the association degree of the second function and the association degree of the third function is greater than the association degree difference threshold, the second function is determined to be the first function; the association degree of the second function is greater than the association degree of the functions included in the function set except the second function; the association degree of the third function is less than the association degree of the second function, and greater than the association degree of the functions included in the function set except the second function and the third function.
[0251] In some embodiments, the information processing device 170 further includes a deletion unit.
[0252] for counting the frequency of each function included in the function set before the determining unit 1703 performs the determination of the linked list corresponding to each function in the function set based on the function subset included in the function set; the frequency of the function is the ratio of the number of the functions in the function set to the number of the function subset;
[0253] A fourth function in the function subset included in the function set is deleted; and a frequency of the fourth function is less than a frequency threshold.
[0254] In some embodiments, the determining unit 1703 is further configured to:
[0255] The length of the linked list corresponding to the function is divided by the reference length to obtain a length ratio of the linked list; the length of the linked list represents the number of function subsets in the function set that include the function;
[0256] The weight of the linked list corresponding to the function is divided by the reference weight to obtain a weight ratio; the weight of the linked list is related to the appearance position of the linked list representation;
[0257] The length ratio of the linked list is multiplied by the weight ratio to obtain the degree of association corresponding to the function.
[0258] In some embodiments, configuration unit 1704 is also used for:.
[0259] Acquire a first input shortcut key and a built-in shortcut key corresponding to the first function; a first association relationship exists between the built-in shortcut key and the first function;
[0260] Matching the first input shortcut key with the extended shortcut key in the extended shortcut key list;
[0261] If an extended shortcut key in the extended shortcut key list is hit, a second association relationship is established between the hit extended shortcut key and the built-in shortcut key;
[0262] If no extended shortcut key in the extended shortcut key list pool is hit, the first input shortcut key is added to the extended shortcut key list; and a third association relationship between the first input shortcut key and the built-in shortcut key is established.
[0263] In some embodiments, the first obtaining unit 1701,
[0264] Acquire device information of at least one dimension of a first user device;
[0265] The device information of the at least one dimension is combined and hashed to obtain the first user identifier.
[0266] In some embodiments, the processing unit is further configured to:
[0267] Drawing a first image by the first user device; the first image includes at least one of a two-dimensional image or a three-dimensional image; the first image represents different configuration information between devices;
[0268] converting the first image into first data; the first data is binary data representing the first image by printing characters;
[0269] A hash operation is performed on the first data to obtain device information of a first dimension; the device information of the first dimension represents device configuration information of the first user; and the at least one dimension includes the first dimension.
[0270] It should be noted that the information processing device provided in the embodiment of the present application includes the various units included, which can be implemented by a processor in an electronic device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Micro Processor Unit), a digital signal processor (DSP, Digital Signal Processor) or a field programmable gate array (FPGA, Field-Programmable Gate Array), etc.
[0271] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0272] It should be noted that in the embodiment of the present application, if the above-mentioned information processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0273] To implement the above-mentioned information processing method, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps in the information processing method provided in the above-mentioned embodiment are implemented.
[0274] Combine the following Fig.18 The electronic device 180 shown is a block diagram of the electronic device.
[0275] In one example, the electronic device 180 may be the above-mentioned electronic device. Fig.18 As shown, the electronic device 180 includes: a processor 1801, at least one communication bus 1802, a user interface 1803, at least one external communication interface 1804 and a memory 1805. The communication bus 1802 is configured to achieve connection and communication between these components. The user interface 1803 may include a display screen, and the external communication interface 1804 may include a standard wired interface and a wireless interface.
[0276] The memory 1805 is configured to store instructions and applications executable by the processor 1801, and can also cache data to be processed or processed by the processor 1801 and various modules in the electronic device (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0277] In a fourth aspect, an embodiment of the present application provides a storage medium, that is, a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the information processing method provided in the above embodiment are implemented.
[0278] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0279] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.
[0280] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0281] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0282] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0283] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0284] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0285] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0286] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An information processing method, characterized in that: The method comprises: Obtaining a user identifier of a first user, where the user identifier is used to point to the first user; Obtaining a first information set; the first information set includes at least one first information subset; the first information subset includes at least one input shortcut key input by the first user collected within a collection period and at least one function corresponding to each of the at least one input shortcut key; Based on the first information set, determining a first function corresponding to a first input shortcut key; at least one input shortcut key included in the first information set includes the first input shortcut key, and at least one function included in the first information set includes the first function; An association relationship between the first input shortcut key and the first function is established, and the association relationship is bound to the first user; so that when the first user triggers the first input shortcut key, an operation corresponding to the first function is executed.
2. The method according to claim 1, characterized in that The method further comprises: When a second input shortcut key input by the first user is monitored, the following processing is performed for the second input shortcut key: If the second input shortcut key does not belong to the shortcut keys supported by the first service, collecting the first information subset corresponding to the first collection period in the first collection period through the second service; the first service is a browser service; the second service is an integrated development environment IDE service; If the second input shortcut key is a shortcut key supported by the first service, the second input shortcut key is collected through the first service, and information is collected through the second service in the first collection period, and the second input shortcut key collected by the first service and the information collected by the second service constitute a first information subset corresponding to the first collection period.
3. The method according to claim 1, characterized in that: The determining, based on the first information set, a first function corresponding to the first input shortcut key includes: Based on the first information set, determine a function set corresponding to the first input shortcut key, the function set including at least one function subset, and a function subset includes a function corresponding to the first input shortcut key in the first information subset; Based on the function subsets included in the function set, determining a linked list corresponding to each function in the function set, wherein the linked list represents an appearance position of the function in the function set; For each of the functions, calculating a correlation degree corresponding to the function, the correlation degree representing a degree of correlation between the function and the first input shortcut key; When the difference between the association degree of the second function and the association degree of the third function is greater than the association degree difference threshold, the second function is determined to be the first function; the association degree of the second function is greater than the association degree of the functions included in the function set except the second function; the association degree of the third function is less than the association degree of the second function, and greater than the association degree of the functions included in the function set except the second function and the third function.
4. The method according to claim 3, characterized in that Before determining the linked list corresponding to each function in the function set based on the function subset included in the function set, the method further includes: Counting the frequency of each function included in the function set; the frequency of the function is the ratio of the number of the functions in the function set to the number of the function subset; A fourth function in the function subset included in the function set is deleted; and a frequency of the fourth function is less than a frequency threshold.
5. The method according to claim 3, characterized in that: The calculating the degree of association corresponding to the function includes: The length of the linked list corresponding to the function is divided by the reference length to obtain a length ratio of the linked list; the length of the linked list represents the number of function subsets in the function set that include the function; The weight of the linked list corresponding to the function is divided by the reference weight to obtain a weight ratio; the weight of the linked list is related to the appearance position of the linked list representation; The length ratio of the linked list is multiplied by the weight ratio to obtain the degree of association corresponding to the function.
6. The method according to claim 1, characterized in that The establishing an association relationship between the first input shortcut key and the first function includes: Acquire a first input shortcut key and a built-in shortcut key corresponding to the first function; a first association relationship exists between the built-in shortcut key and the first function; Matching the first input shortcut key with the extended shortcut key in the extended shortcut key list; If an extended shortcut key in the extended shortcut key list is hit, a second association relationship is established between the hit extended shortcut key and the built-in shortcut key; If no extended shortcut key in the extended shortcut key list pool is hit, the first input shortcut key is added to the extended shortcut key list; and a third association relationship between the first input shortcut key and the built-in shortcut key is established.
7. The method according to claim 1, characterized in that The obtaining of the user identification of the first user includes: Acquire device information of at least one dimension of a first user device; The device information of the at least one dimension is combined and hashed to obtain the first user identifier.
8. The method according to claim 7, characterized in that The acquiring device information of at least one dimension of the first user device includes: Drawing a first image by the first user device; the first image includes at least one of a two-dimensional image or a three-dimensional image; the first image represents different configuration information between devices; converting the first image into first data; the first data is binary data representing the first image by printing characters; A hash operation is performed on the first data to obtain device information of a first dimension; the device information of the first dimension represents device configuration information of the first user; and the at least one dimension includes the first dimension.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the information processing method according to any one of claims 1 to 8 is implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the information processing method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Shortcut key customization method and intelligent terminal
CN105573748A
Method for defining shortcut key of intelligent terminal, and readable storage medium
CN108012174A
