A method and device for evaluating user understanding of a code change event
By generating evidence clusters and constructing candidate knowledge points, combined with an assessment method based on comprehension level, the system automatically evaluates developers' understanding of code change events. This solves the problem that existing technologies cannot assess the degree of understanding of code change events, thereby improving code review efficiency and repository maintainability.
Patent Information
- Application Number
- CN202611348134.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies cannot effectively assess developers' understanding of code change events, resulting in low code review efficiency, poor knowledge transfer, and insufficient repository maintainability.
By generating evidence clusters, constructing candidate knowledge points, generating assessment questions based on comprehension levels, and automatically assessing users' understanding of code changes using standard answers, the system also analyzes the data using multi-dimensional contextual data.
It improves the accuracy of identifying potential risks in code execution and ensures the accuracy and efficiency of assessing the understanding of code changes.
Smart Images

Figure CN123157571A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for evaluating user understanding of code change events. Background Technology
[0002] In software development, code submissions not only reflect changes to the code text but also reflect the developer's understanding of business rules, system boundaries, module dependencies, and trade-offs in technical solutions. Especially in scenarios where intelligent programming products widely participate in code generation, modification, and interpretation, developers and intelligent systems continuously generate dialogues, code editing, solution reasoning, and adoption records around the same task. At this point, the development team faces not only the challenge of "whether the code runs" but also "whether the submitter truly understands the changes and their impact." If the submitter's level of understanding of the changes cannot be identified during the code submission phase, the development team will struggle to promptly detect the risk of "code that runs but lacks sufficient understanding," thereby affecting code review efficiency, knowledge transfer effectiveness, the quality of online issue handling, and the long-term maintainability of the repository.
[0003] For the above scenarios, existing related technologies mainly include static code analysis, automated testing, continuous integration, code review, and AI code review. However, these technologies mainly focus on verifying the code results themselves and cannot determine whether the submitter truly understands the code change event. They are difficult to assess the level of understanding of the code change event and cannot effectively identify potential risks in code execution. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a method and apparatus for assessing user comprehension of code change events. By analyzing multi-dimensional contextual data corresponding to code change events and constructing evidence clusters, and generating targeted assessment questions based on comprehension levels, the method automatically assesses the user's level of comprehension based on standard answers. This enables effective identification of whether developers understand the content and scope of impact of code changes, thereby improving the accuracy of identifying potential risks in code execution.
[0005] To achieve the above objectives, according to one aspect of the present invention, a method for evaluating user understanding of code change events is provided, comprising: Generate evidence clusters based on the multi-dimensional context dataset corresponding to code change events; Candidate knowledge points are constructed based on evidence clusters, and a set of candidate questions is generated based on preset comprehension levels and candidate knowledge points; Based on the submission feature information corresponding to the obtained code change event, a target question set is selected from the candidate question set, and an answer option set and a standard answer set corresponding to the target question set are constructed. The user understanding assessment result corresponding to the code change event is determined based on the target question set and its corresponding answer option set and standard answer set.
[0006] Optionally, an evidence cluster is generated based on the multi-dimensional context dataset corresponding to the code change event, including: The original context data in the multi-dimensional context dataset is normalized to generate multiple evidence objects; Based on pre-determined code change target information, multiple evidence objects are aggregated to obtain an evidence cluster corresponding to the code change event.
[0007] Optionally, candidate knowledge points are constructed based on evidence clusters, and a candidate question set is generated based on preset comprehension levels and candidate knowledge points, including: The evidence clusters are filtered based on preset screening criteria; Key evidence information is determined based on the filtered evidence clusters, and candidate knowledge points are constructed based on the key evidence information. Candidate knowledge points are mapped hierarchically according to the preset comprehension level to obtain a set of candidate questions.
[0008] Optionally, construct a set of answer options and a set of standard answers corresponding to the target set of questions, including: Identify the key evidence information corresponding to each target question in the target question set, and generate the correct option for the target question based on the key evidence information corresponding to the target question. Based on the candidate interference data corresponding to the obtained code change events, generate incorrect options corresponding to the target question; Generate a set of answer options corresponding to the target set of questions based on the correct and incorrect options, and generate a set of standard answers corresponding to the target set of questions based on the correct options.
[0009] Optionally, the user comprehension assessment results corresponding to the code change event are determined based on the target question set, its corresponding answer option set, and the standard answer set, including: Each target question in the target question set undergoes multi-dimensional detection processing; the multi-dimensional detection includes answer uniqueness detection, evidence sufficiency detection, question relevance detection, and / or premise dependency detection; If the multi-dimensional detection results corresponding to the target question do not meet the preset detection conditions, the target question is removed from the target question set to obtain an adjusted target question set. The user understanding assessment result corresponding to the code change event is then determined based on the adjusted target question set.
[0010] Optionally, the user comprehension assessment results corresponding to the code change event are determined based on the target question set, its corresponding answer option set, and the standard answer set, including: Send the target question set and its corresponding answer option set to the user whose code change event is to be evaluated. Receive the responses from users to be evaluated to a target set of questions and their corresponding set of answer options; The user comprehension assessment results for the code change event are obtained by matching the response information with the set of standard answers.
[0011] Optionally, after determining the user comprehension assessment result corresponding to the code change event based on the target question set, its corresponding answer option set, and the standard answer set, the process also includes: The user understanding assessment results corresponding to the code change event are written into a pre-configured assessment knowledge graph to update the multi-dimensional context dataset based on the assessment knowledge graph.
[0012] According to a second aspect of the present invention, a user understanding assessment apparatus for code change events is provided, comprising: The generation module is used to generate evidence clusters based on the multi-dimensional context dataset corresponding to code change events; The construction module is used to build candidate knowledge points based on evidence clusters and generate a set of candidate questions based on preset comprehension levels and candidate knowledge points; The evaluation module is used to select the target question set from the candidate question set based on the submission feature information corresponding to the code change event, and to construct the answer option set and standard answer set corresponding to the target question set, so as to determine the user understanding evaluation result corresponding to the code change event based on the target question set and its corresponding answer option set and standard answer set.
[0013] According to a third aspect of the present invention, an electronic device is provided, comprising: One or more processors; Memory, used to store one or more programs. When one or more programs are executed by one or more processors, the one or more processors implement the methods of any of the above embodiments.
[0014] According to a fourth aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method of any of the above embodiments.
[0015] According to a fifth aspect of the present invention, a computer program product is provided, including a computer program that, when executed by a processor, implements the method of any of the above embodiments.
[0016] One embodiment of the above invention has the following advantages or beneficial effects: It generates an evidence cluster based on a multi-dimensional context dataset corresponding to a code change event; constructs candidate knowledge points based on the evidence cluster, and generates a candidate question set based on a preset comprehension level and candidate knowledge points; selects a target question set from the candidate question set based on the obtained submission feature information corresponding to the code change event, and constructs an answer option set and a standard answer set corresponding to the target question set, so as to determine the user comprehension assessment result corresponding to the code change event based on the target question set and its corresponding answer option set and standard answer set. This embodiment analyzes the multi-dimensional context data corresponding to the code change event and constructs an evidence cluster, generates targeted assessment questions based on the comprehension level, and automatically assesses the user's comprehension level based on the standard answers, thereby effectively identifying whether developers understand the content and scope of the code change, and improving the accuracy of identifying potential risks in code execution.
[0017] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description
[0018] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein: Figure 1 This is a schematic diagram of the main flow of the user understanding assessment method for code change events according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the main flow of a user understanding assessment method for code change events according to an optional embodiment of the present invention; Figure 3 This is a schematic diagram of the main modules of the user understanding assessment device for code change events according to an embodiment of the present invention; Figure 4 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied; Figure 5 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation
[0019] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0020] It should be noted that the acquisition, storage, and application of personal information involved in the embodiments of the present invention comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0021] In software development, code submissions not only reflect changes to the code text but also reflect the developer's understanding of business rules, system boundaries, module dependencies, and trade-offs in technical solutions. Especially in scenarios where intelligent programming products widely participate in code generation, modification, and interpretation, developers and intelligent systems continuously generate dialogues, code editing, solution reasoning, and adoption records around the same task. At this point, the development team faces not only the challenge of "whether the code runs" but also "whether the submitter truly understands the changes and their impact." If the submitter's level of understanding of the changes cannot be identified during the code submission phase, the development team will struggle to promptly identify the risk of "code that runs but lacks sufficient understanding," thus affecting code review efficiency, knowledge transfer effectiveness, the quality of online issue handling, and the long-term maintainability of the repository. Existing technologies addressing this scenario primarily include static code analysis, automated testing, continuous integration, code review, and AI code review. However, these technologies mainly verify the code result itself and cannot determine whether the submitter truly understands the code change event, making it difficult to assess the level of understanding of the code change event and effectively identify potential risks in code execution.
[0022] In view of this, according to one aspect of the present invention, a method for evaluating user understanding of code change events is provided.
[0023] Figure 1 This is a schematic diagram of the main flow of the user understanding assessment method for code change events according to an embodiment of the present invention. Figure 1 As shown, the user understanding assessment method for code change events according to an embodiment of the present invention includes the following steps S101 to S103.
[0024] Step S101: Generate evidence clusters based on the multi-dimensional context dataset corresponding to the code change event.
[0025] In this embodiment, a code change event represents a recognizable change process resulting from a user's modification of code files, code modules, interfaces, configuration files, or other software resources. Code change events can be triggered by code submissions, code review requests, code merge requests, intelligent programming modifications, or other code editing behaviors. The multi-dimensional context dataset corresponding to the code change event represents associated data collected from multiple sources surrounding the event. This dataset includes at least interaction context data, code change data, repository knowledge data, and historical associated data. Interaction context data includes dialogue content between the user and the intelligent programming system, model generation content, user adoption records, and user rejection records. Code change data includes code difference information, changed file information, function change information, interface change information, and change description information. Repository knowledge data includes code structure information, architecture document information, rule document information, historical review information, and dependency information. Historical associated data includes historical code change records, historical evaluation results, and user understanding status information. An evidence cluster represents a set of multiple evidence objects associated with the same code change target. Each evidence object describes the corresponding data source, associated code location, associated module, associated business concept, and associated technical concept.
[0026] In one implementation, various raw context data in a multi-dimensional context dataset can be processed through format standardization, semantic parsing, and association tagging to generate multiple evidence objects. Based on the code change target information corresponding to the code change event, multiple evidence objects are associated and matched. Evidence objects involving the same file modification target, the same function modification target, the same interface modification target, or the same business target are aggregated to obtain corresponding evidence clusters. For example, discussion records of users modifying a certain function, code difference information corresponding to the function, upstream and downstream dependency information calling the function, and historical review opinions are aggregated to form the same evidence cluster for subsequent knowledge point extraction.
[0027] In other implementations, a pre-built correlation model can be used to analyze multi-dimensional contextual datasets. This model determines the degree of correlation between different contextual data based on user behavior relationships, code dependency relationships, business semantic relationships, and historical change relationships, and generates evidence clusters based on this correlation. For example, user-submitted questions, modification plans generated by the intelligent programming system, actually adopted code snippets, and corresponding test results can be correlated according to chronological order and semantic relationships to form an evidence cluster reflecting a code change decision-making process. This improves the completeness and accuracy of evidence acquisition during subsequent understanding assessments.
[0028] Step S102: Construct candidate knowledge points based on evidence clusters, and generate a candidate question set based on preset comprehension level and candidate knowledge points.
[0029] In this embodiment, candidate knowledge points are key knowledge contents that reflect a user's understanding of code change events. Candidate knowledge points at least include the facts of the code change, local processing logic, business rules, the scope of system impact, and technical solution trade-offs. The comprehension level represents a hierarchical standard for measuring the user's level of understanding, used to assess the user's grasp of the code change event from different depths. For example, the comprehension level can include, from low to high, a level of change facts, a level of local logic, a level of business semantics, a level of system impact, and a level of architectural trade-offs. The candidate question set is a set of candidate questions used to assess the user's level of understanding. Each candidate question is associated with a corresponding candidate knowledge point, evidence set, and comprehension level.
[0030] Specifically, when constructing candidate knowledge points based on evidence clusters, feature extraction is performed on code location association information, business concept information, technical concept information, dependency relationship information, and risk information within the evidence clusters. Key evidence information related to code change events is identified, and candidate knowledge points are generated based on this key evidence information. For example, code difference information determines "what was modified," user interaction information with the intelligent programming system determines "why it was modified," call relationship information determines "what was affected," and historical constraint information determines "what it depends on," thus forming corresponding candidate knowledge points. Candidate knowledge points are then hierarchically mapped according to preset comprehension levels, and candidate question sets are generated based on the assessment objectives corresponding to different comprehension levels.
[0031] In another implementation, evidence clusters can be analyzed based on a pre-built knowledge association model. Candidate knowledge points are determined according to the semantic relationships, code dependencies, and historical change relationships between evidence objects. The comprehension level corresponding to the candidate knowledge points is dynamically adjusted based on the user's historical understanding records, the risk level of code changes, and the importance of the knowledge points. Then, based on the adjusted comprehension level, a corresponding question generation template or question generation strategy is selected to generate a candidate question set. In this way, the generated candidate question set can cover the key comprehension content in code change events, and adapt to different depths of comprehension assessment needs according to different code change scenarios.
[0032] Step S103: Select the target question set from the candidate question set based on the submission feature information corresponding to the obtained code change event, and construct the answer option set and standard answer set corresponding to the target question set, so as to determine the user understanding evaluation result corresponding to the code change event based on the target question set and its corresponding answer option set and standard answer set.
[0033] In this embodiment, the submitted feature information is data reflecting the attributes and risks of the code change event. This feature information includes at least code change scope information, code change type information, code change complexity information, associated module information, risk level information, and user historical understanding information, etc. The target question set represents the set of questions selected from the candidate question set to assess the user's understanding of the current code change event. Each target question corresponds to at least one candidate knowledge point and key evidence information. The answer option set represents multiple candidate answer contents corresponding to each target question in the target question set. The standard answer set represents the set of answer identifiers in the answer option set that uniquely represents the correct understanding result. The user comprehension assessment result represents the assessment result of the user's comprehension of the code change event, determined based on the user's responses.
[0034] Specifically, the question selection criteria can be determined based on the scope of code changes, risk level, and related modules of the code change event. Candidate questions that meet preset criteria for relevance to the current code change event are selected from the candidate question set as the target question set. Correct options are generated based on key evidence for each target question, and incorrect options are generated based on candidate interference data. Correct and incorrect options are combined to form an answer option set, and the answer identifier corresponding to the correct option is designated as the standard answer set. After the user completes the response, the user's response is compared with the standard answer set to determine the user's comprehension assessment result for the code change event.
[0035] In another implementation, the candidate question set can be dynamically selected based on comprehensive evaluation feature information corresponding to the code change event. This comprehensive evaluation feature information may include code change risk features, knowledge point importance features, and user historical mastery features. The matching degree of each candidate question is calculated according to the weights corresponding to different features, and candidate questions whose matching degree meets a preset matching threshold are selected to generate the target question set. Simultaneously, an answer option set and a standard answer set can be constructed based on the question evidence correlation, historical evaluation data, and user comprehension status data. User comprehension evaluation results are generated based on the user's answer accuracy and scores corresponding to different comprehension levels, thereby achieving adaptive comprehension evaluation for different code change events.
[0036] This embodiment generates evidence clusters based on a multi-dimensional contextual dataset corresponding to a code change event; constructs candidate knowledge points based on the evidence clusters; generates a candidate question set based on a preset comprehension level and candidate knowledge points; selects a target question set from the candidate question set based on the obtained submission feature information corresponding to the code change event; and constructs a set of answer options and a set of standard answers corresponding to the target question set. The user comprehension assessment result corresponding to the code change event is then determined based on the target question set and its corresponding set of answer options and standard answers. This embodiment analyzes the multi-dimensional contextual data corresponding to the code change event and constructs evidence clusters, generates targeted assessment questions based on comprehension levels, and automatically assesses the user's comprehension level based on the standard answers. This effectively identifies whether developers understand the content and scope of the code change, improving the accuracy of identifying potential risks in code execution.
[0037] Optionally, an evidence cluster is generated based on the multi-dimensional context dataset corresponding to the code change event, including: normalizing the original context data in the multi-dimensional context dataset to generate multiple evidence objects; and aggregating the multiple evidence objects based on the predetermined code change target information to obtain the evidence cluster corresponding to the code change event.
[0038] In this embodiment, raw context data from different sources undergoes format parsing, field unification, and semantic association processing to transform user interaction records with the intelligent programming system, code change information, repository knowledge information, and historical association information into evidence objects with a unified structure. Each evidence object includes at least data source information, associated code location, associated module information, associated business concept information, and associated technical concept information, thereby enabling data from different sources to be correlated and compared. Based on pre-determined code change target information, multiple evidence objects are aggregated to identify evidence objects associated with the same code file, function, interface, or business objective. Evidence objects with related relationships are then combined to obtain an evidence cluster corresponding to the code change event. Through this method, context information scattered across different sources can be transformed into a structured evidence set surrounding the current code change event, improving the accuracy of subsequent knowledge point extraction and comprehension assessment.
[0039] In addition, multi-dimensional context datasets can be analyzed based on pre-built context association models. The degree of association between different original context data can be determined according to user operation sequence, code dependencies, semantic similarity, and historical change relationships. Original context data whose association degree meets preset association conditions can be directly aggregated to form evidence clusters. This approach eliminates the need to rely on fixed code change target information and can automatically discover key evidence related to code change events based on multi-dimensional association relationships, improving the flexibility and applicability of evidence cluster construction.
[0040] Figure 2 This is a schematic diagram of the main flow of a user understanding assessment method for code change events according to an optional embodiment of the present invention. Figure 2 As shown, candidate knowledge points are constructed based on evidence clusters, and a set of candidate questions is generated based on preset comprehension levels and candidate knowledge points, including the following steps S201 to S203.
[0041] Step S201: The evidence clusters are filtered based on preset filtering conditions.
[0042] Step S202: Determine key evidence information based on the filtered evidence clusters, and construct candidate knowledge points based on the key evidence information.
[0043] Step S203: Perform hierarchical mapping processing on candidate knowledge points according to the preset comprehension level to obtain a set of candidate questions.
[0044] In this embodiment, evidence objects in the evidence cluster are filtered based on screening criteria such as the reliability of the evidence source, the degree of relevance to the code change event, the completeness of the evidence, and the degree of risk correlation. Evidence objects that are weakly related to the current code change event or cannot support the understanding assessment are removed, while key evidence objects that can reflect the reasons for the code change, the processing logic, the scope of impact, and the technical constraints are retained. Key evidence information is determined based on the filtered evidence cluster, and candidate knowledge points are constructed based on this key evidence information. For example, the code change fact is determined based on code difference information, the scope of impact is determined based on code call relationships, the business semantics are determined based on business rule information, and the technical trade-offs are determined based on historical constraint information, thereby generating corresponding candidate knowledge points. Further, the candidate knowledge points are hierarchically mapped according to preset comprehension ability levels, mapping different candidate knowledge points to corresponding comprehension ability levels, and a candidate question set is generated according to the assessment requirements corresponding to each comprehension ability level. Through the above method, the candidate question set can be associated with the key knowledge content in the code change event, improving the pertinence and accuracy of the comprehension assessment.
[0045] In another embodiment, evidence clusters can be processed based on a knowledge association analysis model. This involves analyzing semantic relationships, code dependencies, and historical change relationships between evidence objects to determine key evidence information, and automatically generating candidate knowledge points based on this information. Simultaneously, the comprehension level corresponding to each candidate knowledge point is dynamically adjusted based on the risk level of the code change event, the user's historical understanding assessment results, and the importance of the knowledge points. Based on the adjusted comprehension level, corresponding question generation rules are selected to generate a candidate question set. This implementation method allows for adaptive adjustment of the assessment content according to different code change scenarios, achieving a more flexible and accurate user comprehension assessment.
[0046] Optionally, constructing a set of answer options and a set of standard answers corresponding to the target question set includes: determining the key evidence information corresponding to each target question in the target question set; generating the correct option corresponding to the target question based on the key evidence information corresponding to the target question; generating the incorrect option corresponding to the target question based on the candidate interference data corresponding to the obtained code change event; generating a set of answer options corresponding to the target question set based on the correct option and the incorrect option; and generating a set of standard answers corresponding to the target question set based on the correct option.
[0047] In this embodiment, the key evidence information corresponding to each target question in the target question set is first determined. Specifically, based on the candidate knowledge points associated with the target question, code change locations, business rule information, dependency information, and historical constraint information related to the candidate knowledge points are obtained from the corresponding evidence clusters. Based on the aforementioned key evidence information, a correct option that uniquely represents the correct understanding result is generated. Incorrect options are generated based on candidate interference data corresponding to the code change event. Candidate interference data may include processing logic of adjacent modules, historical code processing methods, common misunderstandings, and impact information unrelated to the current code change event, etc. By filtering and combining the candidate interference data, incorrect options that are distinguishable from the correct options are generated. Further, the correct and incorrect options are combined to form an answer option set corresponding to the target question set, and the answer identifier corresponding to the correct option is used as the standard answer set. Through the above methods, each target question has a clear source of evidence and a unique answer basis, improving the accuracy and objectivity of the question evaluation results.
[0048] In other embodiments, multiple candidate answers can be automatically generated based on a pre-built answer generation model and key evidence information corresponding to the target question. Candidate interference data is then identified by combining historical change records of code change events, code dependencies, and user error history. Incorrect options are then selected from the candidate answers. Simultaneously, uniqueness and evidence matching checks can be performed on the generated answer option set. When multiple correct answers exist or evidence is insufficient, the corresponding target question is adjusted or deleted. The standard answer set is then determined based on the ultimately retained correct options, thereby further ensuring the uniqueness and reliability of answers during the user comprehension assessment process.
[0049] Optionally, the user understanding assessment result corresponding to the code change event is determined based on the target question set and its corresponding answer option set and standard answer set. This includes: performing multi-dimensional detection processing on each target question in the target question set; wherein, the multi-dimensional detection includes answer uniqueness detection, evidence sufficiency detection, question relevance detection and / or premise dependency detection; in response to the multi-dimensional detection result corresponding to the target question not meeting the preset detection conditions, the target question is deleted from the target question set to obtain an adjusted target question set, so as to determine the user understanding assessment result corresponding to the code change event based on the adjusted target question set.
[0050] In this embodiment, each target question in the target question set is first subjected to multi-dimensional detection processing to determine whether it meets the valid conditions for evaluating user comprehension. Specifically, answer uniqueness detection is used to determine whether there is a unique correct answer in the answer option set corresponding to the target question; evidence sufficiency detection is used to determine whether the key evidence information corresponding to the target question can support the standard answer set; question relevance detection is used to determine whether the target question is related to the current code change event; and prerequisite dependency detection is used to determine whether the target question depends on unprovided external information. When any of the above detection results does not meet the preset detection conditions, the corresponding target question is deleted from the target question set, resulting in an adjusted target question set. Then, the user's answer result is obtained based on the answer option set and standard answer set corresponding to the adjusted target question set, and the user comprehension evaluation result corresponding to the code change event is determined by matching the user's answer information with the standard answer set. Through the above method, the evaluation results can be avoided by questions with ambiguity or insufficient evidence, thereby improving the accuracy and reliability of user comprehension evaluation.
[0051] In another embodiment, after the user completes their response, a comprehensive analysis can be performed based on the user's response information, response time information, answer modification information, and scores corresponding to different levels of comprehension ability to generate a user comprehension assessment result for the code change event. Furthermore, based on the correlation between candidate knowledge points corresponding to different target questions, the user's level of understanding regarding the code change facts, local processing logic, business semantics, system impact, and technical solution trade-offs can be determined, thereby forming a multi-dimensional user comprehension assessment result and enabling continuous evaluation of the user's comprehension ability for different code change events.
[0052] Optionally, the user comprehension assessment result corresponding to the code change event is determined based on the target question set, its corresponding answer option set, and the standard answer set. This includes: sending the target question set and its corresponding answer option set to the user to be assessed corresponding to the code change event; receiving the user's response information to the target question set and its corresponding answer option set; and matching the response information with the standard answer set to obtain the user comprehension assessment result corresponding to the code change event.
[0053] In this embodiment, the target question set and its corresponding answer option set are first sent to the user to be evaluated corresponding to the code change event. Specifically, the user to be evaluated is determined based on the user identifier associated with the code change event, and the target question, answer option, and associated code change information corresponding to the current code change event are sent to the user interface so that the user to be evaluated can answer based on their understanding of the code change event. Then, the answer information generated by the user to be evaluated for the target question set and its corresponding answer option set is received. The answer information includes at least the answer identifier selected by the user, the answer time information, and the answer modification information, etc. Further, the answer information is matched with the standard answer set, and the user's level of understanding is determined based on the correctness of the answers to each target question and the corresponding level of understanding, and a user comprehension evaluation result corresponding to the code change event is generated. Through the above method, the user's level of understanding can be automatically evaluated based on the objective answer results, avoiding subjective differences caused by manual review and improving the efficiency and accuracy of code change event comprehension evaluation.
[0054] Furthermore, weighted analysis can be performed on the evaluation results corresponding to different levels of comprehension ability based on the answers to multiple target questions related to code change events. For example, based on users' scores on questions corresponding to the change facts level, local logic level, business semantic level, system impact level, and architectural trade-off level, the user's level of understanding in different dimensions can be determined, and a comprehensive user comprehension evaluation result can be generated by combining the code change risk level and the importance of knowledge points. Further, based on historical user comprehension evaluation results corresponding to multiple code change events, the trend of user comprehension ability changes can be analyzed to form a continuous evaluation of user comprehension ability.
[0055] Optionally, after determining the user understanding assessment result corresponding to the code change event based on the target question set and its corresponding answer option set and standard answer set, the method further includes: writing the user understanding assessment result corresponding to the code change event into a pre-configured assessment knowledge graph to update the multi-dimensional context dataset based on the assessment knowledge graph.
[0056] In this embodiment, based on the code change location, associated modules, candidate knowledge points, target questions, user answers, and user comprehension assessment results corresponding to a code change event, a corresponding knowledge relationship is constructed. User nodes, code change event nodes, knowledge point nodes, assessment result nodes, and module nodes are then stored together to form an assessment knowledge graph describing the user's comprehension state. Then, based on the newly added relationships in the assessment knowledge graph, the multi-dimensional context dataset is updated, supplementing it with the user's historical comprehension, mastered knowledge points, weak knowledge points, and associated code module information. This information is used for constructing evidence clusters and assessing user comprehension in subsequent code change events. Through this method, the assessment results of a single code change event can be transformed into sustainably usable knowledge information, improving the contextual completeness and accuracy of subsequent assessments.
[0057] In another embodiment, user knowledge profiles, module risk profiles, and code maintainability indicators can be generated based on user comprehension assessment results, and these profiles can be written into the assessment knowledge graph as new knowledge nodes. Simultaneously, the assessment knowledge graph is dynamically updated based on the relationships between different code change events, trends in user comprehension, and knowledge mastery, thereby forming a continuous knowledge accumulation mechanism for personnel, code modules, and knowledge content, improving knowledge reuse and risk identification capabilities during the R&D process.
[0058] According to a preferred embodiment of the present invention, a code submission comprehension assessment system is provided. This system assesses whether the submitting user truly understands the code changes by collecting, normalizing, analyzing evidence correlations, constructing knowledge points, stratifying comprehension abilities, and evaluating objective questions during the code submission process. The system includes a client-side context module, a submission triggering module, a client-side graph organization module, a context normalization unit, an evidence extraction unit, a knowledge point candidate unit, a hierarchical question extraction unit, a standard answer construction unit, an ambiguity resolution unit, a question packaging unit, a question-answering interaction module, a server-side result receiving module, a scoring fusion module, a server-side human-system knowledge graph module, a code hosting platform connection module, and a knowledge maintenance platform connection module. These modules together form a complete assessment process: evidence generates candidate knowledge points, candidate knowledge points generate assessment questions, and the assessment questions and answers determine the user's comprehension assessment result.
[0059] Specifically, the client-side context acquisition module is used to continuously collect interaction data between the user and the intelligent programming product during the intelligent programming process, or according to preset trigger conditions. This includes user-input dialogue content, model content generated by the intelligent programming product, user acceptance or rejection of model-generated content, file editing events, repository structure information, associated code snippets, repository knowledge document reference information, and historical commit reference information. The commit trigger module is used to obtain the commit information corresponding to the current code commit when the user performs a code commit operation, including commit difference information, file list information, function change information, interface change information, and commit description information. The commit trigger operation can be implemented through the commit hook mechanism in the code version management system, integrated development environment events, internal events of the intelligent programming product, callback events of the code hosting platform, or user-initiated triggering methods.
[0060] In this embodiment, the edge-side graph processing module and the context normalization unit are used to uniformly process the collected multi-source context data, converting session history information, submission information, repository code information, knowledge document information, historical submission information, and historical knowledge information returned by the server into evidence objects that can be analyzed in a related manner. Each evidence object is assigned a source identifier, time sequence information, associated file information, associated module information, associated business concept information, and associated technical concept information to indicate the source and relationship of the evidence object in the code change event. Further, the system performs correlation analysis on multiple evidence objects based on the modification target information corresponding to the code change event, aggregating multiple source evidence pointing to the same modification target to form an evidence cluster corresponding to this code change event. Among them, the modification target is used to represent the modification intent common to multiple code modification behaviors in this code submission. For example, when a user needs to modify a function to an idempotent function so that the system behavior remains consistent when the same parameter is called multiple times, the modification target includes not only the code modification of the function itself, but also multiple related modification contents such as related code modifications, code comment modifications, and interface document modifications that call the function. By constructing evidence clusters based on the modification targets, information scattered across different files, modules, and knowledge sources can be linked, avoiding reliance on single code differences for understanding and evaluation, and improving the accuracy of subsequent knowledge point extraction and question generation.
[0061] In this embodiment, the evidence extraction unit is used to extract key evidence information related to the code change event from evidence objects or evidence clusters, including modified file information, modified function information, modified interface information, call chain information, upstream and downstream dependency information, business rule information, historical constraint information, risk signal information, and known sources of misunderstanding information. During the evidence extraction process, the system can filter the evidence information using an intelligent agent combined with preset filtering rules, filtering out content weakly related to the current submission, duplicate content, insufficient evidence, content where the specific code change location cannot be located, content dependent on external conditions not provided, and content that may lead to multiple answers, thereby obtaining key evidence information directly related to the current code change event.
[0062] The knowledge point candidate unit is used to construct candidate knowledge points corresponding to this code submission based on the extracted key evidence information. Candidate knowledge points represent the core technical content that the submitting user needs to understand, and can include at least five categories: the facts of the changes corresponding to the modified content, the local logic corresponding to the code changes, the business semantics involved in the code changes, the system impact of the code changes, and the architectural trade-offs involved in the code changes. The system can also establish corresponding evidence citation relationships, code location association relationships, and risk level information for each candidate knowledge point to ensure that the subsequently generated assessment questions can be linked to the specific code changes.
[0063] In this embodiment, the hierarchical question extraction unit is used to perform hierarchical mapping of candidate knowledge points based on preset comprehension ability levels, and generate a corresponding question set according to the mapping results. The comprehension ability levels include five levels, L1 to L5. L1 represents the code change fact level, L2 represents the code local logic level, L3 represents the business semantic understanding level, L4 represents the system impact understanding level, and L5 represents the architectural trade-off understanding level. The system selects corresponding candidate knowledge points from different comprehension ability levels to generate a question set based on the commit risk, scope of change, contextual completeness, and the submitting user's historical knowledge record corresponding to the code change event. Specifically, the system can use an agent combined with preset rules to determine the impact scope of the code change event and determine the comprehension ability levels to be covered based on the impact scope. When the code change event is a small-scale, low-risk modification, such as involving only a small number of single-module files or single-file function modifications, the system generates a question set covering comprehension ability levels L1 to L3 to assess the submitting user's understanding of the modification facts, local logic, and business semantics. When the code change event involves cross-module modifications, interface modifications, configuration modifications, or global documentation modifications, the system further generates a set of questions covering L4 to L5 comprehension levels to assess the submitting user's understanding of the impact on the system and architectural trade-offs.
[0064] In this embodiment, the standard answer construction unit is used to generate a corresponding set of answer options and a set of standard answers for each question in the question set. The system first determines the correct option based on the key evidence information corresponding to each question, and generates incorrect options based on the candidate interference data corresponding to the current code change event. Incorrect options can originate from adjacent module logic, historical old version logic, common misunderstandings, and information outside the scope of this code submission. The system generates the set of answer options corresponding to each question based on the correct and incorrect options, and generates the set of standard answers based on the correct options.
[0065] Furthermore, the ambiguity resolution unit performs quality checks on the generated question set, including answer uniqueness checks, evidence sufficiency checks, question relevance checks, and prerequisite dependency checks. When the checks find that a question has multiple possible answers, insufficient evidence to support the answer judgment, the question cannot be linked to a specific code change, or the answer dependency does not provide external conditions, the system deletes the question and obtains an adjusted question set. When the evidence is insufficient to generate unambiguous questions, the system can either not generate questions for the corresponding candidate knowledge point or downgrade the questions corresponding to that candidate knowledge point to objective questions at a lower comprehension level, thereby ensuring the accuracy and evaluability of the generated questions' answers.
[0066] The question packaging unit encapsulates the adjusted question set, outputting the question number, question level, question type, question stem, set of answer options, standard answer identifier, evidence citation information, scoring weight, and code submission identifier. The answer interaction module displays the question set to the submitting user and receives the user's answers to the question set. In this embodiment, the question types are objective question sets, including single-choice questions, multiple-choice questions, true / false questions, ranking questions, matching questions, and location questions. Among them, single-choice questions are used to verify a unique fact, a unique cause, or a unique impact path; multiple-choice questions are used to verify multiple influencing factors, multiple dependencies, or multiple constraints; true / false questions are used to verify whether a specified rule or impact is valid; ranking questions are used to verify the processing order and dependency order; matching questions are used to verify the correspondence between module responsibilities, code location, and scope of impact; and location questions are used to determine the target object related to this code submission from candidate files, functions, interfaces, or modules.
[0067] The server-side result receiving module receives the question set, answer identifiers, answer duration, answer modification records, final score, question source evidence information, code submission identifiers, and user identifiers uploaded by the client. The scoring fusion module calculates the user's score at different comprehension levels based on the user's selected answer identifier, the standard answer identifier, and the scoring weights for different questions, without relying on manual judgment based on the user's free text expression. The server-side human-system knowledge graph module updates the relationships between users, system modules, candidate knowledge points, code submission events, questions, answers, and scoring results based on the evaluation results, thereby forming a user comprehension profile and a system module knowledge risk profile. The graph constructed by the client-side graph organization module differs from the server-side human-system knowledge graph. The client-side graph primarily expresses factual relationships in code change events; its nodes include users, files, modules, business concepts, technical concepts, code changes, and knowledge evidence; and its relationships include change relationships, belonging relationships, explanation relationships, and source relationships, used to describe the associations between information related to code change events. The server-side human-system knowledge graph is mainly used to describe the relationship between users and the system. Its nodes include users, the system, and system modules. Its relationships include management relationships, maintenance relationships, and development relationships, which are used to form long-term knowledge connections between users and the system.
[0068] The code hosting platform connection module is used to output the user comprehension assessment results, risk warning information, or submission access control results corresponding to code submissions to the code hosting platform. The knowledge maintenance platform connection module is used to output the document content that needs to be updated, missing knowledge point information, or module knowledge profile information to the knowledge document system, R&D knowledge base, or module knowledge maintenance platform.
[0069] Furthermore, when the client-side context data is insufficient to generate questions that meet the unambiguity requirement, the system can either not generate questions for the corresponding candidate knowledge points or generate basic objective questions at a lower comprehension level. When the server is unavailable, the client-side can generate basic questions based on local cache information and code commit discrepancies, and re-upload the question data and user answers after the network is restored. Through the above fallback mechanism, it is possible to ensure that the uniqueness of question answers, the traceability of evidence, and the automatic calculation of scoring results can still be achieved in different operating environments.
[0070] In this embodiment, the code submission comprehension assessment process includes an intelligent programming product, a client-side processing unit, a server-side knowledge platform, and a code knowledge platform. The process begins with the intelligent programming product generating user dialogue events, code editing events, and code submission events. The client-side processing unit then organizes contextual information and constructs evidence clusters. When the user submits code, comprehension assessment questions are generated, and the user's answers and scores are uploaded to the server. The server-side human-system knowledge graph module then performs knowledge accumulation. The client-side processing unit can be implemented using a software development kit (SDK) integration method or an independent process method. In the SSD integration method, the SSD is embedded in the intelligent programming product through a preset communication protocol, receiving user dialogue events, file editing events, context reference events, and code submission events in real time. It then converts these events into relationships between users, files, modules, business concepts, technical concepts, code changes, and knowledge evidence. In the independent process method, the intelligent programming product sends a context data packet to a local independent process when code is submitted. The independent process parses the context data packet and converts the dialogue content, code modification information, knowledge reference information, and submission identifier into a unified format of evidence objects for subsequent evidence-driven question generation.
[0071] Through the above implementation methods, the present invention can extend the traditional code result-oriented inspection method to the evaluation method based on the user's understanding of the submission. By normalizing multi-source evidence, constructing candidate knowledge points, mapping the level of understanding ability, generating dynamic questions, constructing standard answers, resolving ambiguities, and accumulating knowledge graphs, the present invention can achieve automated evaluation of the understanding of code submissions, improve the quality of code review, reduce knowledge transfer loss, and enhance the long-term maintainability of the R&D system.
[0072] According to a second aspect of the present invention, a user understanding assessment device for code change events is provided.
[0073] Figure 3 This is a schematic diagram of the main modules of a user understanding assessment device for code change events according to an embodiment of the present invention. Figure 3 As shown, the user understanding assessment device 300 for code change events includes: The generation module 301 is used to generate evidence clusters based on the multi-dimensional context dataset corresponding to the code change event; Module 302 is used to construct candidate knowledge points based on evidence clusters and generate a set of candidate questions based on preset comprehension levels and candidate knowledge points; The evaluation module 303 is used to select a target question set from the candidate question set based on the submission feature information corresponding to the code change event, and to construct an answer option set and a standard answer set corresponding to the target question set, so as to determine the user understanding evaluation result corresponding to the code change event based on the target question set and its corresponding answer option set and standard answer set.
[0074] Optionally, the generation module 301 is also used for: The original context data in the multi-dimensional context dataset is normalized to generate multiple evidence objects; Based on pre-determined code change target information, multiple evidence objects are aggregated to obtain an evidence cluster corresponding to the code change event.
[0075] Optionally, the building module 302 is also used for: The evidence clusters are filtered based on preset screening criteria; Key evidence information is determined based on the filtered evidence clusters, and candidate knowledge points are constructed based on the key evidence information. Candidate knowledge points are mapped hierarchically according to the preset comprehension level to obtain a set of candidate questions.
[0076] Optionally, the evaluation module 303 is also used for: Identify the key evidence information corresponding to each target question in the target question set, and generate the correct option for the target question based on the key evidence information corresponding to the target question. Based on the candidate interference data corresponding to the obtained code change events, generate incorrect options corresponding to the target question; Generate a set of answer options corresponding to the target set of questions based on the correct and incorrect options, and generate a set of standard answers corresponding to the target set of questions based on the correct options.
[0077] Optionally, the evaluation module 303 is also used for: Each target question in the target question set undergoes multi-dimensional detection processing; the multi-dimensional detection includes answer uniqueness detection, evidence sufficiency detection, question relevance detection, and / or premise dependency detection; If the multi-dimensional detection results corresponding to the target question do not meet the preset detection conditions, the target question is removed from the target question set to obtain an adjusted target question set. The user understanding assessment result corresponding to the code change event is then determined based on the adjusted target question set.
[0078] Optionally, the evaluation module 303 is also used for: Send the target question set and its corresponding answer option set to the user whose code change event is to be evaluated. Receive the responses from users to be evaluated to a target set of questions and their corresponding set of answer options; The user comprehension assessment results for the code change event are obtained by matching the response information with the set of standard answers.
[0079] Optionally, the user understanding assessment device 300 for code change events also includes an update module, which is further used for: The user understanding assessment results corresponding to the code change event are written into a pre-configured assessment knowledge graph to update the multi-dimensional context dataset based on the assessment knowledge graph.
[0080] It should be noted that the specific implementation details of the user understanding assessment device for code change events in this invention have been described in detail in the above-mentioned user understanding assessment method for code change events, so the content will not be repeated here.
[0081] According to a third aspect of the present invention, an electronic device is provided, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the present invention.
[0082] According to a fourth aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method provided in the first aspect of the present invention.
[0083] According to a fifth aspect of the present invention, a computer program product is provided, including a computer program that, when executed by a processor, implements the method provided in the first aspect of the present invention.
[0084] Figure 4 An exemplary system architecture 400 is shown that can be applied to the user understanding assessment method or device for code change events according to embodiments of the present invention.
[0085] like Figure 4As shown, system architecture 400 may include terminal devices 401, 402, and 403, a network 404, and a server 405. Network 404 serves as the medium for providing communication links between terminal devices 401, 402, and 403 and server 405. Network 404 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0086] Users can use terminal devices 401, 402, and 403 to interact with server 405 via network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, and 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).
[0087] Terminal devices 401, 402, and 403 can be various electronic devices with displays that support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0088] Server 405 can be a server providing various services, such as a backend management server supporting shopping websites browsed by users using terminal devices 401, 402, and 403 (for example only). The backend management server can analyze and process data such as user understanding assessment requests for received code change events, and feed back the user understanding assessment results of the code change events (e.g., user understanding assessment results - for example only) to the terminal devices.
[0089] It should be noted that the user understanding assessment method for code change events provided in this embodiment of the invention is generally run by server 405, and correspondingly, the user understanding assessment device for code change events is generally set in server 405.
[0090] It should be understood that Figure 4 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0091] The following is for reference. Figure 5 It shows a schematic diagram of the structure of a computer system 500 suitable for implementing a terminal device of the present invention. Figure 5 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0092] like Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 502 or programs loaded from storage section 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the system 500. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0093] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. Drive 510 is also connected to I / O interface 505 as needed. Removable media 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 510 as needed so that computer programs read from them can be installed into storage section 508 as needed.
[0094] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is run by the central processing unit (CPU) 501, it performs the functions defined above in the system of this invention.
[0095] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit programs for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0096] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more operable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually operate substantially in parallel, and they may sometimes operate in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0097] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be housed in a processor; for example, a processor can be described as including a generation module, a construction module, and an evaluation module. The names of these modules do not necessarily limit the module itself; for example, the generation module can also be described as "a module for generating evidence clusters based on a multi-dimensional context dataset corresponding to a code change event."
[0098] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to include: generating an evidence cluster based on a multi-dimensional context dataset corresponding to a code change event; constructing candidate knowledge points based on the evidence clusters; generating a candidate question set based on a preset comprehension level and the candidate knowledge points; selecting a target question set from the candidate question set based on the obtained submission feature information corresponding to the code change event; and constructing an answer option set and a standard answer set corresponding to the target question set, so as to determine the user comprehension evaluation result corresponding to the code change event based on the target question set and its corresponding answer option set and standard answer set.
[0099] The computer program product provided in this embodiment of the invention includes a computer program that, when executed by a processor, implements the user understanding assessment method for code change events in this embodiment of the invention.
[0100] The technical solution of this invention has the following advantages or beneficial effects: It generates evidence clusters based on a multi-dimensional context dataset corresponding to a code change event; constructs candidate knowledge points based on the evidence clusters; generates a candidate question set based on a preset comprehension level and candidate knowledge points; selects a target question set from the candidate question set based on the obtained submission feature information corresponding to the code change event; and constructs an answer option set and a standard answer set corresponding to the target question set, so as to determine the user comprehension assessment result corresponding to the code change event based on the target question set and its corresponding answer option set and standard answer set. This embodiment analyzes the multi-dimensional context data corresponding to the code change event and constructs evidence clusters, generates targeted assessment questions based on the comprehension level, and automatically assesses the user's comprehension level based on the standard answers, thereby effectively identifying whether developers understand the code change content and its scope of impact, and improving the accuracy of identifying potential risks in code execution.
[0101] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
[0102] It should be noted that the acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
Claims
1. A method for evaluating a user's understanding of a code change event, characterized by, include: Generate evidence clusters based on the multi-dimensional context dataset corresponding to code change events; Candidate knowledge points are constructed based on the evidence clusters, and a set of candidate questions is generated based on the preset comprehension level and the candidate knowledge points. Based on the submission feature information corresponding to the obtained code change event, a target question set is selected from the candidate question set, and an answer option set and a standard answer set corresponding to the target question set are constructed, so as to determine the user comprehension evaluation result corresponding to the code change event based on the target question set and its corresponding answer option set and standard answer set.
2. The method of claim 1, wherein, Evidence clusters are generated based on the multi-dimensional context dataset corresponding to the code change event, including: The original context data in the multi-dimensional context dataset is normalized to generate multiple evidence objects; Based on the predetermined code change target information, the multiple evidence objects are aggregated to obtain an evidence cluster corresponding to the code change event.
3. The method according to claim 1, characterized in that, Candidate knowledge points are constructed based on the evidence clusters, and a set of candidate questions is generated based on preset comprehension levels and the candidate knowledge points, including: The evidence clusters are filtered based on preset filtering conditions; Key evidence information is determined based on the filtered evidence clusters, and candidate knowledge points are constructed based on the key evidence information. The candidate knowledge points are mapped hierarchically according to the preset comprehension level to obtain a set of candidate questions.
4. The method according to claim 3, characterized in that, Constructing the answer option set and standard answer set corresponding to the target question set, including: Determine the key evidence information corresponding to each target question in the target question set, and generate the correct option corresponding to the target question based on the key evidence information corresponding to the target question; Based on the candidate interference data corresponding to the obtained code change event, generate incorrect options corresponding to the target question; Based on the correct and incorrect options, generate an answer option set corresponding to the target question set, and generate a standard answer set corresponding to the target question set based on the correct options.
5. The method according to claim 4, characterized in that, Based on the target question set, its corresponding answer option set, and the standard answer set, the user comprehension assessment result corresponding to the code change event is determined, including: Each target question in the target question set undergoes multi-dimensional detection processing; wherein, the multi-dimensional detection includes answer uniqueness detection, evidence sufficiency detection, question relevance detection, and / or premise dependency detection; In response to the multi-dimensional detection results corresponding to the target question not meeting the preset detection conditions, the target question is deleted from the target question set to obtain an adjusted target question set, so as to determine the user understanding evaluation result corresponding to the code change event based on the adjusted target question set.
6. The method according to claim 1, characterized in that, Based on the target question set, its corresponding answer option set, and the standard answer set, the user comprehension assessment result corresponding to the code change event is determined, including: Send the target question set and its corresponding answer option set to the user to be evaluated corresponding to the code change event; Receive the response information from the user to be evaluated for the target question set and its corresponding answer option set; The response information and the set of standard answers are matched to obtain the user comprehension assessment result corresponding to the code change event.
7. The method according to claim 1, characterized in that, After determining the user comprehension assessment result corresponding to the code change event based on the target question set, its corresponding answer option set, and the standard answer set, the process also includes: The user understanding assessment results corresponding to the code change event are written into a pre-configured assessment knowledge graph to update the multi-dimensional context dataset based on the assessment knowledge graph.
8. A device for evaluating user understanding of code change events, characterized in that, include: The generation module is used to generate evidence clusters based on the multi-dimensional context dataset corresponding to code change events; The construction module is used to construct candidate knowledge points based on the evidence cluster and generate a candidate question set based on a preset comprehension level and the candidate knowledge points; The evaluation module is used to select a target question set from the candidate question set based on the submission feature information corresponding to the obtained code change event, and to construct an answer option set and a standard answer set corresponding to the target question set, so as to determine the user comprehension evaluation result corresponding to the code change event based on the target question set and its corresponding answer option set and standard answer set.
9. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.
10. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.
11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-7.
