Repository Analysis

cloud-custodian/cloud-custodian

Rules engine for cloud security, cost optimization, and governance, DSL in yaml for policies to query, filter, and take actions on resources

4.1 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cloud-custodian/cloud-custodian, a Python project with 6,040 GitHub stars. SynthScan v2.0 examined 1,183,813 lines of code across 13267 source files, recording 4444 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 4.1 places this repository in the Likely human-written band.

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

4.1
Adjusted Score
4.1
Raw Score
100%
Time Factor
2026-08-01
Last Push
6.0K
Stars
Python
Language
1.2M
Lines of Code
13.3K
Files
4.4K
Pattern Hits
2026-08-02
Scan Date
0.01
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 18HIGH 118MEDIUM 132LOW 4176

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 4444 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Hyper-Verbose Identifiers3268 hits · 2852 pts
SeverityFileLineSnippetContext
LOWtools/c7n_sentry/test_sentry.py29 def test_preserve_full_message(self):CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py173 def converge_destination_policy(client, config):CODE
LOWtools/c7n_kube/c7n_kube/server.py141 def create_admission_response(CODE
LOWtools/c7n_kube/tests/test_actions.py26 def test_delete_namespaced_resource(self):CODE
LOWtools/c7n_kube/tests/test_actions.py64 def test_enhanced_patch_schema_validation(self):CODE
LOWtools/c7n_kube/tests/test_actions.py77 def test_patch_resource_save_restore_logic(self):CODE
LOWtools/c7n_kube/tests/test_actions.py151 def test_patch_resource_edge_cases(self):CODE
LOWtools/c7n_kube/tests/test_actions.py247 def test_patch_resource_register_resources(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource.py11 def test_custom_cluster_resource_query(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource.py33 def test_custom_namespaced_resource_query(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource.py55 def test_custom_resource_validation(self):CODE
LOWtools/c7n_kube/tests/common_kube.py94 def _get_cassette_library_dir(self, name="flights"):CODE
LOWtools/c7n_kube/tests/test_labels.py29 def test_namespaced_label_action(self):CODE
LOWtools/c7n_kube/tests/test_labels.py55 def test_event_label_no_labels(self):CODE
LOWtools/c7n_kube/tests/test_labels.py82 def test_admission_event_auto_label_user(self):CODE
LOWtools/c7n_kube/tests/test_labels.py118 def test_admission_event_label(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py131 def test_server_handle_get_empty_policies(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py138 def test_server_handle_get_policies(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py159 def test_server_handle_post_no_policies(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py180 def test_server_handle_post_policies_deny_on_match(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py202 def test_server_handle_post_policies_allow_on_match(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py224 def test_server_handle_post_policies_deny_on_match_multiple(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py333 def test_server_response_with_patch(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py370 def test_server_bad_policy_execution_warn(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py413 def test_server_bad_policy_execution_deny(self):CODE
LOWtools/c7n_kube/tests/test_policy.py9 def test_kube_admission_policy(self):CODE
LOWtools/c7n_kube/tests/test_policy.py93 def test_admission_warn_event(self):CODE
LOWtools/c7n_kube/tests/test_policy.py113 def test_admission_warn_event_no_results(self):CODE
LOWtools/c7n_kube/tests/test_policy.py161 def test_admission_action_validate(self):CODE
LOWtools/c7n_kube/tests/test_policy.py178 def test_sub_resource_pod_exec(self):CODE
LOWtools/c7n_kube/tests/test_policy.py212 def test_sub_resource_pod_attach_exec(self):CODE
LOWtools/c7n_guardian/c7n_guardian/cli.py436def get_or_create_detector_id(client):CODE
LOWtools/c7n_policystream/tests/test_policystream.py145 def test_diff_subdir_policies(self):STRING
LOWtools/c7n_openstack/tests/test_secret.py8 def test_secret_without_expiration(self):CODE
LOWtools/c7n_openstack/tests/test_user.py8 def test_user_extended_info_filter(self):CODE
LOWtools/c7n_openstack/tests/test_securitygroup.py17 def test_securitygroup_filter_ports(self):CODE
LOWtools/c7n_openstack/tests/test_securitygroup.py43 def test_securitygroup_filter_ipaddress(self):CODE
LOWtools/c7n_openstack/tests/test_storage_container.py8 def test_storage_container_public(self):CODE
LOWtools/c7n_openstack/tests/test_server.py35 def test_server_filter_flavor(self):CODE
LOWtools/c7n_openstack/tests/test_server.py79 def test_server_filter_securitygroup_open_to_internet(self):CODE
LOWtools/c7n_openstack/tests/test_server.py117 def test_server_filter_securitygroup_stateful(self):CODE
LOWtools/c7n_openstack/tests/common_openstack.py76 def _get_cassette_library_dir(self):CODE
LOWtools/c7n_openstack/tests/test_project.py17 def test_project_filter_by_name(self):CODE
LOWtools/c7n_terraform/tests_terraform/test_parser.py67def test_variable_resolver_value_map():CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py536def detect_partition_strategy(bid, delimiters=('/', '-'), prefix=''):CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py602def process_bucket_partitions(CODE
LOWtools/c7n_azure/c7n_azure/query.py337 def register_actions_and_filters(registry, resource_class):CODE
LOWtools/c7n_azure/c7n_azure/functionapp_utils.py28 def get_storage_account_connection_string(id):CODE
LOWtools/c7n_azure/c7n_azure/functionapp_utils.py99 def publish_functions_package(cls, function_params, package):CODE
LOWtools/c7n_azure/c7n_azure/graph_utils.py75def get_required_permissions_for_endpoint(endpoint, method='GET'):CODE
LOWtools/c7n_azure/c7n_azure/graph_utils.py187 def make_batched_graph_request(self, batch):CODE
LOWtools/c7n_azure/c7n_azure/policy.py432 def _validate_is_arm_resource(self):CODE
LOWtools/c7n_azure/c7n_azure/policy.py438 def _validate_event_matches_resource(self):CODE
LOWtools/c7n_azure/c7n_azure/policy.py481 def _create_event_subscription(self, storage_account, queue_name, session):CODE
LOWtools/c7n_azure/c7n_azure/session.py309 def get_function_target_subscription_name(self):CODE
LOWtools/c7n_azure/c7n_azure/session.py316 def get_function_target_subscription_ids(self):CODE
LOWtools/c7n_azure/c7n_azure/session.py356 def get_functions_auth_string(self, target_subscription_id):CODE
LOWtools/c7n_azure/c7n_azure/function_package.py61 def _add_functions_required_files(CODE
LOWtools/c7n_azure/c7n_azure/utils.py122def custodian_azure_send_override(self, request, headers=None, content=None, **kwargs):CODE
LOWtools/c7n_azure/c7n_azure/utils.py342 def get_ports_set_from_string(ports):CODE
3208 more matches not shown…
Cross-Language Confusion84 hits · 420 pts
SeverityFileLineSnippetContext
HIGHtools/c7n_kube/c7n_kube/server.py48 resources = p.push(req)CODE
HIGHtools/c7n_kube/tests/test_labels.py72 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_labels.py102 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_labels.py143 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py33 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py64 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py88 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py108 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py129 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py156 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py207 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py242 resources = policy.push(event)CODE
HIGHtools/c7n_azure/c7n_azure/handler.py56 p.push(event, context)CODE
HIGHtools/c7n_azure/c7n_azure/container_host/host.py403 policy.push(event, context)CODE
HIGHtools/c7n_azure/tests_azure/test_policy_mode.py561 resources = p.push(event, None)CODE
HIGHtools/c7n_azure/tests_azure/test_policy_mode.py587 resources = p.push(event, None)CODE
HIGHtools/c7n_azure/tests_azure/test_policy_mode.py609 resources = p.push(event, None)CODE
HIGHtools/c7n_azure/tests_azure/test_policy_mode.py627 resources = p.push(None, None)CODE
HIGH…/tests_azure/tests_resources/test_storage_container.py94 resources = p.push(event, None)CODE
HIGHtools/c7n_org/tests/test_org.py1136 # Should fail - {environment} is undefined, but {event} should be OKCOMMENT
HIGHtools/sandbox/zerodark/zerodark/metrics.py52 and (end > ? or end is null)STRING
HIGHtools/sandbox/zerodark/zerodark/resolver.py69 and (end > ? or end is null)''',STRING
HIGHtools/c7n_gcp/tests/test_gcp_storage.py292 [bucket] = p.push(CODE
HIGHtools/c7n_gcp/c7n_gcp/handler.py44 p.push(event, context)CODE
HIGHtools/c7n_left/c7n_left/core.py282 return policy.push(event)CODE
HIGHtools/c7n_mailer/tests/common.py305 "event": null,CODE
HIGHtools/c7n_mailer/tests/common.py360 "event":null,CODE
HIGHtools/c7n_mailer/tests/common.py411 "event":null,CODE
HIGHtools/c7n_mailer/tests/common.py463 "event":null,CODE
HIGHtools/c7n_mailer/tests/common.py514 "event":null,CODE
HIGHtools/c7n_mailer/tests/common.py567 "event":null,CODE
HIGHtools/c7n_mailer/tests/common.py593 "event": null,CODE
HIGHtools/c7n_mailer/tests/common.py653 "event": null,CODE
HIGHc7n/handler.py170 p.push(event, context)CODE
HIGHc7n/resources/s3.py464 'BucketLoggingConfiguration': u'{"destinationBucketName":null,"logFilePrefix":null}',CODE
HIGHc7n/resources/s3.py465 'BucketPolicy': u'{"policyText":null}',CODE
HIGHc7n/resources/s3.py466 'BucketVersioningConfiguration': u'{"status":"Off","isMfaDeleteEnabled":null}',CODE
HIGHc7n/resources/s3.py467 'BucketAccelerateConfiguration': u'{"status":null}',CODE
HIGHtests/test_cloudsearch.py74 resources = p.push(event, {})CODE
HIGHtests/test_vpc.py1494 resources = p.push(event_data("event-transit-gateway-delete-vpc-attachment.json"))CODE
HIGHtests/test_iam.py477 resources = p.push(event)CODE
HIGHtests/test_iam.py1799 p.push(event)STRING
HIGHtests/test_iam.py1806 resources = p.push(event)STRING
HIGHtests/test_iam.py867 resources = p.push({'detail': {STRING
HIGHtests/test_iam.py904 resources = p.push({'detail': {STRING
HIGHtests/test_iam.py1577 resources = p.push({'detail': {STRING
HIGHtests/test_cloudfront.py109 resources = policy.push(event_data("event-cloud-trail-create-distribution.json"))CODE
HIGHtests/test_cloudfront.py133 resources = policy.push(event_data("event-cloud-trail-update-distribution.json"))CODE
HIGHtests/test_cloudfront.py156 resources = policy.push(event_data("event-cloud-trail-update-distribution.json"))CODE
HIGHtests/test_cloudfront.py187 resources = policy.push(event_data("event-cloud-trail-update-distribution.json"))CODE
HIGHtests/test_cloudfront.py219 resources = policy.push(event_data("event-cloud-trail-tag-distribution.json"))CODE
HIGHtests/test_cloudfront.py246 resources = policy.push(event_data("event-cloud-trail-tag-distribution.json"))CODE
HIGHtests/test_hsm.py100 resources = policy.push(event)CODE
HIGHtests/test_efs.py102 resources = policy.push(event, None)CODE
HIGHtests/test_efs.py124 resources = policy.push(event, None)CODE
HIGHtests/test_appelb.py41 result = p.push(event, {})[0]CODE
HIGHtests/test_appelb.py727 resources = policy.push(event_data("event-cloud-trail-appelb-add-tags.json"))CODE
HIGHtests/test_autotag.py29 resources = policy.push(event, None)CODE
HIGHtests/test_autotag.py55 resources = policy.push(event, None)CODE
HIGHtests/test_autotag.py81 resources = policy.push(event, None)CODE
24 more matches not shown…
Deep Nesting342 hits · 330 pts
SeverityFileLineSnippetContext
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py267CODE
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py351CODE
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py431CODE
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py370CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py164CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py342CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py691CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py759CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py173CODE
LOWtools/c7n_logexporter/c7n_logexporter/flowdeliver.py53CODE
LOWtools/c7n_logexporter/c7n_logexporter/flowdeliver.py85CODE
LOWtools/c7n_logexporter/c7n_logexporter/stream.py29CODE
LOWtools/c7n_kube/c7n_kube/utils.py1CODE
LOWtools/c7n_kube/c7n_kube/actions/core.py190CODE
LOWtools/c7n_guardian/c7n_guardian/cli.py141CODE
LOWtools/c7n_guardian/c7n_guardian/cli.py269CODE
LOWtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py185CODE
LOWtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py388CODE
LOWtools/c7n_policystream/policystream.py749CODE
LOWtools/c7n_policystream/policystream.py272CODE
LOWtools/c7n_policystream/policystream.py371CODE
LOWtools/c7n_policystream/policystream.py422CODE
LOWtools/c7n_terraform/c7n_terraform/parser.py96CODE
LOWtools/c7n_terraform/c7n_terraform/parser.py211CODE
LOWtools/c7n_terraform/c7n_terraform/parser.py437CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py307CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py602CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py729CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py803CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py886CODE
LOWtools/c7n_salactus/c7n_salactus/objectacl.py79CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py177CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py322CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py457CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py520CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py672CODE
LOWtools/c7n_salactus/c7n_salactus/inventory.py21CODE
LOWtools/c7n_sphinxext/c7n_sphinxext/docgen.py53CODE
LOWtools/c7n_sphinxext/c7n_sphinxext/docgen.py117CODE
LOWtools/c7n_azure/c7n_azure/query.py145CODE
LOWtools/c7n_azure/c7n_azure/graph_utils.py75CODE
LOWtools/c7n_azure/c7n_azure/policy.py325CODE
LOWtools/c7n_azure/c7n_azure/session.py36CODE
LOWtools/c7n_azure/c7n_azure/session.py238CODE
LOWtools/c7n_azure/c7n_azure/function_package.py61CODE
LOWtools/c7n_azure/c7n_azure/utils.py122CODE
LOWtools/c7n_azure/c7n_azure/utils.py614CODE
LOWtools/c7n_azure/c7n_azure/utils.py167CODE
LOWtools/c7n_azure/c7n_azure/utils.py395CODE
LOWtools/c7n_azure/c7n_azure/filters.py700CODE
LOWtools/c7n_azure/c7n_azure/filters.py768CODE
LOWtools/c7n_azure/c7n_azure/filters.py856CODE
LOWtools/c7n_azure/c7n_azure/output.py71CODE
LOWtools/c7n_azure/c7n_azure/container_host/host.py203CODE
LOW…/c7n_azure/c7n_azure/resources/entraid_organization.py207CODE
LOW…ols/c7n_azure/c7n_azure/resources/network_interface.py85CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py386CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py431CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py497CODE
LOWtools/c7n_azure/c7n_azure/resources/app_gateway.py72CODE
282 more matches not shown…
Excessive Try-Catch Wrapping220 hits · 253 pts
SeverityFileLineSnippetContext
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py215 except Exception:CODE
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py517 except Exception:CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py96 except Exception:CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py120 except Exception:CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py126 except Exception:CODE
MEDIUMtools/c7n_logexporter/c7n_logexporter/exporter.py91def run(*args, **kw):CODE
LOWtools/c7n_kube/c7n_kube/server.py66 except Exception as e:CODE
LOWtools/c7n_kube/c7n_kube/server.py116 except Exception as e:CODE
LOWtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py214 except Exception:STRING
LOWtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py776 except Exception:STRING
MEDIUMtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py359def flush(self):CODE
LOWtools/c7n_policystream/policystream.py353 except Exception as e:CODE
MEDIUMtools/c7n_policystream/policystream.py347def _policy_file_rev(self, f, commit):CODE
LOWtools/c7n_terraform/c7n_terraform/parser.py463 except Exception as e:CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py208 except Exception as e:CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py328 except Exception as e:CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py356 except Exception:CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py140 except Exception:CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py219 except Exception:CODE
MEDIUMtools/c7n_salactus/c7n_salactus/cli.py135def _f(*args, **kw):CODE
LOWtools/c7n_salactus/c7n_salactus/rqworker.py58 except Exception:CODE
MEDIUMtools/c7n_salactus/c7n_salactus/rqworker.py54def loads(s):CODE
LOWtools/c7n_sphinxext/c7n_sphinxext/docgen.py83 except Exception:CODE
LOWtools/c7n_sphinxext/c7n_sphinxext/docgen.py262 except Exception:CODE
MEDIUMtools/c7n_sphinxext/c7n_sphinxext/docgen.py259def main(provider, output_dir, group_by):CODE
LOWtools/c7n_azure/c7n_azure/query.py63 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/query.py169 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/graph_utils.py29 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/policy.py477 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/policy.py497 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/session.py146 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/session.py210 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/utils.py180 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/utils.py496 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/filters.py394 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/storage_utils.py56 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/storage_utils.py64 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/container_host/host.py238 except Exception as exc:CODE
LOWtools/c7n_azure/c7n_azure/container_host/host.py404 except Exception:CODE
MEDIUMtools/c7n_azure/c7n_azure/container_host/host.py401def run_policy(policy, event, context):CODE
LOW…azure/c7n_azure/resources/entraid_security_defaults.py69 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/disk.py322 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/disk.py372 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/disk.py398 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/disk.py485 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/disk.py508 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/disk.py523 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/key_vault_keys.py159 except Exception as error:CODE
LOW…/c7n_azure/c7n_azure/resources/entraid_organization.py95 except Exception as e:CODE
LOW…/c7n_azure/c7n_azure/resources/entraid_organization.py110 except Exception as e:CODE
LOW…/c7n_azure/c7n_azure/resources/entraid_organization.py203 except Exception as e:CODE
LOW…/c7n_azure/c7n_azure/resources/entraid_organization.py257 except Exception as e:CODE
LOW…zure/c7n_azure/resources/entraid_conditional_access.py104 except Exception as e:CODE
LOW…ols/c7n_azure/c7n_azure/resources/network_interface.py106 except Exception as error:CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py103 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py121 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py138 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py163 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py586 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py682 except Exception as e:CODE
160 more matches not shown…
Hallucination Indicators18 hits · 180 pts
SeverityFileLineSnippetContext
CRITICALtools/c7n_azure/c7n_azure/handler.py11from azure.core.exceptions import AzureErrorCODE
CRITICALtools/c7n_azure/c7n_azure/filters.py19from azure.core.exceptions import HttpResponseErrorCODE
CRITICALtools/c7n_azure/c7n_azure/storage_utils.py7from azure.core.exceptions import ResourceExistsErrorCODE
CRITICALtools/c7n_azure/c7n_azure/resources/disk.py11from azure.core.exceptions import AzureErrorCODE
CRITICAL…7n_azure/c7n_azure/resources/network_security_group.py6from azure.core.exceptions import AzureErrorCODE
CRITICALtools/c7n_azure/c7n_azure/resources/sqldatabase.py20from azure.core.exceptions import AzureError, ResourceNotFoundErrorCODE
CRITICAL…ls/c7n_azure/c7n_azure/provisioning/storage_account.py3from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALtools/c7n_azure/c7n_azure/provisioning/app_insights.py3from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…ols/c7n_azure/c7n_azure/provisioning/resource_group.py3from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALtools/c7n_azure/tests_azure/test_deployment_units.py4from azure.core.exceptions import AzureErrorCODE
CRITICALtools/c7n_azure/tests_azure/test_resolver.py301 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALtools/c7n_azure/tests_azure/test_resolver.py325 from azure.core.exceptions import ClientAuthenticationErrorCODE
CRITICALtools/c7n_azure/tests_azure/test_resolver.py351 from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL…ols/c7n_azure/tests_azure/tests_resources/test_disk.py10from azure.core.exceptions import AzureErrorCODE
CRITICAL…ols/c7n_azure/tests_azure/tests_resources/test_disk.py454 self.action.client.virtual_machines.begin_deallocate.assert_called_once_with(CODE
CRITICAL…ols/c7n_azure/tests_azure/tests_resources/test_disk.py473 self.action.client.virtual_machines.begin_start.assert_called_once_with("rg", "vm-name")CODE
CRITICAL…c7n_azure/tests_azure/tests_resources/test_keyvault.py12from azure.core.exceptions import HttpResponseErrorCODE
CRITICALtools/c7n_mailer/c7n_mailer/ldap_lookup.py15from ldap3.core.exceptions import LDAPSocketOpenErrorCODE
Self-Referential Comments60 hits · 164 pts
SeverityFileLineSnippetContext
MEDIUMtools/c7n_azure/c7n_azure/utils.py611# This function is a workaround for Azure KeyVault objects that lackCOMMENT
MEDIUMtools/c7n_azure/tests_azure/test_graph_utils.py239 # Create a minimal context objectCOMMENT
MEDIUMtools/c7n_azure/tests_azure/test_graph_utils.py1100 # Create a batch with 25 requests (Graph API limit is typically 20)COMMENT
MEDIUMtools/c7n_azure/tests_azure/test_graph_utils.py137 # Create a proper policy to get a real manager instanceCOMMENT
MEDIUM…/c7n_azure/tests_azure/tests_resources/test_storage.py933 # Create a mock storage account resourceCOMMENT
MEDIUM…/c7n_azure/tests_azure/tests_resources/test_storage.py941 # Create the filterCOMMENT
MEDIUM…ure/tests_azure/tests_resources/test_container_host.py491 # Create a bad yaml fileCOMMENT
MEDIUM…ure/tests_azure/tests_resources/test_container_host.py522 # Create a bad yaml fileSTRING
MEDIUM…ure/tests_azure/tests_resources/test_container_host.py543 # Create a bad yaml file (no name field)STRING
MEDIUM…ure/tests_azure/tests_resources/test_container_host.py581 # Create a bad yaml fileSTRING
MEDIUM…s_azure/tests_resources/terraform/entraid_user/main.tf105# Create a security group for testing group membership filtersCOMMENT
MEDIUMtools/c7n_azure/tests_azure/templates/provision.sh374 # Create a new modern agent version and then resolve stable agent details.COMMENT
MEDIUMtools/c7n_org/tests/test_org.py676 # Create an invalid accounts file (missing required field)COMMENT
MEDIUMtools/c7n_gcp/c7n_gcp/resources/armor.py68 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/loadbalancer.py61 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/loadbalancer.py555 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/loadbalancer.py606 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/loadbalancer.py656 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/network.py374 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/network.py427 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/compute.py642 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUM…7n_mailer/c7n_mailer/azure_mailer/sendgrid_delivery.py112 # Create a To object instead of an Email objectCOMMENT
MEDIUMtools/dev/data_updatearnref.py142# Create the docs directoryCOMMENT
MEDIUMtools/c7n_tencentcloud/tests/test_tc_client.py437 # Create a temporary credentials fileCOMMENT
MEDIUM…s/c7n_tencentcloud/c7n_tencentcloud/filters/metrics.py152 # Create a map from resource_id to resource for quick lookupCOMMENT
MEDIUMc7n/policy.py1395 """This method is no longer called within c7n, and despite being a privateSTRING
MEDIUMc7n/resources/firewall.py310 # Create a new log destination object by adding a single LogDestinationConfig array elementCOMMENT
MEDIUMc7n/resources/eventbridge.py153 # This function provides custom functionality to query event-rule-targetsCOMMENT
MEDIUMc7n/resources/eventbridge.py414 # This function provides custom functionality to query event-rule-targetsCOMMENT
MEDIUMc7n/resources/elb.py269 # Create a custom policy with epoch timestamp.COMMENT
MEDIUMc7n/resources/appmesh.py76 # This method is called in event mode and not pull mode.COMMENT
MEDIUMc7n/resources/appmesh.py205 # This method is called in event mode and not pull mode.COMMENT
MEDIUMc7n/resources/ebs.py1353 # Create a current snapshotCOMMENT
MEDIUMtests/test_kafka.py277 # Create a test resource without policy annotationCOMMENT
MEDIUMtests/test_vpc.py563 # Create a mock filter instanceCOMMENT
MEDIUMtests/test_vpc.py2173 # Create a mock filter instanceCOMMENT
MEDIUMtests/test_quotas.py215 # Create a mock resource where quota equals hard_limitCOMMENT
MEDIUMtests/test_quotas.py227 # Create the action with multiplier that would normally increaseCOMMENT
MEDIUMtests/test_quotas.py248 # Create a mock resource where calculated count would exceed hard_limitCOMMENT
MEDIUMtests/test_quotas.py260 # Create the action with multiplier that would exceed hard_limitCOMMENT
MEDIUMtests/test_rdsparamgroup.py16 # Create the PGCOMMENT
MEDIUMtests/test_rdsparamgroup.py57 # Create the PGCOMMENT
MEDIUMtests/test_rdsparamgroup.py92 # Create the PGCOMMENT
MEDIUMtests/test_rdsparamgroup.py183 # Create the PGCOMMENT
MEDIUMtests/test_rdsparamgroup.py231 # Create the PGCOMMENT
MEDIUMtests/test_rdsparamgroup.py271 # Create the PGCOMMENT
MEDIUMtests/test_appelb.py756 # Create a policy that deletes listeners on a specific portCOMMENT
MEDIUMtests/test_mu.py1515 # Create a module with both *.py and *.pyc.COMMENT
MEDIUMtests/test_bedrock.py62 # Create the job using the helper method with Terraform resources (only in recording mode)COMMENT
MEDIUMtests/test_bedrock.py109 # Create the job using the helper method with Terraform resources (only in recording mode)COMMENT
MEDIUMtests/test_bedrock.py164 # Create the job using the helper method with Terraform resources (only in recording mode)COMMENT
MEDIUMtests/test_bedrock.py243 # Create the job using the helper method with Terraform resources (only in recording mode)COMMENT
MEDIUMtests/test_s3.py3204 # Create an sns topicCOMMENT
MEDIUMtests/terraform/bedrock_guardrail_update/main.tf6# Create an application inference profileCOMMENT
MEDIUM…erraform/bedrock_application_inference_profile/main.tf6# Create an application inference profileCOMMENT
MEDIUMtests/terraform/bedrock_guardrail/main.tf6# Create an application inference profileCOMMENT
MEDIUMtests/terraform/bedrock_guardrail_tag_actions/main.tf9# Create an application inference profileCOMMENT
MEDIUM…sts/terraform/bedrock_inference_profile_delete/main.tf6# Create an application inference profile for delete testingCOMMENT
MEDIUM…rock_application_inference_profile_tag_actions/main.tf6# Create an application inference profileCOMMENT
MEDIUMdocs/source/conf.py6# This file is execfile()d with the current directory set to itsCOMMENT
Cross-File Repetition29 hits · 145 pts
SeverityFileLineSnippetContext
HIGHtools/c7n_kube/c7n_kube/query.py0metaclass to have consistent action/filter registry for new resources.STRING
HIGHtools/c7n_azure/c7n_azure/query.py0metaclass to have consistent action/filter registry for new resources.STRING
HIGHtools/c7n_oci/c7n_oci/query.py0metaclass to have consistent action/filter registry for new resources.STRING
HIGHtools/c7n_gcp/c7n_gcp/query.py0metaclass to have consistent action/filter registry for new resources.STRING
HIGHtools/c7n_tencentcloud/c7n_tencentcloud/query.py0metaclass to have consistent action/filter registry for new resources.STRING
HIGHtools/c7n_azure/c7n_azure/filters.py0filter resources for tag specified future action filters resources by a 'maid_status' tag which specifies a future date STRING
HIGHtools/c7n_gcp/c7n_gcp/filters/labels.py0filter resources for tag specified future action filters resources by a 'maid_status' tag which specifies a future date STRING
HIGHc7n/tags.py0filter resources for tag specified future action filters resources by a 'maid_status' tag which specifies a future date STRING
HIGH…azure/c7n_azure/resources/entraid_security_defaults.py0get resources from microsoft graph api for use with graphsource.STRING
HIGH…/c7n_azure/c7n_azure/resources/entraid_organization.py0get resources from microsoft graph api for use with graphsource.STRING
HIGH…zure/c7n_azure/resources/entraid_conditional_access.py0get resources from microsoft graph api for use with graphsource.STRING
HIGHtools/c7n_azure/c7n_azure/resources/entraid_user.py0get resources from microsoft graph api for use with graphsource.STRING
HIGHtools/c7n_azure/c7n_azure/resources/entraid_group.py0get resources from microsoft graph api for use with graphsource.STRING
HIGHtools/c7n_azure/c7n_azure/actions/tagging.py0tag resources for future action. the optional 'tz' parameter can be used to adjust the clock to align with a given timezSTRING
HIGHtools/c7n_gcp/c7n_gcp/actions/labels.py0tag resources for future action. the optional 'tz' parameter can be used to adjust the clock to align with a given timezSTRING
HIGHc7n/tags.py0tag resources for future action. the optional 'tz' parameter can be used to adjust the clock to align with a given timezSTRING
HIGHtools/c7n_oci/c7n_oci/resources/object_storage.py0remove tag action :example: remove the specified tags from the resource. defined tag needs to be referred as 'namespace.STRING
HIGHtools/c7n_oci/c7n_oci/resources/dns.py0remove tag action :example: remove the specified tags from the resource. defined tag needs to be referred as 'namespace.STRING
HIGHtools/c7n_oci/c7n_oci/resources/virtual_network.py0remove tag action :example: remove the specified tags from the resource. defined tag needs to be referred as 'namespace.STRING
HIGHtools/c7n_oci/c7n_oci/resources/identity.py0remove tag action :example: remove the specified tags from the resource. defined tag needs to be referred as 'namespace.STRING
HIGHtools/c7n_oci/c7n_oci/resources/compute.py0remove tag action :example: remove the specified tags from the resource. defined tag needs to be referred as 'namespace.STRING
HIGHtools/c7n_gcp/c7n_gcp/resources/armor.py0takes resourcename (from a log) or selflink (from a resource) and parses from it the parameters needed to make a requestSTRING
HIGHtools/c7n_gcp/c7n_gcp/resources/loadbalancer.py0takes resourcename (from a log) or selflink (from a resource) and parses from it the parameters needed to make a requestSTRING
HIGHtools/c7n_gcp/c7n_gcp/resources/network.py0takes resourcename (from a log) or selflink (from a resource) and parses from it the parameters needed to make a requestSTRING
HIGHtools/c7n_gcp/c7n_gcp/resources/compute.py0takes resourcename (from a log) or selflink (from a resource) and parses from it the parameters needed to make a requestSTRING
HIGHtools/c7n_gcp/c7n_gcp/resources/armor.py0this method is used to refresh labelfingerprint when a label action fails because the fingerprint was stale.STRING
HIGHtools/c7n_gcp/c7n_gcp/resources/loadbalancer.py0this method is used to refresh labelfingerprint when a label action fails because the fingerprint was stale.STRING
HIGHtools/c7n_gcp/c7n_gcp/resources/network.py0this method is used to refresh labelfingerprint when a label action fails because the fingerprint was stale.STRING
HIGHtools/c7n_gcp/c7n_gcp/resources/compute.py0this method is used to refresh labelfingerprint when a label action fails because the fingerprint was stale.STRING
Unused Imports133 hits · 132 pts
SeverityFileLineSnippetContext
LOWtools/c7n_kube/c7n_kube/entry.py6CODE
LOWtools/c7n_kube/c7n_kube/entry.py24CODE
LOWtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py37CODE
LOWtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py39CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py29CODE
LOWtools/c7n_azure/c7n_azure/entry.py5CODE
LOWtools/c7n_azure/c7n_azure/entry.py11CODE
LOWtools/c7n_azure/c7n_azure/entry.py12CODE
LOWtools/c7n_azure/c7n_azure/entry.py13CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py13CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py14CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py15CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py16CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py17CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py18CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py19CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py18CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py29CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py56CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py93CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py137CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py175CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py218CODE
LOWtools/c7n_azure/tests_azure/azure_common.py28CODE
LOWtools/c7n_awscc/c7n_awscc/entry.py3CODE
LOWtools/c7n_awscc/c7n_awscc/manager.py6CODE
LOWtools/c7n_oci/tests/test_multi_region.py9CODE
LOWtools/c7n_oci/c7n_oci/query.py12CODE
LOWtools/c7n_oci/c7n_oci/entry.py5CODE
LOWtools/c7n_oci/c7n_oci/entry.py9CODE
LOWtools/c7n_oci/c7n_oci/entry.py12CODE
LOWtools/c7n_oci/c7n_oci/entry.py15CODE
LOWtools/c7n_oci/c7n_oci/entry.py18CODE
LOWtools/c7n_oci/c7n_oci/resources/object_storage.py5CODE
LOWtools/c7n_oci/c7n_oci/resources/object_storage.py6CODE
LOWtools/c7n_oci/c7n_oci/resources/object_storage.py10CODE
LOWtools/c7n_oci/c7n_oci/resources/dns.py5CODE
LOWtools/c7n_oci/c7n_oci/resources/dns.py6CODE
LOWtools/c7n_oci/c7n_oci/resources/dns.py10CODE
LOWtools/c7n_oci/c7n_oci/resources/dns.py10CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py5CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py6CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py10CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py10CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py5CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py10CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py5CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py6CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py10CODE
LOWtools/c7n_oci/c7n_oci/actions/__init__.py5CODE
LOWtools/c7n_gcp/c7n_gcp/client.py35CODE
LOWtools/c7n_gcp/c7n_gcp/entry.py7CODE
LOWtools/c7n_gcp/c7n_gcp/entry.py18CODE
LOWtools/c7n_gcp/c7n_gcp/entry.py21CODE
LOWtools/c7n_gcp/c7n_gcp/entry.py22CODE
LOWtools/c7n_gcp/c7n_gcp/filters/__init__.py4CODE
LOWtools/c7n_gcp/c7n_gcp/filters/__init__.py5CODE
LOWtools/c7n_gcp/c7n_gcp/filters/__init__.py6CODE
LOWtools/c7n_gcp/c7n_gcp/filters/__init__.py7CODE
LOWtools/c7n_gcp/c7n_gcp/filters/__init__.py8CODE
73 more matches not shown…
Over-Commented Block98 hits · 95 pts
SeverityFileLineSnippetContext
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py221 breakCOMMENT
LOWtools/c7n_sentry/c7n_sentry/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_logexporter/c7n_logexporter/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_kube/c7n_kube/client.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_kube/c7n_kube/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_kube/c7n_kube/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_kube/c7n_kube/resources/core/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_kube/c7n_kube/resources/apps/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_kube/c7n_kube/actions/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_guardian/c7n_guardian/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_trailcreator/c7n_trailcreator/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_openstack/c7n_openstack/client.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_openstack/c7n_openstack/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_openstack/c7n_openstack/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_terraform/tests_terraform/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_terraform/c7n_terraform/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_salactus/c7n_salactus/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_sphinxext/c7n_sphinxext/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/c7n_azure/query.py361 # <subscription id>COMMENT
LOWtools/c7n_azure/c7n_azure/container_host/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/c7n_azure/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/c7n_azure/resources/sqldatabase.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/c7n_azure/actions/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/tests_azure/test_lock_action.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/tests_azure/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/tests_azure/tests_resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_awscc/tests/zpill.py21# Custodian Test Account. This is used only for testing.COMMENT
LOWtools/c7n_awscc/c7n_awscc/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_awscc/c7n_awscc/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_org/c7n_org/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/sandbox/c7n_sphere11/c7n_sphere11/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/sandbox/c7n_autodoc/example_config_file.yml1---COMMENT
LOWtools/sandbox/zerodark/zerodark/metrics.py101 dict(name='SurgeQueueLength', statistic='Maximum')]COMMENT
LOWtools/sandbox/zerodark/zerodark/flowrecord.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/sandbox/zerodark/zerodark/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/sandbox/zerodark/zerodark/floweni.py221 stats['Flows'] += 1COMMENT
LOWtools/sandbox/c7n_index/c7n_index/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_oci/c7n_oci/filters/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_oci/c7n_oci/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_gcp/tests/test_sql.py361COMMENT
LOWtools/c7n_gcp/c7n_gcp/client.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_gcp/c7n_gcp/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_gcp/c7n_gcp/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_left/c7n_left/providers/terraform/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_mailer/c7n_mailer/utils_email.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_mailer/c7n_mailer/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_mailer/c7n_mailer/gcp_mailer/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/dev/vector.toml1# AWS Client Side MonitoringCOMMENT
LOWtools/dev/data_updatearnref.py1#!/usr/bin/env python3COMMENT
LOWtools/dev/data_updatearnref.py21# this software without specific prior written permission.COMMENT
LOWtools/ops/azure/container-host/chart/values.yaml61 # SendGrid API key OR SMTP settingsCOMMENT
LOWtools/cask/main.go1// Copyright 2019 Microsoft CorporationCOMMENT
LOWtools/cask/main_test.go1// Copyright 2019 Microsoft CorporationCOMMENT
LOWtools/c7n_tencentcloud/c7n_tencentcloud/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_tencentcloud/c7n_tencentcloud/output.py1# Copyright The Cloud Custodian Authors.COMMENT
LOW…7n_tencentcloud/c7n_tencentcloud/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_traildb/c7n_traildb/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_traildb/c7n_traildb/traildb.py121# STOP = 42COMMENT
LOWc7n/handler.py21logging.getLogger('urllib3').setLevel(logging.WARNING)COMMENT
LOWc7n/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
38 more matches not shown…
Fake / Example Data50 hits · 48 pts
SeverityFileLineSnippetContext
LOWtools/c7n_azure/tests_azure/test_azure_utils.py194 source = 'Lorem ipsum dolor sit amet'CODE
LOWtools/c7n_azure/tests_azure/test_azure_utils.py194 source = 'Lorem ipsum dolor sit amet'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py224 def _setup_mock_session(self, token='fake-token'):CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py913 self.assertEqual(headers['Authorization'], 'Bearer fake-token-123')CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py926 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py1096 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py166 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py562 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py622 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py655 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py694 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py786 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py825 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py862 mock_token.token = 'fake-token-123'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py954 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py1011 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py1067 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py1143 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/azure_common.py55 "displayName": "John Doe",CODE
LOWtools/c7n_azure/tests_azure/azure_common.py190 if os.environ.get(constants.ENV_ACCESS_TOKEN) == "fake_token":CODE
LOW…tests_azure/cassettes/KeyVaultTest.test_whitelist.json356 "displayName": "John Doe",CODE
LOW…settes/ApiManagementTest.test_certificates_filter.json41 "publisherEmail": "admin@example.com",CODE
LOWtools/c7n_azure/tests_azure/templates/alert-logs.json15 "defaultValue": "test@test.com"CODE
LOWtools/c7n_oci/tests/oci_common.py51 return re.sub(r'"[^"]+@oracle\.com"', '"user@example.com"', data)CODE
LOW…tests/terraform/identity_compartment/tf_resources.json9 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOW…7n_oci/tests/terraform/identity_user/tf_resources.json45 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/ip_auth/tf_resources.json22 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/zone/tf_resources.json9 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/zone/tf_resources.json28 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOW…n_oci/tests/terraform/identity_group/tf_resources.json9 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/vcn/tf_resources.json18 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/compute/tf_resources.json17 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/compute/tf_resources.json66 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/compute/tf_resources.json83 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/compute/tf_resources.json164 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/compute/tf_resources.json184 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/compute/tf_resources.json223 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOW…n_oci/tests/terraform/object_storage/tf_resources.json22 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/subnet/tf_resources.json17 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/subnet/tf_resources.json43 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/subnet/tf_resources.json63 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/subnet/tf_resources.json104 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_mailer/tests/test_utils.py379 ["test@test.com"],CODE
LOWtools/c7n_mailer/tests/test_email.py65 self.assertTrue(is_email("foo@bar.com"))CODE
LOW…used_keypair/ec2.DescribeLaunchTemplateVersions_1.json32 "KeyName": "dummy-key-pair",CODE
LOW…used_keypair/ec2.DescribeLaunchTemplateVersions_1.json86 "KeyName": "dummy-key-pair-01",CODE
LOW…used_keypair/ec2.DescribeLaunchTemplateVersions_1.json140 "KeyName": "dummy-key-pair-02",CODE
LOW…nch_template/ec2.DescribeLaunchTemplateVersions_1.json32 "KeyName": "dummy-key-pair",CODE
LOW…/test_subscription_delete/sns.ListSubscriptions_1.json9 "Endpoint": "test@test.com",CODE
LOW…/test_subscription_unused/sns.ListSubscriptions_1.json9 "Endpoint": "test@test.com",CODE
AI Slop Vocabulary22 hits · 41 pts
SeverityFileLineSnippetContext
LOWtools/c7n_guardian/c7n_guardian/cli.py222 # No role, just use current sessionCOMMENT
MEDIUMtools/c7n_salactus/c7n_salactus/cli.py615 # unleash the monkies ;-)COMMENT
MEDIUM…/tests_resources/test_entraid_user_process_resource.py11 """Test _process_resource methods in EntraID User actions with comprehensive coverage."""STRING
MEDIUM…/c7n_azure/tests_azure/tests_resources/test_entraid.py3387 # Mock comprehensive response with mixed location typesCOMMENT
MEDIUM…/c7n_azure/tests_azure/tests_resources/test_entraid.py3503 # Define comprehensive policyCOMMENT
MEDIUM…/c7n_azure/tests_azure/tests_resources/test_entraid.py4604 """Test comprehensive named location policies combining multiple filters"""STRING
MEDIUM…ests_azure/tests_resources/test_resolver_functional.py314 """Test that multiple filters using same blob leverage caching"""STRING
MEDIUMtools/c7n_gcp/c7n_gcp/output.py110 # utilize.COMMENT
MEDIUM…ols/c7n_left/c7n_left/providers/terraform/variables.py94 # things with default values to facilitate attribute interpolation.COMMENT
LOWtools/c7n_mailer/tests/test_ldap.py100 # for that result, we should query the cache and just return {}COMMENT
LOWtools/c7n_mailer/c7n_mailer/splunk_delivery.py180 return True # if no exception, just returnCODE
LOW…ols/c7n_tencentcloud/c7n_tencentcloud/resources/clb.py185 # for OPEN CLB, just use internet ip as keyCOMMENT
LOWc7n/deprecated.py124 # otherwise we just use the replacement as is.COMMENT
LOWc7n/policy.py583 # For cli usage by normal users, don't assume the role just useCOMMENT
MEDIUMc7n/mu.py1013 """for AWS Event Sources that want to utilize lazy client initialization.STRING
LOWc7n/filters/core.py318# Once 3.10 is no longer supported, just use enum.memberCOMMENT
MEDIUMc7n/filters/core.py455 """Fallback for older unit tests that don't utilize a query manager"""STRING
MEDIUMc7n/filters/core.py505 """Fallback for older unit tests that don't utilize a query manager"""STRING
MEDIUMc7n/resources/dynamodb.py678 """Override in order to disable the augment for serverless policies.STRING
MEDIUMc7n/resources/waf.py208 # Essentially a copy of DescribeSource.augment with the addition of Scope and Name parametersCOMMENT
MEDIUMc7n/resources/aws.py871 # We only utilize these regions if they are explicitly passed in on the cli.COMMENT
MEDIUMc7n/resources/ecr.py394 # see this for a more comprehensive listCOMMENT
Decorative Section Separators20 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMtools/sandbox/c7n_autodoc/example_config_file.yml4 # ---------------COMMENT
MEDIUMtools/sandbox/c7n_autodoc/example_config_file.yml6 # ---------------COMMENT
MEDIUMtools/sandbox/c7n_autodoc/example_config_file.yml23 # ---------------COMMENT
MEDIUMtools/sandbox/c7n_autodoc/example_config_file.yml25 # ---------------COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py52# ==========================COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py54# ==========================COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py75# ==========================COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py77# ==========================COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py88# ==========================COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py90# ==========================COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py542# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py544# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py285# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py287# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py397# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py399# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py426# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py428# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py477# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py479# ==========================STRING
Redundant / Tautological Comments19 hits · 29 pts
SeverityFileLineSnippetContext
LOWtools/c7n_azure/c7n_azure/query.py309 # Check if we're out of a policies execution limits.COMMENT
LOW…zure/c7n_azure/resources/entraid_conditional_access.py139 # Check if policy applies to admin roles and requires MFACOMMENT
LOW…zure/c7n_azure/resources/entraid_conditional_access.py147 # Check if admin roles are included and MFA is requiredCOMMENT
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py632 # Check if user has MFA methods configured using v1.0 APICOMMENT
LOWtools/c7n_azure/c7n_azure/resources/entraid_group.py213 # Check if user is a guestCOMMENT
LOWtools/c7n_azure/c7n_azure/resources/entraid_group.py217 # Check if user is external (from different domain)COMMENT
LOWtools/c7n_org/c7n_org/cli.py615 # Check if string contains variable placeholdersCOMMENT
LOWtools/c7n_org/c7n_org/cli.py865 # Check if deprecations should fail in strict modeCOMMENT
LOW…/tests/terraform/vertexai_batch_prediction_job/main.tf45# Output values for use in testsCOMMENT
LOW…tch_prediction_job/model_artifact/create_test_model.py166 # Check if docker is availableCOMMENT
LOW…/c7n_gcp/tests/scripts/cleanup_vertex_ai_batch_jobs.py123 # Check if display name matches our test patternCOMMENT
LOWtools/c7n_gcp/c7n_gcp/resources/vertexai.py396 # Check if URI is a GCS pathCOMMENT
LOWc7n/query.py553 # Check if we're out of a policies execution limits.COMMENT
LOWc7n/cwe.py113 # Check if we have a short cut / aliasCOMMENT
LOWc7n/filters/iamaccess.py221 # Check if it's a wildcard or already whitelisted accountCOMMENT
LOWc7n/filters/iamrole.py225 # Check if all non-None role values are in the allowed listCOMMENT
LOWc7n/resources/vpc.py648 # Check if list contains 'amazon' synthetic valueCOMMENT
LOWc7n/resources/elasticache.py243 # Check if any available upgrades match this resource's engineCOMMENT
LOWc7n/resources/kafka.py193 # Check if it's a major version upgradeCOMMENT
Structural Annotation Overuse16 hits · 26 pts
SeverityFileLineSnippetContext
LOW…azure/tests_azure/tests_resources/test_subscription.py120 # Step 1: Add a tagCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py145 # Step 2: Remove the tagCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py175 # Step 1: Add multiple test tagsCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py202 # Step 2: Trim tags with space=0, preserving only cctest_preserveCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py218 # Step 3: Verify tags were trimmedCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py271 # Step 1: Mark the subscription for action (using default 4 days)COMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py295 # Step 2: Filter for marked subscriptionsCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py921 # Step 1: Stop the running jobCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py946 # Step 2: Wait for the stop action to take effect and verify cancellationCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py995 # Step 3: Delete the cancelled jobCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py1024 # Step 4: Verify the job no longer existsCOMMENT
LOW…erraform/vertexai_batch_prediction_job/vertex_batch.md89### Step 1: Create the Model Storage BucketCOMMENT
LOW…erraform/vertexai_batch_prediction_job/vertex_batch.md105### Step 2: Create and Upload the Test ModelCOMMENT
LOW…erraform/vertexai_batch_prediction_job/vertex_batch.md191### Step 3: Set Environment Variables (Optional)COMMENT
LOW…erraform/vertexai_batch_prediction_job/vertex_batch.md209### Step 4: Generate Test Data if neededCOMMENT
LOW…erraform/vertexai_batch_prediction_job/vertex_batch.md232### Step 5: Run the Functional TestCOMMENT
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHtools/c7n_azure/c7n_azure/resolver.py15Resolve an azure:// URI to blob content. Args: uri: Azure blob URI in format azure://account.blob.core.windSTRING
HIGHtools/c7n_gcp/tests/test_vertexai.py20Get full model resource name for testing. Uses the model ID from environment variable and constructs the full rSTRING
HIGHtools/c7n_gcp/tests/test_vertexai.py61Poll a policy until resources reach expected state(s). Args: policy: Cloud Custodian policy to run STRING
HIGHtools/c7n_gcp/c7n_gcp/client.py442Executes query (ex. list) via a dedicated http object. Args: verb (str): Method to execute on the cSTRING
HIGHtools/c7n_gcp/c7n_gcp/resources/vertexai.py382Validate that a schema URI points to a valid YAML file. Args: schema_uri: GCS URI to schema file (eSTRING
Overly Generic Function Names22 hits · 22 pts
SeverityFileLineSnippetContext
LOWtools/c7n_oci/c7n_oci/resources/object_storage.py94 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/object_storage.py129 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/dns.py83 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/dns.py117 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py79 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py115 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py202 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py235 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py320 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py353 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py77 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py112 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py198 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py231 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py316 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py349 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py69 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py112 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py149 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py185 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py235 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/actions/base.py58 def perform_action(self, resource):CODE
AI Structural Patterns21 hits · 21 pts
SeverityFileLineSnippetContext
LOWtools/c7n_kube/c7n_kube/server.py95CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py457CODE
LOWtools/c7n_azure/c7n_azure/query.py130CODE
LOWtools/c7n_azure/c7n_azure/utils.py376CODE
LOWtools/c7n_azure/c7n_azure/filters.py979CODE
LOWtools/c7n_azure/tests_azure/azure_common.py261CODE
LOWtools/sandbox/zerodark/zerodark/floweni.py400CODE
LOWtools/c7n_oci/tests/test_output.py292CODE
LOWtools/c7n_oci/tests/test_output.py312CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py155CODE
LOWtools/c7n_gcp/c7n_gcp/client.py283CODE
LOWtools/c7n_gcp/c7n_gcp/resources/dns.py155CODE
LOWtools/c7n_gcp/c7n_gcp/resources/spanner.py183CODE
LOWtools/c7n_gcp/c7n_gcp/resources/compute.py853CODE
LOWtools/c7n_left/c7n_left/cli.py211CODE
LOWtools/dev/data_updatearnref.py128CODE
LOWc7n/resolver.py86CODE
LOWc7n/output.py489CODE
LOWc7n/filters/offhours.py494CODE
LOWc7n/resources/elasticsearch.py937CODE
LOWc7n/resources/kinesis.py150CODE
Verbosity Indicators12 hits · 20 pts
SeverityFileLineSnippetContext
LOW…azure/tests_azure/tests_resources/test_subscription.py120 # Step 1: Add a tagCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py145 # Step 2: Remove the tagCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py175 # Step 1: Add multiple test tagsCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py202 # Step 2: Trim tags with space=0, preserving only cctest_preserveCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py218 # Step 3: Verify tags were trimmedCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py271 # Step 1: Mark the subscription for action (using default 4 days)COMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py295 # Step 2: Filter for marked subscriptionsCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py921 # Step 1: Stop the running jobCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py946 # Step 2: Wait for the stop action to take effect and verify cancellationCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py995 # Step 3: Delete the cancelled jobCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py1024 # Step 4: Verify the job no longer existsCOMMENT
LOW…ols/c7n_tencentcloud/c7n_tencentcloud/resources/cam.py298 # we need to check if it satisfies the former filterCOMMENT
Slop Phrases2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMc7n/cwe.py9 # **These are just shortcuts**, you can use the policy definition toCOMMENT
MEDIUM…lient_certificate_filter/apigateway.GetRestApis_1.json9 "description": "This is my API for demonstration purposes",CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtools/c7n_sentry/c7n_sentry/c7nsentry.py421CODE
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/c7n_mailer/c7n_mailer/replay.py31logger = logging.getLogger(__name__)CODE
LOWc7n/reports/__init__.py5__all__ = [report]CODE