IP Library › Granted Patent US 11,157,268
Granted Patent B2
US 11,157,268 · App. 16/750,093 · Granted Oct 26, 2021

Linking copied code

Inventors: Andrew C. M. Hicks (Wappingers Falls, NY); Michael Terrence Cohoon (Fishkill, NY); Ryan Thomas Rawlins (New Paltz, NY); Michael E. Gildein (Wappingers Falls, NY)
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
G06F8/71G06F16/23G06F8/65G06F16/178G06F16/2255G06F16/44G06F40/166G06F40/174G06F40/197
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,157,268
App. No.
16/750,093
Granted
Oct 26, 2021
Kind
B2
Abstract

Aspects of the invention include receiving, by a processor, a request to copy a code from a source file and receiving, by the processor, a request to paste the code into a destination file. Aspects also include creating, by the processor based at least in part on the request to paste the code, an entry in a database, the entry having an identification of the source file, an identification of the destination file, a location of the code in the source file, and a location of the code in the destination file.

Claims (33)

1. A method for linking copied code, the method comprising:

receiving, by a processor, a request to copy code from a source file;

receiving, by the processor, a request to paste the code into a destination file;

creating, by the processor based at least in part on the request to paste the code, an entry in a database, the entry comprising an identification of the source file, an identification of the destination file, a location of the code in the source file, and a location of the code in the destination file;

monitoring, by the processor, the destination file for changes to the code;

calculating, by the processor based at least in part on detecting changes to the code in the destination file, a similarity score between the code in the source file and the changed code in the destination file; and

based upon a determination that the similarity score is less than a threshold, deleting, by the processor, the entry in the database.

2. The method of claim 1 , further comprising monitoring, by the processor, the source file for changes to the code.

3. The method of claim 2 , wherein the entry in the database includes an action to be taken upon detecting changes in the source file.

4. The method of claim 3 , wherein the action includes automatically applying changes detected to the code in the source file to the code in the destination file.

5. The method of claim 3 , wherein the action includes creating a notification of the changes detected to the code in the source file.

6. The method of claim 1 , wherein the entry in the database further includes a copy of the code.

7. The method of claim 1 , wherein the entry in the database further includes a primary key value that is created by applying a hashing algorithm to the code.

8. A system comprising:

one or more processors for executing computer-readable instructions, the computer-readable instructions controlling the one or more processors to perform operations comprising:

receiving, by a processor, a request to copy code from a source file;

receiving, by the processor, a request to paste the code into a destination file;

creating, by the processor based at least in part on the request to paste the code, an entry in a database, the entry comprising an identification of the source file, an identification of the destination file, a location of the code in the source file, and a location of the code in the destination file;

monitoring, by the processor, the destination file for changes to the code;

calculating, by the processor based at least in part on detecting changes to the code in the destination file, a similarity score between the code in the source file and the changed code in the destination file; and

based upon a determination that the similarity score is less than a threshold, deleting, by the processor, the entry in the database.

9. The system of claim 8 , wherein the operations further comprise monitoring, by the processor, the source file for changes to the code.

10. The system of claim 9 , wherein the entry in the database includes an action to be taken upon detecting changes in the source file.

11. The system of claim 10 , wherein the action includes automatically applying changes detected to the code in the source file to the code in the destination file.

12. The system of claim 10 , wherein the action includes creating a notification of the changes detected to the code in the source file.

13. The system of claim 8 , wherein the entry in the database further includes a copy of the code.

14. The system of claim 8 , wherein the entry in the database further includes a primary key value that is created by applying a hashing algorithm to the code.

15. A 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 perform operations comprising:

receiving, by a processor, a request to copy a code from a source file;

receiving, by the processor, a request to paste the code into a destination file;

creating, by the processor based at least in part on the request to paste the code, an entry in a database, the entry comprising an identification of the source file, an identification of the destination file, a location of the code in the source file, and a location of the code in the destination file;

calculating, by the processor based at least in part on detecting changes to the code in the destination file, a similarity score between the code in the source file and the changed code in the destination file; and

based upon a determination that the similarity score is less than a threshold, deleting, by the processor, the entry in the database.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 23, 2020
From: HICKS, ANDREW C. M.; COHOON, MICHAEL TERRENCE; RAWLINS, RYAN THOMAS; GILDEIN, MICHAEL E.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 051593/0889 →
Continuity (1)
Related Publication 20210232387A1 · Jul 29, 2021