-
公开(公告)号:US11150897B1
公开(公告)日:2021-10-19
申请号:US16836447
申请日:2020-03-31
Applicant: Amazon Technologies, Inc.
Inventor: Neela Sawant , Hoan Anh Nguyen , Srinivasan Sengamedu Hanumantha Rao
IPC: G06F8/73 , G06F11/36 , G06F16/2458
Abstract: Techniques for generating rules from documentation are described. For example, a method for generating rules may include generating one or more templates containing patterns and anti-patterns from code of one or more documents, wherein a pattern captures a good coding practice as detailed in the documents and an anti-pattern is a proper subset of a pattern that does not include a construct described in the documents as being a recommended and/or required usage; constructing one or more graphs from the one or more templates; mining the constructed one or more graphs to find target sub-graphs which do not contain bugs, wherein a bug occurs when an anti-pattern matches, but a pattern does not match; comparing the target sub-graphs to a representative dataset to remove target sub-graphs that violate good usage; and codifying the sub-graphs that represent good usage.
-
公开(公告)号:US12118350B1
公开(公告)日:2024-10-15
申请号:US17491088
申请日:2021-09-30
Applicant: Amazon Technologies, Inc.
Inventor: Rajdeep Mukherjee , Hoan Anh Nguyen , Pranav Garg , Omer Tripp , Sengamedu Hanumantha Rao Srinivasan
IPC: G06F8/71 , G06F8/20 , G06F16/901
CPC classification number: G06F8/71 , G06F8/20 , G06F16/9024
Abstract: Code changes may be hierarchically clustered to discover coding practices. Code change graphs for changes to code in a source code repository may be clustered according to hierarchy of different features determined for the source code into groups. The code change graphs in the groups may then be indexed according their similarity with other code change graphs in the groups. Then one or more coding practices corresponding to the indexed code changes may be provided.
-
公开(公告)号:US11372742B1
公开(公告)日:2022-06-28
申请号:US16836586
申请日:2020-03-31
Applicant: Amazon Technologies, Inc.
IPC: G06F8/10 , G06F8/73 , G06F11/36 , G06F16/2458
Abstract: Techniques for generating rules from documentation are described. For example, a method for generating rules may include generating one or more rules from documentation by: extracting a plurality of chunks from the documentation, inferring one or more candidate rules from the extracted chunks, mining the inferred one or more candidate rules to determine at least one of the one or more candidate rules is to be included in rule generation, classifying the at least one mined one or more candidate rules as one or more rules, and extracting information to generate the one or more rules.
-
-