DETECTION OF ANTIPATTERNS THROUGH STATISTICAL ANALYSIS
First Claim
Patent Images
1. A computer implemented method of detecting code antipatterns, comprising:
- receiving a code containing at least one of a plurality of code segments, each one of said at least one code segment includes at least one pattern;
automatically analyzing each one of said at least one code segment to create an array of a plurality of features vectors, each one of said plurality of features vectors maps a plurality of predefined features found in one of said at least one pattern;
matching each one of said plurality of features vectors with a plurality of template features vectors each representing one of a plurality of antipatterns, said plurality of template features vectors is stored in an antipatterns dataset; and
determining a presence or an absence of each of said plurality of antipatterns within said each at least one code segment according to said matching.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer implemented method of detecting code antipatterns, comprising:
- 1) Receiving a code containing one or more of a plurality of code segments, each one of the one or more code segments includes one or more of a plurality of patterns.
- 2) Automatically analyzing each one of the one or more code segment to create an array of a plurality of features vectors, each one of the plurality of features vectors maps a plurality of predefined features found in one or more patterns.
- 3) Matching each one of the plurality of features vectors with a plurality of template features vectors each representing one of a plurality of antipatterns, the plurality of template features vectors is stored in an antipatterns dataset.
- 4) Determining a presence or an absence of each of the plurality of antipatterns within each of the one or more code segments according to the matching.
-
Citations
20 Claims
-
1. A computer implemented method of detecting code antipatterns, comprising:
-
receiving a code containing at least one of a plurality of code segments, each one of said at least one code segment includes at least one pattern; automatically analyzing each one of said at least one code segment to create an array of a plurality of features vectors, each one of said plurality of features vectors maps a plurality of predefined features found in one of said at least one pattern; matching each one of said plurality of features vectors with a plurality of template features vectors each representing one of a plurality of antipatterns, said plurality of template features vectors is stored in an antipatterns dataset; and determining a presence or an absence of each of said plurality of antipatterns within said each at least one code segment according to said matching. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system for detecting code antipatterns, comprising:
-
an interface for communicating with a user; a program store storing a code; and a processor coupled to the first interface and the program store for implementing the stored code, the code comprising; code instructions for receiving a code having a plurality of code segments, each one of said plurality of code segments includes at least one pattern, said code is received according to a user input received via said interface; code instructions for automatically analyzing each one of said plurality of code segments to create an array consisting of a plurality of features vectors, each one of said plurality of features vectors maps a plurality of predefined features found in one of said at least one pattern; code instructions for comparing each one of said plurality of features vectors with a plurality of template features vectors each representing one of a plurality of antipatterns, said plurality of template features vectors is stored in an antipatterns dataset; and code instructions for determining a presence or an absence of at least one of said plurality of antipatterns within said each code segments according to said compare. - View Dependent Claims (9, 10, 11, 12, 13)
-
-
14. A computer program product for detecting code antipatterns, comprising:
-
a non-transitory computer readable storage medium; first program instructions to receive a code that includes at least one of a plurality of code segments, each one of said at least one code segments includes at least one pattern; second program instructions to analyze each one of said plurality of code segments to create an array consisting of a plurality of features vectors, each one of said plurality of features vectors maps a plurality of predefined features found in one of said at least one pattern; third program instructions to match each one of said plurality of features vectors with a plurality of template features vectors each representing one of a plurality of antipatterns, said plurality of template features vectors is stored in an antipatterns dataset; and fourth program instructions to determine a presence or an absence of each of said plurality of antipatterns within said each at least one code segments according to said match; wherein said first, second, third and fourth program instructions are stored on said non-transitory computer readable storage medium. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification