Repository Analysis

aws/serverless-application-model

The AWS Serverless Application Model (AWS SAM) transform is a AWS CloudFormation macro that transforms SAM templates into CloudFormation templates.

3.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of aws/serverless-application-model, a Python project with 9,560 GitHub stars. SynthScan v2.0 examined 510,818 lines of code across 3751 source files, recording 1626 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 3.5 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.5
Adjusted Score
3.5
Raw Score
100%
Time Factor
2026-07-07
Last Push
9.6K
Stars
Python
Language
510.8K
Lines of Code
3.8K
Files
1.6K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 10MEDIUM 32LOW 1584

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1626 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers1412 hits · 1487 pts
SeverityFileLineSnippetContext
LOWbin/add_transform_test.py45def generate_transform_test_output_files(input_file_path: Path, file_basename: str) -> None:CODE
LOWbin/add_transform_test.py72def copy_input_file_to_transform_test_dir(input_file_path: Path, transform_test_input_path: Path) -> None:CODE
LOWbin/public_interface.py33 def scan_interfaces_recursively(self, module_name: str) -> None:CODE
LOWbin/public_interface.py41 def _scan_interfaces_in_module(self, module_name: str) -> None:CODE
LOWbin/public_interface.py46 def _scan_functions_in_module(self, module_name: str) -> None:CODE
LOWbin/public_interface.py56 def _scan_variables_in_module(self, module_name: str) -> None:CODE
LOWbin/public_interface.py159def _only_new_optional_arguments_or_existing_arguments_optionalized_or_var_arguments(CODE
LOWintegration/conftest.py66def setup_companion_stack_once(tmpdir_factory, get_prefix):CODE
LOWintegration/conftest.py81def _companion_stack_parameters():CODE
LOWintegration/conftest.py93def get_serverless_application_repository_app():CODE
LOWintegration/conftest.py174def delete_companion_stack_once(get_prefix):CODE
LOWintegration/conftest.py200def get_companion_stack_outputs(get_prefix):CODE
LOWintegration/metrics/test_metrics_integration.py24 def test_publish_single_metric(self):CODE
LOWintegration/combination/test_state_machine_with_cwe.py14 def test_state_machine_with_cwe(self):CODE
LOWintegration/combination/test_websocket_api_multiple.py14 def test_websocket_multi_route(self):CODE
LOWintegration/combination/test_function_with_msk.py17 def test_function_with_msk_trigger(self):CODE
LOWintegration/combination/test_function_with_msk.py21 def test_function_with_msk_trigger_using_manage_policy(self):CODE
LOWintegration/combination/test_function_with_msk.py31 def test_function_with_msk_trigger_and_premium_features(self):CODE
LOW…est_websocket_api_with_disable_execute_api_endpoint.py13 def test_disable_execute_api_endpoint_true(self, is_disable):CODE
LOW…tion/test_state_machine_with_schedule_dlq_generated.py11 def test_state_machine_with_schedule(self):CODE
LOW…tion/test_state_machine_with_schedule_dlq_generated.py81def get_first_key_value_pair_in_dict(dictionary):CODE
LOW…ation/combination/test_custom_http_api_domains_test.py19 def test_custom_http_api_domains_regional(self):CODE
LOW…ation/combination/test_custom_http_api_domains_test.py47 def test_custom_http_api_domains_regional_ownership_verification(self):CODE
LOW…mbination/test_api_and_http_api_with_propagate_tags.py13 def test_api_and_httpapi_with_propagate_tags(self):CODE
LOW…n/test_function_with_intrinsics_resource_attributes.py5 def test_function_with_intrinsics_resource_attributes(self):CODE
LOW…egration/combination/test_api_with_fail_on_warnings.py18 def test_end_point_configuration(self, file_name, disable_value):CODE
LOW…ation/combination/test_websocket_api_custom_domains.py21 def test_websocket_custom_api_domains_regional(self):CODE
LOW…ion/combination/test_function_with_policy_templates.py6 def test_with_policy_templates(self):CODE
LOW…ion/combination/test_function_with_policy_templates.py56 def test_all_policy_templates(self):CODE
LOWintegration/combination/test_function_with_http_api.py16 def test_function_with_http_api(self):CODE
LOWintegration/combination/test_function_with_http_api.py25 def test_function_with_http_api_default_path(self):CODE
LOW…gration/combination/test_intrinsic_function_support.py17 def test_serverless_function_property_support(self):CODE
LOW…gration/combination/test_intrinsic_function_support.py25 def test_definition_uri_support(self):CODE
LOW…gration/combination/test_intrinsic_function_support.py31 def test_severless_api_properties_support(self):CODE
LOW…ration/combination/test_state_machine_with_schedule.py23 def test_state_machine_with_schedule(self, template_file_path):CODE
LOW…gration/combination/test_websocket_api_route_config.py11 def test_websocket_api_route_config(self):CODE
LOW…tion/test_function_with_implicit_api_and_conditions.py10 def test_function_with_implicit_api_and_conditions(self):CODE
LOW…tion/combination/test_function_with_user_pool_event.py10 def test_function_with_user_pool_event(self):CODE
LOWintegration/combination/test_websocket_api_basic.py33 def test_websocket_api_basic_config(self):CODE
LOW…ion/test_http_api_with_disable_execute_api_endpoint.py18 def test_disable_execute_api_endpoint_true(self, file_name, is_disable):CODE
LOW…n/combination/test_function_with_file_system_config.py16 def test_function_with_efs_integration(self):CODE
LOW…mbination/test_function_with_schedule_dlq_generated.py11 def test_function_with_schedule(self):CODE
LOW…mbination/test_function_with_schedule_dlq_generated.py86def get_first_key_value_pair_in_dict(dictionary):CODE
LOWintegration/combination/test_http_api_with_auth.py10 def test_function_with_user_pool_event(self):CODE
LOW…tion/combination/test_function_with_all_event_types.py13 def test_function_with_all_event_types(self):CODE
LOW…tion/combination/test_function_with_all_event_types.py103 def test_function_with_all_event_types_condition_false(self):CODE
LOW…tion/combination/test_function_with_all_event_types.py119def _get_actual_bucket_configuration_events(configurations):CODE
LOW…on/combination/test_function_with_capacity_provider.py26 def verify_capacity_provider_basic_config(self, cp_config, cp_name):CODE
LOW…on/combination/test_function_with_capacity_provider.py34 def verify_capacity_provider_vpc_config(self, cp_config, cp_name):CODE
LOW…on/combination/test_function_with_capacity_provider.py49 def verify_capacity_provider_permissions_config(self, cp_config, cp_name):CODE
LOW…on/combination/test_function_with_capacity_provider.py57 def verify_function_capacity_provider_config(self, function_capacity_provider_config):CODE
LOW…on/combination/test_function_with_capacity_provider.py73 def verify_capacity_provider_arn_match(self, function_capacity_provider_arn, capacity_provider_arn):CODE
LOW…on/combination/test_function_with_capacity_provider.py81 def test_function_with_capacity_provider_custom_role(self):CODE
LOW…on/combination/test_function_with_capacity_provider.py119 def test_function_with_capacity_provider_default_role(self):CODE
LOW…on/combination/test_function_with_capacity_provider.py183 def get_function_capacity_provider_config(self, function_name, alias_name=None):CODE
LOW…on/combination/test_function_with_capacity_provider.py198 def get_lambda_capacity_provider_config(self, capacity_provider_logical_id):CODE
LOW…egration/combination/test_function_with_application.py16 def test_function_referencing_outputs_from_application(self):CODE
LOW…on/test_function_with_schedule_dlq_and_retry_policy.py10 def test_function_with_schedule(self):CODE
LOW…gration/combination/test_api_with_resource_policies.py11 def test_api_resource_policies(self):CODE
LOW…gration/combination/test_api_with_resource_policies.py145 def test_api_resource_policies_aws_account(self):CODE
1352 more matches not shown…
Self-Referential Comments20 hits · 62 pts
SeverityFileLineSnippetContext
MEDIUMintegration/single/test_basic_api.py44 # Create an API with get and putCOMMENT
MEDIUMtests/test_plugins.py113 # Create a mock of LifeCycleEvents object with ONE event called "my_event"COMMENT
MEDIUMtests/test_plugins.py215 # Create a plugin but setup hook method with wrong nameCOMMENT
MEDIUMtests/test_plugins.py226 # Create a plugin but setup hook method with wrong nameCOMMENT
MEDIUMtests/test_plugins.py170 # Create a parent mock and attach child mocks to help assert order of the callsCOMMENT
MEDIUMtests/test_plugins.py250 # Create a parent mock and attach child mocks to help assert order of the callsCOMMENT
MEDIUMtests/translator/test_logical_id_generator.py78 new = LogicalIdGenerator(self.prefix, data_obj=data.copy()).gen() # Create a copy of data objCODE
MEDIUM…r/input/capacity_provider_with_mulitple_functions.yaml11 # Define a capacity provider resourceCOMMENT
MEDIUMtests/model/eventsources/test_msk_event_source.py323 # Create a mock functionCOMMENT
MEDIUM…l/eventsources/test_self_managed_kafka_event_source.py694 # Create a mock functionCOMMENT
MEDIUMtests/model/api/test_api_generator.py55 # Create a simple swagger definition with paths that differ only by trailing slashCOMMENT
MEDIUMsamtranslator/plugins/sam_plugins.py33 ### Defining a pluginSTRING
MEDIUMsamtranslator/model/__init__.py626 # Create a map of {ResourceType: LogicalId} for quick accessCOMMENT
MEDIUMsamtranslator/model/sam_resources.py3712 # This function is only called if it is a pipeline resolver, in which case this property is checked to exist befCOMMENT
MEDIUMsamtranslator/model/api/apiv2_generator.py151 # Create the Route53 RecordSetGroup resourceCOMMENT
MEDIUMsamtranslator/model/api/api_generator.py584 # Create the Route53 RecordSetGroup resourceCOMMENT
MEDIUMsamtranslator/model/api/api_generator.py687 # Create the DomainNameAccessAssociationCOMMENT
MEDIUMsamtranslator/model/api/api_generator.py695 # Create the Route53 RecordSetGroup resourceCOMMENT
MEDIUMsamtranslator/model/capacity_provider/generators.py70 # Create the Lambda CapacityProvider resourceCOMMENT
MEDIUMsamtranslator/model/capacity_provider/generators.py201 # Create the SAM tag using the helper methodCOMMENT
Cross-File Repetition9 hits · 45 pts
SeverityFileLineSnippetContext
HIGH…ation/combination/test_graphqlapi_pipeline_resolver.py0executes a query to an appsync graphqlapi. also checks that the response is 200 and does not contain errors before returSTRING
HIGH…gration/combination/test_graphqlapi_lambda_resolver.py0executes a query to an appsync graphqlapi. also checks that the response is 200 and does not contain errors before returSTRING
HIGHintegration/single/test_graphqlapi_configuration.py0executes a query to an appsync graphqlapi. also checks that the response is 200 and does not contain errors before returSTRING
HIGHsamtranslator/plugins/api/implicit_rest_api_plugin.py0this plugin provides implicit http api shorthand syntax in the sam spec. implicit api syntax is just a syntactic sugar, STRING
HIGHsamtranslator/plugins/api/implicit_api_plugin.py0this plugin provides implicit http api shorthand syntax in the sam spec. implicit api syntax is just a syntactic sugar, STRING
HIGHsamtranslator/plugins/api/implicit_http_api_plugin.py0this plugin provides implicit http api shorthand syntax in the sam spec. implicit api syntax is just a syntactic sugar, STRING
HIGHsamtranslator/plugins/api/implicit_rest_api_plugin.py0actually process given api events. iteratively adds the apis to swagger json in the respective serverless::api resource STRING
HIGHsamtranslator/plugins/api/implicit_http_api_plugin.py0actually process given api events. iteratively adds the apis to swagger json in the respective serverless::api resource STRING
HIGHsamtranslator/plugins/api/implicit_api_plugin.py0actually process given api events. iteratively adds the apis to swagger json in the respective serverless::api resource STRING
Deep Nesting45 hits · 40 pts
SeverityFileLineSnippetContext
LOWintegration/helpers/base_test.py259CODE
LOWtests/test_types.py9CODE
LOWtests/translator/test_translator.py104CODE
LOWtests/translator/test_translator.py190CODE
LOWtests/model/eventsources/test_msk_event_source.py190CODE
LOW…l/eventsources/test_self_managed_kafka_event_source.py479CODE
LOWsamtranslator/swagger/swagger.py253CODE
LOWsamtranslator/swagger/swagger.py824CODE
LOWsamtranslator/plugins/globals/globals.py256CODE
LOW…anslator/plugins/api/default_definition_body_plugin.py18CODE
LOWsamtranslator/plugins/api/implicit_api_plugin.py345CODE
LOWsamtranslator/plugins/api/implicit_api_plugin.py403CODE
LOW…ranslator/plugins/application/serverless_app_plugin.py109CODE
LOW…ranslator/plugins/application/serverless_app_plugin.py348CODE
LOWsamtranslator/utils/actions.py27CODE
LOWsamtranslator/utils/py27hash_fix.py23CODE
LOWsamtranslator/utils/py27hash_fix.py606CODE
LOWsamtranslator/utils/py27hash_fix.py629CODE
LOWsamtranslator/translator/translator.py74CODE
LOWsamtranslator/translator/translator.py105CODE
LOWsamtranslator/translator/translator.py250CODE
LOWsamtranslator/translator/translator.py314CODE
LOWsamtranslator/model/apigatewayv2.py306CODE
LOWsamtranslator/model/__init__.py718CODE
LOWsamtranslator/model/__init__.py759CODE
LOWsamtranslator/model/apigateway.py407CODE
LOWsamtranslator/model/sam_resources.py495CODE
LOWsamtranslator/model/sam_resources.py557CODE
LOWsamtranslator/model/sam_resources.py1134CODE
LOWsamtranslator/model/sam_resources.py2579CODE
LOWsamtranslator/model/sam_resources.py3014CODE
LOWsamtranslator/model/eventsources/pull.py116CODE
LOWsamtranslator/model/eventsources/pull.py244CODE
LOWsamtranslator/model/eventsources/pull.py740CODE
LOWsamtranslator/model/eventsources/push.py851CODE
LOWsamtranslator/model/eventsources/push.py1077CODE
LOWsamtranslator/model/role_utils/role_constructor.py92CODE
LOWsamtranslator/model/api/apiv2_generator.py57CODE
LOWsamtranslator/model/api/api_generator.py484CODE
LOWsamtranslator/model/api/api_generator.py945CODE
LOWsamtranslator/model/api/api_generator.py1349CODE
LOWsamtranslator/model/api/http_api_generator.py168CODE
LOWsamtranslator/model/stepfunctions/generators.py332CODE
LOWsamtranslator/open_api/open_api.py171CODE
LOWsamtranslator/open_api/open_api.py249CODE
Excessive Try-Catch Wrapping27 hits · 38 pts
SeverityFileLineSnippetContext
LOWbin/add_transform_test.py78 except Exception as e:CODE
LOWbin/_file_formatter.py54 except Exception as error:CODE
LOW…on/combination/test_function_with_capacity_provider.py193 except Exception as e:CODE
MEDIUM…on/combination/test_function_with_capacity_provider.py195 print(f"Error getting function capacity provider config: {e}")CODE
LOW…on/combination/test_function_with_capacity_provider.py207 except Exception as e:CODE
MEDIUM…on/combination/test_function_with_capacity_provider.py209 print(f"Error getting capacity provider config for {capacity_provider_logical_id}: {e}")CODE
LOWintegration/setup/companion-stack.yaml365 except Exception: passCODE
LOWintegration/setup/companion-stack.yaml367 except Exception as e: print(f"api err: {e}")CODE
LOWintegration/setup/companion-stack.yaml385 except Exception: passCODE
LOWintegration/setup/companion-stack.yaml405 except Exception: passCODE
LOWintegration/setup/companion-stack.yaml406 except Exception as e:CODE
LOWintegration/setup/companion-stack.yaml416 except Exception: passCODE
LOWintegration/setup/companion-stack.yaml427 except Exception: passCODE
LOWintegration/setup/companion-stack.yaml444 except Exception: passCODE
MEDIUMintegration/setup/companion-stack.yaml354def _sweep_apis(apig, cutoff, ctx):CODE
MEDIUMintegration/setup/companion-stack.yaml387def _fix_and_retry(cfn, iam, name):CODE
MEDIUMintegration/setup/companion-stack.yaml409def _force_delete_role(iam, role):CODE
MEDIUMintegration/setup/companion-stack.yaml418def _force_delete_policy(iam, arn):CODE
LOWintegration/helpers/deployer/deployer.py179 except Exception as ex:CODE
LOWintegration/helpers/deployer/deployer.py382 except Exception as ex:CODE
MEDIUMintegration/helpers/deployer/deployer.py168def _create_change_set(self, stack_name, changeset_type, **kwargs):CODE
LOWsamtranslator/metrics/metrics.py65 except Exception:CODE
LOWsamtranslator/metrics/method_decorator.py82 except Exception as e:CODE
LOWsamtranslator/plugins/sam_plugins.py134 except Exception as ex:CODE
LOWsamtranslator/feature_toggle/feature_toggle.py159 except Exception:CODE
LOWsamtranslator/model/__init__.py780 except Exception:CODE
LOWsamtranslator/model/sam_resources.py821 except Exception as e:CODE
Unused Imports37 hits · 37 pts
SeverityFileLineSnippetContext
LOW…/internal/schema_source/aws_serverless_microvmimage.py1CODE
LOW…or/internal/schema_source/aws_serverless_graphqlapi.py1CODE
LOW…ranslator/internal/schema_source/aws_serverless_api.py1CODE
LOW…ator/internal/schema_source/aws_serverless_function.py1CODE
LOW…ernal/schema_source/aws_serverless_networkconnector.py1CODE
LOW…rnal/schema_source/aws_serverless_capacity_provider.py1CODE
LOW…/internal/schema_source/aws_serverless_statemachine.py1CODE
LOW…r/internal/schema_source/aws_serverless_application.py1CODE
LOW…/internal/schema_source/aws_serverless_websocketapi.py1CODE
LOW…r/internal/schema_source/aws_serverless_simpletable.py1CODE
LOW…/internal/schema_source/aws_serverless_layerversion.py1CODE
LOWsamtranslator/internal/schema_source/schema.py1CODE
LOW…lator/internal/schema_source/aws_serverless_httpapi.py1CODE
LOWsamtranslator/public/plugins.py3CODE
LOWsamtranslator/public/swagger.py3CODE
LOWsamtranslator/public/models.py1CODE
LOWsamtranslator/public/models.py1CODE
LOWsamtranslator/public/open_api.py3CODE
LOWsamtranslator/public/intrinsics.py3CODE
LOWsamtranslator/public/intrinsics.py4CODE
LOWsamtranslator/public/parser.py1CODE
LOWsamtranslator/public/exceptions.py3CODE
LOWsamtranslator/public/exceptions.py3CODE
LOWsamtranslator/public/exceptions.py3CODE
LOWsamtranslator/public/translator.py7CODE
LOWsamtranslator/public/translator.py8CODE
LOWsamtranslator/public/sdk/resource.py3CODE
LOWsamtranslator/public/sdk/resource.py3CODE
LOWsamtranslator/public/sdk/template.py3CODE
LOWsamtranslator/public/sdk/parameter.py1CODE
LOWsamtranslator/model/__init__.py18CODE
LOWsamtranslator/model/role_utils/__init__.py3CODE
LOWsamtranslator/model/stepfunctions/__init__.py9CODE
LOWsamtranslator/model/stepfunctions/__init__.py10CODE
LOWsamtranslator/model/stepfunctions/__init__.py11CODE
LOWsamtranslator/model/stepfunctions/__init__.py11CODE
LOWsamtranslator/model/stepfunctions/__init__.py11CODE
AI Slop Vocabulary12 hits · 24 pts
SeverityFileLineSnippetContext
LOWintegration/combination/test_function_with_alias.py204 # Exclude $LATEST from the list and simply return all the version numbers.COMMENT
MEDIUM…tes/combination/function_with_deployment_disabled.yaml2 # The test harness passes theses parameters even though they aren't used. So specify them hereCOMMENT
LOWintegration/helpers/common_api.py33 # Exclude $LATEST from the list and simply return all the version numbers.COMMENT
LOW…tor/input/explicit_api_with_invalid_events_config.yaml5# When a Function's Event contains a path that is "not" in the Swagger, the behavior would be just add Lambda::PermissioCOMMENT
MEDIUMsamtranslator/feature_toggle/feature_toggle.py121 """Feature toggle config provider which uses a local file. This is to facilitate local testing."""STRING
LOWsamtranslator/model/resource_policies.py143 # Nothing matches. Don't take opinions on how to handle it. Instead just set the appropriate type.COMMENT
MEDIUMsamtranslator/model/apigateway.py141 # Using int so tests are a little more robust; don't think the Python spec defines default precisionCOMMENT
MEDIUMsamtranslator/model/sam_resources.py818 # Validate CapacityProviderConfig using Pydantic model directly for comprehensive error collectionCOMMENT
MEDIUMsamtranslator/model/sam_resources.py1593 # Use enhanced validation method with comprehensive error collectionCOMMENT
LOWsamtranslator/model/connector_profiles/profile.py72 # s and pattern match exactly, simply return replacement stringCOMMENT
LOWsamtranslator/intrinsics/actions.py533 # Value must be an array with enough elements. If not, this is invalid GetAtt syntax. We just pass alongCOMMENT
LOWsamtranslator/intrinsics/actions.py539 # we just pass along the input to CFN for doing the validationCOMMENT
Redundant / Tautological Comments15 hits · 23 pts
SeverityFileLineSnippetContext
LOWbin/git_lfs_download.sh7# Check if a URL parameter is providedCOMMENT
LOWintegration/combination/test_state_machine_with_cwe.py23 # Check if the CWE rule is created with the state machine as the targetCOMMENT
LOW…mbination/test_state_machine_with_cwe_dlq_generated.py26 # Check if the CWE rule is created with the state machine as the targetCOMMENT
LOWintegration/single/test_basic_function.py190 # Check if the InvokePermission has InvokedViaFunctionUrl: TrueCOMMENT
LOWtests/sdk/test_template.py107 # Check if it existsCOMMENT
LOWsamtranslator/swagger/swagger.py99 # Check if the OpenAPI version is 3.0, if it is then the extension needs to added to the Servers field,COMMENT
LOWsamtranslator/swagger/swagger.py589 # Check if Function/Path/Method specified 'NONE' for AuthorizerCOMMENT
LOWsamtranslator/swagger/swagger.py661 # Check if Function/Path/Method specified 'False' for ApiKeyRequiredCOMMENT
LOWsamtranslator/utils/actions.py41 # Check if DependsOn matches the original value of a changed_logical_id keyCOMMENT
LOWsamtranslator/utils/py27hash_fix.py642 # Check if there is explicit HttpApi resourceCOMMENT
LOWsamtranslator/utils/py27hash_fix.py651 # Check if there is any httpapi event for implicit apiCOMMENT
LOWsamtranslator/model/__init__.py73 # Check if validator has enum_values attribute (from IS_STR_ENUM)COMMENT
LOWsamtranslator/model/__init__.py732 # Check if more than one property existsCOMMENT
LOWsamtranslator/model/__init__.py739 # Check if some but not all properties from the group are presentCOMMENT
LOWsamtranslator/intrinsics/actions.py26 # Check if the value is a CloudFormation internal placeholderCOMMENT
Modern Structural Boilerplate21 hits · 22 pts
SeverityFileLineSnippetContext
LOWsamtranslator/compat.py15__all__ = ["pydantic"]CODE
LOWsamtranslator/metrics/method_decorator.py32 def set_instance(metrics: Metrics) -> None:CODE
LOWsamtranslator/swagger/swagger.py621 def set_path_default_apikey_required(self, path: str, required_options_api_key: bool = True) -> None:CODE
LOWsamtranslator/public/plugins.py1__all__ = ["BasePlugin"]CODE
LOWsamtranslator/public/swagger.py1__all__ = ["SwaggerEditor"]CODE
LOWsamtranslator/public/open_api.py1__all__ = ["OpenApiEditor"]CODE
LOWsamtranslator/public/intrinsics.py1__all__ = ["IntrinsicsResolver", "is_intrinsics"]CODE
LOWsamtranslator/public/exceptions.py1__all__ = ["InvalidDocumentException", "InvalidEventException", "InvalidResourceException"]CODE
LOWsamtranslator/public/translator.py5__all__ = ["ManagedPolicyLoader", "Translator"]CODE
LOWsamtranslator/public/sdk/resource.py1__all__ = ["SamResource", "SamResourceType"]CODE
LOWsamtranslator/public/sdk/template.py1__all__ = ["SamTemplate"]CODE
LOWsamtranslator/model/__init__.py465 def set_resource_attribute(self, attr: str, value: Any) -> None:CODE
LOWsamtranslator/model/apigateway.py77 def update_deployment_ref(self, deployment_logical_id: str) -> None:CODE
LOWsamtranslator/model/role_utils/__init__.py1__all__ = ["construct_role_for_resource"]CODE
LOWsamtranslator/model/api/apiv2_generator.py257 def _update_route53_routing_policy_properties(route53_config: dict[str, Any], recordset: dict[str, Any]) -> None:CODE
LOWsamtranslator/model/api/api_generator.py1549 def _set_default_apikey_required(self, swagger_editor: SwaggerEditor, required_options_api_key: bool) -> None:CODE
LOWsamtranslator/model/api/api_generator.py1553 def _set_endpoint_configuration(self, rest_api: ApiGatewayRestApi, value: Union[str, dict[str, Any]]) -> None:CODE
LOWsamtranslator/model/api/api_generator.py742 def _set_optional_domain_properties(self, domain: Union[ApiGatewayDomainName, ApiGatewayDomainNameV2]) -> None:CODE
LOWsamtranslator/model/api/api_generator.py805 def _update_route53_routing_policy_properties(route53_config: dict[str, Any], recordset: dict[str, Any]) -> None:CODE
LOWsamtranslator/model/api/http_api_generator.py232 def _update_default_path(self) -> None:CODE
LOWsamtranslator/model/stepfunctions/__init__.py1__all__ = [CODE
Over-Commented Block12 hits · 11 pts
SeverityFileLineSnippetContext
LOWsetup.py1# -*- coding: utf-8 -*-COMMENT
LOWintegration/single/test_basic_function.py341 "PassThrough",COMMENT
LOWintegration/helpers/deployer/deployer.py1"""COMMENT
LOWintegration/helpers/deployer/utils/artifact_exporter.py1"""COMMENT
LOWtests/plugins/application/test_serverless_app_plugin.py361# itertools.product([COMMENT
LOW…rnal/schema_source/aws_serverless_capacity_provider.py41 # Optional list of CPU architectures - maps to CFN InstanceRequirements.ArchitectureCOMMENT
LOWsamtranslator/public/__init__.py1# flake8: noqaCOMMENT
LOWsamtranslator/model/__init__.py141 resource_type: str = None # type: ignoreCOMMENT
LOWsamtranslator/model/__init__.py581COMMENT
LOWsamtranslator/model/sam_resources.py1161 #COMMENT
LOWsamtranslator/intrinsics/resolver.py121 """COMMENT
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
AI Structural Patterns9 hits · 9 pts
SeverityFileLineSnippetContext
LOWintegration/helpers/s3_uploader.py47CODE
LOWsamtranslator/model/apigatewayv2.py187CODE
LOWsamtranslator/model/apigateway.py331CODE
LOWsamtranslator/model/api/apiv2_generator.py16CODE
LOWsamtranslator/model/api/websocket_api_generator.py32CODE
LOWsamtranslator/model/api/api_generator.py186CODE
LOWsamtranslator/model/api/http_api_generator.py37CODE
LOWsamtranslator/model/microvm_image/generators.py23CODE
LOWsamtranslator/model/stepfunctions/generators.py31CODE
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…/model/preferences/deployment_preference_collection.py108 # If there are any enabled deployment preferences without conditions, return falseCOMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/translator/input/websocket_api_description.yaml10 Description: Lorem IpsumCODE
LOWtests/translator/output/websocket_api_description.json58 "Description": "Lorem Ipsum",CODE
LOW…ranslator/output/aws-cn/websocket_api_description.json58 "Description": "Lorem Ipsum",CODE
LOW…lator/output/aws-us-gov/websocket_api_description.json58 "Description": "Lorem Ipsum",CODE
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/metrics/test_method_decorator.py15 def my_method(self):CODE
LOWtests/metrics/test_method_decorator.py43 def my_function():CODE