Automatic comment editing for a smart integrated development environment

US9733933B1 · US · B1

Patent metadata
FieldValue
Publication numberUS-9733933-B1
Application numberUS-201615269105-A
CountryUS
Kind codeB1
Filing dateSep 19, 2016
Priority dateSep 19, 2016
Publication dateAug 15, 2017
Grant dateAug 15, 2017

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Disclosed herein are methods, systems, and computer program products for automatically identifying a comment change deficiency by a code editing component executed by a processor. The automatic identification of the comment changes includes determining whether one or more character changes exist between a first code version and a second code version and determining whether one or more logical changes exist between the first code version and the second code version. Note that the first code comment relates to the character or the logical changes within the first code version. Further, the automatic identification of the comment changes includes identifying the at least one comment related to the character or the logical changes and generating a notification including the at least one comment.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer-implemented method of automatically identifying a comment change deficiency by a code editing component executed by a processor, the method comprising: determining, automatically by the processor, whether one or more character changes exist between a first code version and a second code version, wherein the one or more character changes comprise when a character count at a first location of the first code version is different than a character count at a second location of the second code version by a threshold difference, the first and second locations being within the first and second code versions, wherein the first location of the first code version indicates a same line or block of code corresponding to the second location of the second code version and the first and second locations are not the first or last line or block of code in the first or second code versions; determining, automatically by the processor, whether one or more logical changes exist between the first code version and the second code version; identifying, automatically by the processor, whether the comment change deficiency exists by locating and comparing a first character count of a first code comment and a second character count of a second code comment, wherein the first and second code comments relate to the characters or logical changes within the respective first and second code versions; generating, automatically by the processor, one or more notifications identifying the comment change deficiency when the difference of the first character count and the second character count is less than a second threshold, wherein the code editing component comprises a plug-in of an integrated development environment managing the first code version and the second code version, wherein the one or more logical changes comprise: a change in code context from the first code version to the second code version, wherein 1) the change in code context is based on the one or more character changes existing and 2) the one or more character changes (i) take into account special characters and spaces and (ii) cause a change to code grammar; generating, automatically by the processor, one or more suggestions regarding the comment change deficiency; and transmitting, automatically by the processor, the generated one or more notifications and suggestions to the integrated development environment. 2. The method of claim 1 , wherein the determining of whether the one or more character changes exist comprises: repeatedly analyzing the first code version and the second code version at increasing levels of granularity for the one or more character changes. 3. The method of claim 2 , wherein a first level of the levels of granularity is a code block, and wherein a second level of the levels of granularity is a code line. 4. The method of claim 1 , wherein the threshold difference is a set at a 10%. 5. A computer program product, the computer program product comprising a non-transitory computer readable storage medium having program instructions for automatically identifying a comment change deficiency embodied therewith, the program instructions executable as a code editing component and by a processor to cause the processor to perform: determining, automatically, whether one or more character changes exist between a first code version and a second code version, wherein the one or more character changes comprise when a character count at a first location of the first code version is different than a character count at a second location of the second code version by a threshold difference, the first and second locations being within the first and second code versions, wherein the first location of the first code version indicates a same line or block of code corresponding to the second location of the second code version and the first and second locations are not the first or last line or block of code in the first or second code versions; determining, automatically, whether one or more logical changes exist between the first code version and the second code version; identifying, automatically, whether the comment change deficiency exists by locating and comparing a first character count of a first code comment and a second character count of a second code comment, wherein the first and second code comments relate to the characters or logical changes within the respective first and second code versions; generating, automatically, one or more notifications identifying the comment change deficiency when the difference of the first character count and the second character count is less than a second threshold, wherein the code editing component comprises a plug-in of an integrated development environment managing the first code version and the second code version, wherein the one or more logical changes comprise: a change in code context from the first code version to the second code version, wherein 1) the change in code context is based on the one or more character changes existing and 2) the one or more character changes (i) take into account special characters and spaces and (ii) cause a change to code grammar; generating, automatically by the processor, one or more suggestions regarding the comment change deficiency; and transmitting, automatically by the processor, the generated one or more notifications and suggestions to the integrated development environment. 6. The computer program product of claim 5 , wherein the determining of whether the one or more character changes exist comprises: repeatedly analyzing the first code version and the second code version at increasing levels of granularity for the one or more character changes. 7. The computer program product of claim 6 , wherein a first level of the levels of granularity is a code block, and wherein a second level of the levels of granularity is a code line. 8. A system, comprising a processor and a memory storing program instructions for automatically identifying a comment change deficiency thereon, the program instructions executable as a code editing component by a processor to cause the system to perform: determining, automatically, whether one or more character changes exist between a first code version and a second code version, wherein the one or more character changes comprise when a character count at a first location of the first code version is different than a character count at a second location of the second code version by a threshold difference, the first and second locations being within the first and second code versions, wherein the first location of the first code version indicates a same line or block of code corresponding to the second location of the second code version and the first and second locations are not the first or last line or block of code in the first or second code versions; determining, automatically, whether one or more logical changes exist between the first code version and the second code version; identifying, automatically, whether the comment change deficiency exists by locating and comparing a first character count of a first code comment and a second character count of a second code comment, wherein the first and second code comments relate to the characters or logical changes within the respective first and second code versions; generating, automatically, one or more notifications identifying the comment change deficiency when the difference of the first character count and the second character count is less than a second threshold, wherein the code editing component comprises a plug-in of an integrated development environment managing the first code version and the second code version, wherein the one or more logical changes comprise: a

Assignees

Inventors

Classifications

  • Calculation of difference between files · CPC title

  • Intelligent editors · CPC title

  • G06F8/73Primary

    Program documentation · CPC title

  • Version control (security arrangements therefor G06F21/57); Configuration management · CPC title

  • Physics · mapped topic

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9733933B1 cover?
Disclosed herein are methods, systems, and computer program products for automatically identifying a comment change deficiency by a code editing component executed by a processor. The automatic identification of the comment changes includes determining whether one or more character changes exist between a first code version and a second code version and determining whether one or more logical c…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F8/73. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Aug 15 2017 00:00:00 GMT+0000 (Coordinated Universal Time) (B1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 3 related publications on this page (citations in our corpus or others sharing the same primary CPC).