# US 11,119,898 B1 · Automatic code coverage file recommendation

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

- Number: US 11,119,898 B1
- Document ID: US11119898B1
- Status: Granted
- Kind: B1
- Application number: 16/868,593
- Filed: 2020-05-07
- Granted: 2021-09-14
- Earliest claimed: 2020-05-07
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Liujia Shao; Yan Luo; Yan Xu; Sibin Fan
- Web page: https://patentgrep.com/patent/US11119898B1

## CPC

- G06F 11/3676: {for coverage analysis}
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F 18/23: Clustering techniques
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for automatic code coverage file recommendation are described herein. An aspect includes receiving historical code coverage data. Another aspect includes clustering the historical code coverage data. Another aspect includes performing content filtering based on the clustered historical code coverage data to determine a content filtering preferred file list. Another aspect includes performing collaborative filtering based on the clustered historical code coverage data to determine a collaborative filtering preferred file list. Another aspect includes combining the content filtering preferred file list and the collaborative filtering preferred file list to determine a code coverage file recommendation list. Another aspect includes providing the code coverage file recommendation list to a user.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving, by a processor, historical code coverage data;
clustering the historical code coverage data;
performing content filtering based on the clustered historical code coverage data to determine a content filtering preferred file list;
performing collaborative filtering based on the clustered historical code coverage data to determine a collaborative filtering preferred file list;
combining the content filtering preferred file list and the collaborative filtering preferred file list to determine a code coverage file recommendation list; and
providing the code coverage file recommendation list to a user.

### Claim 2 (depends on 1)

The method of claim 1, wherein the historical code coverage data comprises historical code coverage file data; and
wherein clustering the historical code coverage file data comprises:
extracting a respective feature vector for each of a plurality of code coverage files of the historical code coverage file data; and
clustering the plurality of code coverage files based on the extracted respective feature vectors.

### Claim 3 (depends on 2)

The method of claim 2, wherein performing content filtering based on the clustered historical code coverage data to determine the content filtering preferred file list comprises:
receiving a new code coverage file;
extracting a new feature vector corresponding to the new code coverage file; and
identifying a subset of the plurality of code coverage files for inclusion in the content filtering preferred file list based on the new feature vector.

### Claim 4 (depends on 1)

The method of claim 1, wherein the historical code coverage data comprises historical developer profile data; and
wherein clustering the historical developer profile data comprises:
extracting a respective feature vector for each of a plurality of developer profiles of the historical developer profile data; and
clustering the plurality of developer profiles based on the extracted respective feature vectors.

### Claim 5 (depends on 4)

The method of claim 4, wherein performing collaborative filtering based on the clustered historical code coverage data to determine the collaborative filtering preferred file list comprises:
receiving a new developer profile;
extracting a new feature vector corresponding to the new developer profile;
identifying a subset of the plurality of developer profiles based on the new feature vector; and
identifying a plurality of code coverage files for inclusion on the collaborative filtering preferred file list based on the identified subset of the plurality of developer profiles.

### Claim 6 (depends on 1)

The method of claim 1, wherein the code coverage file recommendation list is ranked before providing the code coverage file recommendation list to a user, and further comprising:
evaluating the ranking based on user input; and
updating at least one weight associated with the ranking based on the evaluation.

### Claim 7 (depends on 1)

The method of claim 1, wherein the user performs verification of a build of a software project based on at least one code coverage file from the code coverage file recommendation list.

### Claim 8

A system comprising:
a memory having computer readable instructions; and
one or more processors for executing the computer readable instructions, the computer readable instructions controlling the one or more processors to perform operations comprising:
receiving historical code coverage data;
clustering the historical code coverage data;
performing content filtering based on the clustered historical code coverage data to determine a content filtering preferred file list;
performing collaborative filtering based on the clustered historical code coverage data to determine a collaborative filtering preferred file list;
combining the content filtering preferred file list and the collaborative filtering preferred file list to determine a code coverage file recommendation list; and
providing the code coverage file recommendation list to a user.

