Repository Analysis

aws/aws-sam-cli

CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM

21.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of aws/aws-sam-cli, a Python project with 6,733 GitHub stars. SynthScan v2.0 examined 405,916 lines of code across 3544 source files, recording 7733 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 21.0 places this repository in the Moderate AI signal 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).

21.0
Adjusted Score
21.0
Raw Score
100%
Time Factor
2026-09-02
Last Push
6.7K
Stars
Python
Language
405.9K
Lines of Code
3.5K
Files
7.7K
Pattern Hits
2026-09-02
Scan Date
0.05
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 15HIGH 167MEDIUM 216LOW 7335

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 7733 distinct pattern matches across 20 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 Identifiers6349 hits · 5808 pts
SeverityFileLineSnippetContext
LOWdesigns/intrinsics_design.md299def intrinsic_property_resolver():CODE
LOWdesigns/cloud_formation_api_gateway_support.md228 def _extrac_api_gateway_rest_api():CODE
LOWdesigns/cloud_formation_api_gateway_support.md236 def _extract_gateway_rest_api():CODE
LOWdesigns/cloud_formation_api_gateway_support.md248 def _extract_gateway_resource():CODE
LOWtests/testing_utils.py353def strip_nightly_installer_suffix(request: dict, metric_type: str):CODE
LOWtests/get_testing_resources.py32def get_managed_test_resource_outputs(session: Session):CODE
LOWtests/setup_testing_resources.py130def check_conversion_exemptions():CODE
LOWtests/unit/test_yamlhelper.py77 def test_parse_json_with_tabs(self):STRING
LOWtests/unit/test_yamlhelper.py82 def test_parse_json_preserve_elements_order(self):STRING
LOWtests/unit/test_yamlhelper.py112 def test_parse_yaml_preserve_elements_order(self):STRING
LOWtests/unit/test_yamlhelper.py166 def test_unquoted_template_format_version_to_json(self):STRING
LOWtests/unit/cli/test_command.py70 def test_set_commands_must_extract_command_name(self):CODE
LOWtests/unit/cli/test_command.py76 def test_list_commands_must_return_commands_name(self):CODE
LOWtests/unit/cli/test_command.py84 def test_get_command_must_return_command_module(self, importlib_mock):CODE
LOWtests/unit/cli/test_command.py107 def test_get_command_must_skip_unknown_commands(self):CODE
LOWtests/unit/cli/test_command.py117 def test_get_command_must_skip_on_exception_loading_module(self, importlib_mock):CODE
LOWtests/unit/cli/test_command.py130 def test_get_command_must_skip_on_absence_of_cli_method(self, importlib_mock):CODE
LOWtests/unit/cli/test_command.py143 def test_get_command_root_command(self, importlib_mock):CODE
LOWtests/unit/cli/test_command.py157 def test_get_options_root_command_text(self, mock_get_params, mock_format_commands):CODE
LOWtests/unit/cli/test_command.py180 def test_get_command_root_command_text(self):CODE
LOWtests/unit/cli/test_cli_config_file.py47 def test_toml_valid_with_section(self, mock_handle_parse_options):CODE
LOWtests/unit/cli/test_cli_config_file.py55 def test_toml_valid_with_no_version(self):CODE
LOWtests/unit/cli/test_cli_config_file.py62 def test_toml_valid_with_invalid_version(self):CODE
LOWtests/unit/cli/test_cli_config_file.py69 def test_toml_invalid_empty_dict(self):CODE
LOWtests/unit/cli/test_cli_config_file.py77 def test_toml_invalid_file_name(self):CODE
LOWtests/unit/cli/test_cli_config_file.py154 def test_callback_with_valid_config_file_path(self):CODE
LOWtests/unit/cli/test_cli_config_file.py184 def test_callback_with_config_file_from_pipe(self):CODE
LOWtests/unit/cli/test_cli_config_file.py607 def test_succeeds_updating_option(self, mock_click):CODE
LOWtests/unit/cli/test_cli_config_file.py617 def test_doesnt_update_not_needed_options(self, mock_click):CODE
LOWtests/unit/cli/test_cli_config_file.py627 def test_doesnt_update_multiple_false(self, mock_click):CODE
LOWtests/unit/cli/test_cli_config_file.py637 def test_doesnt_update_not_found(self, mock_click):CODE
LOWtests/unit/cli/test_cli_config_file.py112 def test_callback_with_valid_config_env(self):CODE
LOWtests/unit/cli/test_cli_config_file.py134 def test_callback_with_invalid_config_file(self):CODE
LOWtests/unit/cli/test_cli_config_file.py217 def test_configuration_option(self):CODE
LOWtests/unit/cli/test_cli_config_file.py230 def test_get_ctx_defaults_non_nested(self):CODE
LOWtests/unit/cli/test_cli_config_file.py241 def test_get_ctx_defaults_nested(self):CODE
LOWtests/unit/cli/test_cli_config_file.py282 def test_dont_save_command_line_args_if_flag_not_set(self):CODE
LOWtests/unit/cli/test_cli_config_file.py294 def test_save_command_line_args(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py334 def test_dont_save_structured_output_option(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py377 def test_dont_save_arguments_not_from_command_line(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py416 def test_dont_save_command_line_args_if_value_is_none(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py454 def test_save_region_when_context_has_region(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py488 def test_save_default_region_when_context_has_no_region(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py525 def test_save_default_region_when_no_sam_context(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py560 def test_save_region_with_custom_config_env(self, mock_context_class, mock_get_default_aws_region):CODE
LOWtests/unit/cli/test_cli_config_file.py648 def test_handles_invalid_param_name(self, mock_click, mock_log):CODE
LOWtests/unit/cli/test_cli_config_file.py661 def test_handles_invalid_param_multiple(self, mock_click, mock_log, mock_get_options_map):CODE
LOWtests/unit/cli/test_lazy_group.py18 def test_lazy_group_lists_commands(self):CODE
LOWtests/unit/cli/test_lazy_group.py37 def test_lazy_group_loads_command_on_demand(self, mock_import):CODE
LOWtests/unit/cli/test_lazy_group.py65 def test_lazy_group_handles_missing_command(self, mock_import):CODE
LOWtests/unit/cli/test_lazy_group.py85 def test_lazy_group_handles_import_error(self, mock_import):CODE
LOWtests/unit/cli/test_lazy_group.py105 def test_lazy_group_validates_command_object(self, mock_import):CODE
LOWtests/unit/cli/test_row_modifiers.py16 def test_base_line_row_modifier(self):CODE
LOWtests/unit/cli/test_row_modifiers.py23 def test_highlight_new_row_name_modifier(self):CODE
LOWtests/unit/cli/test_row_modifiers.py30 def test_showcase_row_modifier(self):CODE
LOWtests/unit/cli/test_global_config.py126 def test_get_value_env_var_only(self):CODE
LOWtests/unit/cli/test_global_config.py133 def test_get_value_env_var_and_config_priority(self):CODE
LOWtests/unit/cli/test_global_config.py140 def test_get_value_config_only(self):CODE
LOWtests/unit/cli/test_global_config.py148 def test_get_value_error_default(self):CODE
LOWtests/unit/cli/test_global_config.py156 def test_get_value_incorrect_type_default(self):CODE
6289 more matches not shown…
Decorative Section Separators153 hits · 524 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/lib/samlib/test_wrapper.py316# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py318# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py407# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py409# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py582# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py584# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py701# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py703# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py1073# =============================================================================COMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py1075# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_sam_integration.py102# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_sam_integration.py104# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_sam_integration.py778# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_sam_integration.py780# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_sam_integration.py22# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_sam_integration.py24# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_sam_integration.py180# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_sam_integration.py182# =============================================================================COMMENT
MEDIUMtests/unit/lib/cfn_language_extensions/test_fn_if.py637# =============================================================================COMMENT
MEDIUMtests/unit/lib/cfn_language_extensions/test_fn_if.py639# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py35# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py37# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py646# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py648# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py143# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py145# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py337# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py339# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py472# =============================================================================COMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py474# =============================================================================COMMENT
MEDIUM…/lib/cfn_language_extensions/test_foreach_processor.py1609# =============================================================================COMMENT
MEDIUM…/lib/cfn_language_extensions/test_foreach_processor.py1611# =============================================================================COMMENT
MEDIUM…/lib/cfn_language_extensions/test_foreach_processor.py1614# =============================================================================COMMENT
MEDIUM…/lib/cfn_language_extensions/test_foreach_processor.py1616# =============================================================================COMMENT
MEDIUM…sts/unit/lib/cfn_language_extensions/test_fn_length.py446# =============================================================================COMMENT
MEDIUM…sts/unit/lib/cfn_language_extensions/test_fn_length.py448# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_deletion_policy.py536# =============================================================================COMMENT
MEDIUM…it/lib/cfn_language_extensions/test_deletion_policy.py538# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py28# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py30# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py216# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py218# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py373# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py375# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py589# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py591# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py762# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py764# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py913# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py915# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py979# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py981# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py1035# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_property_tests.py1037# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_fn_find_in_map.py159# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_fn_find_in_map.py161# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_fn_find_in_map.py232# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_fn_find_in_map.py234# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_fn_find_in_map.py325# =============================================================================COMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_fn_find_in_map.py327# =============================================================================COMMENT
93 more matches not shown…
Cross-File Repetition98 hits · 490 pts
SeverityFileLineSnippetContext
HIGHtests/unit/lib/cfn_language_extensions/test_fn_join.py0test that can_resolve returns false for other functions.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_if.py0test that can_resolve returns false for other functions.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_base64.py0test that can_resolve returns false for other functions.STRING
HIGH…lib/cfn_language_extensions/test_condition_resolver.py0test that can_resolve returns false for other functions.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_split.py0test that can_resolve returns false for other functions.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_length.py0test that can_resolve returns false for other functions.STRING
HIGH…nit/lib/cfn_language_extensions/test_fn_find_in_map.py0test that can_resolve returns false for other functions.STRING
HIGH…/lib/cfn_language_extensions/test_fn_to_json_string.py0test that can_resolve returns false for other functions.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_select.py0test that can_resolve returns false for other functions.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_ref.py0test that can_resolve returns false for other functions.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_sub.py0test that can_resolve returns false for other functions.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_join.py0test that can_resolve returns false for non-dict values.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_if.py0test that can_resolve returns false for non-dict values.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_base64.py0test that can_resolve returns false for non-dict values.STRING
HIGH…lib/cfn_language_extensions/test_condition_resolver.py0test that can_resolve returns false for non-dict values.STRING
HIGH…nit/lib/cfn_language_extensions/test_resolvers_base.py0test that can_resolve returns false for non-dict values.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_split.py0test that can_resolve returns false for non-dict values.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_length.py0test that can_resolve returns false for non-dict values.STRING
HIGH…nit/lib/cfn_language_extensions/test_fn_find_in_map.py0test that can_resolve returns false for non-dict values.STRING
HIGH…/lib/cfn_language_extensions/test_fn_to_json_string.py0test that can_resolve returns false for non-dict values.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_select.py0test that can_resolve returns false for non-dict values.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_ref.py0test that can_resolve returns false for non-dict values.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_sub.py0test that can_resolve returns false for non-dict values.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_fn_join.py0a mock resolver that implements fn::split for testing nested intrinsics.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_length.py0a mock resolver that implements fn::split for testing nested intrinsics.STRING
HIGH…nit/lib/cfn_language_extensions/test_fn_find_in_map.py0a mock resolver that implements fn::split for testing nested intrinsics.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_base64.py0a mock resolver that resolves ref to parameter values for testing.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_length.py0a mock resolver that resolves ref to parameter values for testing.STRING
HIGH…nit/lib/cfn_language_extensions/test_fn_find_in_map.py0a mock resolver that resolves ref to parameter values for testing.STRING
HIGH…sts/unit/lib/cfn_language_extensions/test_fn_length.py0test that fn::tojsonstring is resolved even in partial mode. requirement 16.4: in partial mode, still resolve fn::tojsonSTRING
HIGH…nit/lib/cfn_language_extensions/test_fn_find_in_map.py0test that fn::tojsonstring is resolved even in partial mode. requirement 16.4: in partial mode, still resolve fn::tojsonSTRING
HIGH…/lib/cfn_language_extensions/test_fn_to_json_string.py0test that fn::tojsonstring is resolved even in partial mode. requirement 16.4: in partial mode, still resolve fn::tojsonSTRING
HIGH…it/lib/cfn_language_extensions/test_deletion_policy.py0test processing template with empty resources section.STRING
HIGHtests/unit/lib/cfn_language_extensions/test_api.py0test processing template with empty resources section.STRING
HIGH…/cfn_language_extensions/test_update_replace_policy.py0test processing template with empty resources section.STRING
HIGHtests/integration/testdata/list/hello_world/app.py0sample pure lambda function parameters ---------- event: dict, required api gateway lambda proxy input format event doc:STRING
HIGH…hello/{{cookiecutter.project_name}}/hello_world/app.py0sample pure lambda function parameters ---------- event: dict, required api gateway lambda proxy input format event doc:STRING
HIGH…hello/{{cookiecutter.project_name}}/hello_world/app.py0sample pure lambda function parameters ---------- event: dict, required api gateway lambda proxy input format event doc:STRING
HIGH…hello/{{cookiecutter.project_name}}/hello_world/app.py0sample pure lambda function parameters ---------- event: dict, required api gateway lambda proxy input format event doc:STRING
HIGH…ython/{{cookiecutter.project_name}}/hello_world/app.py0sample pure lambda function parameters ---------- event: dict, required api gateway lambda proxy input format event doc:STRING
HIGH…2c9dce715854f8b35aa73fb7eb5245ba9721580bbe5837/main.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…df01072092f9851ddcd1b41ba294f736ce77091f5cc456/main.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…2c9dce715854f8b35aa73fb7eb5245ba9721580bbe5837/main.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…df01072092f9851ddcd1b41ba294f736ce77091f5cc456/main.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…tion/testdata/sync/infra/before/Python/function/app.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…ation/testdata/sync/infra/after/Python/function/app.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…/integration/testdata/sync/code/before/function/app.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…s/integration/testdata/sync/code/after/function/app.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…before/child_stack/child_function/function/function.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…data/sync/nested/before/root_function/root_function.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…d/before/child_stack/child_functions/child_function.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…tdata/sync/nested/after/root_function/root_function.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…ed/after/child_stack/child_functions/child_function.py0sample pure lambda function that returns a message and a locationSTRING
HIGH…n/testdata/sync/infra/after/Python/lmi_function/app.py0returns environment variables, particularly aws_lambda_max_concurrency. used for testing capacity provider configurationSTRING
HIGH…ration/testdata/sync/code/after/lmi_function/app_v2.py0returns environment variables, particularly aws_lambda_max_concurrency. used for testing capacity provider configurationSTRING
HIGH…tegration/testdata/sync/code/after/lmi_function/app.py0returns environment variables, particularly aws_lambda_max_concurrency. used for testing capacity provider configurationSTRING
HIGH…ration/testdata/sync/code/after/lmi_function/app_v1.py0returns environment variables, particularly aws_lambda_max_concurrency. used for testing capacity provider configurationSTRING
HIGH…egration/buildcmd/test_build_terraform_applications.py0please read comments in package_integ_base.py for more details around this.STRING
HIGHtests/integration/publish/publish_app_integ_base.py0please read comments in package_integ_base.py for more details around this.STRING
HIGHtests/regression/package/regression_package_base.py0please read comments in package_integ_base.py for more details around this.STRING
38 more matches not shown…
Unused Imports482 hits · 436 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py3CODE
LOWtests/setup_testing_resources.py12CODE
LOWtests/unit/cli/test_cli_config_file.py11CODE
LOWtests/unit/cli/test_global_config.py3CODE
LOWtests/unit/cli/test_main.py2CODE
LOWtests/unit/local/apigw/test_local_apigw_service.py27CODE
LOW…nit/local/docker/test_lambda_image_concurrent_build.py7CODE
LOW…nit/local/docker/test_lambda_image_concurrent_build.py15CODE
LOWtests/unit/local/docker/test_lambda_image_build_lock.py10CODE
LOWtests/unit/local/docker/test_lambda_image_build_lock.py10CODE
LOWtests/unit/local/docker/test_lambda_image_build_lock.py12CODE
LOWtests/unit/local/docker/test_container.py5CODE
LOW…sts/unit/local/docker/test_container_client_factory.py10CODE
LOW…sts/unit/local/docker/test_container_client_factory.py13CODE
LOWtests/unit/local/docker/test_container_client.py9CODE
LOW…sts/unit/local/docker/test_durable_lambda_container.py6CODE
LOWtests/unit/local/docker/test_manager.py5CODE
LOWtests/unit/local/docker/test_manager.py8CODE
LOWtests/unit/local/docker/test_platform_config.py17CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py5CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py6CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py8CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py11CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py17CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py19CODE
LOWtests/unit/local/layers/test_download_layers.py1CODE
LOWtests/unit/local/layers/test_download_layers.py9CODE
LOWtests/unit/local/lambdafn/test_env_vars.py7CODE
LOWtests/unit/local/lambdafn/test_runtime.py6CODE
LOW…local/lambda_service/test_local_lambda_http_service.py2CODE
LOW…local/lambda_service/test_local_lambda_http_service.py3CODE
LOW…local/lambda_service/test_local_lambda_http_service.py14CODE
LOWtests/unit/schema/test_schema_validation.py4CODE
LOWtests/unit/lib/samlib/test_wrapper.py2CODE
LOW…ib/init/test_application_insights_template_modifier.py3CODE
LOW…ib/init/test_application_insights_template_modifier.py6CODE
LOW…ib/init/test_application_insights_template_modifier.py7CODE
LOWtests/unit/lib/clients/test_lambda_client.py5CODE
LOWtests/unit/lib/clients/test_lambda_client.py6CODE
LOWtests/unit/lib/clients/test_lambda_client.py8CODE
LOWtests/unit/lib/clients/test_lambda_client.py10CODE
LOWtests/unit/lib/pipeline/bootstrap/test_environment.py8CODE
LOW…/unit/lib/bootstrap/companion_stack/test_data_types.py4CODE
LOW…ib/bootstrap/nested_stack/test_nested_stack_builder.py4CODE
LOWtests/unit/lib/deploy/test_deployer.py15CODE
LOWtests/unit/lib/cookiecutter/test_interactive_flow.py1CODE
LOWtests/unit/lib/utils/test_tar.py4CODE
LOW…sts/unit/lib/utils/test_resource_type_based_factory.py4CODE
LOW…sts/unit/lib/utils/test_resource_type_based_factory.py4CODE
LOWtests/unit/lib/utils/test_git_repo.py2CODE
LOWtests/unit/lib/utils/test_handler_observer.py3CODE
LOWtests/unit/lib/utils/test_code_trigger_factory.py1CODE
LOWtests/unit/lib/utils/test_code_trigger_factory.py3CODE
LOWtests/unit/lib/utils/test_durable_formatters.py7CODE
LOWtests/unit/lib/utils/test_definition_validator.py1CODE
LOWtests/unit/lib/utils/test_definition_validator.py3CODE
LOWtests/unit/lib/utils/test_async_utils.py2CODE
LOWtests/unit/lib/utils/test_version_checker.py3CODE
LOWtests/unit/lib/utils/test_version_checker.py5CODE
LOW…ts/unit/lib/utils/test_managed_cloudformation_stack.py2CODE
422 more matches not shown…
Docstring Block Structure40 hits · 200 pts
SeverityFileLineSnippetContext
HIGH…i/local/docker/durable_functions_emulator_container.py108 Get port from environment variables. External emulator port takes first priority, followed by any overrSTRING
HIGHsamcli/local/docker/container_client.py143 Load image from archive with runtime-specific handling. This method handles the differences between coSTRING
HIGHsamcli/local/docker/container_client.py195 Get archive from container with runtime-specific handling. Different container runtimes handle file exSTRING
HIGHsamcli/local/docker/container_client.py353 Load image from archive using standard Docker image loading logic. Uses Docker's standard high-level ASTRING
HIGHsamcli/local/docker/container_client.py558 Load image from archive with Finch overlayfs workaround using raw API fallback. Finch has known issuesSTRING
HIGHsamcli/local/docker/container_client.py589 Handle Finch overlayfs workaround using raw API. This method uses the raw Docker API to work around FiSTRING
HIGHsamcli/local/docker/container_client_factory.py64 Create and test client based on administrator enforcement. Creates preferred client instance and testsSTRING
HIGHsamcli/lib/cfn_language_extensions/api.py684 Process a CloudFormation template with language extensions. This is the main entry point for processing CloudFSTRING
HIGHsamcli/lib/cfn_language_extensions/api.py729 Load a CloudFormation template from a JSON file. This function reads a JSON file and parses it into a dictionaSTRING
HIGHsamcli/lib/cfn_language_extensions/api.py752 Load a CloudFormation template from a YAML file. This function reads a YAML file and parses it into a dictionaSTRING
HIGHsamcli/lib/cfn_language_extensions/api.py778 Load a CloudFormation template from a file, auto-detecting the format. This function automatically detects theSTRING
HIGHsamcli/lib/cfn_language_extensions/pipeline.py77 Run all processors and return the processed fragment. Executes each processor in order, passing the coSTRING
HIGHsamcli/lib/cfn_language_extensions/sam_integration.py612 Process a template for SAM CLI commands. This function is designed to be called from SAM CLI's template prSTRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_join.py43 Resolve the Fn::Join intrinsic function. This method extracts the delimiter and list from the Fn::JoinSTRING
HIGH…mcli/lib/cfn_language_extensions/resolvers/fn_split.py42 Resolve the Fn::Split intrinsic function. This method extracts the delimiter and source string from thSTRING
HIGH…cli/lib/cfn_language_extensions/resolvers/fn_select.py44 Resolve the Fn::Select intrinsic function. This method extracts the index and list from the Fn::SelectSTRING
HIGH…cfn_language_extensions/resolvers/fn_to_json_string.py41 Resolve the Fn::ToJsonString intrinsic function. This method extracts the arguments from the Fn::ToJsoSTRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_sub.py53 Resolve the Fn::Sub intrinsic function. This method handles both short form and long form Fn::Sub: STRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_sub.py83 Parse Fn::Sub arguments into template string and variable map. Args: args: The Fn::Sub argSTRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_sub.py119 Resolve intrinsic functions in variable map values. Args: variable_map: The variable map fSTRING
HIGH…ib/cfn_language_extensions/resolvers/fn_find_in_map.py53 Resolve the Fn::FindInMap intrinsic function. This method extracts the arguments from the Fn::FindInMaSTRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_ref.py33 Resolve the Ref intrinsic function. This method extracts the reference target from the Ref function anSTRING
HIGH…fn_language_extensions/resolvers/condition_resolver.py66 Resolve the condition intrinsic function. This method dispatches to the appropriate handler based on tSTRING
HIGH…fn_language_extensions/resolvers/condition_resolver.py100 Resolve Fn::Equals intrinsic function. Fn::Equals compares two values and returns true if they are equSTRING
HIGH…fn_language_extensions/resolvers/condition_resolver.py165 Resolve Fn::And intrinsic function. Fn::And returns true if all conditions are true. It accepts 2-10 cSTRING
HIGH…fn_language_extensions/resolvers/condition_resolver.py196 Resolve Fn::Or intrinsic function. Fn::Or returns true if any condition is true. It accepts 2-10 condiSTRING
HIGH…fn_language_extensions/resolvers/condition_resolver.py227 Resolve Fn::Not intrinsic function. Fn::Not returns the inverse of a condition. Args: STRING
HIGH…fn_language_extensions/resolvers/condition_resolver.py290 Resolve a Condition reference. The Condition intrinsic function references a named condition from STRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_if.py46 Resolve the Fn::If intrinsic function. This method extracts the condition name and two value branches STRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/fn_if.py110 Evaluate a condition by name. This method looks up the condition in the resolved_conditions cache STRING
HIGH…cli/lib/cfn_language_extensions/resolvers/fn_base64.py38 Resolve the Fn::Base64 intrinsic function. This method extracts the arguments from the Fn::Base64 funcSTRING
HIGH…cli/lib/cfn_language_extensions/resolvers/fn_length.py36 Resolve the Fn::Length intrinsic function. This method extracts the arguments from the Fn::Length funcSTRING
HIGHsamcli/lib/cfn_language_extensions/resolvers/base.py127 Resolve the intrinsic function and return the result. This method must be implemented by subclasses toSTRING
HIGH…/cfn_language_extensions/processors/resource_policy.py67 Resolve and validate a policy value. Args: logical_id: The logical ID of the resource. STRING
HIGH…/cfn_language_extensions/processors/resource_policy.py95 Resolve an intrinsic function in a policy value. Args: logical_id: The logical ID of the rSTRING
HIGH…mcli/lib/cfn_language_extensions/processors/foreach.py197 Process a template section (or nested dict) for Fn::ForEach constructs. This method iterates through tSTRING
HIGH…mcli/lib/cfn_language_extensions/processors/foreach.py306 Validate a Fn::ForEach construct. The ForEach value must be a list with exactly 3 elements: 1.STRING
HIGH…mcli/lib/cfn_language_extensions/processors/foreach.py547 Resolve a collection that may contain intrinsic functions. If the collection is an intrinsic function STRING
HIGHsamcli/commands/pipeline/init/interactive_init_flow.py381 parse and return the manifest yaml file located in the root directory of the SAM pipeline templates folder: PaSTRING
HIGHsamcli/commands/pipeline/init/interactive_init_flow.py502 A pipeline template defines its own interactive flow (questionnaire) in a JSON file named questions.json located STRING
Excessive Try-Catch Wrapping158 hits · 164 pts
SeverityFileLineSnippetContext
LOWtests/testing_utils.py77 except Exception:CODE
LOWtests/testing_utils.py82 except Exception:CODE
LOWtests/testing_utils.py87 except Exception:CODE
LOWtests/testing_utils.py91 except Exception:CODE
LOWtests/testing_utils.py280 except Exception as ex:CODE
MEDIUMtests/testing_utils.py271def _read_output():CODE
LOWtests/reset_testing_resources.py77 except Exception as e:CODE
LOWtests/setup_testing_resources.py168 except Exception:CODE
LOWtests/setup_testing_resources.py172 except Exception as e:CODE
MEDIUMtests/unit/local/docker/test_container.py1657def make_request(event_data):CODE
LOWtests/unit/local/docker/test_container.py1663 except Exception as e:CODE
LOW…ib/shared_test_events/test_lambda_shared_test_event.py500 except Exception as e:CODE
LOW…ib/shared_test_events/test_lambda_shared_test_event.py511 except Exception as e:CODE
LOWtests/unit/lib/utils/test_git_repo.py172 except Exception:CODE
LOWtests/unit/lib/utils/test_git_repo.py189 except Exception:CODE
LOWtests/unit/lib/utils/test_git_repo.py203 except Exception:CODE
LOW…t/lib/cfn_language_extensions/test_phase_separation.py631 except Exception:CODE
LOW…t/lib/cfn_language_extensions/test_phase_separation.py568 except Exception:CODE
LOWtests/unit/lib/build_module/test_utils.py275 except Exception as e:CODE
LOWtests/unit/commands/test_exceptions.py15 except Exception as e:CODE
LOW…t/commands/validate/lib/test_sam_template_validator.py334 except Exception:CODE
LOW…t/commands/validate/lib/test_sam_template_validator.py352 except Exception:CODE
LOW…unit/commands/local/cli_common/test_durable_context.py59 except Exception:CODE
LOWtests/end_to_end/test_stages.py68 except Exception:CODE
LOWtests/integration/local/invoke/test_integrations_cli.py817 except Exception:CODE
LOWtests/integration/local/invoke/test_invoke_dns.py73 except Exception as e:CODE
LOW…tion/local/start_lambda/start_lambda_api_integ_base.py203 except Exception:CODE
LOW…tion/local/start_lambda/start_lambda_api_integ_base.py226 except Exception as ex:CODE
LOW…ts/integration/local/start_lambda/test_start_lambda.py424 except Exception:CODE
LOW…ts/integration/local/start_lambda/test_start_lambda.py429 except Exception:CODE
LOW…ntegration/local/start_lambda/test_start_lambda_dns.py123 except Exception as e:CODE
LOW…ts/integration/local/start_api/start_api_integ_base.py164 except Exception:CODE
LOW…ts/integration/local/start_api/start_api_integ_base.py187 except Exception as ex:CODE
LOWtests/integration/local/start_api/test_start_api_dns.py87 except Exception as e:CODE
LOWtests/integration/local/start_api/test_start_api.py2241 except Exception:CODE
LOWtests/integration/local/start_api/test_start_api.py2246 except Exception:CODE
LOWtests/integration/local/start_api/test_start_api.py2269 except Exception:CODE
LOWtests/integration/local/start_api/test_start_api.py2277 except Exception:CODE
LOWtests/integration/sync/sync_integ_base.py104 except Exception:CODE
LOWtests/integration/sync/sync_integ_base.py122 except Exception:CODE
LOWtests/integration/sync/sync_integ_base.py137 except Exception:CODE
LOWtests/integration/sync/sync_integ_base.py168 except Exception:CODE
LOW…tion/remote/test_event/remote_test_event_integ_base.py39 except Exception as e:CODE
LOW…tion/remote/test_event/remote_test_event_integ_base.py69 except Exception as e: # Ignore if it doesn't exist (it was correctly deleted during tests)CODE
LOWsamcli/cli/cli_config_file.py122 except Exception as ex:CODE
LOWsamcli/local/apigw/local_apigw_service.py712 except Exception as ex:CODE
LOW…i/local/docker/durable_functions_emulator_container.py177 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py224 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py319 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py321 except Exception:CODE
LOW…i/local/docker/durable_functions_emulator_container.py343 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py355 except Exception:CODE
LOW…i/local/docker/durable_functions_emulator_container.py363 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py387 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py410 except Exception as e:CODE
LOW…i/local/docker/durable_functions_emulator_container.py420 except Exception:CODE
LOWsamcli/local/docker/lambda_image.py301 except Exception:CODE
LOWsamcli/local/docker/container_client.py301 except Exception as e:CODE
LOWsamcli/local/docker/container_client.py310 except Exception as e:CODE
LOWsamcli/local/docker/container_client.py528 except Exception as e:CODE
98 more matches not shown…
Hallucination Indicators15 hits · 160 pts
SeverityFileLineSnippetContext
CRITICALtests/unit/lib/delete/test_cfn_utils.py136 self.cf_utils._client.get_waiter.return_value.wait.assert_called_with(CODE
CRITICALtests/unit/lib/schemas/test_schemas_api_caller.py45 self.client.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/lib/schemas/test_schemas_api_caller.py71 self.client.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/lib/schemas/test_schemas_api_caller.py124 self.client.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/lib/schemas/test_schemas_api_caller.py162 self.client.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/lib/schemas/test_schemas_api_caller.py379 self.client.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py122 self.layer_sync_flow._get_lock_chain.return_value.__enter__.assert_not_called()CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py123 self.layer_sync_flow._get_lock_chain.return_value.__exit__.assert_not_called()CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py141 self.layer_sync_flow._get_lock_chain.return_value.__enter__.assert_called_once()CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py142 self.layer_sync_flow._get_lock_chain.return_value.__exit__.assert_called_once()CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py424 self.function_layer_sync._get_lock_chain.return_value.__enter__.assert_called_once()CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py429 self.function_layer_sync._get_lock_chain.return_value.__exit__.assert_called_once()CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py453 self.function_layer_sync._get_lock_chain.return_value.__enter__.assert_not_called()CODE
CRITICALtests/unit/lib/sync/flows/test_layer_sync_flow.py456 self.function_layer_sync._get_lock_chain.return_value.__exit__.assert_not_called()CODE
CRITICAL…/commands/pipeline/init/test_initeractive_init_flow.py356 templates_path = Path(__file__).parent.parent.parent.parent.parent.joinpath(CODE
Self-Referential Comments49 hits · 158 pts
SeverityFileLineSnippetContext
MEDIUMtests/install-rust.sh66# Create a zig wrapper so SAM CLI's cargo-lambda can find itCOMMENT
MEDIUMtests/unit/cli/test_cli_config_file.py160 # Create a temporary directory.COMMENT
MEDIUMtests/unit/cli/test_cli_config_file.py162 # Create a new config file path that is one layer above the temporary directory.COMMENT
MEDIUMtests/unit/cli/test_cli_config_file.py190 # Create a temporary directory.COMMENT
MEDIUMtests/unit/cli/test_cli_config_file.py192 # Create a new config file path that is one layer above the temporary directory.COMMENT
MEDIUMtests/unit/cli/test_cli_config_file.py195 # Create a new pipeCOMMENT
MEDIUM…nit/local/docker/test_lambda_image_concurrent_build.py271 # Create a layer that is defined within templateCOMMENT
MEDIUMtests/unit/local/docker/test_lambda_image_build_lock.py55 # Create a fresh lock fileCOMMENT
MEDIUMtests/unit/local/docker/test_lambda_image_build_lock.py69 # Create a stale lock fileCOMMENT
MEDIUMtests/unit/local/docker/test_lambda_image_build_lock.py164 # Create a stale lock fileCOMMENT
MEDIUMtests/unit/local/docker/test_lambda_image_build_lock.py183 # Create a persistent lock fileCOMMENT
MEDIUMtests/unit/local/docker/test_container_client.py776 # Create a mock client that doesn't inherit from docker.DockerClientCOMMENT
MEDIUMtests/unit/local/docker/test_platform_config.py467 # Create a concrete implementation that calls the abstract methods directlyCOMMENT
MEDIUMtests/unit/local/common/test_file_lock.py99 # Create a lock file manually with old timestampCOMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py465 # Create a deep copy of the original template to compare laterCOMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py513 # Create a deep copy of the original template to compare laterCOMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py565 # Create a deep copy of the original template to compare laterCOMMENT
MEDIUMtests/unit/lib/samlib/test_wrapper.py1132 # Create a deep copy of the original template to compare laterCOMMENT
MEDIUM…t/lib/cfn_language_extensions/test_phase_separation.py614 # Create a minimal PackageContextCOMMENT
MEDIUM…nit/lib/cfn_language_extensions/test_resolvers_base.py332 # Create a subclass that doesn't override resolveCOMMENT
MEDIUM…sts/unit/lib/cfn_language_extensions/test_fn_length.py332 # Create a mock that returns an integerCOMMENT
MEDIUMtests/unit/lib/cfn_language_extensions/test_api.py513 # Create an invalid JSON fileCOMMENT
MEDIUMtests/unit/lib/cfn_language_extensions/test_api.py481 # Create a test JSON fileCOMMENT
MEDIUMtests/unit/lib/cfn_language_extensions/test_api.py555 # Create a test YAML fileCOMMENT
MEDIUMtests/unit/lib/cfn_language_extensions/test_api.py587 # Create an invalid YAML fileSTRING
MEDIUMtests/unit/lib/build_module/test_app_builder.py1571 # Create a mock WindowsPath object with the necessary attributesCOMMENT
MEDIUMtests/unit/lib/build_module/test_app_builder.py1678 # Create a new builder instance to trigger the exception during initializationCOMMENT
MEDIUMtests/unit/lib/sync/flows/test_function_sync_flow.py26 # Create a mock Lambda client that will be used across all testsCOMMENT
MEDIUMtests/unit/lib/sync/flows/test_function_sync_flow.py94 # Create a mock for the publish paramsCOMMENT
MEDIUM…t/commands/_utils/test_template_language_extensions.py40 # Create a source directoryCOMMENT
MEDIUMtests/unit/commands/_utils/test_template.py604 # Create a fake image archive at the resolved relative path from CWDCOMMENT
MEDIUMtests/unit/commands/_utils/test_template.py612 # Create the archive at the CWD-relative resolved pathCOMMENT
MEDIUM…/testdata/remote_invoke/template-kinesis-priority.yaml6 # Define an AWS Kinesis Data StreamCOMMENT
MEDIUM…estdata/remote_invoke/template-multiple-resources.yaml107 # Define an AWS Kinesis Data StreamCOMMENT
MEDIUM…ldcmd/test_build_terraform_applications_other_cases.py306 # The following functions are defined using serverless tf module, and since Serverless TF has some issueCOMMENT
MEDIUM…tion/local/start_lambda/start_lambda_api_integ_base.py62 # Create the Docker client with automatic container selectionCOMMENT
MEDIUMsamcli/local/layers/layer_downloader.py127 # Create the layer directory with proper race condition handlingCOMMENT
MEDIUMsamcli/local/lambdafn/zip.py106 # Create a symbolic link pointing to source named link_name.COMMENT
MEDIUMsamcli/local/common/file_lock.py63 # Create a safe filename from the resource nameCOMMENT
MEDIUMsamcli/lib/clients/lambda_client.py53 # Create a fresh botocore sessionCOMMENT
MEDIUMsamcli/lib/clients/lambda_client.py56 # Create the boto3 client using the fresh sessionCOMMENT
MEDIUMsamcli/lib/pipeline/bootstrap/stage.py213 # Create an IPV4 socket and use TLS for the SSL connectionCOMMENT
MEDIUMsamcli/lib/providers/provider.py576 # The following code is based on the following spec:COMMENT
MEDIUMsamcli/lib/cookiecutter/question.py1"""This module represents the questions to ask to the user to fulfill the cookiecutter context."""STRING
MEDIUMsamcli/lib/utils/path_observer.py56 """This class is used to alter the behavior of watchdog folder watches.STRING
MEDIUMsamcli/lib/cfn_language_extensions/api.py663 # Create the intrinsic resolverCOMMENT
MEDIUMsamcli/lib/cfn_language_extensions/api.py715 # Create the processing contextCOMMENT
MEDIUMsamcli/lib/remote_invoke/lambda_invoke_executors.py162 # Create a helpful message for the userCOMMENT
MEDIUMsamcli/lib/remote_invoke/sqs_invoke_executors.py133 # Create an object with MD5OfMessageBody and MessageId fields, and write to stdoutCOMMENT
Cross-Language Confusion29 hits · 155 pts
SeverityFileLineSnippetContext
HIGHtests/unit/local/apigw/test_event_constructor.py48 '"c6af9ac6-7b61-11e6-9a41-93e8deadbeef", "path": "endpoint", "extendedRequestId": null, 'CODE
HIGHtests/unit/local/apigw/test_event_constructor.py49 '"resourceId": "123456", "apiId": "1234567890", "stage": null, "resourcePath": "endpoint", 'CODE
HIGHtests/unit/local/apigw/test_event_constructor.py50 '"identity": {"accountId": null, "apiKey": null, "userArn": null, 'CODE
HIGHtests/unit/local/apigw/test_event_constructor.py51 '"cognitoAuthenticationProvider": null, "cognitoIdentityPoolId": null, "userAgent": 'CODE
HIGHtests/unit/local/apigw/test_event_constructor.py52 '"Custom User Agent String", "caller": null, "cognitoAuthenticationType": null, "sourceIp": 'CODE
HIGHtests/unit/local/apigw/test_event_constructor.py53 '"190.0.0.0", "user": null}, "accountId": "123456789012", "domainName": "190.0.0.1", 'CODE
HIGHtests/unit/local/apigw/test_event_constructor.py58 '"stageVariables": null, "path": "path", "pathParameters": {"path": "params"}, 'CODE
HIGHtests/unit/local/apigw/test_event_constructor.py245 "stageVariables": null,CODE
HIGHtests/unit/local/apigw/test_local_apigw_service.py1976 lambda_output = '{"statusCode": 0, "headers": null, "body": null, ' '"isBase64Encoded": null}'CODE
HIGHtests/unit/local/apigw/test_local_apigw_service.py93 self.ctx.push()CODE
HIGHtests/unit/local/apigw/test_local_apigw_service.py1740 lambda_output = '{"statusCode": 0, "headers": null, "body": null, ' '"isBase64Encoded": null}'CODE
HIGHtests/unit/local/docker/test_lambda_image.py499 expected_docker_file = "FROM python\nADD aws-lambda-rie-x86_64 /var/rapid/\nRUN mv /var/rapid/aws-lambda-rie-x86CODE
HIGHtests/unit/local/docker/test_lambda_image.py511 expected_docker_file = "FROM python\nADD aws-lambda-rie-arm64 /var/rapid/\nRUN mv /var/rapid/aws-lambda-rie-arm6CODE
HIGHtests/unit/lib/pipeline/bootstrap/test_environment.py126 # although all of the resources got fulfilled, `did_user_provide_all_required_resources` should return falseCOMMENT
HIGHtests/unit/lib/cfn_language_extensions/test_parsing.py209 """When multiple resources are null, report the first one found."""STRING
HIGHtests/unit/lib/cfn_language_extensions/test_parsing.py228 """When multiple outputs are null, report the first one found."""STRING
HIGHtests/unit/lib/package/test_artifact_exporter.py2205 "index.js", "exports handler = (event, context, callback) => {callback(null, event);}"CODE
HIGHtests/unit/lib/package/test_artifact_exporter.py2245 "index.js", "exports handler = (event, context, callback) => {callback(null, event);}"CODE
HIGHtests/unit/lib/package/test_artifact_exporter.py2291 "index.js", "exports handler = (event, context, callback) => {callback(null, event);}"CODE
HIGHtests/unit/lib/package/test_artifact_exporter.py2324 "index.js", "exports handler = (event, context, callback) => {callback(null, event);}"CODE
HIGH…t/hook_packages/terraform/hooks/prepare/test_enrich.py997 "[null]",CODE
HIGHtests/unit/commands/buildcmd/core/test_command.py50 ("$ sam build && sam local invoke\x1b[0m", ""),CODE
HIGHtests/unit/commands/buildcmd/core/test_command.py52 "Build sam project and deploy": [("$ sam build && sam deploy\x1b[0m", "")],CODE
HIGHtests/integration/local/invoke/invoke_cdk_templates.py204 'pip install -r requirements.txt -t /asset-output && cp -au . /asset-output'STRING
HIGHsamcli/local/docker/lambda_image.py530 + f"RUN mv {rie_path}{rie_name} {rie_path}aws-lambda-rie && chmod +x {rie_path}aws-lambda-rie\n"CODE
HIGHsamcli/lib/providers/cfn_api_provider.py655 parse the route key, and return the methods && path.STRING
HIGH…mcli/lib/cfn_language_extensions/processors/parsing.py56 The validation step will check if Resources is null/missing.STRING
HIGHsamcli/lib/iac/plugins_interfaces.py2Provide IAC Plugins Interface && Project representationSTRING
HIGHsamcli/lib/package/ecr_uploader.py118 push_logs = self.docker_client.api.push(CODE
Deep Nesting136 hits · 124 pts
SeverityFileLineSnippetContext
LOWtests/unit/local/docker/test_lambda_image_additional.py130CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py163CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py195CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py226CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py255CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py285CODE
LOWtests/unit/local/docker/test_lambda_image_additional.py310CODE
LOWtests/unit/local/lambdafn/test_zip.py55CODE
LOWtests/unit/local/lambdafn/test_zip.py153CODE
LOWtests/unit/lib/utils/test_subprocess_env.py141CODE
LOWtests/unit/lib/utils/test_subprocess_env.py161CODE
LOW…_extensions/compatibility/test_kotlin_compatibility.py78CODE
LOWtests/unit/lib/package/test_artifact_exporter.py2202CODE
LOWtests/unit/lib/package/test_artifact_exporter.py2321CODE
LOWtests/integration/durable_integ_base.py75CODE
LOWtests/integration/durable_integ_base.py175CODE
LOWtests/integration/deploy/deploy_integ_base.py98CODE
LOWtests/integration/local/invoke/test_integrations_cli.py802CODE
LOWtests/integration/local/invoke/test_invoke_dns.py26CODE
LOW…tion/local/start_lambda/start_lambda_api_integ_base.py207CODE
LOW…ts/integration/local/start_lambda/test_start_lambda.py408CODE
LOW…ts/integration/local/start_lambda/test_start_lambda.py432CODE
LOW…ntegration/local/start_lambda/test_start_lambda_dns.py78CODE
LOW…ts/integration/local/start_api/start_api_integ_base.py168CODE
LOWtests/integration/local/start_api/test_start_api_dns.py44CODE
LOWtests/integration/local/start_api/test_start_api.py2225CODE
LOWtests/integration/local/start_api/test_start_api.py2249CODE
LOWtests/integration/logs/test_logs_command.py203CODE
LOWtests/integration/sync/sync_integ_base.py73CODE
LOWtests/integration/sync/sync_integ_base.py143CODE
LOWsamcli/cli/types.py127CODE
LOWsamcli/cli/cli_config_file.py129CODE
LOWsamcli/cli/main.py66CODE
LOWsamcli/cli/main.py81CODE
LOWsamcli/local/docker/lambda_image.py174CODE
LOWsamcli/local/docker/lambda_image.py383CODE
LOWsamcli/local/docker/lambda_image.py544CODE
LOWsamcli/local/docker/container_client.py588CODE
LOWsamcli/local/docker/container_client.py664CODE
LOWsamcli/local/docker/container_client.py704CODE
LOWsamcli/local/docker/container_client.py763CODE
LOWsamcli/local/docker/durable_lambda_container.py150CODE
LOWsamcli/local/docker/manager.py46CODE
LOWsamcli/local/lambdafn/env_vars.py220CODE
LOWsamcli/local/lambdafn/zip.py112CODE
LOWsamcli/local/lambdafn/remote_files.py18CODE
LOWsamcli/local/common/file_lock.py185CODE
LOWsamcli/local/common/file_lock.py119CODE
LOWsamcli/lib/init/__init__.py31CODE
LOWsamcli/lib/pipeline/bootstrap/stage.py164CODE
LOWsamcli/lib/generated_sample_events/events.py155CODE
LOWsamcli/lib/deploy/deployer.py451CODE
LOWsamcli/lib/providers/provider.py866CODE
LOWsamcli/lib/providers/api_collector.py79CODE
LOWsamcli/lib/providers/sam_layer_provider.py77CODE
LOWsamcli/lib/providers/sam_function_provider.py206CODE
LOWsamcli/lib/providers/sam_function_provider.py828CODE
LOWsamcli/lib/cookiecutter/question.py146CODE
LOWsamcli/lib/cookiecutter/interactive_flow_creator.py74CODE
LOWsamcli/lib/utils/durable_callback_handler.py30CODE
76 more matches not shown…
Redundant / Tautological Comments73 hits · 116 pts
SeverityFileLineSnippetContext
LOWtests/testing_utils.py46# Check if required environment variables are availableCOMMENT
LOWtests/unit/local/lambdafn/test_runtime.py982 # Verify if Lambda Event data is setCOMMENT
LOW…b/remote_invoke/test_remote_invoke_executor_factory.py116 # Check if durable function qualifier mapper is addedCOMMENT
LOWtests/unit/lib/package/test_artifact_exporter.py2194 # Set parent_dir to be a non-existent folderCOMMENT
LOWtests/unit/lib/package/test_artifact_exporter.py2197 # Set parent_dir to be a real folder, but just a relative pathCOMMENT
LOWtests/unit/commands/deploy/test_guided_context.py380 # Set ImageUri to be None, the sam app was never built.COMMENT
LOWtests/unit/commands/deploy/test_guided_context.py462 # Set ImageUri to be None, the sam app was never built.COMMENT
LOWtests/unit/commands/deploy/test_guided_context.py545 # Set ImageUri to be None, the sam app was never built.COMMENT
LOWtests/unit/commands/local/start_lambda/test_cli.py111 # Set no_watch to TrueCOMMENT
LOWtests/unit/commands/local/start_api/test_cli.py130 # Set no_watch to TrueCOMMENT
LOWtests/integration/deploy/test_deploy_command.py1544 # Check if the stack is deleted from CloudFormationCOMMENT
LOWtests/integration/deploy/test_deploy_command.py1602 # Check if the stack rolled back successfullyCOMMENT
LOWtests/integration/deploy/test_deploy_command.py1655 # Check if the stack is deleted from CloudFormationCOMMENT
LOWtests/integration/buildcmd/build_integ_base.py48 # Check if any parameter contains "container" in its string representationCOMMENT
LOWtests/integration/buildcmd/build_integ_base.py54 # Check if this might be a use_container parameter by positionCOMMENT
LOWtests/integration/local/invoke/invoke_integ_base.py118 # Close file handles to prevent resource warningsCOMMENT
LOWtests/integration/package/test_package_command_image.py315 # Check if it's the known Finch "overlayfs:" issueCOMMENT
LOWsamcli/cli/global_config.py101 # Set dir to the one specified in _DIR_INJECTION_ENV_VAR environmental variableCOMMENT
LOWsamcli/cli/lazy_group.py26 # Set context_settings to use our custom formatterCOMMENT
LOWsamcli/local/docker/lambda_image.py248 # Check if the base image is up-to-date locally and modify build/pull parameters accordinglyCOMMENT
LOWsamcli/local/docker/container_client.py684 # Check if container image matches our expected imageCOMMENT
LOWsamcli/local/docker/container_client.py687 # Check if any of the image tags contain our image nameCOMMENT
LOWsamcli/local/docker/container_client.py755 # Check if this is a Finch-specific error that we can work aroundCOMMENT
LOWsamcli/local/docker/container.py442 # Check if tmp dir exists when mount_with_write is enabledCOMMENT
LOWsamcli/local/docker/container.py469 # Check if we're in debug modeCOMMENT
LOWsamcli/local/docker/lambda_container.py127 # Set AWS_LAMBDA_FUNCTION_HANDLER to be based of the command for Image based Packagetypes.COMMENT
LOWsamcli/local/lambdafn/runtime.py144 # Check if this is a durable function and create appropriate container typeCOMMENT
LOWsamcli/local/lambdafn/runtime.py615 # Check if we need to reload the containerCOMMENT
LOWsamcli/local/lambdafn/runtime.py817 # Check if function configuration has changedCOMMENT
LOWsamcli/local/lambdafn/runtime.py821 # Check if debug context has changedCOMMENT
LOWsamcli/local/common/file_lock.py79 # Check if lock file exists and is still validCOMMENT
LOWsamcli/local/common/file_lock.py92 # Set status to in progressCOMMENT
LOWsamcli/local/common/file_lock.py131 # Check if lock file is gone (operation completed)COMMENT
LOWsamcli/local/common/file_lock.py141 # Check if lock is staleCOMMENT
LOWsamcli/lib/samlib/resource_metadata_normalizer.py284 # Check if the Resource is nested StackCOMMENT
LOWsamcli/lib/utils/durable_callback_handler.py84 # Check if execution already completed before promptingCOMMENT
LOWsamcli/lib/utils/system_info.py63 # Check if we're using Finch by looking at the runtime typeCOMMENT
LOWsamcli/lib/utils/managed_cloudformation_stack.py211 # Check if stack information contains the Tags and Outputs as we expectedCOMMENT
LOWsamcli/lib/utils/name_utils.py90 # Check if it's a Lambda ARN with function resource typeCOMMENT
LOWsamcli/lib/utils/name_utils.py118 # Check if it matches the partial ARN pattern: account-id:function:function-name[:version]COMMENT
LOWsamcli/lib/utils/durable_formatters.py264 # Check if any event has an errorCOMMENT
LOW…mcli/lib/cli_validation/image_repository_validation.py53 # Check if `--image-repository`, `--image-repositories`, or `--resolve-image-repos` are required byCOMMENT
LOWsamcli/lib/cfn_language_extensions/api.py197 # Check if condition is falseCOMMENT
LOWsamcli/lib/cfn_language_extensions/api.py325 # Check if any of the first 3 args are AWS::NoValueCOMMENT
LOWsamcli/lib/cfn_language_extensions/api.py382 # Check if condition existsCOMMENT
LOWsamcli/lib/cfn_language_extensions/api.py507 # Check if this is an intrinsic function - if so, preserve AWS::NoValue in argsCOMMENT
LOWsamcli/lib/cfn_language_extensions/api.py527 # Check if value is {"Ref": "AWS::NoValue"} or NoneCOMMENT
LOWsamcli/lib/cfn_language_extensions/sam_integration.py407 # Check if collection is a parameter referenceCOMMENT
LOW…mcli/lib/cfn_language_extensions/resolvers/fn_split.py88 # Check if it's an intrinsic function (single key starting with Fn:: or Ref)COMMENT
LOWsamcli/lib/cfn_language_extensions/resolvers/fn_sub.py204 # Check if it's a resource attribute reference (contains a dot)COMMENT
LOWsamcli/lib/cfn_language_extensions/resolvers/fn_sub.py207 # Check if it's in the variable map firstCOMMENT
LOW…ib/cfn_language_extensions/resolvers/fn_find_in_map.py137 # Check if map existsCOMMENT
LOW…ib/cfn_language_extensions/resolvers/fn_find_in_map.py145 # Check if top-level key existsCOMMENT
LOW…ib/cfn_language_extensions/resolvers/fn_find_in_map.py153 # Check if second-level key existsCOMMENT
LOWsamcli/lib/cfn_language_extensions/resolvers/fn_ref.py75 # Check if it's a pseudo-parameter without a provided valueCOMMENT
LOWsamcli/lib/cfn_language_extensions/resolvers/fn_ref.py134 # Check if this parameter is a List typeCOMMENT
LOW…fn_language_extensions/resolvers/condition_resolver.py155 # Check if it's an intrinsic function (single key starting with Fn:: or Ref or Condition)COMMENT
LOW…fn_language_extensions/resolvers/condition_resolver.py317 # Check if condition is already resolved in contextCOMMENT
LOWsamcli/lib/cfn_language_extensions/resolvers/fn_if.py131 # Check if condition is already resolved in contextCOMMENT
LOWsamcli/lib/cfn_language_extensions/resolvers/base.py406 # Check if this function is in the preserve listCOMMENT
13 more matches not shown…
AI Structural Patterns39 hits · 38 pts
SeverityFileLineSnippetContext
LOWtests/unit/lib/build_module/test_build_graph.py43CODE
LOWtests/unit/commands/buildcmd/test_build_context.py45CODE
LOWtests/integration/pipeline/base.py111CODE
LOWtests/integration/delete/delete_integ_base.py13CODE
LOWtests/integration/deploy/deploy_integ_base.py111CODE
LOWtests/integration/buildcmd/build_integ_base.py91CODE
LOWtests/integration/local/invoke/invoke_integ_base.py33CODE
LOW…tion/local/start_lambda/start_lambda_api_integ_base.py100CODE
LOW…ntegration/local/start_lambda/test_start_lambda_dns.py26CODE
LOWtests/integration/logs/logs_integ_base.py18CODE
LOWtests/integration/sync/sync_integ_base.py218CODE
LOWtests/integration/package/package_integ_base.py88CODE
LOW…/integration/remote/invoke/remote_invoke_integ_base.py100CODE
LOWtests/regression/deploy/regression_deploy_base.py26CODE
LOWtests/regression/package/regression_package_base.py51CODE
LOWsamcli/local/apigw/route.py18CODE
LOWsamcli/local/docker/lambda_build_container.py41CODE
LOWsamcli/local/docker/container.py81CODE
LOWsamcli/local/docker/lambda_container.py40CODE
LOWsamcli/local/lambdafn/runtime.py235CODE
LOWsamcli/local/lambdafn/env_vars.py44CODE
LOWsamcli/local/events/api_event.py12CODE
LOWsamcli/local/events/api_event.py73CODE
LOWsamcli/local/events/api_event.py161CODE
LOWsamcli/local/events/api_event.py302CODE
LOWsamcli/local/events/api_event.py374CODE
LOWsamcli/lib/init/__init__.py31CODE
LOWsamcli/lib/pipeline/bootstrap/stage.py118CODE
LOWsamcli/lib/providers/sam_stack_provider.py212CODE
LOWsamcli/lib/iac/plugins_interfaces.py122CODE
LOWsamcli/lib/iac/plugins_interfaces.py187CODE
LOWsamcli/lib/iac/plugins_interfaces.py543CODE
LOWsamcli/lib/list/data_to_json_mapper.py14CODE
LOWsamcli/lib/hook/hook_wrapper.py44CODE
LOWsamcli/lib/package/artifact_exporter.py471CODE
LOWsamcli/commands/pipeline/bootstrap/guided_context.py48CODE
LOWsamcli/commands/deploy/guided_context.py44CODE
LOWsamcli/commands/local/lib/local_lambda.py55CODE
LOWsamcli/commands/local/cli_common/invoke_context.py78CODE
Modern Structural Boilerplate37 hits · 38 pts
SeverityFileLineSnippetContext
LOWsamcli/cli/command.py16logger = logging.getLogger(__name__)CODE
LOWsamcli/cli/global_config.py263 def set_value(self, config_entry: ConfigEntry, value: Any, is_flag: bool = False, flush: bool = True) -> None:CODE
LOWsamcli/cli/global_config.py283 def _set_value(self, config_entry: ConfigEntry, value: Any, is_flag: bool, flush: bool) -> None:CODE
LOWsamcli/cli/global_config.py435 def set_accelerate_opt_in_stack(self, template_file: str, stack_name: str) -> None:CODE
LOWsamcli/local/docker/container_client_factory.py208 def _set_context_preference(value: str) -> None:CODE
LOW…b/bootstrap/companion_stack/companion_stack_manager.py94 def update_companion_stack(self) -> None:CODE
LOWsamcli/lib/providers/api_collector.py66 def set_default_authorizer(self, logical_id: str, authorizer_name: str) -> None:CODE
LOWsamcli/lib/providers/sam_function_provider.py1001 def _set_templates_changed(self, paths: List[str]) -> None:CODE
LOWsamcli/lib/cookiecutter/question.py143 def set_default_next_question_key(self, next_question_key: str) -> None:CODE
LOWsamcli/lib/utils/version_checker.py99def update_last_check_time() -> None:CODE
LOWsamcli/lib/cfn_language_extensions/__init__.py78__all__ = [CODE
LOW…mcli/lib/cfn_language_extensions/resolvers/__init__.py27__all__ = [CODE
LOW…cli/lib/cfn_language_extensions/processors/__init__.py14__all__ = [CODE
LOWsamcli/lib/telemetry/event.py253 def _set_context_property(event_prop: str, context_prop: str) -> None:CODE
LOWsamcli/lib/sync/sync_flow.py110 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/sync_flow.py146 def _update_local_hash(self) -> None:CODE
LOWsamcli/lib/sync/watch_manager.py117 def _update_stacks(self) -> None:CODE
LOWsamcli/lib/sync/flows/http_api_sync_flow.py58 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/layer_sync_flow.py83 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/layer_sync_flow.py226 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/layer_sync_flow.py378 def set_up(self) -> None:CODE
LOW…mcli/lib/sync/flows/auto_dependency_layer_sync_flow.py72 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/rest_api_sync_flow.py63 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/rest_api_sync_flow.py78 def _update_api(self) -> None:CODE
LOWsamcli/lib/sync/flows/alias_version_sync_flow.py78 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/zip_function_sync_flow.py89 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/stepfunctions_sync_flow.py78 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/function_sync_flow.py117 def set_up(self) -> None:CODE
LOWsamcli/lib/sync/flows/function_sync_flow.py174 def update_function_with_lock(self, update_params: FunctionUpdateParams) -> None:CODE
LOWsamcli/lib/package/language_extensions_packaging.py133def _set_prop_value(props: Dict[str, Any], prop_name: str, value: Any) -> None:CODE
LOWsamcli/hook_packages/terraform/hooks/prepare/hook.py142def _update_resources_paths(cfn_resources: Dict[str, Any], terraform_application_dir: str) -> None:CODE
LOWsamcli/commands/_utils/experimental.py83def set_experimental(config_entry: ExperimentalEntry = ExperimentalFlag.All, enabled: bool = True) -> None:CODE
LOWsamcli/commands/pipeline/bootstrap/oidc_config.py81 def update_values(self, bitbucket_repo_uuid: Optional[str]) -> None:CODE
LOWsamcli/commands/sync/sync_context.py48 def update_resource_sync_state(self, resource_id: str, hash_value: str) -> None:CODE
LOWsamcli/commands/sync/sync_context.py62 def update_infra_sync_time(self) -> None:CODE
LOWsamcli/commands/sync/sync_context.py241 def update_infra_sync_time(self) -> None:CODE
LOWsamcli/commands/sync/sync_context.py267 def update_resource_sync_state(self, resource_id: str, hash_value: str) -> None:CODE
Verbosity Indicators15 hits · 28 pts
SeverityFileLineSnippetContext
LOWappveyor-ubuntu.yml72 # Step 1: Stop Docker services for FinchCOMMENT
LOWappveyor-ubuntu.yml80 # Step 2: Install Finch GPG keyCOMMENT
LOWappveyor-ubuntu.yml99 # Step 3: Add Finch repository and update aptCOMMENT
LOWappveyor-ubuntu.yml105 # Step 4: Install Finch packageCOMMENT
LOWappveyor-ubuntu.yml114 # Step 5: Start Finch serviceCOMMENT
LOWappveyor-ubuntu.yml136 # Step 6: Set Finch socket permissions for SAM CLICOMMENT
LOWappveyor-ubuntu.yml146 # Step 7: Wait for Finch to be ready and display infoCOMMENT
LOWappveyor-ubuntu.yml198 # Step 1: Initialize Docker runtime (no service changes needed)COMMENT
LOWappveyor-ubuntu.yml201 # Step 2: Check Docker daemon statusCOMMENT
LOWappveyor-ubuntu.yml211 # Step 3: Wait for Docker to be ready and display infoCOMMENT
LOWappveyor-ubuntu.yml174 # Step 8: Setup BuildKit sockets for SAM CLI. Create symlink directories and set up socketsCOMMENT
LOWtests/unit/commands/package/test_package_context.py4136 # Step 1: Detect dynamic propertiesCOMMENT
LOWtests/unit/commands/package/test_package_context.py4140 # Step 2: Simulate exported resourcesCOMMENT
LOWtests/unit/commands/package/test_package_context.py4152 # Step 3: Generate MappingsCOMMENT
LOWtests/unit/commands/package/test_package_context.py4155 # Step 4: Apply Mappings to templateCOMMENT
Structural Annotation Overuse15 hits · 28 pts
SeverityFileLineSnippetContext
LOWappveyor-ubuntu.yml72 # Step 1: Stop Docker services for FinchCOMMENT
LOWappveyor-ubuntu.yml80 # Step 2: Install Finch GPG keyCOMMENT
LOWappveyor-ubuntu.yml99 # Step 3: Add Finch repository and update aptCOMMENT
LOWappveyor-ubuntu.yml105 # Step 4: Install Finch packageCOMMENT
LOWappveyor-ubuntu.yml114 # Step 5: Start Finch serviceCOMMENT
LOWappveyor-ubuntu.yml136 # Step 6: Set Finch socket permissions for SAM CLICOMMENT
LOWappveyor-ubuntu.yml146 # Step 7: Wait for Finch to be ready and display infoCOMMENT
LOWappveyor-ubuntu.yml198 # Step 1: Initialize Docker runtime (no service changes needed)COMMENT
LOWappveyor-ubuntu.yml201 # Step 2: Check Docker daemon statusCOMMENT
LOWappveyor-ubuntu.yml211 # Step 3: Wait for Docker to be ready and display infoCOMMENT
LOWappveyor-ubuntu.yml174 # Step 8: Setup BuildKit sockets for SAM CLI. Create symlink directories and set up socketsCOMMENT
LOWtests/unit/commands/package/test_package_context.py4136 # Step 1: Detect dynamic propertiesCOMMENT
LOWtests/unit/commands/package/test_package_context.py4140 # Step 2: Simulate exported resourcesCOMMENT
LOWtests/unit/commands/package/test_package_context.py4152 # Step 3: Generate MappingsCOMMENT
LOWtests/unit/commands/package/test_package_context.py4155 # Step 4: Apply Mappings to templateCOMMENT
Over-Commented Block27 hits · 24 pts
SeverityFileLineSnippetContext
LOWtests/setup_wsl2_docker.sh1#!/bin/bashCOMMENT
LOWtests/setup-wsl.sh1#!/bin/bashCOMMENT
LOWtests/unit/test_yamlhelper.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/unit/commands/init/test_cli.py921 schemas_api_caller_mock.return_value.download_source_code_binding.return_value = "result.zip"COMMENT
LOWtests/unit/commands/init/test_cli.py1141 # WHEN the user follows interactive init promptsCOMMENT
LOWtests/unit/commands/init/test_cli.py1541 }COMMENT
LOW…/unit/commands/local/lib/test_sam_function_provider.py41 },COMMENT
LOW…/unit/commands/local/lib/test_sam_function_provider.py401 # function_id="SamFunctions",COMMENT
LOW…gration/init/schemas/test_init_with_schemas_command.py121 # {use_case_pos}: Infrastructure event management - Use case (dynamic position)COMMENT
LOW…gration/init/schemas/test_init_with_schemas_command.py221 # 1: AWS Quick Start TemplatesCOMMENT
LOW…egration/testdata/start_api/cdk/template-rest-api.yaml1# Generated from:COMMENT
LOWrequirements/reproducible-win.txt1221 --hash=sha256:b4636472024c5e2b62278c5b759661efeb52a81851cde5f092f24100b1ecb443COMMENT
LOWrequirements/reproducible-mac.txt1201 # aws-sam-cli (pyproject.toml)COMMENT
LOWrequirements/reproducible-linux.txt1201 # aws-sam-cli (pyproject.toml)COMMENT
LOW.github/workflows/codeql.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOWsamcli/yamlhelper.py1# Copyright 2012-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWsamcli/lib/samlib/resource_metadata_normalizer.py101 {SAM_RESOURCE_ID_KEY: ResourceMetadataNormalizer.get_resource_id(resource, logical_id)},COMMENT
LOW…-ruby/{{cookiecutter.project_name}}/hello_world/app.rb1# require 'httparty'COMMENT
LOWsamcli/lib/deploy/deployer.py1"""COMMENT
LOWsamcli/lib/providers/provider.py121 # Path to the code. This could be a S3 URI or local path or a dictionary of S3 Bucket, Key, VersionCOMMENT
LOWsamcli/lib/package/artifact_exporter.py1"""COMMENT
LOWsamcli/lib/package/s3_uploader.py1"""COMMENT
LOW…k_packages/terraform/copy_terraform_built_artifacts.py21# "root_module": {COMMENT
LOW…k_packages/terraform/hooks/prepare/resource_linking.py201 """COMMENT
LOWsamcli/commands/deploy/deploy_context.py1"""COMMENT
LOWsamcli/commands/local/lib/swagger/integration_uri.py21 # Extract the precise Lambda Function ARNCOMMENT
LOWsamcli/commands/package/package_context.py1"""COMMENT
AI Slop Vocabulary10 hits · 19 pts
SeverityFileLineSnippetContext
LOWtests/unit/local/lambdafn/test_env_vars.py171 # With no additional environment variables, resolve() should just return all AWS variablesCOMMENT
LOWtests/unit/lib/telemetry/test_metric.py226 # simply return the arguments to be able to examine & assertCOMMENT
LOWtests/unit/lib/telemetry/test_event.py150 # simply call this method in a new threadCOMMENT
LOW…ib/models/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
MEDIUMsamcli/local/docker/lambda_container.py218 # These options are required for delve to function properly inside a docker container on docker < 1.12COMMENT
MEDIUMsamcli/lib/providers/sam_stack_provider.py421 # absolute paths are not robust as relative paths. So here prefer to use relative path.COMMENT
MEDIUMsamcli/lib/utils/file_observer.py286 # specifically. This could be abstracted to potentially utilize aCOMMENT
LOWsamcli/lib/telemetry/telemetry.py62 # Endpoint not configured. So simply returnCOMMENT
LOWsamcli/commands/local/lib/local_lambda.py457 # If we were unable to load credentials, then just return result. We will use the defaultSTRING
LOWsamcli/commands/local/lib/swagger/reader.py135 # Inline Swagger, just return the contents which should already be a dictionaryCOMMENT
Slop Phrases3 hits · 5 pts
SeverityFileLineSnippetContext
LOW…templates/sar/api-lambda-update-dynamodb-template.yaml24 Description: The URL of the API Gateway to which you send a PUT request with edited data to update an item in your DCODE
LOW…emplates/sar/api-lambda-get-one-dynamodb-template.yaml21 Description: The URL of the API Gateway you invoke with a GET request to retrieve all of your items in the DynamoDB CODE
MEDIUM…ation/testdata/buildcmd/Rust/multi-binaries/Cargo.toml6# Starting in Rust 1.62 you can use `cargo add` to add dependenciesCOMMENT
Fake / Example Data4 hits · 2 pts
SeverityFileLineSnippetContext
LOW…local/lambda_service/test_local_lambda_http_service.py1366 ("placeholder", PLACEHOLDER_ARN),CODE
LOW…local/lambda_service/test_local_lambda_http_service.py1387 ("placeholder", PLACEHOLDER_ARN),CODE
LOW…local/lambda_service/test_local_lambda_http_service.py1407 ("placeholder", PLACEHOLDER_ARN),CODE
LOWtests/unit/lib/utils/test_hash.py129 str_checksum("dummy-data")CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/unit/lib/hook/test_hook_wrapper.py227 def my_method(params):CODE