Repository Analysis

awsdocs/aws-doc-sdk-examples

Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.

6.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of awsdocs/aws-doc-sdk-examples, a Java project with 10,442 GitHub stars. SynthScan v2.0 examined 1,151,316 lines of code across 10853 source files, recording 4027 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 6.3 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.3
Adjusted Score
6.3
Raw Score
100%
Time Factor
2026-07-31
Last Push
10.4K
Stars
Java
Language
1.2M
Lines of Code
10.9K
Files
4.0K
Pattern Hits
2026-08-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 17HIGH 512MEDIUM 323LOW 3175

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 4027 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.

Cross-File Repetition468 hits · 2340 pts
SeverityFileLineSnippetContext
HIGHrustv1/examples/glue/resources/flight_etl_job_script.py0this script is used by the aws glue _getting started with crawlers and jobs_ scenario to perform extract, transform, andSTRING
HIGHpython/example_code/glue/flight_etl_job_script.py0this script is used by the aws glue _getting started with crawlers and jobs_ scenario to perform extract, transform, andSTRING
HIGHphp/example_code/glue/flight_etl_job_script.py0this script is used by the aws glue _getting started with crawlers and jobs_ scenario to perform extract, transform, andSTRING
HIGHcpp/example_code/glue/flight_etl_job_script.py0this script is used by the aws glue _getting started with crawlers and jobs_ scenario to perform extract, transform, andSTRING
HIGH…ft/example_code/glue/scenario/flight_etl_job_script.py0this script is used by the aws glue _getting started with crawlers and jobs_ scenario to perform extract, transform, andSTRING
HIGHruby/example_code/glue/job_script.py0this script is used by the aws glue _getting started with crawlers and jobs_ scenario to perform extract, transform, andSTRING
HIGHruby/example_code/glue/spec/test_job_script.py0this script is used by the aws glue _getting started with crawlers and jobs_ scenario to perform extract, transform, andSTRING
HIGH…_code/glue/src/main/resources/flight_etl_job_script.py0this script is used by the aws glue _getting started with crawlers and jobs_ scenario to perform extract, transform, andSTRING
HIGHrustv1/examples/glue/resources/flight_etl_job_script.py0these custom arguments must be passed as arguments to the startjobrun request. --input_database the name of a metadata dSTRING
HIGHpython/example_code/glue/flight_etl_job_script.py0these custom arguments must be passed as arguments to the startjobrun request. --input_database the name of a metadata dSTRING
HIGHphp/example_code/glue/flight_etl_job_script.py0these custom arguments must be passed as arguments to the startjobrun request. --input_database the name of a metadata dSTRING
HIGHcpp/example_code/glue/flight_etl_job_script.py0these custom arguments must be passed as arguments to the startjobrun request. --input_database the name of a metadata dSTRING
HIGH…ft/example_code/glue/scenario/flight_etl_job_script.py0these custom arguments must be passed as arguments to the startjobrun request. --input_database the name of a metadata dSTRING
HIGHruby/example_code/glue/job_script.py0these custom arguments must be passed as arguments to the startjobrun request. --input_database the name of a metadata dSTRING
HIGHruby/example_code/glue/spec/test_job_script.py0these custom arguments must be passed as arguments to the startjobrun request. --input_database the name of a metadata dSTRING
HIGH…_code/glue/src/main/resources/flight_etl_job_script.py0these custom arguments must be passed as arguments to the startjobrun request. --input_database the name of a metadata dSTRING
HIGHpython/test_tools/ses_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/acm_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/redshift_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/elbv2_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/cloudfront_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/kinesis_analytics_v2_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/config_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/glacier_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/cloudwatch_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/stepfunctions_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/rekognition_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/redshift_data_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/route53_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/comprehend_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/glue_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/cognito_idp_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/support_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/kinesis_stubber.py0a class that implements stub functions used by amazon kinesis unit tests. the stubbed functions expect certain parameterSTRING
HIGHpython/test_tools/ses_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/rekognition_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/ssm_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/pinpoint_email_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/cloudwatch_logs_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/dynamodb_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/acm_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/redshift_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/stepfunctions_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/redshift_data_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/textract_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/elbv2_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/cloudfront_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/kinesis_analytics_v2_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/apigateway_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/ec2_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/apigateway_v2_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/healthlake_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/pinpoint_sms_voice_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/ecr_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/secretsmanager_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/controltower_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/config_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/glacier_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/keyspaces_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
HIGHpython/test_tools/controlcatalog_stubber.py0initializes the object with a specific client and configures it for stubbing or aws passthrough. :param controlcatalog_cSTRING
408 more matches not shown…
Over-Commented Block924 hits · 921 pts
SeverityFileLineSnippetContext
LOWdotnetv4/Bedrock-runtime/Actions/InvokeModelAsync.cs81COMMENT
LOWdotnetv4/CloudWatch/Actions/CloudWatchWrapper.cs21 /// <summary>COMMENT
LOWdotnetv4/CloudWatch/Actions/CloudWatchWrapper.cs61 // snippet-start:[CloudWatch.dotnetv4.GetMetricStatistics]COMMENT
LOWdotnetv4/CloudWatch/Actions/CloudWatchWrapper.cs221 metricFileName);COMMENT
LOWdotnetv4/CloudWatch/Actions/CloudWatchWrapper.cs261 await foreach (var data in paginatedMetricData.MetricDataResults)COMMENT
LOWdotnetv4/S3/Actions/HelloS3.cs1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOW…netv4/S3/Scenarios/S3_CreatePresignedPost/S3Wrapper.cs1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWdotnetv4/DynamoDB/Actions/DynamoDbWrapper.cs21 /// Constructor for the DynamoDbWrapper class.COMMENT
LOWdotnetv4/DynamoDB/Actions/DynamoDbWrapper.cs161 }COMMENT
LOWdotnetv4/DynamoDB/Actions/DynamoDbWrapper.cs361 {COMMENT
LOW…4/DynamoDB/Scenarios/DynamoDB_Basics/DynamoDbBasics.cs1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOW…4/DynamoDB/Scenarios/DynamoDB_Basics/DynamoDbBasics.cs21/// QueryCOMMENT
LOWdotnetv4/Aurora/Actions/AuroraWrapper.cs281 }COMMENT
LOW…dWatchLogs/LargeQuery/Actions/CloudWatchLogsWrapper.cs21 /// </summary>COMMENT
LOWdotnetv4/IoT/Actions/HelloIoT.cs1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWdotnetv4/IoT/Actions/IoTWrapper.cs21COMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs101 /// Run the IoT Basics scenario.COMMENT
LOWdotnetv4/Redshift/Actions/RedshiftWrapper.cs21 private readonly IAmazonRedshiftDataAPIService _redshiftDataClient;COMMENT
LOWdotnetv4/AutoScaling/Actions/AutoScalingWrapper.cs21 /// </summary>COMMENT
LOWdotnetv4/EC2/Actions/EC2Wrapper.cs61 }COMMENT
LOWdotnetv4/EC2/Actions/EC2Wrapper.cs881 // snippet-end:[EC2.dotnetv4.WaitForInstanceState]COMMENT
LOWrustv1/cross_service/detect_labels/src/main.rs201 };COMMENT
LOWrustv1/cross_service/telephone/src/main.rs201// snippet-end:[telephone.rust.main-convert_audio]COMMENT
LOWrustv1/cross_service/rest_ses/src/client.rs41 /// let settings: rest_ses::configuration::RdsSettings = serde_json::from_str(CONFIG).unwrap();COMMENT
LOWrustv1/cross_service/rest_ses/src/work_item/mod.rs61/// The various WorkItem specific errors that can occur.COMMENT
LOW…tv1/cross_service/rest_ses/src/work_item/collection.rs1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOW…mples/auto-scaling/src/bin/create-autoscaling-group.rs41 println!("Created AutoScaling group");COMMENT
LOW…mples/auto-scaling/src/bin/update-autoscaling-group.rs41 Ok(())COMMENT
LOW…mples/auto-scaling/src/bin/delete-autoscaling-group.rs41 Ok(())COMMENT
LOWrustv1/examples/sdk-config/src/bin/timeouts.rs1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWrustv1/examples/sdk-config/src/bin/no_env.rs81 {COMMENT
LOWrustv1/examples/kms/src/bin/encrypt.rs61 }COMMENT
LOWrustv1/examples/kms/src/bin/reencrypt-data.rs81 }COMMENT
LOWrustv1/examples/s3/src/bin/if-modified-since.rs21/// # StepsCOMMENT
LOWrustv1/examples/s3/src/bin/if-modified-since.rs101 // snippet-start:[s3.rust.if-modified-since.head_object2]COMMENT
LOWrustv1/examples/s3/src/bin/s3-helloworld.rs21COMMENT
LOWrustv1/examples/s3/src/bin/s3-helloworld.rs101 // Retrieve the just-uploaded object.COMMENT
LOWrustv1/examples/s3/src/bin/delete-bucket.rs21 /// Whether to display additional information.COMMENT
LOWrustv1/examples/s3/src/bin/delete-object.rs21 /// The object to delete.COMMENT
LOWrustv1/examples/s3/src/bin/select-object-content.rs21 region: Option<String>,COMMENT
LOWrustv1/examples/s3/src/bin/create-bucket.rs21 /// Whether to display additional information.COMMENT
LOWrustv1/examples/s3/src/bin/delete-objects.rs21 /// The objects to delete.COMMENT
LOWrustv1/examples/s3/src/bin/get-object-presigned.rs61/// # ArgumentsCOMMENT
LOWrustv1/examples/s3/src/bin/put-object-presigned.rs61/// Adds an object to a bucket and returns a public URI.COMMENT
LOWrustv1/examples/s3/src/bin/copy-object.rs21 /// The name of the destination bucket.COMMENT
LOWrustv1/examples/s3/src/bin/s3-getting-started.rs1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWrustv1/examples/sns/src/bin/sns-hello-world.rs61/// Subscribes an email address and publishes a message to a topic.COMMENT
LOWrustv1/examples/config/src/bin/show-resource-history.rs41 println!("item: {:?}", item);COMMENT
LOWrustv1/examples/config/src/bin/config-helloworld.rs41COMMENT
LOWrustv1/examples/config/src/bin/enable-config.rs141 Ok(())COMMENT
LOWrustv1/examples/sending-presigned-requests/src/main.rs41COMMENT
LOWrustv1/examples/rdsdata/src/bin/rdsdata-helloworld.rs61/// It should look something like: __"SELECT * FROM pg_catalog.pg_tables limit 1"__.COMMENT
LOWrustv1/examples/sitewise/src/bin/list-assets.rs81COMMENT
LOWrustv1/examples/sitewise/src/bin/list-portals.rs61// snippet-end:[sitewise.rust.list-portals]COMMENT
LOWrustv1/examples/dynamodb/src/bin/list10-tables.rs1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWrustv1/examples/dynamodb/src/bin/list-tables.rs1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWrustv1/examples/dynamodb/src/bin/create-table.rs21 key: String,COMMENT
LOWrustv1/examples/dynamodb/src/bin/delete-item.rs21 key: String,COMMENT
LOWrustv1/examples/dynamodb/src/bin/are-more-tables.rs1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWrustv1/examples/dynamodb/src/bin/list-more-tables.rs1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
864 more matches not shown…
Hyper-Verbose Identifiers823 hits · 828 pts
SeverityFileLineSnippetContext
LOW…ck-runtime/models/amazonNovaText/converse-with-tool.js92export async function SendConversationtoBedrock(CODE
LOW…arios/converse_tool_scenario/converse-tool-scenario.js73async function SendConversationtoBedrock(messages) {CODE
LOW…arios/converse_tool_scenario/converse-tool-scenario.js108async function ProcessModelResponseAsync(response, messages, max_recursions) {CODE
LOWjavascriptv3/example_code/s3/libs/s3Utils.js80export async function legallyEmptyAndDeleteBuckets(bucketNames) {CODE
LOW…v3/example_code/codepipeline/MyCodePipelineFunction.py249def check_stack_update_status(job_id, stack):CODE
LOW…e/cross-services/wkflw-resilient-service/steps-demo.js413async function createSsmOnlyInstanceProfile() {CODE
LOW…ge-sets/pixel-data-verification/openjphjs/openjphjs.js1var Module=typeof Module!="undefined"?Module:{};var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisPCODE
LOW…r/scenarios/wkflw-sagemaker-geospatial-pipeline/lib.js64export async function createLambdaExecutionRole({ name, iamClient }) {CODE
LOW…r/scenarios/wkflw-sagemaker-geospatial-pipeline/lib.js114export async function createLambdaExecutionPolicy({CODE
LOW…r/scenarios/wkflw-sagemaker-geospatial-pipeline/lib.js407export async function createSagemakerExecutionPolicy({CODE
LOW…r/scenarios/wkflw-sagemaker-geospatial-pipeline/lib.js610export async function configureLambdaSQSEventSource({CODE
LOWpython/test_tools/ses_stubber.py32 def stub_verify_domain_identity(self, domain_name, token, error_code=None):CODE
LOWpython/test_tools/ses_stubber.py39 def stub_verify_email_identity(self, email_address, error_code=None):CODE
LOWpython/test_tools/ses_stubber.py45 def stub_get_identity_verification_attributes(CODE
LOWpython/test_tools/ses_stubber.py77 def stub_create_receipt_filter(CODE
LOWpython/test_tools/ses_stubber.py93 def stub_list_receipt_filters(self, filters, error_code=None):CODE
LOWpython/test_tools/ses_stubber.py99 def stub_delete_receipt_filter(self, filter_name, error_code=None):CODE
LOWpython/test_tools/ses_stubber.py105 def stub_create_receipt_rule_set(self, rule_set_name, error_code=None):CODE
LOWpython/test_tools/ses_stubber.py127 def stub_describe_receipt_rule_set(CODE
LOWpython/test_tools/ses_stubber.py155 def stub_delete_receipt_rule_set(self, rule_set_name, error_code=None):CODE
LOWpython/test_tools/ses_stubber.py246 def stub_send_templated_email(CODE
LOWpython/test_tools/ses_stubber.py276 def stub_set_identity_notification_topic(CODE
LOWpython/test_tools/bedrock_stubber.py27 def stub_list_foundation_models(self, models, error_code=None):CODE
LOWpython/test_tools/bedrock_stubber.py34 def stub_get_foundation_model(self, model_identifier, error_code=None):CODE
LOWpython/test_tools/bedrock_runtime_stubber.py106 def stub_invoke_model_with_response_stream(self, prompt, error_code=None):CODE
LOWpython/test_tools/bedrock_runtime_stubber.py126 def stub_invoke_stable_diffusion(self, prompt, seed, error_code=None):CODE
LOWpython/test_tools/scheduler_stubber.py93 def stub_create_schedule_group(self, group_name: str, schedule_group_arn: str, error_code: str =None) -> None:CODE
LOWpython/test_tools/scheduler_stubber.py124 def stub_delete_schedule_group(self, schedule_group_name: str, error_code: str =None) -> None:CODE
LOWpython/test_tools/ssm_stubber.py64 def stub_list_command_invocations(CODE
LOWpython/test_tools/ssm_stubber.py92 def stub_get_parameters_by_path(self, names, values, path=ANY, error_code=None):CODE
LOWpython/test_tools/ssm_stubber.py147 def stub_create_maintenance_window(CODE
LOWpython/test_tools/ssm_stubber.py174 def stub_delete_maintenance_window(self, window_id, error_code=None):CODE
LOWpython/test_tools/ssm_stubber.py186 def stub_update_maintenance_window(CODE
LOWpython/test_tools/cloudformation_stubber.py59 def stub_list_stack_resources(self, stack_name, resources, error_code=None):CODE
LOWpython/test_tools/dynamodb_stubber.py176 def stub_update_item_attr_update(CODE
LOWpython/test_tools/dynamodb_stubber.py295 def stub_batch_execute_statement(self, statements, responses, error_code=None):CODE
LOWpython/test_tools/acm_stubber.py33 def stub_describe_certificate(self, certificate_arn, certificate, error_code=None):CODE
LOWpython/test_tools/acm_stubber.py90 def stub_add_tags_to_certificate(self, certificate_arn, tags, error_code=None):CODE
LOWpython/test_tools/acm_stubber.py100 def stub_list_tags_for_certificate(self, certificate_arn, tags, error_code=None):CODE
LOWpython/test_tools/acm_stubber.py112 def stub_remove_tags_from_certificate(self, certificate_arn, tags, error_code=None):CODE
LOWpython/test_tools/acm_stubber.py154 def stub_resend_validation_email(CODE
LOWpython/test_tools/textract_stubber.py35 def stub_detect_document_text(self, doc_bytes, blocks, error_code=None):CODE
LOWpython/test_tools/textract_stubber.py52 def stub_start_document_text_detection(CODE
LOWpython/test_tools/textract_stubber.py77 def stub_get_document_text_detection(self, job_id, status, error_code=None):CODE
LOWpython/test_tools/textract_stubber.py87 def stub_start_document_analysis(CODE
LOWpython/test_tools/textract_stubber.py111 def stub_get_document_analysis(self, job_id, status, error_code=None):CODE
LOWpython/test_tools/elbv2_stubber.py61 def stub_describe_target_groups(self, tg_names, tg_arns, error_code=None):CODE
LOWpython/test_tools/elbv2_stubber.py68 def stub_create_load_balancer(CODE
LOWpython/test_tools/elbv2_stubber.py79 def stub_describe_load_balancers(CODE
LOWpython/test_tools/elbv2_stubber.py94 def stub_delete_load_balancer(self, arn, error_code=None):CODE
LOWpython/test_tools/elbv2_stubber.py113 def stub_describe_target_health(self, tg_arn, tg_descs, error_code=None):CODE
LOWpython/test_tools/cloudfront_stubber.py83 def stub_get_distribution_config(self, distrib_id, comment, etag, error_code=None):CODE
LOWpython/test_tools/kinesis_analytics_v2_stubber.py69 def stub_describe_application(CODE
LOWpython/test_tools/kinesis_analytics_v2_stubber.py78 def stub_describe_application_snapshot(CODE
LOWpython/test_tools/kinesis_analytics_v2_stubber.py97 def stub_discover_input_schema(self, stream_arn, role_arn, error_code=None):CODE
LOWpython/test_tools/kinesis_analytics_v2_stubber.py119 def stub_add_application_input(CODE
LOWpython/test_tools/kinesis_analytics_v2_stubber.py152 def stub_add_application_output(CODE
LOWpython/test_tools/apigateway_stubber.py114 def stub_put_integration_response(CODE
LOWpython/test_tools/neptune_stubber.py12 def stub_create_db_subnet_group(self, group_name, subnet_ids, group_arn=None, error_code=None, description=None, tagCODE
LOWpython/test_tools/neptune_stubber.py98 def stub_describe_db_instance_status(self, instance_id, statuses, error_code=None):CODE
763 more matches not shown…
Structural Annotation Overuse297 hits · 570 pts
SeverityFileLineSnippetContext
LOW…os/S3_CreatePresignedPost/CreatePresignedPostBasics.cs67 // Step 1: Create bucketCOMMENT
LOW…os/S3_CreatePresignedPost/CreatePresignedPostBasics.cs71 // Step 2: Create presigned URLCOMMENT
LOW…os/S3_CreatePresignedPost/CreatePresignedPostBasics.cs76 // Step 3: Display URL and fieldsCOMMENT
LOW…os/S3_CreatePresignedPost/CreatePresignedPostBasics.cs81 // Step 4: Upload fileCOMMENT
LOW…os/S3_CreatePresignedPost/CreatePresignedPostBasics.cs86 // Step 5: Verify file existsCOMMENT
LOW…os/S3_CreatePresignedPost/CreatePresignedPostBasics.cs90 // Step 6: CleanupCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs131 // Step 1: Create an AWS IoT ThingCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs183 // Step 2: Generate a Device CertificateCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs224 // Step 3: Attach the Certificate to the AWS IoT ThingCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs247 // Step 4: Update an AWS IoT Thing with AttributesCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs270 // Step 5: Return a unique endpoint specific to the Amazon Web Services accountCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs293 // Step 6: List your AWS IoT certificatesCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs311 // Step 7: Create an IoT shadowCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs337 // Step 8: Write out the state information, in JSON formatCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs350 // Step 9: Set up resources (SNS topic and IAM role) and create a ruleCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs425 // Step 10: List your rulesCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs445 // Step 11: Search things using the Thing nameCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs465 // Step 12: Cleanup - Detach and delete certificateCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs498 // Step 13: Delete the AWS IoT ThingCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs519 // Step 14: Clean up CloudFormation stackCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs74 // Step 1: Get user credentials (if interactive)COMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs90 // Step 2: Get cluster identifierCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs101 // Step 3: Create Redshift clusterCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs105 // Step 4: Wait for cluster to become availableCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs110 // Step 5: List databasesCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs132 // Step 6: Create Movies tableCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs143 // Step 7: Populate the Movies tableCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs197 // Step 10: Modify the clusterCOMMENT
LOW…bedrock-runtime/models/amazonNovaCanvas/invokeModel.js24 // Step 1: Create the Amazon Bedrock runtime clientCOMMENT
LOW…bedrock-runtime/models/amazonNovaCanvas/invokeModel.js28 // Step 2: Specify which model to useCOMMENT
LOW…bedrock-runtime/models/amazonNovaCanvas/invokeModel.js33 // Step 3: Configure the request payloadCOMMENT
LOW…bedrock-runtime/models/amazonNovaCanvas/invokeModel.js57 // Step 4: Send and process the requestCOMMENT
LOW…edrock-runtime/models/amazonNovaText/converseStream.js19// Step 1: Create the Amazon Bedrock runtime clientCOMMENT
LOW…edrock-runtime/models/amazonNovaText/converseStream.js23// Step 2: Specify which model to useCOMMENT
LOW…edrock-runtime/models/amazonNovaText/converseStream.js33// Step 3: Create the messageCOMMENT
LOW…edrock-runtime/models/amazonNovaText/converseStream.js42// Step 4: Configure the streaming requestCOMMENT
LOW…edrock-runtime/models/amazonNovaText/converseStream.js59// Step 5: Send and process the streaming requestCOMMENT
LOW…ck-runtime/models/amazonNovaText/converse-with-tool.js19// Step 1: Create the Amazon Bedrock runtime clientCOMMENT
LOW…code/bedrock-runtime/models/amazonNovaText/converse.js18// Step 1: Create the Amazon Bedrock runtime clientCOMMENT
LOW…code/bedrock-runtime/models/amazonNovaText/converse.js22// Step 2: Specify which model to use:COMMENT
LOW…code/bedrock-runtime/models/amazonNovaText/converse.js32// Step 3: Create the messageCOMMENT
LOW…code/bedrock-runtime/models/amazonNovaText/converse.js41// Step 4: Configure the requestCOMMENT
LOW…code/bedrock-runtime/models/amazonNovaText/converse.js58// Step 5: Send and process the requestCOMMENT
LOWjavascriptv3/example_code/nodegetstarted/README.md25### Step 1: Set up the package structureCOMMENT
LOWjavascriptv3/example_code/nodegetstarted/README.md52### Step 2: Install the Amazon S3 client packageCOMMENT
LOWjavascriptv3/example_code/nodegetstarted/README.md56### Step 3: Add necessary imports and SDK codeCOMMENT
LOWjavascriptv3/example_code/nodegetstarted/README.md60### Step 4: Run the exampleCOMMENT
LOW…to/scenarios/identity_pools_example_demo/web/README.md91### Step 3: Run the applicationCOMMENT
LOW…le_demo/web/backend/routes/auth_flows/enhanced_flow.py117 # Step 1: Get identity ID without authenticationCOMMENT
LOW…le_demo/web/backend/routes/auth_flows/enhanced_flow.py124 # Step 2: Get AWS credentials with unauthenticated roleCOMMENT
LOW…le_demo/web/backend/routes/auth_flows/enhanced_flow.py259 # Step 1: GetOpenIdTokenForDeveloperIdentityCOMMENT
LOW…le_demo/web/backend/routes/auth_flows/enhanced_flow.py270 # Step 2: GetCredentialsForIdentity - Exchange the token for AWS credentialsCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py157 # Step 1: GetId - Get a unique identifier for unauthenticated userCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py164 # Step 2: GetOpenIdToken - Exchange identity ID for OpenID tokenCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py174 # Step 3: AssumeRoleWithWebIdentity - Exchange token for AWS credentialsCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py266 # Step 1: GetId - Get a unique Identity ID with provider token for authenticated userCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py270 # Step 2: GetOpenIdToken - Exchange identity ID for OpenID token with loginsCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py277 # Step 3: AssumeRoleWithWebIdentity - Exchange token for AWS credentialsCOMMENT
LOW…thon/example_code/signv4/v4-signing-get-querystring.py69# Step 1: Define the verb (GET, POST, etc.)--already done.COMMENT
LOW…thon/example_code/signv4/v4-signing-get-querystring.py71# Step 2: Create canonical URI--the part of the URI from domain to queryCOMMENT
237 more matches not shown…
Self-Referential Comments188 hits · 564 pts
SeverityFileLineSnippetContext
MEDIUMpython/cross_service/resilient_service/load_balancer.py215 # Create the listenerCOMMENT
MEDIUMpython/cross_service/resilient_service/auto_scaler.py418 # Create the launch templateCOMMENT
MEDIUM…ervice/topics_and_queues/topics_and_queues_scenario.py169 # Create the queueCOMMENT
MEDIUM…ervice/topics_and_queues/topics_and_queues_scenario.py147 # Create the topicSTRING
MEDIUM…de/bedrock-runtime/models/stability_ai/invoke_model.py13# Create a Bedrock Runtime client in the AWS Region of your choice.COMMENT
MEDIUM…de/bedrock-runtime/models/stability_ai/invoke_model.py19# Define the image generation prompt for the model.COMMENT
MEDIUM…e/bedrock-runtime/models/mistral_ai/converse_stream.py11# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…ple_code/bedrock-runtime/models/mistral_ai/converse.py10# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…ck-runtime/models/mistral_ai/document_understanding.py10# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…me/models/amazon_titan_text_embeddings/invoke_model.py10# Create a Bedrock Runtime client in the AWS Region of your choice.COMMENT
MEDIUM…me/models/amazon_titan_text_embeddings/invoke_model.py19# Create the request for the model.COMMENT
MEDIUM…me/models/amazon_titan_image_generator/invoke_model.py13# Create a Bedrock Runtime client in the AWS Region of your choice.COMMENT
MEDIUM…me/models/amazon_titan_image_generator/invoke_model.py19# Define the image generation prompt for the model.COMMENT
MEDIUM…rock-runtime/models/deepseek/document_understanding.py10# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…e/bedrock-runtime/models/meta_llama/converse_stream.py11# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…ple_code/bedrock-runtime/models/meta_llama/converse.py10# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…ck-runtime/models/meta_llama/document_understanding.py10# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…drock-runtime/models/amazon_titan_text/invoke_model.py12# Create a Bedrock Runtime client in the AWS Region of your choice.COMMENT
MEDIUM…drock-runtime/models/amazon_titan_text/invoke_model.py18# Define the prompt for the model.COMMENT
MEDIUM…/models/amazon_nova/amazon_nova_canvas/invoke_model.py14# Create a Bedrock Runtime client in the AWS Region of your choice.COMMENT
MEDIUM…/models/amazon_nova/amazon_nova_canvas/invoke_model.py20# Define the image generation prompt for the model.COMMENT
MEDIUM…models/amazon_nova/amazon_nova_text/converse_stream.py11# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…untime/models/amazon_nova/amazon_nova_text/converse.py10# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…amazon_nova/amazon_nova_text/document_understanding.py10# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…e/models/amazon_nova/amazon_nova_reel/text_to_video.py85 # Create a Bedrock Runtime clientCOMMENT
MEDIUM…drock-runtime/models/cohere_command/converse_stream.py11# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…code/bedrock-runtime/models/cohere_command/converse.py10# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…untime/models/cohere_command/document_understanding.py10# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…runtime/models/anthropic_claude/converse_stream_pdf.py14# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…ock-runtime/models/anthropic_claude/converse_stream.py11# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…de/bedrock-runtime/models/anthropic_claude/converse.py10# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…rock-runtime/models/anthropic_claude/converse_async.py22# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…time/models/anthropic_claude/document_understanding.py10# Create a Bedrock Runtime client in the AWS Region you want to use.COMMENT
MEDIUM…e/scenarios/claude3_chatbot_demo/with_knowledgebase.py115 # Create an instance of the app with the provided knowledge base ID and run itSTRING
MEDIUM…scenarios/claude3_chatbot_demo/utils/custom_logging.py26 # Create a loggerCOMMENT
MEDIUM…scenarios/claude3_chatbot_demo/utils/custom_logging.py33 # Creating a stream handler (console output) and setting the custom formatterCOMMENT
MEDIUM…e/cross-model-scenarios/tool_use_demo/tool_use_demo.py69 # Create a Bedrock Runtime client in the specified AWS Region.STRING
MEDIUM…e/cross-model-scenarios/tool_use_demo/tool_use_demo.py88 # Create a new message with the user input and append it to the conversationSTRING
MEDIUMpython/example_code/glue/hello/hello_glue.py15 # Create the Glue clientCOMMENT
MEDIUMpython/example_code/s3/s3_basics/hello.py16 # Create an S3 client.COMMENT
MEDIUMpython/example_code/s3/s3_basics/hello.py21 # Create a paginator for the list_buckets operation.COMMENT
MEDIUM…ple_code/s3/scenarios/conditional_requests/scenario.py56 # Create the buckets.COMMENT
MEDIUM…n/example_code/sesv2/newsletter_scenario/newsletter.py91 # Create the email identitySTRING
MEDIUM…n/example_code/sesv2/newsletter_scenario/newsletter.py104 # Create the contact listSTRING
MEDIUM…n/example_code/sesv2/newsletter_scenario/newsletter.py117 # Create the email templateSTRING
MEDIUM…n/example_code/sesv2/newsletter_scenario/newsletter.py157 # Create a new contactSTRING
MEDIUM…tachments_scenario/scenario_sesv2_email_attachments.py138 # Create the email template for the bulk-send step.COMMENT
MEDIUM…tachments_scenario/scenario_sesv2_email_attachments.py219 # Create a minimal 1x1 red PNG (valid PNG file).COMMENT
MEDIUMpython/example_code/cognito/hello/hello_cognito.py8# Create a Cognito Identity Provider clientCOMMENT
MEDIUMpython/example_code/cognito/hello/hello_cognito.py14# Create a PageIterator from the paginatorCOMMENT
MEDIUM…thon/example_code/signv4/v4-signing-get-querystring.py56# Create a date for headers and the credential stringCOMMENT
MEDIUM…thon/example_code/signv4/v4-signing-get-querystring.py133# Create the signing keyCOMMENT
MEDIUMpython/example_code/signv4/v4-signing-get-authheader.py57# Create a date for headers and the credential stringCOMMENT
MEDIUMpython/example_code/signv4/v4-signing-get-authheader.py126# Create the signing key using the function defined above.COMMENT
MEDIUMpython/example_code/signv4/v4-signing-get-post.py72# Create a date for headers and the credential stringCOMMENT
MEDIUMpython/example_code/signv4/v4-signing-get-post.py154# Create the signing key using the function defined above.COMMENT
MEDIUMpython/example_code/dynamodb/hello/hello_dynamodb.py8# Create a DynamoDB client using the default credentials and regionCOMMENT
MEDIUMpython/example_code/dynamodb/hello/hello_dynamodb.py14# Create a PageIterator from the paginatorCOMMENT
MEDIUMpython/example_code/aurora/hello/hello_aurora.py7# Create an RDS clientCOMMENT
MEDIUMpython/example_code/aurora/hello/hello_aurora.py10# Create a paginator for the describe_db_clusters operationCOMMENT
128 more matches not shown…
Excessive Try-Catch Wrapping362 hits · 469 pts
SeverityFileLineSnippetContext
LOWrustv1/tools/toggle_sdk_branch.py7except Exception:CODE
LOW…v3/example_code/codepipeline/MyCodePipelineFunction.py302 except Exception as e:CODE
LOW…v3/example_code/codepipeline/MyCodePipelineFunction.py396 except Exception as e:CODE
LOW…ss_service/resilient_service/test/test_runner_integ.py86 except Exception as e:CODE
LOW…ss_service/resilient_service/test/test_runner_integ.py96 except Exception as e:CODE
MEDIUM…ss_service/resilient_service/test/test_runner_integ.py63def test_deploy_resources(self, mock_input):CODE
LOW…ss_service/aurora_rest_lending_library/library_demo.py188 except Exception as err:CODE
LOW…ss_service/aurora_rest_lending_library/library_demo.py268 except Exception as err:CODE
LOW…service/aurora_rest_lending_library/library_api/app.py138 except Exception as err:CODE
LOW…service/aurora_rest_lending_library/library_api/app.py169 except Exception as err:CODE
LOW…lending_library/library_api/chalicelib/library_data.py215 except Exception as err:CODE
LOW…lending_library/library_api/chalicelib/library_data.py298 except Exception:CODE
LOW…lending_library/library_api/chalicelib/library_data.py306 except Exception:CODE
LOW…lending_library/library_api/chalicelib/library_data.py402 except Exception:CODE
LOW…lending_library/library_api/chalicelib/library_data.py465 except Exception as err:CODE
LOW…lending_library/library_api/chalicelib/library_data.py498 except Exception:CODE
LOW…lending_library/library_api/chalicelib/library_data.py511 except Exception as err:CODE
LOW…lending_library/library_api/chalicelib/library_data.py522 except Exception as err:CODE
LOW…lending_library/library_api/chalicelib/library_data.py582 except Exception as err:CODE
LOW…ng_library/library_api/chalicelib/postgresql_helper.py343 except Exception:CODE
LOW…ng_library/library_api/chalicelib/postgresql_helper.py362 except Exception:CODE
LOW…lending_library/library_api/chalicelib/mysql_helper.py271 except Exception:CODE
MEDIUM…ervice/topics_and_queues/topics_and_queues_scenario.py362 print(f"Error deleting queue #{i+1}: {e}")CODE
MEDIUM…ervice/topics_and_queues/topics_and_queues_scenario.py371 print(f"Error unsubscribing #{i+1}: {e}")CODE
MEDIUM…ervice/topics_and_queues/topics_and_queues_scenario.py381 print(f"Error deleting topic: {e}")CODE
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py361 except Exception as e:CODE
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py370 except Exception as e:CODE
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py380 except Exception as e:CODE
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py410 except Exception as e:CODE
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py98 except Exception as e:STRING
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py104 except Exception as cleanup_error:STRING
LOW…ice/rekognition_content_moderation/cloudformation.yaml91 except Exception as e:CODE
MEDIUM…ice/rekognition_content_moderation/cloudformation.yaml67def getModerationForUrl(url):CODE
LOW…ce/rekognition_content_moderation/src/rek-moderator.py51 except Exception as e:CODE
MEDIUM…ce/rekognition_content_moderation/src/rek-moderator.py20def getModerationForUrl(url):CODE
LOW…claude/scenarios/claude3_chatbot_demo/with_document.py79 except Exception as e:STRING
LOW…claude/scenarios/claude3_chatbot_demo/with_document.py102 except Exception as e:STRING
LOW…e/scenarios/claude3_chatbot_demo/with_knowledgebase.py56 except Exception as e:CODE
LOW…e/scenarios/claude3_chatbot_demo/with_knowledgebase.py97 except Exception as e:STRING
LOW…me/cross-model-scenarios/tool_use_demo/weather_tool.py60 except Exception as e:CODE
LOW…ple_code/auto-scaling/scenario_groups_and_instances.py501 except Exception:CODE
LOW…thon/example_code/pinpoint/pinpoint_send_email_smtp.py112 except Exception:CODE
LOWpython/example_code/ssm/ssm_getting_started.py225 except Exception:STRING
LOWpython/example_code/ssm/ssm_getting_started.py243 except Exception:STRING
LOW…hon/example_code/secretsmanager/scenario_get_secret.py38 except Exception as e:CODE
LOW…mple_code/secretsmanager/scenario_get_batch_secrets.py39 except Exception as e:CODE
LOWpython/example_code/secretsmanager/get_secret_value.py43 except Exception as e:CODE
LOW…/example_code/secretsmanager/batch_get_secret_value.py50 except Exception as e:CODE
LOWpython/example_code/kms/grant_management.py180 except Exception:CODE
LOWpython/example_code/kms/alias_management.py232 except Exception:CODE
LOWpython/example_code/kms/key_management.py334 except Exception:CODE
LOWpython/example_code/kms/key_policies.py192 except Exception:CODE
LOWpython/example_code/kms/key_encryption.py214 except Exception:CODE
LOWpython/example_code/kms/kms_scenario.py359 except Exception:STRING
MEDIUMpython/example_code/glue/scaffold.py117 print(f"Something went wrong while trying to {args.action} the stack:")CODE
LOW…ode/glue/scenario_getting_started_crawlers_and_jobs.py343 except Exception:CODE
MEDIUMpython/example_code/glue/hello/hello_glue.py31 print(f"Error: {e}")CODE
LOW…ple_code/s3/scenarios/conditional_requests/scenario.py77 except Exception as e:CODE
LOW…mple_code/s3/scenarios/object-locking/s3_operations.py43 except Exception as e:CODE
LOW…mple_code/s3/scenarios/object-locking/s3_operations.py55 except Exception as e:CODE
302 more matches not shown…
Unused Imports244 hits · 244 pts
SeverityFileLineSnippetContext
LOWrustv1/examples/glue/resources/flight_etl_job_script.py14CODE
LOW…v3/example_code/codepipeline/MyCodePipelineFunction.py4CODE
LOW…v3/example_code/codepipeline/MyCodePipelineFunction.py11CODE
LOWpython/test_tools/scheduler_stubber.py11CODE
LOWpython/test_tools/scheduler_stubber.py12CODE
LOWpython/test_tools/scheduler_stubber.py18CODE
LOWpython/test_tools/scheduler_stubber.py18CODE
LOWpython/test_tools/scheduler_stubber.py18CODE
LOWpython/test_tools/dynamodb_stubber.py12CODE
LOWpython/test_tools/redshift_stubber.py8CODE
LOWpython/test_tools/redshift_stubber.py9CODE
LOWpython/test_tools/healthlake_stubber.py11CODE
LOWpython/test_tools/healthlake_stubber.py12CODE
LOWpython/test_tools/healthlake_stubber.py13CODE
LOWpython/test_tools/healthlake_stubber.py18CODE
LOWpython/test_tools/ecr_stubber.py12CODE
LOWpython/test_tools/controltower_stubber.py11CODE
LOWpython/test_tools/controlcatalog_stubber.py11CODE
LOWpython/test_tools/example_stubber.py8CODE
LOWpython/test_tools/redshift_data_stubber.py8CODE
LOWpython/test_tools/redshift_data_stubber.py9CODE
LOWpython/test_tools/comprehend_stubber.py8CODE
LOWpython/test_tools/run_all_tests.py17CODE
LOWpython/test_tools/iot_sitewise_stubber.py14CODE
LOWpython/test_tools/iot_sitewise_stubber.py15CODE
LOWpython/test_tools/sts_stubber.py12CODE
LOWpython/test_tools/sts_stubber.py13CODE
LOWpython/test_tools/sts_stubber.py14CODE
LOWpython/test_tools/support_stubber.py9CODE
LOWpython/test_tools/s3control_stubber.py11CODE
LOWpython/test_tools/s3control_stubber.py12CODE
LOW…hon/cross_service/aurora_item_tracker/test/conftest.py13CODE
LOW…hon/cross_service/aurora_item_tracker/test/conftest.py13CODE
LOW…hon/cross_service/aurora_item_tracker/test/conftest.py13CODE
LOW…hon/cross_service/aurora_item_tracker/test/conftest.py13CODE
LOW…hon/cross_service/aurora_item_tracker/test/conftest.py13CODE
LOW…hon/cross_service/aurora_item_tracker/test/conftest.py13CODE
LOW…hon/cross_service/aurora_item_tracker/test/conftest.py13CODE
LOW…hon/cross_service/aurora_item_tracker/test/conftest.py13CODE
LOW…s_service/apigateway_covid-19_tracker/test/conftest.py13CODE
LOW…s_service/apigateway_covid-19_tracker/test/conftest.py13CODE
LOW…s_service/apigateway_covid-19_tracker/test/conftest.py13CODE
LOW…s_service/apigateway_covid-19_tracker/test/conftest.py13CODE
LOW…s_service/apigateway_covid-19_tracker/test/conftest.py13CODE
LOW…s_service/apigateway_covid-19_tracker/test/conftest.py13CODE
LOW…s_service/apigateway_covid-19_tracker/test/conftest.py13CODE
LOW…s_service/apigateway_covid-19_tracker/test/conftest.py13CODE
LOW…rora_rest_lending_library/library_api/test/conftest.py12CODE
LOW…rora_rest_lending_library/library_api/test/conftest.py12CODE
LOW…rora_rest_lending_library/library_api/test/conftest.py12CODE
LOW…rora_rest_lending_library/library_api/test/conftest.py12CODE
LOW…rora_rest_lending_library/library_api/test/conftest.py12CODE
LOW…rora_rest_lending_library/library_api/test/conftest.py12CODE
LOW…rora_rest_lending_library/library_api/test/conftest.py12CODE
LOW…rora_rest_lending_library/library_api/test/conftest.py12CODE
LOWpython/cross_service/topics_and_queues/sns_wrapper.py8CODE
LOWpython/cross_service/topics_and_queues/sns_wrapper.py10CODE
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py24CODE
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py28CODE
LOWpython/cross_service/topics_and_queues/test/conftest.py26CODE
184 more matches not shown…
Verbosity Indicators129 hits · 235 pts
SeverityFileLineSnippetContext
LOW…os/S3_CreatePresignedPost/CreatePresignedPostBasics.cs67 // Step 1: Create bucketCOMMENT
LOW…os/S3_CreatePresignedPost/CreatePresignedPostBasics.cs71 // Step 2: Create presigned URLCOMMENT
LOW…os/S3_CreatePresignedPost/CreatePresignedPostBasics.cs76 // Step 3: Display URL and fieldsCOMMENT
LOW…os/S3_CreatePresignedPost/CreatePresignedPostBasics.cs81 // Step 4: Upload fileCOMMENT
LOW…os/S3_CreatePresignedPost/CreatePresignedPostBasics.cs86 // Step 5: Verify file existsCOMMENT
LOW…os/S3_CreatePresignedPost/CreatePresignedPostBasics.cs90 // Step 6: CleanupCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs131 // Step 1: Create an AWS IoT ThingCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs183 // Step 2: Generate a Device CertificateCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs224 // Step 3: Attach the Certificate to the AWS IoT ThingCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs247 // Step 4: Update an AWS IoT Thing with AttributesCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs270 // Step 5: Return a unique endpoint specific to the Amazon Web Services accountCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs293 // Step 6: List your AWS IoT certificatesCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs311 // Step 7: Create an IoT shadowCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs337 // Step 8: Write out the state information, in JSON formatCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs350 // Step 9: Set up resources (SNS topic and IAM role) and create a ruleCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs425 // Step 10: List your rulesCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs445 // Step 11: Search things using the Thing nameCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs465 // Step 12: Cleanup - Detach and delete certificateCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs498 // Step 13: Delete the AWS IoT ThingCOMMENT
LOWdotnetv4/IoT/Scenarios/IoTBasics.cs519 // Step 14: Clean up CloudFormation stackCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs74 // Step 1: Get user credentials (if interactive)COMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs90 // Step 2: Get cluster identifierCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs101 // Step 3: Create Redshift clusterCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs105 // Step 4: Wait for cluster to become availableCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs110 // Step 5: List databasesCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs132 // Step 6: Create Movies tableCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs143 // Step 7: Populate the Movies tableCOMMENT
LOWdotnetv4/Redshift/Scenarios/RedshiftBasics.cs197 // Step 10: Modify the clusterCOMMENT
LOW…bedrock-runtime/models/amazonNovaCanvas/invokeModel.js24 // Step 1: Create the Amazon Bedrock runtime clientCOMMENT
LOW…bedrock-runtime/models/amazonNovaCanvas/invokeModel.js28 // Step 2: Specify which model to useCOMMENT
LOW…bedrock-runtime/models/amazonNovaCanvas/invokeModel.js33 // Step 3: Configure the request payloadCOMMENT
LOW…bedrock-runtime/models/amazonNovaCanvas/invokeModel.js57 // Step 4: Send and process the requestCOMMENT
LOW…edrock-runtime/models/amazonNovaText/converseStream.js19// Step 1: Create the Amazon Bedrock runtime clientCOMMENT
LOW…edrock-runtime/models/amazonNovaText/converseStream.js23// Step 2: Specify which model to useCOMMENT
LOW…edrock-runtime/models/amazonNovaText/converseStream.js33// Step 3: Create the messageCOMMENT
LOW…edrock-runtime/models/amazonNovaText/converseStream.js42// Step 4: Configure the streaming requestCOMMENT
LOW…edrock-runtime/models/amazonNovaText/converseStream.js59// Step 5: Send and process the streaming requestCOMMENT
LOW…ck-runtime/models/amazonNovaText/converse-with-tool.js19// Step 1: Create the Amazon Bedrock runtime clientCOMMENT
LOW…code/bedrock-runtime/models/amazonNovaText/converse.js18// Step 1: Create the Amazon Bedrock runtime clientCOMMENT
LOW…code/bedrock-runtime/models/amazonNovaText/converse.js22// Step 2: Specify which model to use:COMMENT
LOW…code/bedrock-runtime/models/amazonNovaText/converse.js32// Step 3: Create the messageCOMMENT
LOW…code/bedrock-runtime/models/amazonNovaText/converse.js41// Step 4: Configure the requestCOMMENT
LOW…code/bedrock-runtime/models/amazonNovaText/converse.js58// Step 5: Send and process the requestCOMMENT
LOW…le_demo/web/backend/routes/auth_flows/enhanced_flow.py117 # Step 1: Get identity ID without authenticationCOMMENT
LOW…le_demo/web/backend/routes/auth_flows/enhanced_flow.py124 # Step 2: Get AWS credentials with unauthenticated roleCOMMENT
LOW…le_demo/web/backend/routes/auth_flows/enhanced_flow.py259 # Step 1: GetOpenIdTokenForDeveloperIdentityCOMMENT
LOW…le_demo/web/backend/routes/auth_flows/enhanced_flow.py270 # Step 2: GetCredentialsForIdentity - Exchange the token for AWS credentialsCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py157 # Step 1: GetId - Get a unique identifier for unauthenticated userCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py164 # Step 2: GetOpenIdToken - Exchange identity ID for OpenID tokenCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py174 # Step 3: AssumeRoleWithWebIdentity - Exchange token for AWS credentialsCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py266 # Step 1: GetId - Get a unique Identity ID with provider token for authenticated userCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py270 # Step 2: GetOpenIdToken - Exchange identity ID for OpenID token with loginsCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py277 # Step 3: AssumeRoleWithWebIdentity - Exchange token for AWS credentialsCOMMENT
LOW…thon/example_code/signv4/v4-signing-get-querystring.py69# Step 1: Define the verb (GET, POST, etc.)--already done.COMMENT
LOW…thon/example_code/signv4/v4-signing-get-querystring.py71# Step 2: Create canonical URI--the part of the URI from domain to queryCOMMENT
LOW…thon/example_code/signv4/v4-signing-get-querystring.py75# Step 3: Create the canonical headers and signed headers. Header namesCOMMENT
LOW…thon/example_code/signv4/v4-signing-get-querystring.py89# Step 4: Create the canonical query string. In this example, requestCOMMENT
LOW…thon/example_code/signv4/v4-signing-get-querystring.py101# Step 5: Create payload hash. For GET requests, the payload is anCOMMENT
LOW…thon/example_code/signv4/v4-signing-get-querystring.py105# Step 6: Combine elements to create canonical requestCOMMENT
LOWpython/example_code/signv4/v4-signing-get-authheader.py68# Step 2: Create canonical URI--the part of the URI from domain to queryCOMMENT
69 more matches not shown…
Modern Structural Boilerplate203 hits · 202 pts
SeverityFileLineSnippetContext
LOWrustv1/tools/toggle_sdk_branch.py34def update_sdk_dependencies(cargo: TOMLDocument, branch: Union["main", "next"]) -> None:CODE
LOWrustv1/tools/add_aws_config_feature.py34def update_sdk_dependencies(cargo: TOMLDocument, feature: str) -> None:CODE
LOWrustv1/tools/set_sdk_version.py61def update_sdk_dependencies(dependencies, branch: str) -> None:CODE
LOWrustv1/tools/set_sdk_version.py85def update_sdk(cargo: TOMLDocument, branch: str) -> None:CODE
LOWpython/cross_service/aurora_item_tracker/item_list.py20logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/aurora_item_tracker/storage.py15logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/aurora_item_tracker/report.py28logger = logging.getLogger(__name__)CODE
LOW…ss_service/aurora_rest_lending_library/library_demo.py25logger = logging.getLogger(__name__)CODE
LOW…/aurora_rest_lending_library/rds_tools/aurora_tools.py21logger = logging.getLogger(__name__)CODE
LOW…service/aurora_rest_lending_library/library_api/app.py20logger = logging.getLogger(__name__)CODE
LOW…lending_library/library_api/chalicelib/library_data.py36logger = logging.getLogger(__name__)CODE
LOW…ng_library/library_api/chalicelib/postgresql_helper.py18logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/topics_and_queues/sns_wrapper.py15logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/topics_and_queues/sqs_wrapper.py15logger = logging.getLogger(__name__)CODE
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py37logger = logging.getLogger(__name__)CODE
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py110 def _setup_topic(self) -> None:STRING
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py159 def _setup_queues(self) -> None:STRING
LOW…ss_service/apigateway_websocket_chat/websocket_chat.py24logger = logging.getLogger(__name__)CODE
LOW…/stepfunctions_messenger/stepfunctions_statemachine.py16logger = logging.getLogger(__name__)CODE
LOW…_service/stepfunctions_messenger/stepfunctions_demo.py21logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/textract_explorer/textract_app.py19logger = logging.getLogger(__name__)CODE
LOW…on/cross_service/textract_explorer/textract_wrapper.py16logger = logging.getLogger(__name__)CODE
LOW…ss_service/textract_explorer/textract_demo_launcher.py20logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/photo_analyzer/api/analysis.py9logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/photo_analyzer/api/photo_list.py11logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/photo_analyzer/api/app.py28logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/photo_analyzer/api/photo.py8logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/photo_analyzer/api/report.py10logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/dynamodb_item_tracker/item_list.py20logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/dynamodb_item_tracker/storage.py17logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/dynamodb_item_tracker/app.py29logger = logging.getLogger(__name__)CODE
LOWpython/cross_service/dynamodb_item_tracker/report.py26logger = logging.getLogger(__name__)CODE
LOWpython/demo_tools/retries.py8logger = logging.getLogger(__name__)CODE
LOWpython/demo_tools/custom_waiter.py13logger = logging.getLogger(__name__)CODE
LOW…ple_code/auto-scaling/scenario_groups_and_instances.py44logger = logging.getLogger(__name__)CODE
LOWpython/example_code/auto-scaling/action_wrapper.py16logger = logging.getLogger(__name__)CODE
LOWpython/example_code/auto-scaling/action_wrapper.py93 def update_group(self, group_name: str, **kwargs: Any) -> None:CODE
LOWpython/example_code/auto-scaling/action_wrapper.py249 def set_desired_capacity(self, group_name: str, capacity: int) -> None:CODE
LOWpython/example_code/kinesis/streams/kinesis_stream.py15logger = logging.getLogger(__name__)CODE
LOW…thon/example_code/pinpoint/pinpoint_send_email_smtp.py18logger = logging.getLogger(__name__)CODE
LOW…code/pinpoint/pinpoint_send_templated_email_message.py16logger = logging.getLogger(__name__)CODE
LOW…example_code/pinpoint/pinpoint_send_sms_message_api.py17logger = logging.getLogger(__name__)CODE
LOW…ample_code/pinpoint/pinpoint_send_email_message_api.py17logger = logging.getLogger(__name__)CODE
LOW…e_code/pinpoint/pinpoint_send_templated_sms_message.py16logger = logging.getLogger(__name__)CODE
LOW…n/example_code/organizations/organizations_policies.py18logger = logging.getLogger(__name__)CODE
LOWpython/example_code/ssm/ops_item.py9logger = logging.getLogger(__name__)CODE
LOWpython/example_code/ssm/ssm_getting_started.py31logger = logging.getLogger(__name__)CODE
LOWpython/example_code/ssm/document.py10logger = logging.getLogger(__name__)CODE
LOWpython/example_code/ssm/maintenance_window.py9logger = logging.getLogger(__name__)CODE
LOWpython/example_code/secretsmanager/get_secret_value.py13logger = logging.getLogger(__name__)CODE
LOW…/example_code/secretsmanager/batch_get_secret_value.py14logger = logging.getLogger(__name__)CODE
LOWpython/example_code/kms/grant_management.py18logger = logging.getLogger(__name__)CODE
LOWpython/example_code/kms/alias_management.py18logger = logging.getLogger(__name__)CODE
LOWpython/example_code/kms/key_management.py18logger = logging.getLogger(__name__)CODE
LOWpython/example_code/kms/key_policies.py19logger = logging.getLogger(__name__)CODE
LOWpython/example_code/kms/key_policies.py92 def set_policy(self, key_id: str, policy: dict[str, any]) -> None:CODE
LOWpython/example_code/kms/key_policies.py140 def set_new_policy(self, key_id: str, policy: dict[str, any]) -> None:CODE
LOWpython/example_code/kms/key_encryption.py17logger = logging.getLogger(__name__)CODE
LOWpython/example_code/cloudwatch/cloudwatch_basics.py20logger = logging.getLogger(__name__)CODE
LOWpython/example_code/glue/glue_wrapper.py14logger = logging.getLogger(__name__)CODE
143 more matches not shown…
Hallucination Indicators17 hits · 160 pts
SeverityFileLineSnippetContext
CRITICALsteering_docs/kotlin-tech/tests.md226 {createdAt} = aws.smithy.kotlin.runtime.time.Instant.now()CODE
CRITICALsteering_docs/kotlin-tech/tests.md227 {updatedAt} = aws.smithy.kotlin.runtime.time.Instant.now()CODE
CRITICALkotlin/usecases/creating_photo_analyzer_app/README.md323 org.apache.commons.io.IOUtils.copy(excelData, response?.outputStream)CODE
CRITICALkotlin/usecases/creating_photo_analyzer_app/README.md342 org.apache.commons.io.IOUtils.copy(`is`, response.outputStream)CODE
CRITICAL…analyzer_app/src/main/kotlin/com/aws/photo/PhotoApp.kt88 org.apache.commons.io.IOUtils.copy(excelData, response.outputStream)CODE
CRITICAL…analyzer_app/src/main/kotlin/com/aws/photo/PhotoApp.kt106 org.apache.commons.io.IOUtils.copy(`is`, response.outputStream)CODE
CRITICAL…bedrock-runtime/src/test/kotlin/models/TestConverse.kt18 ModelTest("Amazon Nova") { com.example.bedrockruntime.models.amazon.nova.text.converse() },CODE
CRITICAL…k-runtime/src/test/kotlin/models/TestConverseStream.kt18 ModelTest("Amazon Nova") { com.example.bedrockruntime.models.amazon.nova.text.converseStream() },CODE
CRITICAL…rock-runtime/src/test/kotlin/models/TestInvokeModel.kt18 ModelTest("Amazon Nova Canvas") { com.example.bedrockruntime.models.amazon.nova.canvas.invokeModel() },CODE
CRITICAL…on/src/main/java/location/scenario/LocationScenario.kt576 sampleTime = aws.smithy.kotlin.runtime.time.Instant.now() // Timestamp of position update.STRING
CRITICALjavav2/usecases/creating_photo_analyzer_app/README.md373 org.apache.commons.io.IOUtils.copy(is, response.getOutputStream());CODE
CRITICAL…p/src/main/java/com/example/photo/PhotoController.java122 org.apache.commons.io.IOUtils.copy(is, response.getOutputStream());CODE
CRITICALjavav2/usecases/workflow_multiple_channels/README.md633 software.amazon.awssdk.services.ses.model.Message msg = software.amazon.awssdk.services.ses.model.Message.buCODE
CRITICALjavav2/usecases/creating_photo_analyzer_async/README.md394 org.apache.commons.io.IOUtils.copy(is, response.getOutputStream());CODE
CRITICAL…c/src/main/java/com/example/photo/PhotoController.java119 org.apache.commons.io.IOUtils.copy(is, response.getOutputStream());CODE
CRITICAL…n/src/main/java/com/example/rekognition/DetectPPE.java76 software.amazon.awssdk.services.rekognition.model.Image rekImage = software.amazon.awssdk.services.rekognitiSTRING
CRITICALjavav2/example_code/xray/src/test/java/XRayTest.java33 org.apache.logging.log4j.LogManager.getContext(false);CODE
Docstring Block Structure24 hits · 120 pts
SeverityFileLineSnippetContext
HIGH…v3/example_code/codepipeline/MyCodePipelineFunction.py22Finds the artifact 'name' among the 'artifacts' Args: artifacts: The list of artifacts available to the funSTRING
HIGH…v3/example_code/codepipeline/MyCodePipelineFunction.py41Gets the template artifact Downloads the artifact from the S3 artifact store to a temporary file then extracts STRING
HIGH…v3/example_code/codepipeline/MyCodePipelineFunction.py69Start a CloudFormation stack update Args: stack: The stack to update template: The template to applSTRING
HIGH…v3/example_code/codepipeline/MyCodePipelineFunction.py97Check if a stack exists or not Args: stack: The stack to check Returns: True or False dependinSTRING
HIGH…v3/example_code/codepipeline/MyCodePipelineFunction.py134Get the status of an existing CloudFormation stack Args: stack: The name of the stack to check ReturnsSTRING
HIGH…v3/example_code/codepipeline/MyCodePipelineFunction.py283Decodes the JSON user parameters and validates the required properties. Args: job_data: The job data structSTRING
HIGH…ample_code/s3/scenarios/batch/cloudformation_helper.py103 Get CloudFormation stack outputs. Args: stack_name (str): Name of the CloudFormation stackSTRING
HIGH…on/example_code/s3/scenarios/batch/s3_batch_wrapper.py70 Upload files to S3 bucket including manifest file. Args: bucket_name (str): Target bucket STRING
HIGH…on/example_code/s3/scenarios/batch/s3_batch_wrapper.py115 Create an S3 batch operation job. Args: account_id (str): AWS account ID role_STRING
HIGH…on/example_code/s3/scenarios/batch/s3_batch_wrapper.py184 Check for any failure reasons of a batch job. Args: job_id (str): ID of the batch job STRING
HIGH…on/example_code/s3/scenarios/batch/s3_batch_wrapper.py211 Wait for a job to reach the desired status. Args: job_id (str): ID of the batch job STRING
HIGH…le_demo/web/backend/routes/auth_flows/enhanced_flow.py48 Gets an Identity ID from Amazon Cognito. Args: logins (dict, optional): Provider tSTRING
HIGH…le_demo/web/backend/routes/auth_flows/enhanced_flow.py71 Gets AWS credentials for an Identity ID. Args: identity_id (str): The Identity ID STRING
HIGHpython/example_code/neptune/neptune_scenario.py451 Creates a Neptune DB cluster and returns its identifier. Args: neptune_client (boto3.client): The NeptSTRING
HIGHpython/example_code/neptune/neptune_scenario.py526 Creates a Neptune DB subnet group and returns its name and ARN. Args: neptune_client (boto3.client): TSTRING
HIGH…on/example_code/codepipeline/MyCodePipelineFunction.py46Finds the artifact 'name' among the 'artifacts' Args: artifacts: The list of artifacts available to the funSTRING
HIGH…on/example_code/codepipeline/MyCodePipelineFunction.py65Gets the template artifact Downloads the artifact from the S3 artifact store to a temporary file then extracts STRING
HIGH…on/example_code/codepipeline/MyCodePipelineFunction.py93Start a CloudFormation stack update Args: stack: The stack to update template: The template to applSTRING
HIGH…on/example_code/codepipeline/MyCodePipelineFunction.py121Check if a stack exists or not Args: stack: The stack to check Returns: True or False dependinSTRING
HIGH…on/example_code/codepipeline/MyCodePipelineFunction.py158Get the status of an existing CloudFormation stack Args: stack: The name of the stack to check ReturnsSTRING
HIGH…on/example_code/codepipeline/MyCodePipelineFunction.py307Decodes the JSON user parameters and validates the required properties. Args: job_data: The job data structSTRING
HIGH…de/firehose/scenarios/firehose-put-actions/firehose.py188 Create a record entry for Firehose. Args: record (dict): The data record to be sent. STRING
HIGHsteering_docs/python-tech/feature_scenario.md584 Deploy a CloudFormation stack. Args: stack_name: Name of the stack to create tSTRING
HIGHsteering_docs/python-tech/feature_scenario.md938 Description of what this operation does. Args: parameter: Description of parameter STRING
AI Response Leakage14 hits · 120 pts
SeverityFileLineSnippetContext
HIGH…thon/example_code/signv4/v4-signing-get-querystring.py89# Step 4: Create the canonical query string. In this example, requestCOMMENT
HIGHpython/example_code/signv4/v4-signing-get-authheader.py72# Step 3: Create the canonical query string. In this example (a GET request),COMMENT
HIGHpython/example_code/signv4/v4-signing-get-post.py87## Step 3: Create the canonical query string. In this example, requestCOMMENT
HIGHpython/example_code/signv4/v4-signing-get-post.py118# Step 6: Create payload hash. In this example, the payload (body ofCOMMENT
HIGH…grass/snippets/connector_image_classification_usage.py62# In this example, the required AWS Lambda handler is never called.COMMENT
HIGH…xample_code/greengrass/snippets/connector_sns_usage.py32# In this example, the required AWS Lambda handler is never called.COMMENT
HIGH…e/greengrass/snippets/connector_serial_stream_usage.py32# In this example, the required AWS Lambda handler is never called.COMMENT
HIGH…reengrass/snippets/connector_raspberrypi_gpio_usage.py29# In this example, the required AWS Lambda handler is never called.COMMENT
HIGH…/connector_servicenow_metricsbase_integration_usage.py40# In this example, the required AWS Lambda handler is never called.COMMENT
HIGH…code/greengrass/snippets/connector_modbus_rtu_usage.py40# In this example, the required AWS Lambda handler is never called.COMMENT
HIGH…grass/snippets/connector_twilio_notifications_usage.py38# In this example, the required AWS Lambda handler is never called.COMMENT
HIGH…engrass/snippets/connector_splunk_integration_usage.py32# In this example, the required AWS Lambda handler is never called.COMMENT
HIGH…engrass/snippets/connector_cloudwatch_metrics_usage.py46# In this example, the required AWS Lambda handler is never called.COMMENT
HIGH…reengrass/snippets/connector_kinesis_firehose_usage.py35# In this example, the required AWS Lambda handler is never called.COMMENT
Example Usage Blocks75 hits · 112 pts
SeverityFileLineSnippetContext
LOW.tools/docker-images/run-in-container.sh7# Usage:COMMENT
LOW.tools/docker-images/build-all.sh7# Usage:COMMENT
LOW…le_code/eventbridge/cw-ruby-example-send-events-ec2.rb758# Example usage:COMMENT
LOWruby/example_code/cloudwatch/alarm_actions.rb118# Example usage:COMMENT
LOWruby/example_code/cloudwatch/show_alarms.rb71# Example usage:COMMENT
LOWruby/example_code/cloudwatch/metrics_basics.rb103# Example usage:COMMENT
LOWruby/example_code/cloudwatch/create_alarm.rb90# Example usage:COMMENT
LOWruby/example_code/cloudwatch/alarm_basics.rb139# Example usage:COMMENT
LOWruby/example_code/s3/object_put_sse.rb31# Example usage:COMMENT
LOWruby/example_code/s3/object_presigned_url_upload.rb25# Example usage:COMMENT
LOWruby/example_code/s3/auth_session_token_request_test.rb169# Example usage:COMMENT
LOWruby/example_code/s3/object_upload_file.rb33# Example usage:COMMENT
LOWruby/example_code/s3/object_copy.rb34# Example usage:COMMENT
LOWruby/example_code/s3/object_put.rb31# Example usage:COMMENT
LOW…/example_code/s3/auth_federation_token_request_test.rb105# Example usage:COMMENT
LOWruby/example_code/s3/object_get_encryption.rb31# Example usage:COMMENT
LOWruby/example_code/s3/bucket_put_encryption.rb42# Example usage:COMMENT
LOWruby/example_code/s3/bucket_cors.rb76# Example usage:COMMENT
LOWruby/example_code/s3/bucket_list.rb37# Example usage:COMMENT
LOWruby/example_code/s3/bucket_put_website.rb39# Example usage:COMMENT
LOWruby/example_code/s3/bucket_create.rb47# Example usage:COMMENT
LOWruby/example_code/s3/object_get.rb31# Example usage:COMMENT
LOWruby/example_code/s3/object_exists.rb31# Example usage:COMMENT
LOWruby/example_code/s3/object_copy_encrypt.rb35# Example usage:COMMENT
LOWruby/example_code/s3/auth_request_object_keys.rb43# Example usage:COMMENT
LOWruby/example_code/s3/bucket_list_objects.rb39# Example usage:COMMENT
LOWruby/example_code/s3/bucket_policy.rb61# Example usage:COMMENT
LOW…ple_code/s3/encryption_v2/s3_get_cskms_decrypt_item.rb52# Example usage:COMMENT
LOW…code/s3/encryption_v2/s3_ruby_example_add_cspk_item.rb56# Example usage:COMMENT
LOW…ple_code/s3/encryption_v2/s3_get_csaes_decrypt_item.rb54# Example usage:COMMENT
LOW…code/s3/encryption_v2/s3_ruby_example_get_cspk_item.rb51# Example usage:COMMENT
LOW…ple_code/s3/encryption_v2/s3_add_cskms_encrypt_item.rb58# Example usage:COMMENT
LOW…ple_code/s3/encryption_v2/s3_add_csaes_encrypt_item.rb84# Example usage:COMMENT
LOWruby/example_code/sns/show_subscriptions.rb30# Example usage:COMMENT
LOWruby/example_code/sns/create_topic.rb30# Example usage:COMMENT
LOWruby/example_code/sns/enable_resource.rb62# Example usage:COMMENT
LOWruby/example_code/sns/send_message.rb32# Example usage:COMMENT
LOWruby/example_code/sns/show_topics.rb35# Example usage:COMMENT
LOWruby/example_code/elasticbeanstalk/list_apps.rb45# Example usage:COMMENT
LOWruby/example_code/elasticbeanstalk/list_stacks.rb50# Example usage:COMMENT
LOWruby/example_code/elasticbeanstalk/update_app.rb103# Example usage:COMMENT
LOWruby/example_code/sqs/receive_messages.rb71# Example usage:COMMENT
LOWruby/example_code/sqs/create_queue.rb43# Example usage:COMMENT
LOWruby/example_code/sqs/send_message.rb57# Example usage:COMMENT
LOWruby/example_code/iam/attach_user_policy.rb79# Example usage:COMMENT
LOWruby/example_code/iam/list_users.rb92# Example usage:COMMENT
LOWruby/example_code/iam/list_groups.rb33# Example usage:COMMENT
LOWruby/example_code/iam/list_saml_providers.rb34# Example usage:COMMENT
LOWruby/example_code/iam/manage_server_certificates.rb72# Example usage:COMMENT
LOWruby/example_code/iam/get_account_password_policy.rb30# Example usage:COMMENT
LOWruby/example_code/iam/manage_roles.rb189# Example usage:COMMENT
LOWruby/example_code/iam/manage_users.rb188# Example usage:COMMENT
LOWruby/example_code/iam/attach_role_policy.rb100# Example usage:COMMENT
LOWruby/example_code/iam/manage_access_keys.rb85# Example usage:COMMENT
LOWruby/example_code/iam/list_admins.rb57# Example usage:COMMENT
LOWruby/example_code/iam/manage_account_aliases.rb56# Example usage:COMMENT
LOWruby/example_code/ses/v1/ses_get_statistics.rb49# Example usage:COMMENT
LOWruby/example_code/ec2/ec2-ruby-example-create-vpc.rb52# Example usage:COMMENT
LOW…ple_code/ec2/ec2-ruby-example-get-all-instance-info.rb30# Example usage:COMMENT
LOW…ode/ec2/ec2-ruby-example-regions-availability-zones.rb85# Example usage:COMMENT
15 more matches not shown…
Deep Nesting107 hits · 105 pts
SeverityFileLineSnippetContext
LOWrustv1/tools/set_sdk_version.py61CODE
LOWpython/test_tools/dynamodb_stubber.py61CODE
LOWpython/test_tools/stubber_factory.py79CODE
LOWpython/test_tools/s3_stubber.py79CODE
LOWpython/test_tools/sns_stubber.py120CODE
LOWpython/test_tools/iot_sitewise_stubber.py115CODE
LOWpython/cross_service/resilient_service/runner.py320CODE
LOWpython/cross_service/resilient_service/runner.py164CODE
LOWpython/cross_service/resilient_service/auto_scaler.py719CODE
LOW…oss_service/resilient_service/test/resources/server.py41CODE
LOWpython/cross_service/apigateway_covid-19_tracker/app.py93CODE
LOW…ss_service/aurora_rest_lending_library/library_demo.py278CODE
LOWpython/cross_service/topics_and_queues/sqs_wrapper.py186CODE
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py253CODE
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py301CODE
LOW…ervice/topics_and_queues/topics_and_queues_scenario.py349CODE
LOW…ss_service/apigateway_websocket_chat/websocket_chat.py408CODE
LOW…cross_service/apigateway_websocket_chat/lambda_chat.py131CODE
LOW…/stepfunctions_messenger/stepfunctions_statemachine.py110CODE
LOWpython/cross_service/photo_analyzer/api/report.py29CODE
LOW…ple_code/auto-scaling/scenario_groups_and_instances.py290CODE
LOWpython/example_code/kms/alias_management.py114CODE
LOWpython/example_code/kms/key_management.py83CODE
LOWpython/example_code/s3/s3_basics/presigned_url.py46CODE
LOW…ple_code/s3/scenarios/conditional_requests/scenario.py157CODE
LOW…on/example_code/s3/scenarios/object-locking/cleanup.py207CODE
LOW…on/example_code/s3/scenarios/batch/s3_batch_wrapper.py210CODE
LOW…on/example_code/s3/scenarios/batch/s3_batch_wrapper.py258CODE
LOW…on/example_code/s3/scenarios/batch/s3_batch_wrapper.py310CODE
LOWpython/example_code/s3/s3_versioning/revise_stanza.py21CODE
LOW…/example_code/s3/s3_versioning/remove_delete_marker.py21CODE
LOW…thon/example_code/s3/s3_versioning/batch_versioning.py50CODE
LOW…thon/example_code/s3/s3_versioning/batch_versioning.py290CODE
LOW…tachments_scenario/scenario_sesv2_email_attachments.py334CODE
LOWpython/example_code/emr/emr_usage_demo.py277CODE
LOWpython/example_code/emr/emr_usage_demo.py481CODE
LOWpython/example_code/emr/install_libraries.py19CODE
LOWpython/example_code/emr/test/test_install_libraries.py27CODE
LOW…hon/example_code/controltower/scenario_controltower.py43CODE
LOW…hon/example_code/controltower/scenario_controltower.py219CODE
LOW…udwatch-logs/scenarios/large-query/cloudwatch_query.py104CODE
LOWpython/example_code/sns/sns_basics.py207CODE
LOW…on/example_code/api-gateway/aws_service/aws_service.py423CODE
LOW…/example_code/cognito/scenario_signup_user_with_mfa.py46CODE
LOW…ntity_pools_example_demo/web/backend/oauth_handlers.py23CODE
LOW…dentity_pools_example_demo/web/backend/oauth_server.py174CODE
LOW…dentity_pools_example_demo/web/backend/oauth_server.py358CODE
LOW…le_demo/web/backend/routes/auth_flows/enhanced_flow.py147CODE
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py210CODE
LOWpython/example_code/glacier/glacier_basics.py123CODE
LOW…_code/bedrock-agent-runtime/flows/flow-conversation.py23CODE
LOW…_code/bedrock-agent-runtime/flows/flow-conversation.py92CODE
LOWpython/example_code/neptune/neptune_scenario.py302CODE
LOWpython/example_code/neptune/neptune_scenario.py583CODE
LOW…thon/example_code/dynamodb/batching/dynamo_batching.py258CODE
LOWpython/example_code/iot/scenario_iot_basics.py95CODE
LOWpython/example_code/iot/test/test_iot_integration.py17CODE
LOWpython/example_code/iam/account_wrapper.py236CODE
LOWpython/example_code/iam/service_linked_roles.py48CODE
LOW…code/iam/test/test_scenario_create_user_assume_role.py69CODE
47 more matches not shown…
Fake / Example Data65 hits · 71 pts
SeverityFileLineSnippetContext
LOW…v1/cross_service/rest_ses/tests/api/work_item/happy.rs19 work_item::{fake_description, fake_guide, fake_name},CODE
LOW…v1/cross_service/rest_ses/tests/api/work_item/happy.rs23 let name = fake_name();CODE
LOW…stv1/cross_service/rest_ses/tests/api/work_item/mod.rs13pub fn fake_name() -> String {CODE
LOWrustv1/examples/s3/testfile.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris nulla dolor, varius vel vehicula vitae, dapibus id telluCODE
LOWrustv1/examples/s3/testfile.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris nulla dolor, varius vel vehicula vitae, dapibus id telluCODE
LOWrustv1/examples/ses/tests/test_newsletter.rs447 .contacts(Contact::builder().email_address("user@example.com").build())CODE
LOWrustv1/examples/ses/tests/test_newsletter.rs456 .contains(&"user@example.com".into())CODE
LOWrustv1/examples/ses/tests/test_newsletter.rs520 .contacts(Contact::builder().email_address("user@example.com").build())CODE
LOWrustv1/examples/ses/tests/test_newsletter.rs529 .contains(&"user@example.com".into())CODE
LOWrustv1/examples/ses/tests/test_newsletter.rs564 .contacts(Contact::builder().email_address("user@example.com").build())CODE
LOWrustv1/examples/ses/tests/test_newsletter.rs573 .contains(&"user@example.com".into())CODE
LOWrustv1/examples/ses/tests/test_newsletter.rs610 .contacts(Contact::builder().email_address("user@example.com").build())CODE
LOWrustv1/examples/ses/tests/test_newsletter.rs619 .contains(&"user@example.com".into())CODE
LOWrustv1/examples/ses/tests/test_newsletter.rs652 .contacts(Contact::builder().email_address("user@example.com").build())CODE
LOWrustv1/examples/ses/tests/test_newsletter.rs661 .contains(&"user@example.com".into())CODE
LOWjavascriptv3/example_code/entityresolution/data.json2 { "id": "1", "name": "Jane Doe", "email": "jane.doe@example.com" },CODE
LOWjavascriptv3/example_code/entityresolution/data.json3 { "id": "2", "name": "John Doe", "email": "john.doe@example.com" },CODE
LOWpython/test_tools/organizations_stubber.py116 "MasterAccountEmail": "admin@example.org"CODE
LOWpython/test_tools/organizations_stubber.py139 "MasterAccountEmail": "admin@example.org"CODE
LOWpython/test_tools/iot_sitewise_stubber.py203 "portalContactEmail" : "user@example.com",CODE
LOW…code/sesv2/newsletter_scenario/test/newsletter_test.py122 @patch("builtins.input", return_value="user@example.com")CODE
LOW…code/sesv2/newsletter_scenario/test/newsletter_test.py132 email_variants = get_subaddress_variants("user@example.com", 3)CODE
LOW…code/sesv2/newsletter_scenario/test/newsletter_test.py144 @patch("builtins.input", return_value="user@example.com")CODE
LOW…code/sesv2/newsletter_scenario/test/newsletter_test.py161 email_variants = get_subaddress_variants("user@example.com", 3)CODE
LOW…code/sesv2/newsletter_scenario/test/newsletter_test.py165 @patch("builtins.input", return_value="user@example.com")CODE
LOW…code/sesv2/newsletter_scenario/test/newsletter_test.py185 email_variants = get_subaddress_variants("user@example.com", 3)CODE
LOW…/iotsitewise/test/test_iot_sitewise_getting_started.py70 self.contact_email = "user@example.com"CODE
LOWpython/example_code/ses/ses_receipt_handler.py284 email = "example@example.org"CODE
LOWpython/example_code/ses/test/test_ses_identities.py116 identities = ["test@example.com", "anotherone@example.org"]CODE
LOW…ample_code/greengrass/test/test_greengrass_snippets.py75 event = {"to_name": "test name", "to_number": "555-0101", "temperature": 100}CODE
LOWphp/example_code/s3/testfile.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris nulla dolor, varius vel vehicula vitae, dapibus id telluCODE
LOWphp/example_code/s3/testfile.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris nulla dolor, varius vel vehicula vitae, dapibus id telluCODE
LOW…ognito/tests/gtest_getting_started_with_user_pools.cpp23 "foo@bar.com", // Enter a valid email for the user:CODE
LOW…ognito/tests/gtest_getting_started_with_user_pools.cpp41 "Value": "foo@bar.com"CODE
LOW…ple_code/acm/tests/mock_input/DescribeCertificate.json12 "admin@example.com",CODE
LOW…ple_code/acm/tests/mock_input/DescribeCertificate.json26 "admin@example.com",CODE
LOWswift/modules/SwiftUtilities/README.md40Returns a Lorem Ipsum-style string containing the specified number of randomlyCODE
LOWswift/modules/SwiftUtilities/README.md42Lorem Ipsum text are returned. Each paragraph is four to eight sentences long,CODE
LOWswift/modules/SwiftUtilities/README.md45The Lorem Ipsum text is suitable for use in test files and example stringsCODE
LOWswift/modules/SwiftUtilities/README.md56A `String` containing up to `paragraphs` paragraphs of Lorem Ipsum-styleCODE
LOW…ties/Tests/SwiftUtilitiesTests/FakeryStringTests.swift42 /// Confirm that creating a Lorem Ipsum string results in theCOMMENT
LOW…ftUtilities/Sources/SwiftUtilities/String_Fakery.swift6 Lorem Ipsum-style strings, using the Fakery library.CODE
LOW…ftUtilities/Sources/SwiftUtilities/String_Fakery.swift13 /// Return a new randomly generated Lorem Ipsum-style stringCOMMENT
LOW…ftUtilities/Sources/SwiftUtilities/String_Fakery.swift18 /// random Lorem Ipsum paragraphs. Each paragraph containsCOMMENT
LOWscenarios/basics/entity_resolution/SPECIFICATION.md151{"id":"1","name":"Jane Doe","email":"jane.doe@example.com"}CODE
LOWscenarios/basics/entity_resolution/SPECIFICATION.md152{"id":"2","name":"John Doe","email":"john.doe@example.com"}CODE
LOW…2_weekly_mailer/content/61a_NewsletterWorkflow.java.md167 * @param baseEmail The base email address (e.g., "user@example.com")STRING
LOWjavascript/example_code/kinesis/blog_page.html44 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum vitae nulla eget nisl bibendum feugiCODE
LOWjavascript/example_code/kinesis/blog_page.html44 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum vitae nulla eget nisl bibendum feugiCODE
LOW…code/s3/src/main/resources/directoryBucket/sample1.txt2Lorem ipsum dolor sit amet, consectetur adipiscing elit. Collatio igitur ista te nihil iuvat. Honesta oratio, Socratica,CODE
LOW…code/s3/src/main/resources/directoryBucket/sample1.txt2Lorem ipsum dolor sit amet, consectetur adipiscing elit. Collatio igitur ista te nihil iuvat. Honesta oratio, Socratica,CODE
LOW…code/s3/src/main/resources/directoryBucket/sample2.txt2Lorem ipsum dolor sit amet, consectetur adipiscing elit. Itaque nostrum est-quod nostrum dico, artis est-ad ea principiaCODE
LOW…code/s3/src/main/resources/directoryBucket/sample2.txt2Lorem ipsum dolor sit amet, consectetur adipiscing elit. Itaque nostrum est-quod nostrum dico, artis est-ad ea principiaCODE
LOW…ava/com/example/entity/scenario/EntityResScenario.java114 {"id":"1","name":"Jane Doe","email":"jane.doe@example.com"}CODE
LOW…ava/com/example/entity/scenario/EntityResScenario.java115 {"id":"2","name":"John Doe","email":"john.doe@example.com"}CODE
LOW…ava/com/example/entity/scenario/EntityResScenario.java350 For example 'John Doe Jr.' compared to 'John Doe'.CODE
LOW…ain/java/com/example/sqs/MessageAttributesExample.java91 .stringValue("Jane Doe")CODE
LOW…est/java/com/example/sesv2/NewsletterWorkflowTest.java194 when(scanner.nextLine()).thenReturn("user@example.com");CODE
LOW…est/java/com/example/sesv2/NewsletterWorkflowTest.java215 when(scanner.nextLine()).thenReturn("user@example.com");CODE
LOW…est/java/com/example/sesv2/NewsletterWorkflowTest.java244 String baseEmail = "user@example.com";CODE
5 more matches not shown…
Slop Phrases33 hits · 50 pts
SeverityFileLineSnippetContext
MEDIUMrustv1/examples/sdk-config/src/bin/no_env.rs46/// WARNING: This example is for demonstration purposes only. Your code should alwaysCOMMENT
MEDIUMrustv1/examples/sending-presigned-requests/src/main.rs120 // It's only here for demonstration purposes; Don't use this unless you're confidentCOMMENT
LOW…kScenario/S3ObjectLockWorkflow/S3ObjectLockWorkflow.cs383 "Don't forget to delete them when you're done with them or you might incur unexpected charges."CODE
LOW…S3ConditionalRequests/S3ConditionalRequestsScenario.cs271 "Don't forget to delete them when you're done with them or you might incur unexpected charges."CODE
LOW…e/ResilientServiceWorkflow/ResilientServiceWorkflow.cs425 "Don't forget to delete them when you're done with them or you might incur unexpected charges."CODE
MEDIUM…code/bedrock-agent/actions/list-agent-action-groups.js34 pageSize: 10, // optional, added for demonstration purposesCODE
MEDIUM…code/bedrock-agent/actions/list-agent-action-groups.js76 maxResults: 10, // optional, added for demonstration purposesCODE
MEDIUM…ptv3/example_code/bedrock-agent/actions/list-agents.js26 pageSize: 10, // optional, added for demonstration purposesCODE
MEDIUM…ptv3/example_code/bedrock-agent/actions/list-agents.js58 maxResults: 10, // optional, added for demonstration purposesCODE
LOW…de/cross-services/wkflw-resilient-service/constants.js119 "This concludes the demo. Don't forget to run the destroy steps to clean up the resources. Do you want to reset the CODE
LOW…/example_code/cognito/scenario_signup_user_with_mfa.py167 print("Don't forget to delete your user pool when you're done with this example.")CODE
LOW…ample_code/dynamodb/GettingStarted/update_and_query.py274 print("Don't forget to delete the table when you're done.")CODE
LOW…modb/GettingStarted/scenario_getting_started_movies.py555 "Don't forget to delete the table when you're done or you might incur "CODE
MEDIUM…e_code/bedrock-agent/knowledge_bases/knowledge_base.py58 # you can use the quick-create flow to have Knowledge Bases create the collection for you.COMMENT
MEDIUM…/example_code/comprehend/comprehend_classifier_demo.py152 Gets input issues from GitHub. For demonstration purposes, input issuesSTRING
LOW…ode/s3-directory-buckets/s3_express_getting_started.py130 print("Skipping the VPC setup. Don't forget to use this in production!")CODE
MEDIUMpython/example_code/sts/assume_role_mfa.py47 For demonstration purposes, the user is created in the same account as the role,STRING
LOWgov2/s3/scenarios/scenario_get_started.go149 log.Println("Okay. Don't forget to delete objects from your bucket to avoid charges.")CODE
LOWgov2/s3/scenarios/scenario_large_objects.go105 log.Println("Okay. Don't forget to delete objects from your bucket to avoid charges.")CODE
LOWgov2/dynamodb/scenarios/scenario_movie_table.go193 log.Println("Don't forget to delete the table when you're done or you might " +CODE
LOWgov2/lambda/scenarios/scenario_get_started_functions.go283 log.Println("Okay. Don't forget to delete the resources when you're done with them.")CODE
MEDIUM…/src/main/java/aws/example/s3/CreateBucketWithACL.java30 // calls below. It is included here for demonstration purposes.COMMENT
MEDIUMkotlin/usecases/cognito_flutter_mobile_app/pubspec.yaml59 # included with your application, so that you can use the icons inCOMMENT
LOWphp/example_code/s3/express/S3ExpressBasics.php103 echo "Skipping the VPC setup. Don't forget to use this in production!\n";CODE
LOWphp/example_code/lambda/GettingStartedWithLambda.php157 echo "\n\nAnd don't forget to clean up your data!\n";CODE
MEDIUMcpp/example_code/redshift/authorize_cluster_access.cpp49 // is reasonable for demonstration purposes, but is not appropriate inCOMMENT
LOW.dotnet/example_code_legacy/SNS/SnsSendMessage.cs4 Don't forget to use the Visual Studio command promptCODE
LOW.dotnet/example_code_legacy/SNS/SnsPublish.cs4 Don't forget to use the Visual Studio command promptCODE
LOW.dotnet/example_code_legacy/ec2/Ec2SpotCRUD.cs4 Don't forget to use the Visual Studio command promptCODE
LOW.tools/readmes/config.py230 # Our redshift code lives in two different directories so make sure to regenerate readmes in BOTH directCOMMENT
LOW…e/dynamodb/basics/scenario_getting_started_dynamodb.rb141 puts("Don't forget to delete the table when you're done!")CODE
LOW…_service/src/main/java/com/example/resilient/Main.java119 Don't forget to delete them when you're done with them or you might incur unexpected charges.CODE
LOW…java/com/example/s3/express/S3DirectoriesScenario.java395 logger.info("Skipping the VPC setup. Don't forget to use this in production!");STRING
Redundant / Tautological Comments31 hits · 47 pts
SeverityFileLineSnippetContext
LOWpython/cross_service/apigateway_covid-19_tracker/app.py24app.debug = True # Set this to False for production use.CODE
LOW…tract_comprehend_notebook/test-texttract-comprehend.py26 # Check if list returnedCOMMENT
LOW…service/aurora_rest_lending_library/library_api/app.py24app.debug = True # Set this to False for production use.CODE
LOW…hon/example_code/controltower/scenario_controltower.py229 # Check if account is part of an organizationCOMMENT
LOW…dentity_pools_example_demo/web/backend/oauth_server.py402 # Check if basic flow is requestedCOMMENT
LOW…le_demo/web/backend/routes/auth_flows/enhanced_flow.py244 # Check if AWS credentials are availableCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py69 # Check if the identity pool has role mappingsCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py72 # Check if the identity pool has authenticated and unauthenticated rolesCOMMENT
LOW…ample_demo/web/backend/routes/auth_flows/basic_flow.py98 # Check if the identity pool has the required rolesCOMMENT
LOW…_code/bedrock-agent-runtime/flows/flow-conversation.py69 # Check if flow is complete.COMMENT
LOW…_code/bedrock-agent-runtime/flows/flow-conversation.py73 # Check if more input us needed from user.COMMENT
LOWpython/example_code/bedrock-agent/flows/run_flow.py57 # Check if flow is complete.COMMENT
LOW…/example_code/bedrock-agent/flows/flow-conversation.py69 # Check if flow is complete.COMMENT
LOW…/example_code/bedrock-agent/flows/flow-conversation.py73 # Check if more input us needed from user.COMMENT
LOWpython/example_code/deeplens/deeplens_view_output.py128 # Output the result of inference to the fifo file so it can be viewed with mplayer.COMMENT
LOW…loudwatch_logs_large_query/resources/make-log-files.sh52 # Increment timestampCOMMENT
LOWaws-cli/bash-linux/ec2/ec2_operations.sh1107 # Check if instance ID is providedCOMMENT
LOWaws-cli/bash-linux/ec2/ec2_operations.sh1170 # Check if instance ID is providedCOMMENT
LOWaws-cli/bash-linux/ec2/ec2_operations.sh1233 # Check if instance ID is providedCOMMENT
LOWaws-cli/bash-linux/ec2/ec2_operations.sh1297 # Check if instance ID is providedCOMMENT
LOW…s-cli/bash-linux/ec2/get_started_with_ec2_instances.sh51 # Check if BASH_VERSION is setCOMMENT
LOW…s-cli/bash-linux/ec2/get_started_with_ec2_instances.sh715 # Check if the input is a valid integerCOMMENT
LOW…s-cli/bash-linux/ec2/get_started_with_ec2_instances.sh717 # Check if the input is within the specified rangeCOMMENT
LOW…2/change-ec2-instance-type/change_ec2_instance_type.sh182 # Check if the instance is currently running.COMMENT
LOW.tools/test/stacks/images/scripts/delete_repository.py48 # Check if 'examples' is in the repository nameCOMMENT
LOW.tools/test/stacks/images/scripts/delete_repository.py59 # Check if the script is run with the argument "delete_images"COMMENT
LOW.tools/scripts/pr_review_fix.py522 # Check if we already posted suggestions for the latest reviewCOMMENT
LOW.tools/readmes/render.py339 # Check if the rendered text is different from the existing fileCOMMENT
LOWruby/example_code/sqs/scenario_getting_started.rb78# Display the message's body and each custom attribute value.COMMENT
LOWruby/example_code/iam/manage_roles.rb125 # Check if the policy is a customer managed policy (not AWS managed)COMMENT
LOWruby/example_code/polly/polly_synthesize_speech.rb21 # Open file and get the contents as a stringCOMMENT
Cross-Language Confusion5 hits · 30 pts
SeverityFileLineSnippetContext
HIGHpython/example_code/ecr/ecr_getting_started.py240 resp = self.docker_client.api.push(STRING
HIGHpython/example_code/codecommit/push-in-parts.py209 infos = self.remote_repo.push(tags=True, progress=progress_printer)CODE
HIGHpython/example_code/codecommit/push-in-parts.py211 infos = self.remote_repo.push(CODE
HIGHpython/example_code/codecommit/push-in-parts.py215 infos = self.remote_repo.push(progress=progress_printer)CODE
HIGHpython/example_code/codecommit/push-in-parts.py274 self.remote_repo.push(refspec=tags_to_delete)CODE
AI Structural Patterns15 hits · 15 pts
SeverityFileLineSnippetContext
LOWpython/test_tools/ssm_stubber.py277CODE
LOWpython/test_tools/rds_stubber.py181CODE
LOWpython/test_tools/sns_stubber.py120CODE
LOWpython/cross_service/aurora_item_tracker/storage.py110CODE
LOW…lending_library/library_api/chalicelib/library_data.py359CODE
LOW…lending_library/library_api/chalicelib/library_data.py429CODE
LOW…lending_library/library_api/chalicelib/library_data.py441CODE
LOW…ng_library/library_api/chalicelib/postgresql_helper.py331CODE
LOW…lending_library/library_api/chalicelib/mysql_helper.py259CODE
LOW…thon/example_code/bedrock-agent/flows/playlist_flow.py231CODE
LOWpython/example_code/lambda/lambda_handler_calculator.py56CODE
LOWpython/example_code/lambda/lambda_handler_basic.py37CODE
LOWgov2/lambda/handlers/lambda_handler_calculator.py56CODE
LOWgov2/lambda/handlers/lambda_handler_basic.py37CODE
LOW.tools/lambda/KB_Updater/lambda_function.py74CODE
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMrustv1/examples/glue/src/run.rs34 // --output_bucket_url: [URL to the scaffold bucket you created for the user]COMMENT
MEDIUMswift/example_code/glue/scenario/Sources/entry.swift23// * `--output_bucket_url: <URL to the scaffold bucket created for theCOMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md60 Items reviewed in this way must include a statement like "generated by AICODE