### Claim 9 (depends on 8)

The system of claim 8, wherein the historical code coverage data comprises historical code coverage file data; and
wherein clustering the historical code coverage file data comprises:
extracting a respective feature vector for each of a plurality of code coverage files of the historical code coverage file data; and
clustering the plurality of code coverage files based on the extracted respective feature vectors.

### Claim 10 (depends on 9)

The system of claim 9, wherein performing content filtering based on the clustered historical code coverage data to determine the content filtering preferred file list comprises:
receiving a new code coverage file;
extracting a new feature vector corresponding to the new code coverage file; and
identifying a subset of the plurality of code coverage files for inclusion in the content filtering preferred file list based on the new feature vector.

### Claim 11 (depends on 8)

The system of claim 8, wherein the historical code coverage data comprises historical developer profile data; and
wherein clustering the historical developer profile data comprises:
extracting a respective feature vector for each of a plurality of developer profiles of the historical developer profile data; and
clustering the plurality of developer profiles based on the extracted respective feature vectors.

### Claim 12 (depends on 11)

The system of claim 11, wherein performing collaborative filtering based on the clustered historical code coverage data to determine the collaborative filtering preferred file list comprises:
receiving a new developer profile;
extracting a new feature vector corresponding to the new developer profile;
identifying a subset of the plurality of developer profiles based on the new feature vector; and
identifying a plurality of code coverage files for inclusion on the collaborative filtering preferred file list based on the identified subset of the plurality of developer profiles.

### Claim 13 (depends on 8)

The system of claim 8, wherein the code coverage file recommendation list is ranked before providing the code coverage file recommendation list to a user, and further comprising:
evaluating the ranking based on user input; and
updating at least one weight associated with the ranking based on the evaluation.

### Claim 14 (depends on 8)

The system of claim 8, wherein the user performs verification of a build of a software project based on at least one code coverage file from the code coverage file recommendation list.

### Claim 15

A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by one or more processors to cause the one or more processors to perform operations comprising:
receiving historical code coverage data;
clustering the historical code coverage data;
performing content filtering based on the clustered historical code coverage data to determine a content filtering preferred file list;
performing collaborative filtering based on the clustered historical code coverage data to determine a collaborative filtering preferred file list;
combining the content filtering preferred file list and the collaborative filtering preferred file list to determine a code coverage file recommendation list; and
providing the code coverage file recommendation list to a user.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the historical code coverage data comprises historical code coverage file data; and
wherein clustering the historical code coverage file data comprises:
extracting a respective feature vector for each of a plurality of code coverage files of the historical code coverage file data; and
clustering the plurality of code coverage files based on the extracted respective feature vectors.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein performing content filtering based on the clustered historical code coverage data to determine the content filtering preferred file list comprises:
receiving a new code coverage file;
extracting a new feature vector corresponding to the new code coverage file; and
identifying a subset of the plurality of code coverage files for inclusion in the content filtering preferred file list based on the new feature vector.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein the historical code coverage data comprises historical developer profile data; and
wherein clustering the historical developer profile data comprises:
extracting a respective feature vector for each of a plurality of developer profiles of the historical developer profile data; and
clustering the plurality of developer profiles based on the extracted respective feature vectors.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein performing collaborative filtering based on the clustered historical code coverage data to determine the collaborative filtering preferred file list comprises:
receiving a new developer profile;
extracting a new feature vector corresponding to the new developer profile;
identifying a subset of the plurality of developer profiles based on the new feature vector; and
identifying a plurality of code coverage files for inclusion on the collaborative filtering preferred file list based on the identified subset of the plurality of developer profiles.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the code coverage file recommendation list is ranked before providing the code coverage file recommendation list to a user, and further comprising:
evaluating the ranking based on user input; and
updating at least one weight associated with the ranking based on the evaluation.
