Analytic and layer-based augmentation of code reviews
US-2017249231-A1 · Aug 31, 2017 · US
US10540252B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-10540252-B2 |
| Application number | US-201715833764-A |
| Country | US |
| Kind code | B2 |
| Filing date | Dec 6, 2017 |
| Priority date | Feb 29, 2016 |
| Publication date | Jan 21, 2020 |
| Grant date | Jan 21, 2020 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
A computer system may identify a source code for a program. The source code may include one or more instructions. The computer system may then receive a selection of two or more assessment metrics for evaluating the source code. The computer system may then generate an assessment score for each instruction in the source code based on the two or more assessment metrics. The computer system may then provide an assessment score indicator to for each instruction in the source code.
Opening claim text (preview).
What is claimed is: 1. A computer-implemented method, the method comprising: identifying, by a processor, source code for a program, the source code including one or more changed instructions; receiving, from a user, a selection of two or more assessment metrics for evaluating the source code; combining the two or more assessment metrics, thereby creating a custom metric; generating an assessment score for the one or more changed instructions in the source code according to the combination of the two or more assessment metrics; providing, to the user, an assessment score indicator for at least one changed instruction in the source code; identifying a first changed instruction, the first changed instruction being configured to perform a first function; identifying, automatically by the processor, a first reference instruction; determining, by executing the source code in a sandbox environment to identify the first function of the first changed instruction, that the first reference instruction is configured to perform the same first function as the first changed instruction; alerting the user that the first reference instruction corresponds to the first changed instruction; and replacing the first changed instruction with the first reference instruction. 2. The method of claim 1 , wherein the source code includes the first changed instruction, the two or more assessment metrics include a first and a second assessment metric, and wherein the generating the assessment score comprises: determining a first metric score for the first changed instruction, wherein the first metric score corresponds to the first assessment metric of the selected two or more assessment metrics; determining a second metric score for the first changed instruction, wherein the second metric score corresponds to the second assessment metric of the selected two or more assessment metrics; and combining the first metric score and the second metric score. 3. The method of claim 1 , wherein the generating the assessment score for the one or more changed instructions comprises: determining a set of metric scores for the one or more changed instructions, wherein each metric score corresponds to an associated assessment metric of the selected two or more assessment metrics; determining a weighting coefficient for each metric score, the weighting coefficient being based on a relationship between the selected two or more assessment metrics; weighting the set of metric scores according to the weighting coefficients; and combining the weighted metric scores for the one or more changed instructions. 4. The method of claim 1 , wherein the receiving the selection of two or more assessment metrics comprises: providing the user with a list of assessment metrics; and prompting the user to select the two or more assessment metrics from the list of assessment metrics to be combined, the user thereby creating the custom metric. 5. The method of claim 1 , wherein the providing, to the user, the assessment score indicator for the at least one changed instruction comprises: generating a visual signal of the assessment score for the at least one changed instruction; and outputting the visual signal of the assessment score for the at least one changed instruction to an output device. 6. The method of claim 5 , wherein the visual signal of the assessment score includes a visual overlay superimposed on the at least one changed instruction and includes a font color, and wherein the outputting comprises: modifying the font color for the at least one changed instruction according to the assessment score. 7. A system comprising: an input device; an output device; a memory; a processor in communication with the memory, the processor being configured to perform a method comprising: identifying source code for a program, the source code including one or more changed instructions; receiving, from a user, a selection of two or more assessment metrics for evaluating the source code; combining the two or more assessment metrics, thereby creating a custom metric; generating an assessment score for the one or more changed instructions in the source code according to the combination of the two or more assessment metrics; providing, to the user, an assessment score indicator for at least one changed instruction in the source code; identifying a first changed instruction, the first changed instruction being configured to perform a first function; identifying a first reference instruction; determining, by executing the source code in a sandbox environment to identify the first function of the first changed instruction, that the first reference instruction is configured to perform the same first function as the first changed instruction; alerting the user that the first reference instruction corresponds to the first changed instruction; and replacing the first changed instruction with the first reference instruction. 8. The system of claim 7 , wherein the source code includes the first changed instruction, the two or more assessment metrics include a first and a second assessment metric, and wherein the generating the assessment score comprises: determining a first metric score for the first changed instruction, wherein the first metric score corresponds to the first assessment metric of the selected two or more assessment metrics; determining a second metric score for the first changed instruction, wherein the second metric score corresponds to the second assessment metric of the selected two or more assessment metrics; and combining the first metric score and the second metric score. 9. The system of claim 7 , wherein the generating the assessment score for the one or more changed instructions comprises: determining a set of metric scores for the one or more changed instructions, wherein each metric score corresponds to an associated assessment metric of the selected two or more assessment metrics; determining a weighting coefficient, the weighting coefficient being based on a relationship between the selected two or more assessment metrics; weighting the set of metric scores according to the weighting coefficients; and combining the weighted metric scores for the one or more changed instructions. 10. The system of claim 7 , wherein the receiving the selection of two or more assessment metrics comprises: providing the user with a list of assessment metrics; and prompting the user to select the two or more assessment metrics from the list of assessment metrics to be combined, the user thereby creating the custom metric. 11. The system of claim 7 , wherein the providing, to the user, the assessment score indicator for the at least one changed instruction comprises: generating a visual signal of the assessment score for the at least one changed instruction; and outputting the visual signal of the assessment score for the at least one changed instruction to the output device. 12. The system of claim 11 , wherein the visual signal of the assessment score includes a visual overlay superimposed on the at least one changed instruction and includes a font color, and wherein the outputting comprises: modifying the font color for the at least one changed instruction according to the assessment score. 13. A computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform a method, the method comprising: identifying, by a processor, source code for a program, the source code including one or more changed instructions;
Analysis of software for verifying properties of programs (testing of software G06F11/3668) · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.