# US 2021/0240596 A1 · Source code file retrieval

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

- Number: US 2021/0240596 A1
- Document ID: US20210240596A1
- Status: Published application
- Kind: A1
- Application number: 16/777,447
- Filed: 2020-01-30
- Published: 2021-08-05
- Earliest claimed: 2020-01-30
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Aaron Bela Merey; Frank Eigler
- Web page: https://patentgrep.com/patent/US20210240596A1

## CPC

- G06F 11/3624: {by performing operations on the source code, e.g. via a compiler}
- G06F 16/25: Integrating or interfacing systems involving database management systems
- G06F 16/245: Query processing
- G06F 16/284: {Relational databases}
- G06F 11/36: Prevention of errors by analysis, debugging or testing of software
- G06F 11/362: Debugging of software
- G06F 11/3628: {of optimised code (optimisation G06F8/443)}
- G06F 11/366: {using diagnostics (G06F11/0703 takes precedence)}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 16/10: File systems; File servers
- G06F 16/951: Indexing; Web crawling techniques
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

According to one example, a method includes receiving a query from a client device, the query comprising a specified build identifier and a specified source code file name, determining, by a server device, a source code file from a plurality of archives using the specified build identifier and the specified source code file name, wherein determining the source code file comprises matching a longest shared prefix of the archive name associated with the specified build identifier and an archive name from a set of archive names having archived file names corresponding to the specified source code file name, and after the determining, responding to the query with the source code file.

## Claims

### Claim 1

A method comprising:
scanning a plurality of archives to create a first relational database between build identifiers and archive names of the plurality of archives;
scanning the plurality of archives to create a second relational database between build identifiers and source code file names within the archives;
scanning the plurality of archives to create a third relational database between the archive names and archived file names, the archived file names being names of files within the archives;
receiving a query from a client device, the query comprising a specified build identifier and a specified source code file name; and
responding to the query using the first relational database, second relational database, and third relational database and by matching a longest shared prefix of the archive name associated with the specified build identifier and an archive name from a set of archive names having archived file names corresponding to the specified source code file name.

### Claim 2 (depends on 1)

The method of claim 1, wherein responding to the query comprises using the first relational database to identify an archive name (A) associated with the specified build identifier.

### Claim 3 (depends on 2)

The method of claim 2, wherein responding to the query further comprises using the first relational database and the second relational database to determine the set of archive names having archived file names corresponding to the specified source code file name.

### Claim 4 (depends on 3)

The method of claim 3, wherein responding to the query further comprises sorting the set of archive names by shared prefix length and selecting an archive name from the set of archive names having the longest shared prefix length.

### Claim 5 (depends on 4)

The method of claim 4, further comprising, returning a source code file from the selected archive.

### Claim 6 (depends on 1)

The method of claim 1, wherein the scanning of the archives is performed by a scanning module associated with a web server.

### Claim 7 (depends on 1)

The method of claim 1, wherein the query is received from a debugging tool on a client device.

### Claim 8 (depends on 7)

The method of claim 7, wherein the specified build identifier is associated with an application being debugged by the debugging tool.

### Claim 9 (depends on 7)

The method of claim 7, wherein the specified source code file name is associated with an application being debugged by the debugging tool.

### Claim 10

A method comprising:
receiving a query from a client device, the query comprising a specified build identifier and a specified source code file name;
determining, by a server device, a source code file from a plurality of archives using the specified build identifier and the specified source code file name, wherein determining the source code file comprises matching a longest shared prefix of the archive name associated with the specified build identifier and an archive name from a set of archive names having archived file names corresponding to the specified source code file name; and
after the determining, responding to the query with the source code file.

### Claim 11 (depends on 10)

The method of claim 10, wherein the determining further comprises using a first relational database, a second relational database, and a third relational database.

### Claim 12 (depends on 11)

The method of claim 11, wherein the first relational database comprises data containing a plurality of build identifiers correlated to a plurality archive names.

### Claim 13 (depends on 11)

The method of claim 11, wherein the second relational database comprises data containing a plurality of build identifiers correlated to a plurality of source code file names.

### Claim 14 (depends on 11)

The method of claim 11, wherein the third relational database comprises data containing a plurality of archived file names correlated to the plurality of archives.

### Claim 15 (depends on 10)

The method of claim 10, wherein the query includes multiple specified build identifiers and multiple specified source code file names.

### Claim 16 (depends on 15)

The method of claim 15, wherein responding to the query includes responding with multiple source code files.

### Claim 17 (depends on 10)

The method of claim 10, further comprising:
scanning the plurality of archives to create a first relational database between build identifiers and archive names of the plurality of archives;
scanning the plurality of archives to create a second relational database between build identifiers and source code file names within the archives; and
scanning the plurality of archives to create a third relational database between the archive names and archived file names, the archived file names being names of files within the archives.

### Claim 18

A computing system comprising:
a processor; and
a memory comprising machine readable instructions that when executed by the processor, cause the system to:
scan a plurality of archives to create a first relational database between build identifiers and archive names of the plurality of archives;
scan the plurality of archives to create a second relational database between build identifiers and source code file names within the archives;
scan the plurality of archives to create a third relational database between the archive names and archived file names, the archived file names being names of files within the archives;
receive a query from a client device, the query comprising a specified build identifier and a specified source code file name; and
respond to the query using the first relational database, second relational database, and third relational database and by matching a longest shared prefix of the archive name associated with the specified build identifier and an archive name from a set of archive names having archived file names corresponding to the specified source code file name.

### Claim 19 (depends on 18)

The system of claim 18, wherein the system is further to respond to the query by:
using the first relational database to identify an archive name (A) associated with the specified build identifier; and
using the first relational database and the second relational database to determine the set of archive names having archived file names corresponding to the specified source code file name.

### Claim 20 (depends on 19)

The system of claim 19, wherein the system is further to respond to the query by:
sorting the set of archive names by shared prefix length and selecting an archive name from the set of archive names having the longest shared prefix length.
