Repository Analysis

getmoto/moto

A library that allows you to easily mock out tests based on AWS infrastructure.

6.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of getmoto/moto, a Python project with 8,581 GitHub stars. SynthScan v2.0 examined 1,946,277 lines of code across 3116 source files, recording 12532 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 6.9 places this repository in the Low 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).

6.9
Adjusted Score
6.9
Raw Score
100%
Time Factor
2026-07-12
Last Push
8.6K
Stars
Python
Language
1.9M
Lines of Code
3.1K
Files
12.5K
Pattern Hits
2026-07-14
Scan Date
0.06
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 120HIGH 55MEDIUM 354LOW 12003

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 12532 distinct pattern matches across 21 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 Identifiers10561 hits · 9520 pts
SeverityFileLineSnippetContext
LOWtests/test_timestreamquery/test_timestreamquery.py16def test_create_scheduled_query():CODE
LOWtests/test_timestreamquery/test_timestreamquery.py60def test_delete_scheduled_query():CODE
LOWtests/test_timestreamquery/test_timestreamquery.py81def test_update_scheduled_query():CODE
LOWtests/test_timestreamquery/test_timestreamquery.py102def test_query_default_results():CODE
LOWtests/test_timestreamquery/test_timestreamquery.py112def test_query__configured_results():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py23def test_create_network_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py37def test_list_network_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py51def test_get_network_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py64def test_delete_network_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py78def test_create_browser_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py93def test_list_browser_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py107def test_get_browser_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py121def test_delete_browser_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py215def test_associate_browser_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py246def test_associate_network_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py276def test_create_user_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py325def test_delete_user_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py339def test_associate_user_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py368def test_create_user_access_logging_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py378def test_get_user_access_logging_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py394def test_list_user_access_logging_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py404def test_delete_user_access_logging_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py415def test_associate_user_access_logging_settings():CODE
LOWtests/test_workspacesweb/test_workspacesweb.py443def test_list_tags_for_resource():CODE
LOW…sts/test_ssm/test_ssm_parameterstore_cloudformation.py11def test_cloudformation_lifecycle():CODE
LOW…sts/test_ssm/test_ssm_parameterstore_cloudformation.py79def test_cloudformation_lifecycle_with_parsing():CODE
LOWtests/test_ssm/test_ssm_secretsmanager.py13def test_get_value_from_secrets_manager__by_name():CODE
LOWtests/test_ssm/test_ssm_secretsmanager.py39def test_get_value_from_secrets_manager__without_decryption():CODE
LOWtests/test_ssm/test_ssm_secretsmanager.py52def test_get_value_from_secrets_manager__with_decryption_false():CODE
LOWtests/test_ssm/test_ssm_secretsmanager.py67def test_get_value_from_secrets_manager__by_id():CODE
LOWtests/test_ssm/test_ssm_secretsmanager.py97def test_get_value_from_secrets_manager__by_version():CODE
LOWtests/test_ssm/test_ssm_secretsmanager.py114def test_get_value_from_secrets_manager__param_does_not_exist():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py9def test_describe_maintenance_window():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py22def test_create_maintenance_windows_simple():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py54def test_create_maintenance_windows_advanced():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py91def test_get_maintenance_windows():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py126def test_describe_maintenance_windows():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py148def test_delete_maintenance_windows():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py232def test_register_maintenance_window_target():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py263def test_deregister_target_from_maintenance_window():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py294def test_describe_maintenance_window_with_no_task_or_targets():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py318def test_register_maintenance_window_task():CODE
LOWtests/test_ssm/test_ssm_maintenance_windows.py361def test_deregister_maintenance_window_task():CODE
LOWtests/test_ssm/test_ssm_cloudformation.py11def test_get_command_invocations_from_stack():CODE
LOWtests/test_ssm/test_ssm_cloudformation.py129def get_ssm_document_template(document_name: str):CODE
LOWtests/test_ssm/test_ssm_patch_group.py13def test_register_patch_baseline_for_patch_group():CODE
LOWtests/test_ssm/test_ssm_patch_group.py52def test_register_patch_baseline_for_patch_group_invalid_id():CODE
LOWtests/test_ssm/test_ssm_patch_group.py66def test_register_patch_baseline_for_patch_group_already_exists():CODE
LOWtests/test_ssm/test_ssm_patch_group.py118def test_get_patch_baseline_for_patch_group():CODE
LOWtests/test_ssm/test_ssm_patch_group.py161def test_get_patch_baseline_for_patch_group_default():CODE
LOWtests/test_ssm/test_ssm_patch_group.py178def test_deregister_patch_baseline_for_patch_group():CODE
LOWtests/test_ssm/test_ssm_patch_group.py221def test_deregister_patch_baseline_for_patch_group_default():CODE
LOWtests/test_ssm/test_ssm_patch_group.py237def test_deregister_patch_baseline_for_patch_group_invalid_id():CODE
LOWtests/test_ssm/test_ssm_ec2_integration.py15def test_ssm_get_latest_ami_by_path():CODE
LOWtests/test_ssm/test_ssm_docs.py22def _validate_document_description(CODE
LOWtests/test_ssm/test_ssm_docs.py463def test_update_document_default_version():CODE
LOWtests/test_ssm/test_ssm_docs.py762def test_tags_in_list_tags_from_resource_document():CODE
LOWtests/test_ssm/test_ssm.py1431def test_tags_invalid_resource_id():CODE
LOWtests/test_ssm/test_ssm.py1440def test_tags_invalid_resource_type():CODE
LOWtests/test_ssm/test_ssm.py1449def test_get_parameter_invalid():CODE
10501 more matches not shown…
Hallucination Indicators120 hits · 1200 pts
SeverityFileLineSnippetContext
CRITICALtests/test_cognitoidp/test_cognitoidp.py91 ) in moto.cognitoidp.models.CognitoIdpUserPoolAttribute.STANDARD_SCHEMA.items():CODE
CRITICALtests/test_acmpca/test_acmpca.py469 private_key = cryptography.hazmat.primitives.asymmetric.rsa.generate_private_key(CODE
CRITICALtests/test_acmpca/test_acmpca.py660 key = cryptography.hazmat.primitives.asymmetric.rsa.generate_private_key(CODE
CRITICALtests/test_acmpca/test_acmpca.py962 private_key = cryptography.hazmat.primitives.asymmetric.rsa.generate_private_key(CODE
CRITICALtests/test_acmpca/test_acmpca.py1019 private_key = cryptography.hazmat.primitives.asymmetric.rsa.generate_private_key(CODE
CRITICALtests/test_s3/test_s3_acl.py91 s3_anonymous.meta.client.meta.events.register("choose-signer.s3.*", disable_signing)CODE
CRITICALtests/test_s3/test_s3_acl.py134 s3_anonymous.meta.client.meta.events.register("choose-signer.s3.*", disable_signing)CODE
CRITICALtests/test_s3/test_s3.py1067 s3_anonymous.meta.client.meta.events.register("choose-signer.s3.*", disable_signing)CODE
CRITICALmoto/forecast/exceptions.py1from moto.core.exceptions import AWSErrorCODE
CRITICALmoto/timestreamwrite/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/codebuild/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/kinesis/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/pinpoint/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/shield/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/mediastoredata/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/servicecatalog/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/timestreaminfluxdb/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/lakeformation/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/secretsmanager/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/mediaconnect/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/kms/models.py10from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/kms/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/iotdata/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/quicksight/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/glue/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/servicequotas/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/personalize/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/networkmanager/exceptions.py5from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/mediapackage/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/datasync/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/fis/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/ds/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/cognitoidentity/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/config/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/osis/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/memorydb/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/vpclattice/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/wafv2/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/opensearch/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/cognitoidp/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/glacier/models.py7from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/bedrockagent/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/transfer/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/scheduler/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/resourcegroups/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/dynamodb/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/dynamodb/models/__init__.py8from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/resiliencehub/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/route53domains/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/macie2/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/applicationautoscaling/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/route53resolver/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/workspaces/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/fsx/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/codepipeline/exceptions.py1from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/servicecatalogappregistry/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/appmesh/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/iot/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/bedrock/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
CRITICALmoto/cloudtrail/exceptions.py3from moto.core.exceptions import JsonRESTErrorCODE
60 more matches not shown…
Self-Referential Comments314 hits · 958 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_ssm/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py20 # Define the approval rules for the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py36 # Create the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py73 # Define the approval rules for the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py89 # Create the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py125 # Define the approval rules for the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py141 # Create the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py185 # Define the approval rules for the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py201 # Create the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py244 # Define the approval rules for the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_group.py260 # Create the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_baseline.py13 # Define the approval rules for the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_baseline.py29 # Create the patch baselineCOMMENT
MEDIUMtests/test_ssm/test_ssm_patch_baseline.py65 # Create the patch baselineCOMMENT
MEDIUMtests/test_redshift/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_dynamodb_v20111205/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_dynamodbstreams/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_emr/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_logs/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_logs/test_logs.py446 # Create the maximum number of resource policies.COMMENT
MEDIUMtests/test_logs/test_logs.py474 # Create a bunch of resource policies so we can give delete a workout.COMMENT
MEDIUMtests/test_logs/test_logs.py507 # Create the maximum number of resource policies so there's somethingCOMMENT
MEDIUMtests/test_logs/test_integration.py276 # Create a S3 bucket.COMMENT
MEDIUMtests/test_logs/test_integration.py281 # Create the Firehose delivery stream that uses that S3 bucket asCOMMENT
MEDIUMtests/test_logs/test_integration.py353 # Create a DataStreamCOMMENT
MEDIUMtests/test_logs/test_integration.py409 # Create a LogGroup in a different regionCOMMENT
MEDIUMtests/test_sns/test_application.py253 # Creating a platform endpoint with different attributes failsCOMMENT
MEDIUMtests/test_databrew/test_databrew_jobs.py191 # Create the jobCOMMENT
MEDIUMtests/test_databrew/test_databrew_jobs.py212 # Create the jobCOMMENT
MEDIUMtests/test_databrew/test_databrew_jobs.py257 # Create the jobCOMMENT
MEDIUM…ourcegroupstaggingapi/test_resourcegroupstaggingapi.py541 # Create a botCOMMENT
MEDIUM…ourcegroupstaggingapi/test_resourcegroupstaggingapi.py551 # Create a bot alias with tagsCOMMENT
MEDIUM…taggingapi/test_resourcegroupstaggingapi_workspaces.py61 # Create a tagged WorkspaceCOMMENT
MEDIUMtests/test_kinesis/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_stepfunctions/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_identitystore/test_identitystore.py499 # Create a bunch of groupsCOMMENT
MEDIUMtests/test_identitystore/test_identitystore.py612 # Create a second test group to see if it is not returnedCOMMENT
MEDIUMtests/test_identitystore/test_identitystore.py808 # Create a second user to see if it is not returnedCOMMENT
MEDIUMtests/test_firehose/test_firehose_tags.py23 # Create a delivery stream to work with.COMMENT
MEDIUMtests/test_firehose/test_firehose_tags.py81 # Create a delivery stream for testing purposes.COMMENT
MEDIUMtests/test_firehose/test_firehose_tags.py142 # Create a delivery stream for testing purposes.COMMENT
MEDIUMtests/test_firehose/test_firehose_put.py111 # Create a S3 bucket.COMMENT
MEDIUMtests/test_firehose/test_firehose_integration.py11 # Create a tagged delivery streamCOMMENT
MEDIUMtests/test_firehose/test_firehose.py98 # Create a stream with the same name as an existing stream.COMMENT
MEDIUMtests/test_firehose/test_firehose.py168 # Create a couple of streams to test with.COMMENT
MEDIUMtests/test_firehose/test_firehose.py362 # Create a couple of streams of both types to test with.COMMENT
MEDIUMtests/test_firehose/test_firehose.py451 # Create a delivery stream for testing purposes.COMMENT
MEDIUMtests/test_networkfirewall/test_networkfirewall.py51 # Create a logging configurationCOMMENT
MEDIUMtests/test_secretsmanager/test_server.py916 # Create a new versionCOMMENT
MEDIUMtests/test_secretsmanager/test_server.py996 # Create a new versionCOMMENT
MEDIUMtests/test_secretsmanager/test_secretsmanager.py1933 # Create a third version with one of the old stagesSTRING
MEDIUMtests/test_datapipeline/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUMtests/test_networkmanager/test_networkmanager.py48 # Create a global networkCOMMENT
MEDIUMtests/test_glacier/__init__.py1# This file is intentionally left blank.COMMENT
MEDIUM…agedblockchain/test_managedblockchain_proposalvotes.py143 # Create the memberCOMMENT
MEDIUM…agedblockchain/test_managedblockchain_proposalvotes.py223 # Create the memberCOMMENT
MEDIUM…agedblockchain/test_managedblockchain_proposalvotes.py352 # Create the memberCOMMENT
MEDIUM…agedblockchain/test_managedblockchain_proposalvotes.py576 # Create the memberCOMMENT
MEDIUM…st_managedblockchain/test_managedblockchain_members.py52 # Create the memberCOMMENT
MEDIUM…st_managedblockchain/test_managedblockchain_members.py144 # Create the memberCOMMENT
254 more matches not shown…
Unused Imports501 hits · 412 pts
SeverityFileLineSnippetContext
LOWtests/test_iotdata/__init__.py2CODE
LOWtests/test_stepfunctions/parser/__init__.py2CODE
LOWtests/test_ec2/test_utils.py19CODE
LOWtests/test_efs/test_filesystem_policy.py4CODE
LOWtests/test_efs/test_mount_target.py10CODE
LOWtests/test_efs/test_mount_target.py10CODE
LOWtests/test_efs/test_filesystem_tagging.py1CODE
LOWtests/test_efs/test_file_system.py8CODE
LOWtests/test_efs/test_mount_target_security_groups.py4CODE
LOWtests/test_efs/test_mount_target_security_groups.py4CODE
LOWtests/test_efs/test_lifecycle_config.py4CODE
LOWtests/test_efs/test_access_points.py6CODE
LOWtests/test_efs/test_access_point_tagging.py3CODE
LOWmoto/server.py10CODE
LOWmoto/__init__.py1CODE
LOWmoto/backends.py9CODE
LOWmoto/backends.py11CODE
LOWmoto/backends.py12CODE
LOWmoto/backends.py13CODE
LOWmoto/backends.py14CODE
LOWmoto/backends.py15CODE
LOWmoto/backends.py16CODE
LOWmoto/backends.py17CODE
LOWmoto/backends.py18CODE
LOWmoto/backends.py19CODE
LOWmoto/backends.py20CODE
LOWmoto/backends.py21CODE
LOWmoto/backends.py22CODE
LOWmoto/backends.py23CODE
LOWmoto/backends.py24CODE
LOWmoto/backends.py25CODE
LOWmoto/backends.py26CODE
LOWmoto/backends.py27CODE
LOWmoto/backends.py28CODE
LOWmoto/backends.py29CODE
LOWmoto/backends.py30CODE
LOWmoto/backends.py31CODE
LOWmoto/backends.py32CODE
LOWmoto/backends.py33CODE
LOWmoto/backends.py34CODE
LOWmoto/backends.py35CODE
LOWmoto/backends.py36CODE
LOWmoto/backends.py37CODE
LOWmoto/backends.py38CODE
LOWmoto/backends.py39CODE
LOWmoto/backends.py40CODE
LOWmoto/backends.py41CODE
LOWmoto/backends.py42CODE
LOWmoto/backends.py43CODE
LOWmoto/backends.py44CODE
LOWmoto/backends.py45CODE
LOWmoto/backends.py46CODE
LOWmoto/backends.py46CODE
LOWmoto/backends.py47CODE
LOWmoto/backends.py48CODE
LOWmoto/backends.py49CODE
LOWmoto/backends.py50CODE
LOWmoto/backends.py51CODE
LOWmoto/backends.py52CODE
LOWmoto/backends.py53CODE
441 more matches not shown…
Deep Nesting416 hits · 322 pts
SeverityFileLineSnippetContext
LOWsetup.py18CODE
LOWtests/test_awslambda/utilities.py181CODE
LOWtests/test_databrew/test_databrew_datasets.py16CODE
LOWtests/test_stepfunctions/parser/__init__.py53CODE
LOWtests/test_batch/test_utils.py62CODE
LOWtests/test_eks/test_eks.py815CODE
LOWtests/test_events/test_events.py66CODE
LOW…/test_cloudformation/test_cloudformation_stack_crud.py2371CODE
LOWtests/test_core/test_protocols.py35CODE
LOWtests/test_s3/test_s3_lifecycle.py516CODE
LOWtests/test_rds/test_rds_proxy_target_groups.py99CODE
LOWtests/test_ec2/test_security_groups.py1359CODE
LOWtests/test_ec2/__init__.py253CODE
LOWmoto/codebuild/models.py208CODE
LOWmoto/kinesis/utils.py22CODE
LOWmoto/organizations/models.py246CODE
LOWmoto/organizations/models.py747CODE
LOWmoto/organizations/models.py801CODE
LOWmoto/organizations/models.py1019CODE
LOWmoto/ssm/models.py991CODE
LOWmoto/ssm/models.py476CODE
LOWmoto/ssm/models.py601CODE
LOWmoto/ssm/models.py1671CODE
LOWmoto/ssm/models.py1712CODE
LOWmoto/ssm/models.py1874CODE
LOWmoto/ssm/models.py1969CODE
LOWmoto/ssm/models.py2052CODE
LOWmoto/ssm/models.py2089CODE
LOWmoto/ssm/models.py2347CODE
LOWmoto/servicecatalog/models.py173CODE
LOWmoto/servicecatalog/models.py303CODE
LOWmoto/lakeformation/models.py349CODE
LOWmoto/lakeformation/models.py370CODE
LOWmoto/secretsmanager/models.py503CODE
LOWmoto/secretsmanager/models.py1131CODE
LOWmoto/kms/models.py252CODE
LOWmoto/kms/utils.py297CODE
LOWmoto/kms/utils.py191CODE
LOWmoto/cloudwatch/responses.py127CODE
LOWmoto/cloudwatch/models.py645CODE
LOWmoto/glue/models.py497CODE
LOWmoto/glue/models.py831CODE
LOWmoto/glue/models.py904CODE
LOWmoto/glue/models.py1123CODE
LOWmoto/glue/models.py1135CODE
LOWmoto/glue/models.py1933CODE
LOWmoto/s3/responses.py421CODE
LOWmoto/s3/responses.py573CODE
LOWmoto/s3/responses.py618CODE
LOWmoto/s3/responses.py968CODE
LOWmoto/s3/responses.py1216CODE
LOWmoto/s3/responses.py1551CODE
LOWmoto/s3/responses.py1882CODE
LOWmoto/s3/responses.py2602CODE
LOWmoto/s3/responses.py2844CODE
LOWmoto/s3/responses.py2956CODE
LOWmoto/s3/models.py702CODE
LOWmoto/s3/models.py657CODE
LOWmoto/s3/models.py1162CODE
LOWmoto/s3/models.py1390CODE
356 more matches not shown…
Excessive Try-Catch Wrapping135 hits · 147 pts
SeverityFileLineSnippetContext
LOWtests/test_awslambda/test_lambda.py1718 except Exception:CODE
LOWtests/test_stepfunctions/parser/__init__.py82 except Exception:CODE
LOWtests/test_stepfunctions/parser/__init__.py98 except Exception as e:CODE
LOWtests/test_secretsmanager/test_secretsmanager.py1217 except Exception as e:CODE
LOWtests/test_glacier/test_glacier_jobs.py122 except Exception:CODE
LOWtests/test_core/test_importorder.py137 except Exception as e:CODE
LOWtests/test_dynamodb/test_dynamodb_batch_write.py77 except Exception as e:CODE
LOWmoto/server.py66 except Exception:CODE
LOWmoto/proxy.py82 except Exception:CODE
LOWmoto/settings.py176 except Exception as e: # noqaCODE
MEDIUMmoto/settings.py161def get_docker_host() -> str:CODE
LOWmoto/secretsmanager/models.py938 except Exception:CODE
LOWmoto/kms/utils.py418 except Exception:CODE
LOWmoto/kms/utils.py439 except Exception:CODE
LOWmoto/core/responses.py590 except Exception: # Will just ignore if it cant workCODE
LOWmoto/sns/models.py1201 except Exception as e:STRING
LOWmoto/config/models.py692 except Exception:CODE
LOWmoto/ecr/policy_validation.py41 except Exception:CODE
LOWmoto/ecr/policy_validation.py53 except Exception:CODE
MEDIUMmoto/ecr/policy_validation.py38def validate(self) -> None:CODE
LOWmoto/dynamodb/models/table_export.py58 except Exception as e:CODE
MEDIUMmoto/dynamodb/models/table_export.py43def run(self) -> None:CODE
LOWmoto/dynamodb/models/__init__.py708 except Exception as e: # noqa: E722 Do not use bare exceptCODE
LOWmoto/dynamodb/models/__init__.py963 except Exception as e:CODE
LOWmoto/dynamodb/models/table_import.py70 except Exception as e:CODE
LOWmoto/dynamodb/models/table_import.py119 except Exception as e:CODE
LOWmoto/cloudtrail/models.py142 except Exception:CODE
LOWmoto/cloudtrail/models.py154 except Exception:CODE
LOWmoto/awslambda/models.py289 except Exception:CODE
LOWmoto/awslambda/models.py975 except Exception:CODE
LOWmoto/iam/models.py2743 except Exception:CODE
MEDIUMmoto/iam/policy_validation.py100def validate(self) -> None:CODE
LOWmoto/iam/policy_validation.py103 except Exception:CODE
LOWmoto/iam/policy_validation.py107 except Exception:CODE
LOWmoto/iam/policy_validation.py115 except Exception:CODE
LOWmoto/iam/policy_validation.py119 except Exception:CODE
LOWmoto/iam/policy_validation.py125 except Exception:CODE
LOWmoto/iam/policy_validation.py576 except Exception:CODE
LOWmoto/iam/policy_validation.py583 except Exception:CODE
LOWmoto/iam/policy_validation.py555 except Exception:CODE
LOWmoto/logs/models.py282 except Exception:CODE
LOWmoto/logs/models.py1394 except Exception:CODE
LOWmoto/logs/models.py1418 except Exception:CODE
LOWmoto/batch/models.py1053 except Exception as err:CODE
LOWmoto/batch/models.py1060 except Exception as err:CODE
LOWmoto/batch/models.py1705 except Exception:CODE
LOWmoto/batch/models.py1784 except Exception:CODE
LOWmoto/packages/cfnresponse/cfnresponse.py57 except Exception as e:CODE
LOWmoto/mq/models.py50 except Exception:CODE
MEDIUMmoto/mq/models.py42def has_ldap_auth(self) -> bool:CODE
LOWmoto/firehose/models.py444 except Exception as exc:CODE
LOWmoto/firehose/models.py489 except Exception as exc:CODE
LOWmoto/ses/models.py999 except Exception:CODE
LOWmoto/ses/models.py1021 except Exception:CODE
LOWmoto/ses/models.py1035 except Exception:CODE
LOWmoto/events/models.py1089 except Exception:CODE
LOWmoto/elbv2/models.py1751 except Exception:CODE
LOWmoto/securityhub/models.py190 except Exception as e:CODE
LOWmoto/securityhub/models.py409 except Exception:CODE
LOWmoto/securityhub/models.py437 except Exception:CODE
75 more matches not shown…
Cross-File Repetition29 hits · 145 pts
SeverityFileLineSnippetContext
HIGHtests/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_sns/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_iotdata/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_cloudwatch/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_stepfunctions/parser/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_secretsmanager/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_iam/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_ec2/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_elbv2/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_awslambda/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGH…ctions/parser/test_stepfunctions_lambda_integration.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGH…ions/parser/test_stepfunctions_dynamodb_integration.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_s3vectors/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_sqs/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_cognitoidp/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_s3/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_dynamodb/__init__.py0function that is verified to work against aws. can be run against aws at any time by setting: moto_test_allow_aws_requesSTRING
HIGHtests/test_ds/test_ds_simple_ad_directory.py0test creation of microsoft ad directory using good arguments.STRING
HIGHtests/test_ds/test_ds_ad_connect.py0test creation of microsoft ad directory using good arguments.STRING
HIGHtests/test_ds/test_ds_microsoft_ad.py0test creation of microsoft ad directory using good arguments.STRING
HIGHtests/test_ds/test_ds_ad_connect.py0test good and bad invocations of describe_directories().STRING
HIGHtests/test_ds/test_ds.py0test good and bad invocations of describe_directories().STRING
HIGHtests/test_ds/test_ds_microsoft_ad.py0test good and bad invocations of describe_directories().STRING
HIGHmoto/s3/models.py0list of dicts representing default vpc endpoints for this service.STRING
HIGHmoto/core/base_backend.py0list of dicts representing default vpc endpoints for this service.STRING
HIGHmoto/route53resolver/models.py0list of dicts representing default vpc endpoints for this service.STRING
HIGHmoto/elb/models.py0not exposed as part of the elb api - used for cloudformation.STRING
HIGHmoto/elbv2/models.py0not exposed as part of the elb api - used for cloudformation.STRING
HIGHmoto/ec2/models/security_groups.py0not exposed as part of the elb api - used for cloudformation.STRING
Cross-Language Confusion26 hits · 142 pts
SeverityFileLineSnippetContext
HIGHupdate_version_from_git.py21 git symbolic-ref -q --short HEAD || git describe --tags --exact-matchSTRING
HIGHtests/test_awslambda/test_lambda.py340 "[x86_64, arm64], Member must not be null]"CODE
HIGHtests/test_wafv2/test_wafv2_rules.py319 == "Critical information is missing in your request: GetRuleGroupRequest(name=test-group, scope=null, id=null, aCODE
HIGHtests/test_config/test_config_rules.py134 bad_json_string = "{'name': 'test', 'type': null, }"CODE
HIGHtests/test_batch/test_batch_jobs.py377 commands = ["sh", "-c", "echo start && sleep 30 && echo stop"]CODE
HIGHtests/test_glue/test_schema_registry.py643 == f"Compatibility DISABLED does not allow versioning. SchemaId: SchemaId(schemaArn=null, schemaName={TEST_SCHEMCODE
HIGHtests/test_s3/test_s3_select.py91 assert {"Records": {"Payload": b'{"a1":"b1","a2":"b2","a3":null},'}} in resultCODE
HIGHtests/test_route53/test_route53.py1218 == "Invalid request: Expected exactly one of [AliasTarget, all of [TTL, and ResourceRecords], or TrafficPolicyInCODE
HIGHtests/test_swf/test_exceptions.py158 r"failed to satisfy constraint: Member must not be null;",CODE
HIGHmoto/settings.py56 returned. Default value is SUCCESS, currently supports (SUCCESS || FAILURE)STRING
HIGHmoto/settings.py88 # True by default - only the value 'false' will return falseCOMMENT
HIGHmoto/settings.py93 # True by default - only the value 'false' will return falseCOMMENT
HIGHmoto/codebuild/models.py79 "deepLink": "https://console.aws.amazon.com/cloudwatch/home?region=eu-west-2#logEvent:group=null;stream=nullCODE
HIGHmoto/glue/utils.py504 (ident + is_ + null).set_parse_action(_IsNull)CODE
HIGHmoto/glue/utils.py505 | (ident + is_ + not_ + null).set_parse_action(_IsNotNull)CODE
HIGHmoto/glue/exceptions.py87 f"Schema is not found. RegistryName: {registry_name if registry_name else null}, SchemaName: {schema_name ifCODE
HIGHmoto/glue/exceptions.py103 f"Schema version is not found. RegistryName: {registry_name if registry_name else null}, SchemaName: {schemaCODE
HIGHmoto/glue/exceptions.py306 f"Compatibility DISABLED does not allow versioning. SchemaId: SchemaId(schemaArn={schema_arn if schema_arn eCODE
HIGHmoto/transfer/types.py13 responses rather than returning them as null, so the serialized model mustSTRING
HIGHmoto/ecr/models.py1456 # If imageTagMutabilityExclusionFilters isn't null, then imageTagMutability can only be the _EXCLUSION variantCOMMENT
HIGHmoto/ecr/models.py1466 # If it is null, then imageTagMutability cannot be the _EXCLUSION variantCOMMENT
HIGHmoto/awslambda/models.py725 "[Member must satisfy enum value set: [x86_64, arm64], Member must not be null]",CODE
HIGHmoto/firehose/models.py76 # If the destination config value is non-null, save it.COMMENT
HIGHmoto/stepfunctions/parser/asl/jsonata/validations.py47 cause=f"The JSONata expression '{expression}' returned nothing (undefined).",CODE
HIGH…tate/exec/state_task/service/state_task_service_sns.py70 f"Proxy: null)"CODE
HIGHmoto/acm/models.py615 if arn and self._certificates[arn].tags.equals(tags):CODE
Modern Structural Boilerplate98 hits · 95 pts
SeverityFileLineSnippetContext
LOWtests/test_core/test_docker.py7logger = logging.getLogger(__name__)CODE
LOWtests/test_rds/test_rds_blue_green_deployment.py786def update_status_from_create_blue_green_response(bg_response: dict) -> None:CODE
LOWmoto/kinesis/models.py330 def update_shard_count(self, target_shard_count: int) -> None:CODE
LOWmoto/kinesis/models.py990 def update_stream_mode(self, stream_arn: str, stream_mode: dict[str, str]) -> None:CODE
LOWmoto/secretsmanager/models.py181 def set_default_version_id(self, version_id: str | None) -> None:CODE
LOWmoto/kms/models.py446 def update_key_description(self, key_id: str, description: str) -> None:CODE
LOWmoto/cloudwatch/models.py185 def update_state(self, reason: str, reason_data: str, state_value: str) -> None:CODE
LOWmoto/glue/models.py2254 def update_next_schema_version(self) -> None:CODE
LOWmoto/glue/models.py2257 def update_latest_schema_version(self) -> None:CODE
LOWmoto/glue/models.py1784 def update_partition(self, old_values: str, partiton_input: dict[str, Any]) -> None:CODE
LOWmoto/s3/models.py257 def set_storage_class(self, storage: str | None) -> None:CODE
LOWmoto/s3/models.py262 def set_expiry(self, expiry: datetime.datetime | None) -> None:CODE
LOWmoto/s3/models.py265 def set_acl(self, acl: FakeAcl | None) -> None:CODE
LOWmoto/s3/models.py244 def set_metadata(self, metadata: Any, replace: bool = False) -> None:CODE
LOWmoto/s3/models.py1162 def set_lifecycle(self, rules: list[dict[str, Any]]) -> None:CODE
LOWmoto/s3/models.py1314 def set_cors(self, rules: list[dict[str, Any]]) -> None:CODE
LOWmoto/s3/models.py1469 def set_accelerate_configuration(self, accelerate_config: str) -> None:CODE
LOWmoto/s3/models.py1501 def set_acl(self, acl: FakeAcl | None) -> None:CODE
LOWmoto/emr/models.py708 def set_termination_protection(self, value: bool) -> None:CODE
LOWmoto/emr/models.py711 def set_visibility(self, visibility: bool) -> None:CODE
LOWmoto/emr/models.py167 def set_instance_count(self, instance_count: int) -> None:CODE
LOWmoto/emr/models.py1069 def set_termination_protection(self, job_flow_ids: list[str], value: bool) -> None:CODE
LOWmoto/networkmanager/models.py275 def update_resource_state(self, resource_arn: str, state: str) -> None:CODE
LOWmoto/core/utils.py504def set_value(obj: Any, key: str, value: Any) -> None:CODE
LOWmoto/core/utils.py517def _set_value_for_key(obj: Any, key: str, value: Any) -> None:CODE
LOWmoto/sns/models.py547 def set_sms_attributes(self, attrs: dict[str, str]) -> None:STRING
LOWmoto/sns/models.py899 def set_subscription_attributes(self, arn: str, name: str, value: Any) -> None:STRING
LOWmoto/datasync/models.py174 def update_task(self, task_arn: str, name: str, metadata: dict[str, Any]) -> None:CODE
LOWmoto/ds/models.py233 def update_alias(self, alias: str) -> None:CODE
LOWmoto/osis/models.py175 def set_last_updated(self) -> None:CODE
LOWmoto/s3control/models.py80 def set_policy(self, policy: str) -> None:CODE
LOWmoto/s3control/models.py107 def set_policy(self, policy: str) -> None:CODE
LOWmoto/synthetics/__init__.py7__all__ = ["synthetics_backends"]CODE
LOWmoto/cognitoidp/responses.py88 def update_user_pool(self) -> None:CODE
LOWmoto/cognitoidp/models.py467 def update_extended_config(self, extended_config: dict[str, Any]) -> None:CODE
LOWmoto/cognitoidp/models.py913 def update_attributes(self, new_attributes: list[dict[str, Any]]) -> None:CODE
LOWmoto/moto_api/_internal/state_manager.py20 def set_transition(self, model_name: str, transition: dict[str, Any]) -> None:CODE
LOWmoto/moto_api/_internal/models.py28 def set_transition(self, model_name: str, transition: dict[str, Any]) -> None:CODE
LOWmoto/moto_api/_internal/models.py51 def set_ce_cost_usage(self, result: dict[str, Any], account_id: str) -> None:CODE
LOWmoto/moto_api/_internal/models.py182 def set_config(self, config: dict[str, Any]) -> None:CODE
LOWmoto/ecr/models.py429 def update_tag(self, tag: str) -> None:CODE
LOWmoto/dynamodb/models/__init__.py578 def update_time_to_live(self, table_name: str, ttl_spec: dict[str, Any]) -> None:CODE
LOWmoto/dynamodb/models/dynamo_type.py416 def update_with_attribute_updates(self, attribute_updates: dict[str, Any]) -> None:CODE
LOWmoto/dynamodb/models/table.py461 def set_stream_specification(self, streams: dict[str, Any] | None) -> None:CODE
LOWmoto/dynamodb/parsing/expressions.py35logger = logging.getLogger(__name__)CODE
LOWmoto/route53resolver/models.py299 def update_name(self, name: str) -> None:CODE
LOWmoto/sqs/models.py127 def update_binary_length_and_value(md5: Any, value: bytes) -> None: # type: ignore[misc]CODE
LOWmoto/sqs/models.py367 def _setup_dlq(self, policy: Any) -> None:CODE
LOWmoto/appmesh/dataclasses/shared.py21 def update_timestamp(self) -> None:CODE
LOWmoto/iot/models.py1981 def update_certificate(self, certificate_id: str, new_status: str) -> None:CODE
LOWmoto/iot/models.py2077 def set_default_policy_version(self, policy_name: str, version_id: str) -> None:CODE
LOWmoto/awslambda/models.py77logger = logging.getLogger(__name__)CODE
LOWmoto/awslambda/models.py703 def set_version(self, version: int) -> None:CODE
LOWmoto/awslambda/models.py872 def _set_function_code(self, updated_spec: dict[str, Any]) -> None:CODE
LOWmoto/iam/models.py185 def update_default_version(self, new_default_version_id: str) -> None:CODE
LOWmoto/iam/models.py1476 def update_ssh_public_key(self, ssh_public_key_id: str, status: str) -> None:CODE
LOWmoto/iam/models.py2220 def update_assume_role_policy(self, role_name: str, policy_document: str) -> None:CODE
LOWmoto/logs/models.py628 def set_retention_policy(self, retention_in_days: str | None) -> None:CODE
LOWmoto/amp/models.py111 def update_workspace_alias(self, alias: str, workspace_id: str) -> None:CODE
LOWmoto/batch/models.py41logger = logging.getLogger(__name__)CODE
38 more matches not shown…
Redundant / Tautological Comments51 hits · 76 pts
SeverityFileLineSnippetContext
LOWtests/test_textract/test_textract.py126 # Check if notification was sent to SQSCOMMENT
LOWtests/test_secretsmanager/test_secretsmanager.py1949 # Check if indeed the third version is returnedSTRING
LOWtests/test_secretsmanager/test_secretsmanager.py1954 # Check if all the versions have the proper labelsSTRING
LOWtests/test_iot/test_iot.py170 # Verify if Principal is correct.COMMENT
LOWtests/test_iam/test_iam_signing_certificates.py115 # Set Certificate to InactiveCOMMENT
LOWtests/test_route53resolver/test_route53resolver_rule.py408 # Set max_results to return 1 rule, use next_token to get remaining 3.COMMENT
LOW…te53resolver/test_route53resolver_rule_associations.py274 # Set max_results to return 1 association, use next_token to getCOMMENT
LOW…/test_route53resolver/test_route53resolver_endpoint.py597 # Set max_results to return 1 address, use next_token to get remaining.COMMENT
LOW…/test_route53resolver/test_route53resolver_endpoint.py673 # Set max_results to return 1 endpoint, use next_token to get remaining 3.COMMENT
LOWtests/test_s3/test_s3_lambda_integration.py312 # Set S3 to send ObjectCreated to SNSCOMMENT
LOWtests/test_s3/test_s3_lambda_integration.py437 # Set S3 to send ObjectCreated to SNSCOMMENT
LOWtests/test_ec2/test_instances.py1127 # Set back to trueCOMMENT
LOWmoto/secretsmanager/models.py659 # Check if the secret_string/secret_binary values corresponding to this version matches that of the current requCOMMENT
LOWmoto/s3/responses.py2264 # Check if the ETags are the same. S3 doesn't seem to care about quotes, so we shouldn't eitherCOMMENT
LOWmoto/s3/responses.py3063 # Check if the ETags are the same. S3 doesn't seem to care about quotes, so we shouldn't eitherCOMMENT
LOWmoto/networkmanager/models.py325 # Check if core network existsCOMMENT
LOWmoto/core/models.py158 # Check if this is a classmethod. If so, skip patchingCOMMENT
LOWmoto/core/models.py162 # Check if this is a staticmethod. If so, skip patchingCOMMENT
LOWmoto/core/models.py287 # Check if our event handler was already registeredCOMMENT
LOWmoto/config/models.py1435 # Check if a channel is recording -- if so, bad -- (there can only be 1 recorder):COMMENT
LOWmoto/kinesisanalyticsv2/models.py227 # Check if the current key is in key_map, else keep old_keyCOMMENT
LOWmoto/dynamodb/parsing/key_condition_expression.py285 # Check if any later range keys ARE in the query (would be skipping)COMMENT
LOWmoto/workspaces/models.py568 # Check if workspace exists.COMMENT
LOWmoto/workspaces/models.py573 # Check if image name already exists.COMMENT
LOWmoto/appsync/models.py670 # Check if API existsCOMMENT
LOWmoto/managedblockchain/models.py439 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py445 # Check if member existsCOMMENT
LOWmoto/managedblockchain/models.py491 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py508 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py526 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py555 # Check if IN_PROGRESSCOMMENT
LOWmoto/managedblockchain/models.py594 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py626 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py681 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py694 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py714 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py746 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py767 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py861 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py880 # Check if network existsCOMMENT
LOWmoto/managedblockchain/models.py903 # Check if network existsCOMMENT
LOWmoto/servicediscovery/models.py561 # Add instance to the list if it passed all filtersCOMMENT
LOWmoto/acmpca/models.py463 # Check if the certificate is revokedCOMMENT
LOWmoto/acmpca/models.py487 # Check if CA is activeCOMMENT
LOWmoto/ses/models.py909 # Check if original_rule_set_name existsCOMMENT
LOWmoto/ses/models.py915 # Check if rule_set_name already existsCOMMENT
LOWmoto/moto_proxy/certificate_creator.py72 # Verify if the certificate already existsCOMMENT
LOWmoto/cloudformation/parsing.py456 # Check if we are referencing another ConditionCOMMENT
LOWmoto/cloudformation/parsing.py685 # Check if there are any non-default params that were not passed inputCOMMENT
LOWmoto/ec2/models/instances.py119 # Check if we have tags to processCOMMENT
LOWmoto/ec2/models/vpcs.py700 # Check if current cidr block doesn't fall within the 10.0.0.0/8 block, excluding 10.0.0.0/16 and 10.1.0.0/16.COMMENT
AI Structural Patterns80 hits · 66 pts
SeverityFileLineSnippetContext
LOWtests/test_cloudwatch/test_cloudwatch.py1049CODE
LOWtests/test_cognitoidp/__init__.py12CODE
LOWtests/test_sagemaker/test_sagemaker_training.py16CODE
LOWtests/test_sagemaker/test_sagemaker_processing.py24CODE
LOWtests/test_sagemaker/test_sagemaker_transform.py16CODE
LOWtests/test_apigateway/test_apigateway_validators.py149CODE
LOWtests/test_dynamodb/__init__.py10CODE
LOWtests/test_ec2/__init__.py26CODE
LOWmoto/codebuild/models.py95CODE
LOWmoto/ssm/models.py766CODE
LOWmoto/timestreaminfluxdb/models.py107CODE
LOWmoto/timestreaminfluxdb/models.py485CODE
LOWmoto/secretsmanager/models.py79CODE
LOWmoto/secretsmanager/models.py683CODE
LOWmoto/secretsmanager/models.py749CODE
LOWmoto/cloudwatch/models.py534CODE
LOWmoto/glue/models.py69CODE
LOWmoto/glue/models.py1278CODE
LOWmoto/glue/models.py1480CODE
LOWmoto/glue/models.py2133CODE
LOWmoto/s3/models.py121CODE
LOWmoto/s3/models.py828CODE
LOWmoto/s3/models.py2290CODE
LOWmoto/s3/models.py3047CODE
LOWmoto/emr/models.py374CODE
LOWmoto/dynamodb/models/table.py253CODE
LOWmoto/route53domains/validators.py701CODE
LOWmoto/route53domains/validators.py735CODE
LOWmoto/route53domains/validators.py958CODE
LOWmoto/applicationautoscaling/responses.py249CODE
LOWmoto/ecs/models.py132CODE
LOWmoto/ecs/models.py473CODE
LOWmoto/ecs/models.py848CODE
LOWmoto/ecs/models.py1112CODE
LOWmoto/ecs/models.py1598CODE
LOWmoto/ecs/models.py2154CODE
LOWmoto/pipes/models.py48CODE
LOWmoto/eks/models.py193CODE
LOWmoto/eks/models.py389CODE
LOWmoto/apigatewayv2/models.py770CODE
LOWmoto/kafka/models.py18CODE
LOWmoto/kafka/models.py220CODE
LOWmoto/codedeploy/models.py315CODE
LOWmoto/codedeploy/models.py384CODE
LOWmoto/packages/boto/ec2/blockdevicemapping.py32CODE
LOWmoto/dms/models.py116CODE
LOWmoto/dms/models.py764CODE
LOWmoto/events/models.py1245CODE
LOWmoto/autoscaling/models.py429CODE
LOWmoto/elbv2/models.py97CODE
LOWmoto/elbv2/models.py1801CODE
LOWmoto/cloudformation/parsing.py496CODE
LOWmoto/rds/models.py508CODE
LOWmoto/rds/models.py1097CODE
LOW…ns/parser/asl/component/intrinsic/argument/argument.py53CODE
LOW…ns/parser/asl/component/intrinsic/argument/argument.py65CODE
LOW…ns/parser/asl/component/intrinsic/argument/argument.py90CODE
LOW…payload/payloadvalue/payloadbinding/payload_binding.py45CODE
LOW…asl/component/common/assign/assign_template_binding.py45CODE
LOW…asl/component/common/assign/assign_template_binding.py58CODE
20 more matches not shown…
TODO Padding33 hits · 56 pts
SeverityFileLineSnippetContext
LOWtests/test_s3/test_s3_lifecycle.py306 # TODO: Add test for failures due to missing childrenCOMMENT
LOWtests/test_s3/test_s3_lifecycle.py481 # TODO: Add test for failures due to missing childrenCOMMENT
LOWtests/test_apigateway/test_apigateway.py868 # TODO: implement mult-update testsCOMMENT
LOWtests/test_ec2/test_subnets.py286 # TODO: implement some actual logicCOMMENT
LOWmoto/ds/models.py781 # TODO: Add validation for the valueCOMMENT
LOWmoto/transfer/responses.py117 # TODO: implement paginationCOMMENT
LOWmoto/transfer/responses.py164 # TODO: implement paginationCOMMENT
LOWmoto/transfer/models.py253 # TODO: implement paginationCOMMENT
LOWmoto/transfer/models.py329 # TODO: implement paginationCOMMENT
LOWmoto/dynamodb/models/dynamo_type.py463 # TODO: implement other data typesCOMMENT
LOWmoto/iot/responses.py568 # TODO: implement pagination in the futureCOMMENT
LOWmoto/iot/responses.py639 # TODO: implement pagination in the futureCOMMENT
LOWmoto/iot/models.py2590 # TODO: implement expected_version and status_details (at most 10 can be specified)COMMENT
LOWmoto/codedeploy/models.py452 # TODO: implement paginationCOMMENT
LOWmoto/codedeploy/models.py456 # TODO: implement pagination and complete filteringCOMMENT
LOWmoto/codedeploy/models.py503 # TODO: implement paginationCOMMENT
LOWmoto/swf/responses.py106 # TODO: implement paginationCOMMENT
LOWmoto/swf/responses.py264 # TODO: implement paginationCOMMENT
LOWmoto/swf/responses.py525 # TODO: implement length limits on reason and details (common pb withCOMMENT
LOWmoto/swf/models/workflow_execution.py61 # TODO: implement them allCOMMENT
LOWmoto/swf/models/workflow_execution.py454 # TODO: implement Decision type: ContinueAsNewWorkflowExecutionCOMMENT
LOWmoto/swf/models/workflow_execution.py455 # TODO: implement Decision type: RequestCancelActivityTaskCOMMENT
LOWmoto/swf/models/workflow_execution.py456 # TODO: implement Decision type: RequestCancelExternalWorkflowExecutionCOMMENT
LOWmoto/swf/models/workflow_execution.py457 # TODO: implement Decision type: ScheduleLambdaFunctionCOMMENT
LOWmoto/swf/models/workflow_execution.py458 # TODO: implement Decision type: SignalExternalWorkflowExecutionCOMMENT
LOWmoto/swf/models/workflow_execution.py459 # TODO: implement Decision type: StartChildWorkflowExecutionCOMMENT
LOWmoto/swf/models/workflow_execution.py478 # TODO: implement length constraints on details/reasonCOMMENT
LOWmoto/swf/models/workflow_execution.py490 # TODO: implement length constraints on detailsCOMMENT
LOWmoto/swf/models/workflow_execution.py513 # TODO: implement other possible failure mode: OPEN_ACTIVITIES_LIMIT_EXCEEDEDCOMMENT
LOWmoto/stepfunctions/parser/asl/parse/preprocessor.py1159 # TODO: add tests for arguments in jsonata blocks using result writerCOMMENT
LOW…exec/state_task/service/state_task_service_callback.py47# TODO: consider implementing a polling pattern similar to that observable from AWS:COMMENT
LOWmoto/route53/responses.py126 # TODO: implement enable/disable dnssec apisCOMMENT
LOWmoto/ec2/models/elastic_ip_addresses.py133 # TODO: implement network-interface-owner-idCOMMENT
Over-Commented Block64 hits · 55 pts
SeverityFileLineSnippetContext
LOWrequirements-dev.txt21COMMENT
LOWtests/test_secretsmanager/test_server.py281 assert json_data["Name"] == DEFAULT_SECRET_NAMECOMMENT
LOWtests/test_secretsmanager/test_server.py301# initial_description = test_client.post(COMMENT
LOWtests/test_secretsmanager/test_server.py321# },COMMENT
LOWtests/test_config/test_config_rules.py221COMMENT
LOW…t_cloudformation/test_cloudformation_multi_accounts.py21COMMENT
LOWtests/test_iam/test_iam_cloudformation.py1141 # The Stack has two resources, a Role and an InlinePolicy attached to this role.COMMENT
LOWtests/test_apigateway/test_server.py121 # Moto/Boto3 requires the responseTemplates-parameter to have a value - even if it's an empty dictCOMMENT
LOWtests/test_swf/models/test_workflow_execution.py541 wfe.start()COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py21 agentResourceRoleArn="test-agent-arn",COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py41 # 'promptType': 'PRE_PROCESSING',COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py421# agentResourceRoleArn="test-agent-arn",COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py441# client = boto3.client("bedrock-agent", region_name=DEFAULT_REGION)COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py521 )COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py541COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py561# knowledgeBaseConfiguration={COMMENT
LOWtests/test_bedrockagent/test_bedrockagent.py581# roleArn="test_role_arn",COMMENT
LOWmoto/s3/responses.py461 parsed_url = urlparse(full_url)COMMENT
LOWmoto/config/models.py801COMMENT
LOWmoto/config/models.py861 "The required parameter ["COMMENT
LOWmoto/config/models.py881 # if rule_info["Trigger type"] == "Configuration changes":COMMENT
LOWmoto/cognitoidp/models.py1321 # 1. populates the correct field (email, phone_number) with the valueCOMMENT
LOWmoto/cognitoidp/models.py1941 user_pool = pCOMMENT
LOWmoto/dynamodb/comparisons.py481 # ANDCOMMENT
LOWmoto/dynamodb/comparisons.py501 # <=COMMENT
LOWmoto/dynamodb/models/dynamo_type.py521 # - Items are not divided equally between segmentCOMMENT
LOWmoto/utilities/distutils_version.py81# Interface for version-number classes -- must be implementedCOMMENT
LOWmoto/utilities/distutils_version.py101# left-to-right to determine an ordering.COMMENT
LOWmoto/utilities/distutils_version.py121# The problem is what to do with letters (and other non-numericCOMMENT
LOWmoto/utilities/distutils_version.py141# anarchists in the lot will never give in, though, and something needsCOMMENT
LOWmoto/packages/boto/ec2/instance.py1# Copyright (c) 2006-2012 Mitch Garnaat http://garnaat.org/COMMENT
LOWmoto/packages/boto/ec2/instancetype.py1# Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.org/COMMENT
LOWmoto/packages/boto/ec2/blockdevicemapping.py1# Copyright (c) 2009-2012 Mitch Garnaat http://garnaat.org/COMMENT
LOWmoto/packages/boto/ec2/ec2object.py1# Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/COMMENT
LOWmoto/packages/boto/ec2/image.py1# Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/COMMENT
LOWmoto/packages/boto/ec2/tag.py1# Copyright (c) 2010 Mitch Garnaat http://garnaat.org/COMMENT
LOWmoto/moto_proxy/certs/__init__.py1# Folder that will contain SSL certificatesCOMMENT
LOWmoto/swf/models/__init__.py241 # - case 1: there's a decision task to return, return itCOMMENT
LOWmoto/swf/models/__init__.py361 domain = self._get_domain(domain_name)COMMENT
LOW…tions/parser/asl/component/state/exec/execute_state.py61 # The input is then filtered as specified by the OutputPath field (if present) before being used as theCOMMENT
LOW…tions/parser/asl/component/state/exec/execute_state.py81 # the state_task has been started, for example, when ActivityStarted or LambdaFunctionStarted are logged in theCOMMENT
LOW…unction/statesfunction/json_manipulation/json_merge.py21 #COMMENT
LOW…ntrinsic/function/statesfunction/array/array_unique.py21 # For example:COMMENT
LOW…ction/statesfunction/string_operations/string_split.py21 # For example:COMMENT
LOW…ic/function/statesfunction/math_operations/math_add.py21 # AWS stepfunctions is implemented in Java, so we need to adjust the rounding accordinglyCOMMENT
LOW…function/statesfunction/math_operations/math_random.py21 #COMMENT
LOW…ion/statesfunction/encoding_decoding/base_64_decode.py21 #COMMENT
LOW…ion/statesfunction/encoding_decoding/base_64_encode.py21 #COMMENT
LOW…insic/function/statesfunction/generic/string_format.py21COMMENT
LOWdocs/conf.py1#!/usr/bin/env python3COMMENT
LOWdocs/conf.py21COMMENT
LOWdocs/conf.py61COMMENT
LOWdocs/conf.py81# default_role = NoneCOMMENT
LOWdocs/conf.py101# keep_warnings = FalseCOMMENT
LOWdocs/conf.py121# The name for this set of Sphinx documents. If None, it defaults toCOMMENT
LOWdocs/conf.py141COMMENT
LOWdocs/conf.py161COMMENT
LOWdocs/conf.py181# contain a <link> tag referring to it. The value of this option must be theCOMMENT
LOWdocs/conf.py201COMMENT
LOWdocs/conf.py221latex_documents = [COMMENT
4 more matches not shown…
AI Slop Vocabulary28 hits · 52 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_awslambda/test_lambda_invoke.py343 # Absolutely fine when invoking asyncCOMMENT
LOWtests/test_identitystore/test_identitystore.py1005 ] # strip response metadata and just return user infoCODE
LOWtests/test_ecr/test_ecr_cloudformation.py51 # Eventually we will just create the repository using the CloudFormation template above,COMMENT
LOWtests/test_s3/test_s3.py3244 # Create it again in the same region - should just return that same bucketCOMMENT
LOWtests/test_s3/test_s3.py1674 # Uploading >1000 files using boto3 takes ages, so let's just use the backend directlyCOMMENT
MEDIUMtests/test_dynamodb/test_dynamodb_executor.py387 """A delete statement must use a value of type SS in order to delete elements from a set."""STRING
MEDIUMtests/test_dynamodb/test_dynamodb_executor.py411 """A delete statement must use a value of type SS in order to delete elements from a set."""STRING
LOWmoto/lakeformation/models.py457 # There is no ARN that we can use, so just create another unique identifier that's easy to recognize and reprodCOMMENT
LOWmoto/lakeformation/models.py463 # There is no ARN that we can use, so just create another unique identifier that's easy to recognize and reprodCOMMENT
LOWmoto/lakeformation/models.py469 # There is no ARN that we can use, so just create another unique identifier that's easy to recognize and reprodCOMMENT
LOWmoto/lakeformation/models.py488 # There is no ARN that we can use, so just create another unique identifier that's easy to recognize and reprodCOMMENT
LOWmoto/kms/models.py417 # In our implementation with just create a copy of all the properties once without any protection from change,COMMENT
LOWmoto/cloudwatch/models.py843 # Let's just add all metric data found within this periodCOMMENT
MEDIUMmoto/glue/utils.py477 # NOTE these are AWS Athena column name best practicesCOMMENT
LOWmoto/emr/models.py589 # For now, just return a hardcoded value for such cases.COMMENT
MEDIUMmoto/core/parse.py404 # Need to utilize subclasses here...COMMENT
LOWmoto/cognitoidp/models.py2540 # If we can't find the `client_id` or `access_token`, we just passCOMMENT
LOWmoto/dynamodb/models/dynamo_type.py163 # DynamoDB doesn't care you are out of box just add it to the end.COMMENT
LOWmoto/iot/models.py2194 # This behaviour is different to list_policy_principals which will just return an empty listCOMMENT
LOWmoto/awslambda/models.py237 # If we don't have any layers to apply, just return at this pointCOMMENT
LOWmoto/awslambda/models.py454 # So it seems like the date is automatically set to UTC on creation, that's why we can just return this hardcodeCOMMENT
LOWmoto/batch/models.py1571 # We'll just use the first instance_type in this familyCOMMENT
LOWmoto/elasticache/models.py933 # Docs user "ResourceName" as input but the param is technically the ARN, will just use arnCOMMENT
LOWmoto/elasticache/models.py937 # Docs user "ResourceName" as input but the param is technically the ARN, will just use arnCOMMENT
LOWmoto/rds/models.py3780 # So we can't just use the dict-keys - we have to manually check the ARNCOMMENT
MEDIUM…pfunctions/parser/asl/parse/test_state/preprocessor.py66 # to facilitate the decorator's functionality.COMMENT
MEDIUM…pfunctions/parser/asl/parse/test_state/preprocessor.py73 # to facilitate the decorator's functionality.COMMENT
LOWmoto/ec2/models/amis.py214 # Will error on unknown (new) regions - just return an empty list hereCOMMENT
Fake / Example Data46 hits · 48 pts
SeverityFileLineSnippetContext
LOWtests/test_sesv2/test_sesv2.py269 EmailAddress="user@example.com",CODE
LOWtests/test_sesv2/test_sesv2.py271 assert contact["EmailAddress"] == "user@example.com"CODE
LOWtests/test_sesv2/test_sesv2.py252 EmailAddress="user@example.com",CODE
LOW…ourcegroupstaggingapi/test_resourcegroupstaggingapi.py1717 Email="user@example.com",STRING
LOW…ourcegroupstaggingapi/test_resourcegroupstaggingapi.py1735 "DataSetPlaceholder": "placeholder",STRING
LOWtests/test_quicksight/test_quicksight_tagging.py63 "DataSetPlaceholder": "placeholder",CODE
LOWtests/test_quicksight/test_quicksight_tagging.py91 "DataSetPlaceholder": "placeholder",CODE
LOWtests/test_quicksight/test_quicksight_tagging.py188 Email="user@example.com",CODE
LOWtests/test_quicksight/test_quicksight_tagging.py208 Email="user@example.com",CODE
LOWtests/test_quicksight/test_quicksight_users.py575 MemberName="fake_user",CODE
LOWtests/test_quicksight/test_quicksight_users.py740 UserName="fake_user",CODE
LOWtests/test_quicksight/test_quicksight_users.py751 MemberName="fake_user",CODE
LOWtests/test_quicksight/test_quicksight_users.py759 UserName="fake_user",CODE
LOWtests/test_quicksight/test_quicksight_users.py768 UserName="fake_user",CODE
LOWtests/test_quicksight/test_quicksight_users.py779 UserName="fake_user",CODE
LOWtests/test_quicksight/test_quicksight_integration.py59 "DataSetPlaceholder": "placeholder",CODE
LOWtests/test_quicksight/test_quicksight_integration.py102 Email="user@example.com",CODE
LOWtests/test_identitystore/test_identitystore.py765 dummy_user = __create_and_verify_sparse_user(client, identity_store_id)CODE
LOWtests/test_identitystore/test_identitystore.py766 expected_users.append(dummy_user)CODE
LOWtests/test_networkmanager/test_networkmanager.py124 "Address": "123 Main St",CODE
LOWtests/test_networkmanager/test_networkmanager.py235 "Address": "123 Main St",CODE
LOWtests/test_sqs/test_sqs_message_attributes.py70 "Author": {"StringValue": "John Doe", "DataType": "String"},CODE
LOWtests/test_sqs/test_sqs_message_attributes.py91 assert message["MessageAttributes"]["Author"]["StringValue"] == "John Doe"CODE
LOWtests/test_cognitoidp/test_cognitoidp.py3757 {"Name": "email", "Value": "test@test.com"},CODE
LOWtests/test_cognitoidp/test_cognitoidp.py4450 UserAttributes=[{"Name": "email", "Value": "test@test.com"}],CODE
LOWtests/test_cognitoidp/test_cognitoidp.py4470 UserAttributes=[{"Name": "email", "Value": "test@test.com"}],CODE
LOWtests/test_sagemaker/test_sagemaker_model_packages.py390 == "arn:aws:sagemaker:eu-west-1:123456789012:user-profile/fake-domain-id/fake-user-profile-name"CODE
LOWtests/test_sagemaker/test_sagemaker_model_packages.py392 assert resp["LastModifiedBy"]["UserProfileName"] == "fake-user-profile-name"CODE
LOWtests/test_sagemaker/test_sagemaker_model_packages.py247 == "arn:aws:sagemaker:eu-west-1:123456789012:user-profile/fake-domain-id/fake-user-profile-name"CODE
LOWtests/test_sagemaker/test_sagemaker_model_packages.py249 assert resp["CreatedBy"]["UserProfileName"] == "fake-user-profile-name"CODE
LOWtests/test_s3/test_s3_multipart.py64 fake_key = s3model.FakeKey(CODE
LOWtests/test_s3/test_s3_multipart.py67 assert fake_key._value_buffer._rolled is FalseCODE
LOWtests/test_s3/test_s3_multipart.py71 fake_key = s3model.FakeKey(CODE
LOWtests/test_s3/test_s3_multipart.py74 assert fake_key._value_buffer._rolled is TrueCODE
LOWtests/test_ses/test_ses.py1946 conn.verify_email_identity(EmailAddress="foo@bar.com")CODE
LOWtests/test_ses/test_ses.py1950 Identities=["foo.com", "foo@bar.com", "bar@bar.com"]CODE
LOWtests/test_ses/test_ses.py1959 attributes["VerificationAttributes"]["foo@bar.com"]["VerificationStatus"]CODE
LOWtests/test_dynamodb/test_dynamodb.py3798 "nonProjectedAttribute": "dolor sit amet",CODE
LOWtests/test_account/test_account_alternate_contacts.py17 EmailAddress="test@test.com",CODE
LOWtests/test_account/test_account_alternate_contacts.py40 assert details["EmailAddress"] == "test@test.com"CODE
LOWtests/test_account/test_account_alternate_contacts.py84 EmailAddress="test@test.com",CODE
LOW…ests_java/src/test/java/moto/tests/CognitoIDPTest.java47 .value("test@test.com")CODE
LOWmoto/sagemaker/models.py222 fake_user_profile_name = "fake-user-profile-name"CODE
LOWmoto/sagemaker/models.py271 fake_user_profile_name = "fake-user-profile-name"CODE
LOWmoto/sagemaker/models.py1064 fake_user_profile_name = "fake-user-profile-name"CODE
LOWmoto/sagemaker/models.py1246 fake_user_profile_name = "fake-user-profile-name"CODE
Decorative Section Separators12 hits · 39 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_efs/test_mount_target.py271 # ------------------COMMENT
MEDIUMtests/test_efs/test_mount_target.py286 # --------------------COMMENT
MEDIUMtests/test_efs/test_mount_target.py305 # ----------------COMMENT
MEDIUMtests/test_efs/test_file_system.py164# ================COMMENT
MEDIUMtests/test_efs/test_file_system.py351# ==============COMMENT
MEDIUMtests/test_efs/test_file_system.py34# ==============COMMENT
MEDIUMtests/test_efs/test_file_system.py271 # ------------------COMMENT
MEDIUMtests/test_efs/test_file_system.py286 # --------------------COMMENT
MEDIUMtests/test_efs/test_file_system.py303 # ----------------COMMENT
MEDIUMmoto/dynamodb/comparisons.py233 # ---------------COMMENT
MEDIUMmoto/dynamodb/comparisons.py244 # -------------COMMENT
MEDIUMmoto/dynamodb/comparisons.py249 # --------------COMMENT
Dead Code10 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_core/test_proxy.py114CODE
MEDIUMtests/test_core/test_proxy.py117CODE
MEDIUMtests/test_core/test_proxy.py118CODE
MEDIUMtests/test_core/test_proxy.py119CODE
MEDIUMtests/test_core/test_proxy.py122CODE
MEDIUMtests/test_core/test_proxy.py125CODE
MEDIUMtests/test_core/test_proxy.py126CODE
MEDIUMtests/test_core/test_proxy.py128CODE
MEDIUMtests/test_core/test_proxy.py129CODE
MEDIUMtests/test_core/test_proxy.py130CODE
Structural Annotation Overuse3 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/test_s3/test_s3_conditionals.py331 # Step 1: Create object via multipart uploadCOMMENT
LOWmoto/config/models.py875 # WARNING: The AWS documentation indicates MaximumExecutionFrequencyCOMMENT
LOWmoto/dynamodb/comparisons.py471 # NOTE: The following constructions are ordered from high precedence to low precedenceCOMMENT
Verbosity Indicators2 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/test_s3/test_s3_conditionals.py331 # Step 1: Create object via multipart uploadCOMMENT
LOWmoto/secretsmanager/models.py652 # we need to check if it matches the existing secret's version ID.COMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWmoto/ecs/responses.py203 def run_task(self) -> ActionResult:CODE
LOWmoto/ecs/models.py1240 def run_task(CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWmoto/ec2/models/instances.py424 # TODO: Don't forget to implement replace_iam_instance_profile_association once update_from_cloudformation_jsonCOMMENT