# US 2020/0394264 A1 · Detecting programming language deficiencies cognitively

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0394264 A1
- Document ID: US20200394264A1
- Status: Published application
- Kind: A1
- Application number: 16/437,545
- Filed: 2019-06-11
- Published: 2020-12-17
- Earliest claimed: 2019-06-11
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Siddharth K. Saraya; Manish Kataria; Kushal Mukherjee; Rajmeet S Singh Bal
- Web page: https://patentgrep.com/patent/US20200394264A1

## CPC

- G06F 40/216: using statistical methods
- G06F 40/30: Semantic analysis
- G06F 8/75: Structural analysis for program understanding
- G06F 16/30: of unstructured textual data (document management systems G06F16/93)
- G06F 40/12: Use of codes for handling textual entities
- G06N 5/04: Inference or reasoning models
- G06N 20/00: Machine learning
- G06F 8/30: Creation or generation of source code
- G06F 8/31: {Programming languages or programming paradigms}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method and a system for agitation detection and response for a programming language. The method includes collecting software code and activity data pertaining to one or more activities performed by a developer that is using a segment of a programming language. The method also includes evaluating the activity data to generate an agitation level of the developer when using the segment of the programming language. The method can also include generating a developer context by evaluating the software code. The developer context can include insights into the operation of features in the programming language by the developer. The activity and developer context can be provided to a software development provider for independent analysis.

## Claims

### Claim 1

An agitation detection and response system, comprising:
a developer analyzer configured to capture activities perform by a developer;
an agitator configured to generate an agitation level of the developer based on the activities;
a code analyzer configured to capture software code written by the developer as the activities were performed and to generate a developer context based at least partially on the software code, wherein the developer context includes insight in the software code written by the developer; and
a machine learning component configured to generate an agitation cause based at least partially on the agitation level and the developer context.

### Claim 2 (depends on 1)

The system of claim 1, wherein the developer analyzers includes a cursor movement analyzer, a developer gaze sensor, and physical sensors configured to detect the activities.

### Claim 3 (depends on 1)

The system of claim 1, wherein the developer context includes developer comments and source code.

### Claim 4 (depends on 1)

The system of claim 1, further comprising:
a notifier configured to receive a response from a developer community server and a personalized notification from a software development provider.

### Claim 5 (depends on 1)

The system of claim 1, further comprising:
a server configured to aggregate the developer context and the agitation level, the server further configured generate aggregated data based on the developer context and the agitation level.

### Claim 6 (depends on 5)

The system of claim 5, wherein the server is further configured to generate data statistics based on the aggregated data.

### Claim 7

A method comprising:
collecting software code and activity data pertaining to one or more activities performed by a developer using a segment of a programming language;
evaluating the activity data to generate an agitation level, wherein the agitation level relates to the developer when the developer uses the segment;
generating a developer context by evaluating the software code; and
providing the agitation level and the developer context to a software development provider.

### Claim 8 (depends on 7)

The method of claim 7, wherein generating the developer context comprises:
separating the software code by developer comments and lines of code;
analyzing the developer comments and the lines of code; and
creating the developer context from analyzing the developer comments and the lines of code.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
generating an agitation cause based on the agitation level and the developer context;
sending the agitation cause to a developer community server;
retrieving a community response from the developer community server; and
providing the community response to the developer.

### Claim 10 (depends on 7)

The method of claim 7, further comprising:
aggregating the developer context and the agitation level onto a server to generate aggregated data, wherein the aggregated data includes similar data from other developers using the programming language; and
providing anonymized statistical data based on the aggregated data to the software development provider.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
generating data statistics based on the aggregated data;
comparing the data statistics with a second data statistic of a different programming language to generate a language comparison; and
providing the language comparison to the software development provider.

### Claim 12 (depends on 7)

The method of claim 7, further comprising:
comparing the agitation level with an agitation benchmark to determine a deviation, wherein the agitation benchmark relates to an average agitation level corresponding to the activities a typical developer experiences when using the segment of the programming language;
generating a course of action by evaluating the deviation and the activities, wherein the course of action reduces the deviation; and
providing the course of action to the software development provider.

### Claim 13 (depends on 12)

The method of claim 12, wherein the agitation benchmark is adjusted to correspond to a skill level of the developer.

### Claim 14 (depends on 7)

The method of claim 7, further comprising:
receiving an update notification regarding the segment of the programming language; and
providing the developer with the update notification.

### Claim 15 (depends on 7)

The method of claim 7, wherein a portion of the software code is annotated by the developer to prevent analysis of the portion of the software code.

### Claim 16

A computer program product for agitation detection, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
collect software code and activity data pertaining to one or more activities performed by a developer using a segment of a programming language;
evaluate the activity data to generate an agitation level, wherein the agitation level relates to the developer when the developer uses the segment;
generate a developer context by evaluating the software code; and
provide the agitation level and the developer context to a software development provider.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the program instructions configured to generate the developer context further comprise instructions to cause the processor to:
separate the software code by developer comments and lines of code;
analyze the developer comments and the lines of code; and
create the developer context from analyzing the developer comments and the lines of code.

### Claim 18 (depends on 16)

The computer program product of claim 16, further comprising program instructions to cause the processor to:
generate an agitation cause based on the agitation level and the developer context;
send the agitation cause to a developer community server;
retrieve a community response from the developer community server; and
provide the community response to the developer.

### Claim 19 (depends on 16)

The computer program product of claim 16, further comprising program instructions to cause the processor to:
aggregate the developer context and the agitation level onto a server to generate aggregated data, wherein the aggregated data includes similar data from other developers using the programming language; and
provide anonymized statistical data based on the aggregated data to the software development provider.

### Claim 20 (depends on 19)

The computer program product of claim 19, further comprising program instructions to cause the processor to:
generate data statistics based on the aggregated data;
compare the data statistics with a second data statistic of a different programming language to generate a language comparison; and
provide the language comparison to the software development provider.
