# US 11,119,759 B2 · Self-learning code conflict resolution tool

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

- Number: US 11,119,759 B2
- Document ID: US11119759B2
- Status: Granted
- Kind: B2
- Application number: 16/718,580
- Filed: 2019-12-18
- Published: 2021-06-24
- Granted: 2021-09-14
- Earliest claimed: 2019-12-18
- Assignees: Bank of America Corporation
- Applicants: Bank of America Corporation
- Inventors: Harikrishna Samudrala
- Web page: https://patentgrep.com/patent/US11119759B2

## CPC

- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An apparatus includes a memory and a processor configured to merge a first code branch and a second code branch of a code development project. The memory stores a machine learning model. The processor identifies a first conflict and a second conflict between the first code branch and the second code branch. The processor uses a machine learning model to determine a resolution for the first conflict based in part on a set of requirements for the code development project. The processor then applies the resolution to the integrated code. After resolving the first conflict, the processor uses the machine learning model to determine a resolution for the second conflict based in part on the set of requirements for the code development project and the resolution for the first conflict. The processor then applies the resolution for the second conflict to the integrated code.

## Claims

### Claim 1

An apparatus comprising:
a memory configured to store a machine learning model; and
a hardware processor communicatively coupled to the memory, the hardware processor configured to:
access a first database configured to store a code development project comprising:
a code trunk comprising a plurality of blocks of code;
a first code branch comprising a first modified copy of the code trunk; and
a second code branch comprising a second modified copy of the code trunk;
copy the first code branch and the second code branch from the first database;
merge the first code branch and the second code branch into an integrated code, wherein merging the first code branch and the second code branch into the integrated code comprises:
identifying a first conflict between the first code branch and the second code branch, the first conflict indicating that a first code block of the first code branch is inconsistent with a first code block of the second code branch;
identifying a second conflict between the first code branch and the second code branch, the second conflict indicating that a second code block of the first code branch is inconsistent with a second code block of the second code branch;
applying the machine learning model to the first conflict, the machine learning model configured to determine a resolution for the first conflict based in part on a set of requirements for the code development project;
in response to applying the machine learning model to the first conflict:
applying the resolution for the first conflict to the integrated code;
applying the machine learning model to the second conflict, the machine learning model configured to determine a resolution for the second conflict based in part on the set of requirements for the code development project and the resolution for the first conflict; and
in response to applying the machine learning model to the second conflict, applying the resolution for the second conflict to the integrated code; and
store the integrated code in the first database.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein merging the first code branch and the second code branch into the integrated code further comprises:
identifying a third conflict between the first code branch and the second code branch, the third conflict indicating that a third code block of the first code branch is inconsistent with a third code block of the second code branch;
in response to applying the machine learning model to the first conflict and applying the machine learning model to the second conflict, applying the machine learning model to the third conflict, the machine learning model configured to determine a resolution for the third conflict based in part on the set of requirements for the code development project and the resolution for the second conflict; and
applying the resolution for the third conflict to the integrated code.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein:
the code trunk comprises a previous version of the code development project; and
storing the integrated code in the first database comprises storing the integrated code in the first database as a new version of the code development project.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the processor is further configured to:
receive a request for the new version of the code development project from a user; and
in response to receiving the request for the new version of the code development project, transmit the new version of the code development project to the user.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the machine learning model comprises a recurrent neural network, long short-term memory model.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the hardware processor is further configured to train the machine learning model to resolve the first conflict and the second conflict, based at least on the code development project and the set of requirements for the code development project.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein training the machine learning model comprises providing the machine learning model with a set of mappings between the code development project and the set of requirements, each mapping of the set of mappings between a code block of the code development project and a requirement of the set of requirements.

### Claim 8

