Patent ID: 10055198

Abstract:
A method to quantify compliance of a software snippet having a plurality of code lines includes generating an OpsHash fingerprint of the software snippet, dividing the software snippet OpsHash fingerprint into a first group containing one or more OpsHash fingerprint based on context code lines, and a second group containing one or more OpsHash fingerprint based on operation-on-context code lines, applying a probably approximate matching algorithm to the first group, generating context cardinality sets from the OpsHash fingerprints of the first group, quantifying a match between each of the context cardinality sets and at least one of a governing definition and a rule/technique definition, ranking the OpsHash fingerprints of the first group based on the quantifying match, and incorporating software snippets having an OpsHash fingerprint ranking above a predetermined threshold into a software application. A system to implement the method and a non-transitory computer-readable medium are also disclosed.