A method for merging a first code branch and a second code branch into an integrated code, the method comprising:
identifying a first conflict between the first code branch and the second code branch, the first conflict indicating that a first code block of the first code branch is inconsistent with a first code block of the second code branch, wherein:
the first code branch comprises a first modified copy of a code trunk comprising a plurality of blocks of code;
the second code branch comprises a second modified copy of the code trunk; and
a code development project comprises the code trunk, the first code branch, and the second code branch;
identifying a second conflict between the first code branch and the second code branch, the second conflict indicating that a second code block of the first code branch is inconsistent with a second code block of the second code branch;
applying a machine learning model to the first conflict, the machine learning model configured to determine a resolution for the first conflict based in part on a set of requirements for the code development project; and
in response to applying the machine learning model to the first conflict:
applying the resolution for the first conflict to the integrated code;
applying the machine learning model to the second conflict, the machine learning model configured to determine a resolution for the second conflict based in part on the set of requirements for the code development project and the resolution for the first conflict; and
in response to applying the machine learning model to the second conflict, applying the resolution for the second conflict to the integrated code.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
identifying a third conflict between the first code branch and the second code branch, the third conflict indicating that a third code block of the first code branch is inconsistent with a third code block of the second code branch;
in response to applying the machine learning model to the first conflict and applying the machine learning model to the second conflict, applying the machine learning model to the third conflict, the machine learning model configured to determine a resolution for the third conflict based in part on the set of requirements and the resolution for the second conflict; and
applying the resolution for the third conflict to the integrated code.

### Claim 10 (depends on 8)

The method of claim 8, further comprising storing the integrated code as a new version of the code development project, wherein the code trunk comprises a previous version of the code development project.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
receiving a request for the new version of the code development project from a user; and
in response to receiving the request for the new version of the code development project, transmitting the new version of the code development project to the user.

### Claim 12 (depends on 8)

The method of claim 8, wherein the machine learning model comprises a recurrent neural network, long short-term memory model.

### Claim 13 (depends on 8)

The method of claim 8, further comprising training the machine learning model to resolve the first conflict and the second conflict, based at least on the code development project and the set of requirements for the code development project.

### Claim 14 (depends on 13)

The method of claim 13, wherein training the machine learning model comprises providing the machine learning model with a set of mappings between the code development project and the set of requirements, each mapping of the set of mappings between a code block of the code development project and a requirement of the set of requirements.

### Claim 15

A system comprising:
a first database configured to store a code development project comprising:
a code trunk comprising a plurality of blocks of code;
a first code branch comprising a first modified copy of the code trunk; and
a second code branch comprising a second modified copy of the code trunk;
a second database configured to store a set of requirements for the code development project;
a memory configured to store a machine learning model; and
a hardware processor communicatively coupled to the memory, the hardware processor configured to:
access the first database;
copy the first code branch and the second code branch from the first database;
merge the first code branch and the second code branch into an integrated code, wherein merging the first code branch and the second code branch into the integrated code comprises:
identifying a first conflict between the first code branch and the second code branch, the first conflict indicating that a first code block of the first code branch is inconsistent with a first code block of the second code branch;
identifying a second conflict between the first code branch and the second code branch, the second conflict indicating that a second code block of the first code branch is inconsistent with a second code block of the second code branch;
applying the machine learning model to the first conflict, the machine learning model configured to determine a resolution for the first conflict based in part on the set of requirements;
in response to applying the machine learning model to the first conflict:
applying the resolution for the first conflict to the integrated code;
applying the machine learning model to the second conflict, the machine learning model configured to determine a resolution for the second conflict based in part on the set of requirements and the resolution for the first conflict; and
in response to applying the machine learning model to the second conflict, applying the resolution for the second conflict to the integrated code; and
store the integrated code in the first database.

### Claim 16 (depends on 15)

The system of claim 15, wherein merging the first code branch and the second code branch into the integrated code further comprises:
identifying a third conflict between the first code branch and the second code branch, the third conflict indicating that a third code block of the first code branch is inconsistent with a third code block of the second code branch;
in response to applying the machine learning model to the first conflict and applying the machine learning model to the second conflict, applying the machine learning model to the third conflict, the machine learning model configured to determine a resolution for the third conflict based in part on the set of requirements and the resolution for the second conflict; and
applying the resolution for the third conflict to the integrated code.

### Claim 17 (depends on 15)

The system of claim 15, wherein:
the code trunk comprises a previous version of the code development project; and
storing the integrated code in the first database comprises storing the integrated code in the first database as a new version of the code development project.

### Claim 18 (depends on 17)

The system of claim 17, wherein the processor is further configured to:
receive a request for the new version of the code development project from a user; and
in response to receiving the request for the new version of the code development project, transmit the new version of the code development project to the user.

### Claim 19 (depends on 15)

The system of claim 15, wherein the machine learning model comprises a recurrent neural network, long short-term memory model.

### Claim 20 (depends on 15)

The system of claim 15, wherein the hardware processor is further configured to train the machine learning model to resolve the first conflict and the second conflict, based at least on a set of mappings between the code development project and the set of requirements, each mapping of the set of mappings between a code block of the code development project and a requirement of the set of requirements.
