AI Slop Code Risk Monitor

ubicloud/ubicloud

SlopCodeMonitor badge for ubicloud/ubicloud Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Open source alternative to AWS. Elastic compute, block storage (non replicated), firewall and load balancer, managed Postgres, K8s, AI inference, and IAM services.

2.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for ubicloud/ubicloud, a Ruby project with 12,370 GitHub stars. SynthScan examined 270,077 lines of code across 2362 source files, recording 544 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 2.7 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

2.7
Adjusted Signal
2.7
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
12.4K
Stars
Ruby
Language
270.1K
Lines of Code
2.4K
Files
544
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 9.0/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 429 finding(s).

Hallucinated Dependency & Supply Chain Risk 4.1/100 · LOW

Are imports declared and package/API names verified? 112 finding(s).

Agent Over-Engineering Ratio 2.6/100 · LOW

Are wrappers, guards, and repeated structures necessary? 134 finding(s).

PR Review Velocity Impact 12.7/100 · LOW

Which changes need focused human review? 544 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 12HIGH 1MEDIUM 37LOW 494

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 544 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block249 hits · 249 pts
SeverityFileLineSnippetContext
LOW.herb.yml1# This file configures Herb for your project and team.COMMENT
LOW.herb.yml21# # Options: erubi | erb | herb (default: erubi)COMMENT
LOW.herb.yml41linter:COMMENT
LOW.herb.yml101 html-no-empty-attributes:COMMENT
LOW.herb.yml121 # include:COMMENT
LOW.herb.yml141 # include:COMMENT
LOWubid.rb1# frozen_string_literal: trueCOMMENT
LOWrhizome/host/lib/csum_guard_setup.rb1# frozen_string_literal: trueCOMMENT
LOWrhizome/common/lib/command.rb1# frozen_string_literal: trueCOMMENT
LOWrhizome/postgres/lib/otel_log_config.rb1# frozen_string_literal: trueCOMMENT
LOWrhizome/postgres/lib/otel_log_config.rb21# journald/auth receiver ships hostCOMMENT
LOWscheduling/allocator.rb541 # used otherwise.COMMENT
LOWscheduling/dispatcher.rb21 superCOMMENT
LOWscheduling/dispatcher.rb61 # The queue size is 4 times the size of the thread pool by default, as that shouldCOMMENT
LOWscheduling/dispatcher.rb101 # The delay experienced for strands for this partition. Stays at 0 forCOMMENT
LOWscheduling/dispatcher.rb141 # default in shutdown as pushing to the queue can block.COMMENT
LOWscheduling/dispatcher.rb161 data[:strand_thread].joinCOMMENT
LOWscheduling/dispatcher.rb181 # * The connection needs to be checked out for the entire transactionCOMMENT
LOWscheduling/dispatcher.rb281COMMENT
LOWscheduling/dispatcher.rb301 # values.COMMENT
LOWscheduling/dispatcher.rb341 respirate_metrics[:current_strand_delay] = @current_strand_delay = array[(array.count * 0.95r).floor] || 0COMMENT
LOWscheduling/dispatcher.rb361 # that's pretty busy, set a minimum sleep time of 0.25 seconds.COMMENT
LOWscheduling/dispatcher.rb381 # On strand run finish:COMMENT
LOWscheduling/dispatcher.rb421COMMENT
LOWspec/spec_helper.rb1# frozen_string_literal: trueCOMMENT
LOWspec/spec_helper.rb101 # and actual values. Very useful when debugging a case where theCOMMENT
LOWspec/spec_helper.rb121 mocks.verify_partial_doubles = trueCOMMENT
LOWspec/spec_helper.rb141 config.filter_run_when_matching :focusCOMMENT
LOWspec/spec_helper.rb161 # Use the documentation formatter for detailed output,COMMENT
LOWspec/prog/vnet/metal/update_firewall_rules_spec.rb181 # If we are using clover_ephemeral, that means we are using ipsec. We needCOMMENT
LOWspec/prog/vnet/metal/update_firewall_rules_spec.rb361COMMENT
LOWspec/prog/vnet/metal/update_firewall_rules_spec.rb521 # to allow traffic for the private communication and block via firewallCOMMENT
LOWspec/model/private_subnet_spec.rb521COMMENT
LOWspec/model/private_subnet_spec.rb541 # ORDER BY or the cycle exclusion would fail here instead of passing byCOMMENT
LOWspec/model/firewall_concurrency_spec.rb1# frozen_string_literal: trueCOMMENT
LOWprog/base.rb341 # If a reaper argument is given, it is called with each child afterCOMMENT
LOWprog/setup_hugepages.rb1# frozen_string_literal: trueCOMMENT
LOWprog/learn_network.rb21 # both address and prefix information together as `ip` does, it'sCOMMENT
LOWprog/rollout_semaphore.rb21 # simplecov:disableCOMMENT
LOWprog/vnet/metal/update_firewall_rules.rb121 # Destination port 111 is reserved for the portmapper. We block it toCOMMENT
LOWprog/vnet/metal/update_firewall_rules.rb201 [summ_ipv4.join(", "), summ_ipv6.join(", ")]COMMENT
LOWprog/vnet/metal/update_firewall_rules.rb221 # 1. 10.10.10.8/29 (This is simply used from the first rule because the firstCOMMENT
LOWprog/vnet/gcp/update_firewall_rules.rb21 #COMMENT
LOWprog/vnet/gcp/update_firewall_rules.rb41 endCOMMENT
LOWprog/vnet/gcp/vpc_update_firewall_rules.rb1# frozen_string_literal: trueCOMMENT
LOWprog/postgres/postgres_server_nexus.rb801 #COMMENT
LOWprog/postgres/audit_resource_collation.rb1# frozen_string_literal: trueCOMMENT
LOWprog/postgres/audit_resource_collation.rb101 FROM other o JOIN risky r ON r.oid=o.collCOMMENT
LOWserializers/base.rb1# frozen_string_literal: trueCOMMENT
LOWmigrate/20260930_fix_gcp_vm_memory.rb1# frozen_string_literal: trueCOMMENT
LOWmigrate/20230425_ssh_generation.rb1# frozen_string_literal: trueCOMMENT
LOWmigrate/20230415_add_vm_allocation_counters.rb1# frozen_string_literal: trueCOMMENT
LOWmigrate/20260723_fix_invalid_location_ubids.rb1# frozen_string_literal: trueCOMMENT
LOWsdk/ruby/lib/ubicloud/model.rb1# frozen_string_literal: trueCOMMENT
LOWsdk/ruby/lib/ubicloud/context.rb1# frozen_string_literal: trueCOMMENT
LOW.github/actions/aws-cleanup-e2e/cleanup.rb1#!/usr/bin/env rubyCOMMENT
LOW.github/actions/aws-cleanup-e2e/cleanup.rb21# own tag establishes; untagged ENIs and instances inside such a VPC areCOMMENT
LOW.github/actions/aws-cleanup-e2e/cleanup.rb41# DRY_RUN=1 report what would be deleted, delete nothingCOMMENT
LOW.github/actions/aws-cleanup-e2e/cleanup.rb121 # listing that never drains from spinning forever.COMMENT
LOW.github/actions/gcp-cleanup-e2e/cleanup.rb1#!/usr/bin/env rubyCOMMENT
189 more matches not shown…
Hyper-Verbose Identifiers131 hits · 131 pts
SeverityFileLineSnippetContext
LOWrhizome/host/lib/storage_volume.rb120 def vhost_backend_create_config(encryption_key, key_wrapping_secrets)CODE
LOWrhizome/host/lib/storage_volume.rb140 def vhost_backend_create_metadata(key_wrapping_secrets)CODE
LOWrhizome/host/lib/storage_volume.rb152 def vhost_backend_create_encrypted_metadata(key_wrapping_secrets)CODE
LOWrhizome/host/lib/storage_volume.rb526 def store_spdk_data_encryption_key(data_encryption_key, key_wrapping_secrets)CODE
LOWrhizome/host/lib/spdk_rpc.rb63 def vhost_create_blk_controller(name, bdev)CODE
LOWrhizome/postgres/lib/otel_log_config.rb339 def syslog_transform_statements(dest)CODE
LOWrhizome/postgres/lib/hugepages_setup.rb51 def update_postgres_hugepages_conf(shared_buffers_kib)CODE
LOWrhizome/postgres/lib/io_throttle.rb133 def calculate_archival_throttle(backlog_count)CODE
LOWrhizome/postgres/lib/postgres_setup.rb32 def configure_memory_overcommit(strict: false, hugepage_percent: 25)CODE
LOWrhizome/inference_endpoint/lib/replica_setup.rb27 def write_inference_gateway_service(s)CODE
LOWrhizome/inference_endpoint/lib/replica_setup.rb35 def write_inference_engine_service(s)CODE
LOWrhizome/inference_endpoint/lib/replica_setup.rb47 def write_lb_cert_download_service(s)CODE
LOWrhizome/inference_endpoint/lib/replica_setup.rb51 def write_lb_cert_download_timer(s)CODE
LOWscheduling/allocator.rb771 def pci_iommu_groups_for_partition(id)CODE
LOWscheduling/allocator.rb882 def allocate_storage_volume_associations(vm, vm_host)CODE
LOWscheduling/dispatcher.rb214 def setup_prepared_statements(strand_id_range:)CODE
LOWspec/spec_helper.rb347 def create_vhost_block_backend(version: "v0.4.1", **)CODE
LOWspec/spec_helper.rb369 def create_machine_image_version_metal(project_id: nil, machine_image_id: nil, machine_image_store_id: nil, name: "tCODE
LOWspec/prog/postgres/spec_helper.rb7 def create_read_replica_resource(parent:)CODE
LOWspec/serializers/postgres_spec.rb28 def create_representative_server(primary: true)CODE
LOWspec/model/postgres/postgres_timeline_spec.rb422 def expected_lifecycle_config(days)CODE
LOWspec/model/postgres/postgres_resource_spec.rb668 def create_server_with_boot_image(boot_image_version:, is_representative: false, created_offset: 0)CODE
LOWspec/model/postgres/postgres_resource_spec.rb1032 def create_representative_server(strand_label:)CODE
LOWspec/model/postgres/postgres_resource_spec.rb1331 def create_server_with_strand(label:)CODE
LOWspec/lib/authorization_spec.rb74 def add_single_ace_with_nested_tags(policies, project_id: projects[0].id)CODE
LOWspec/lib/invoice_generator_spec.rb39 def check_invoice_for_single_vm(invoices, project, vm, duration, begin_time, expected_vat_info: nil)CODE
LOWspec/lib/metrics_target_resource_spec.rb45 def create_victoria_metrics_setup(project)CODE
LOWspec/routes/web/admin/model/spec_helper.rb358 def create_machine_image_store(project: nil)CODE
LOWspec/routes/api/spec_helper.rb11 def project_with_default_policy(account, name: "project-1")CODE
LOWprog/base.rb471 def hop_wait_and_wakeup_waiting_strand(semaphore: nil)CODE
LOWprog/learn_storage.rb34 def find_underlying_unix_device_ids(unix_device)CODE
LOWprog/learn_storage.rb39 def find_underlying_unix_device_names(unix_device)CODE
LOWprog/download_boot_image.rb24 def latest_boot_image_version(image_name)CODE
LOWprog/test/postgres_base.rb103 def cloudwatch_cutover_failure(server)CODE
LOWprog/test/postgres_base.rb161 def verify_timelines_destroyed(timeline_ids)CODE
LOWprog/vnet/update_load_balancer_node.rb135 def generate_lb_ip_set_definition(neighbor_vm_ports)CODE
LOWprog/vnet/metal/update_firewall_rules.rb281 def consolidate_rules_by_protocol(rules)CODE
LOWprog/vnet/metal/update_firewall_rules.rb286 def combine_continuous_ranges_for_same_subnet(rules)CODE
LOWprog/vnet/gcp/update_firewall_rules.rb89 def firewall_tag_namespaced_name(firewall)CODE
LOWprog/vnet/gcp/vpc_update_firewall_rules.rb453 def build_tag_based_policy_rules(rules, tag_value_name:)CODE
LOWprog/github/github_runner_nexus.rb144 def installation_private_subnet(location_id)CODE
LOWprog/ai/inference_router_replica_nexus.rb90 def write_inference_router_service(asset_name, workdir)CODE
LOWsdk/ruby/lib/ubicloud/model/postgres.rb79 def add_bearer_metric_destination(url:, token:, headers: {})CODE
LOWsdk/ruby/lib/ubicloud/model/postgres.rb97 def add_syslog_log_destination(name:, host:, port: 6514, structured_data: {})CODE
LOWsdk/ruby/lib/ubicloud/model/postgres.rb113 def delete_metric_destination(md_id)CODE
LOWsdk/ruby/lib/ubicloud/model/postgres.rb246 def create_client_cert_keypair(common_name:, duration:)CODE
LOW.github/actions/aws-cleanup-e2e/cleanup.rb427 def deletable_security_groups(*filters)CODE
LOWmodel/account.rb34 def create_project_with_default_policy(name, reputation: "new", default_policy: true)CODE
LOWmodel/project.rb170 def insert_project_discount_code(discount)CODE
LOWmodel/private_subnet.rb162 def incr_destroy_if_only_used_internally(ubid:, vm_ids:)CODE
LOWmodel/billing_info.rb44 def start_validate_vat_strand_if_needed(tax_id: stripe_data["tax_id"], country: self.country)CODE
LOWmodel/vm_host.rb260 def download_cloud_hypervisor(version_x64: nil, version_arm64: nil, sha256_ch_bin_x64: nil, sha256_ch_bin_arm64: nil, CODE
LOWmodel/vm_host.rb393 def check_storage_kernel_logs(ssh_session, devices)CODE
LOWmodel/api_key.rb53 def restrict_token_for_project(project_id)CODE
LOWmodel/api_key.rb57 def unrestrict_token_for_project(project_id)CODE
LOWmodel/api_key.rb71 def unrestricted_project_access_dataset(project_id)CODE
LOWmodel/vm.rb46 def unattached_to_load_balancer(project)CODE
LOWmodel/vm.rb274 def fire_firewall_rules_update_for_vm_firewall(_firewall)CODE
LOWmodel/firewall.rb56 def associate_with_private_subnet(private_subnet, apply_firewalls: true)CODE
LOWmodel/firewall.rb65 def disassociate_from_private_subnet(private_subnet, apply_firewalls: true)CODE
71 more matches not shown…
Hallucination Indicators12 hits · 120 pts
SeverityFileLineSnippetContext
CRITICALspec/prog/test/upgrade_postgres_resource_spec.rb332 pgr_test.postgres_resource.servers.first.strand.update(label: "failed")CODE
CRITICAL…ctoria_metrics/victoria_metrics_resource_nexus_spec.rb68 nx.victoria_metrics_resource.servers.first.strand.update(label: "wait")CODE
CRITICALspec/prog/kubernetes/kubernetes_cluster_nexus_spec.rb776 kubernetes_cluster.nodepools.first.nodes.last.update(state: "draining")CODE
CRITICALspec/routes/web/auth_spec.rb186 verify_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/verify-account.+?)"/)[1]CODE
CRITICALspec/routes/web/auth_spec.rb236 verify_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/verify-account.+?)"/)[1]CODE
CRITICALspec/routes/web/auth_spec.rb274 page.driver.browser.rack_mock_session.cookie_jar.delete("_Clover.session")CODE
CRITICALspec/routes/web/auth_spec.rb292 reset_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/reset-password.+?)"/)[1]CODE
CRITICALspec/routes/web/auth_spec.rb401 page.driver.browser.rack_mock_session.cookie_jar.delete("_Clover.session")CODE
CRITICALspec/routes/web/auth_spec.rb1048 verify_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/verify-account.+?)"/)[1]CODE
CRITICALspec/routes/web/auth_spec.rb1090 reset_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/reset-password.+?)"/)[1]CODE
CRITICALspec/routes/web/auth_spec.rb1768 verify_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/verify-login-change.+?)"/)[1]CODE
CRITICALspec/routes/web/auth_spec.rb1804 verify_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/verify-login-change.+?)"/)[1]CODE
Fake / Example Data100 hits · 105 pts
SeverityFileLineSnippetContext
LOWspec/ruby_sdk_spec.rb135 account = Account.create(email: "user@example.com", status_id: 2)CODE
LOWspec/prog/check_usage_alerts_spec.rb44 let(:user_id) { Account.create(email: "user@example.com").id }CODE
LOWspec/prog/check_usage_alerts_spec.rb87 user_id = Account.create(email: "user@example.com").idCODE
LOWspec/prog/check_usage_alerts_spec.rb105 user_id = Account.create(email: "user@example.com").idCODE
LOWspec/prog/check_usage_alerts_spec.rb117 user_id = Account.create(email: "user@example.com").idCODE
LOWspec/prog/check_usage_alerts_spec.rb132 user_id = Account.create(email: "user@example.com").idCODE
LOWspec/serializers/account_spec.rb6 let(:account) { Account.create(email: "user@example.com") }CODE
LOWspec/model/usage_alert_spec.rb11 alert = described_class.create(project_id: Project.create(name: "project1").id, user_id: Account.create(email: "userCODE
LOWspec/model/page_spec.rb93 expect(Config).to receive(:pagerduty_key).and_return("dummy-key").at_least(:once)CODE
LOWspec/model/page_spec.rb128 expect(Config).to receive(:incidentio_key).and_return("dummy-key").at_least(:once)CODE
LOWspec/model/page_spec.rb143 "Authorization" => "Bearer dummy-key",CODE
LOWspec/model/page_spec.rb163 "Authorization" => "Bearer dummy-key",CODE
LOWspec/model/page_spec.rb180 "Authorization" => "Bearer dummy-key",CODE
LOW⚡spec/model/billing_info_spec.rb17 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "John Doe", "address" =>CODE
LOW⚡spec/model/billing_info_spec.rb17 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "John Doe", "address" =>CODE
LOW⚡spec/model/billing_info_spec.rb18 expect(billing_info.stripe_data["name"]).to eq("John Doe")CODE
LOW⚡spec/model/billing_info_spec.rb19 expect(billing_info.stripe_data["address"]).to eq("123 Main St")CODE
LOWspec/model/minio/minio_server_spec.rb104 minio_client: Minio::Client.new(endpoint: "https://1.2.3.4:9000", access_key: "dummy-key", secret_key: "dummy-secrCODE
LOWspec/model/minio/minio_server_spec.rb127 minio_client: Minio::Client.new(endpoint: "https://1.2.3.4:9000", access_key: "dummy-key", secret_key: "dummy-secrCODE
LOWspec/model/postgres/postgres_resource_spec.rb1730 Account.create(email: "user@example.com").add_project(project)CODE
LOWspec/model/postgres/postgres_resource_spec.rb1769 Account.create(email: "user@example.com").add_project(project)CODE
LOWspec/model/postgres/postgres_resource_spec.rb1800 account = Account.create(email: "user@example.com")CODE
LOWspec/model/postgres/postgres_resource_spec.rb1819 ["user@example.com"],CODE
LOWspec/model/postgres/postgres_resource_spec.rb1831 account = Account.create(email: "user@example.com")CODE
LOWspec/model/postgres/postgres_resource_spec.rb1844 ["user@example.com"],CODE
LOWspec/model/postgres/postgres_resource_spec.rb1870 ["user@example.com"],CODE
LOWspec/model/postgres/postgres_resource_spec.rb1929 account = Account.create(email: "user@example.com")CODE
LOWspec/model/postgres/postgres_resource_spec.rb1964 ["user@example.com"],CODE
LOWspec/lib/validation_spec.rb316 "John Doe",CODE
LOW⚡spec/lib/invoice_generator_spec.rb201 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOW⚡spec/lib/invoice_generator_spec.rb210 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOW⚡spec/lib/invoice_generator_spec.rb219 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOW⚡spec/lib/invoice_generator_spec.rb228 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOW⚡spec/lib/invoice_generator_spec.rb237 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOW⚡spec/lib/invoice_generator_spec.rb247 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOW⚡spec/lib/invoice_generator_spec.rb257 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOW⚡spec/lib/invoice_generator_spec.rb266 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOW⚡spec/lib/invoice_generator_spec.rb284 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOW⚡spec/lib/invoice_generator_spec.rb293 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOW⚡spec/lib/invoice_generator_spec.rb302 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/invoice_generator_spec.rb316 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/invoice_generator_spec.rb326 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/invoice_generator_spec.rb338 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOW⚡spec/lib/util_spec.rb51 described_class.send_email("user@example.com", "Hello", greeting: "Hi", body: "Welcome")CODE
LOW⚡spec/lib/util_spec.rb57 described_class.send_email("user@example.com", "Hello", greeting: "Hi", body: "Welcome", author_name: "The UbiclouCODE
LOW⚡spec/lib/util_spec.rb63 described_class.send_email("user@example.com", "Hello", greeting: "Hi", body: "Welcome", reply_to: "support@ubicloCODE
LOW⚡spec/lib/util_spec.rb69 described_class.send_email("user@example.com", "Hello", greeting: "Hi", body: "Welcome")CODE
LOWspec/lib/log_dna_batcher_spec.rb5 let(:log_dna_batcher) { described_class.new("dummy-key") }CODE
LOWspec/lib/log_dna_batcher_spec.rb56 log_dna_batcher = described_class.new("dummy-key")CODE
LOWspec/lib/log_dna_batcher_spec.rb68 let(:log_dna_batcher) { described_class.new("dummy-key", base_url: "https://localhost/logdna/ingest", flush_intervalCODE
LOWspec/lib/log_dna_batcher_spec.rb185 log_dna_batcher = described_class.new("dummy-key", base_url: "https://localhost/logdna/ingest?param=test")CODE
LOWspec/routes/spec_helper.rb9TEST_USER_EMAIL = "user@example.com"CODE
LOWspec/routes/web/oidc_auth_spec.rb96 def generate_id_token(nonce:, iss: "http://www.example.com", aud: "client_id_test", sub: "oidc_sub_123", email: "user@CODE
LOWspec/routes/web/oidc_auth_spec.rb120 def stub_userinfo_endpoint(body: {"sub" => "oidc_sub_123", "email" => "user@example.com"})CODE
LOWspec/routes/web/oidc_auth_spec.rb140 expect(account.email).to eq("user@example.com")CODE
LOWspec/routes/web/oidc_auth_spec.rb157 expect(account.email).to eq("user@example.com")CODE
LOWspec/routes/web/oidc_auth_spec.rb233 stub_userinfo_endpoint(body: {"sub" => "oidc_sub_123", "email" => "user@example.com", "groups" => %w[foo bar].freeCODE
LOWspec/routes/web/oidc_auth_spec.rb279 stub_userinfo_endpoint(body: {"sub" => "oidc_sub_123", "email" => "user@example.com", "myapp:groups" => %w[foo].CODE
LOWspec/routes/web/auth_spec.rb7 def mock_provider(provider, email = TEST_USER_EMAIL, name: "John Doe", mock_config: true)CODE
LOWspec/routes/web/auth_spec.rb47 fill_in "Full Name", with: "John Doe"CODE
40 more matches not shown…
Self-Referential Comments31 hits · 93 pts
SeverityFileLineSnippetContext
MEDIUMrhizome/common/lib/util.rb119 # Create the temp at its final mode so content is never written through theCOMMENT
MEDIUMrhizome/postgres/lib/postgres_extensions.rb3# This file is used to define the upgrade scripts for extensions.COMMENT
MEDIUMscheduling/allocator.rb542 # This class handles two distinct cases - one when a dedicated sliceCOMMENT
MEDIUMscheduling/dispatcher.rb124 # This method is called implicitly with the appropriate partition whenCOMMENT
MEDIUMscheduling/dispatcher.rb228 # Create a separate prepared statement for older strands, not tied toCOMMENT
MEDIUMspec/scheduling/allocator_spec.rb1560 # Create a real nic to generate params_json so we can check the slice_nameCOMMENT
MEDIUMspec/scheduling/allocator_spec.rb1688 # Create a second hostCOMMENT
MEDIUMspec/scheduling/allocator_spec.rb1796 # Create a standard VM in a sliceCOMMENT
MEDIUMspec/scheduling/allocator_spec.rb1818 # Create a burstable VM in a sliceCOMMENT
MEDIUMspec/scheduling/allocator_spec.rb1841 # Create a second burstable VM in a slice. It should go to the same sliceCOMMENT
MEDIUMspec/prog/vnet/nic_nexus_spec.rb239 # Create a NIC that occupies an IPCOMMENT
MEDIUMspec/prog/github/github_runner_nexus_spec.rb444 # Create a recordCOMMENT
MEDIUMspec/model/postgres/postgres_resource_spec.rb577 # Create a server that doesn't need recycling (matches target_vm_size, target_storage_size_gib, target_version)COMMENT
MEDIUMspec/model/postgres/postgres_resource_spec.rb819 # Create a server that doesn't need recycling and has strand.label == "wait"COMMENT
MEDIUMspec/routes/web/admin/admin_spec.rb2365 # Create a new quotaCOMMENT
MEDIUMprog/vnet/metal/update_firewall_rules.rb204 # This method is needed to properly consolidate port_ranges + cidrs.COMMENT
MEDIUMsdk/ruby/lib/ubicloud.rb39 # Create a new Ubicloud::Context for the given adapter typeCOMMENT
MEDIUMsdk/ruby/lib/ubicloud/model.rb22 # Create a new model object in Ubicloud with the given location, name, and params.COMMENT
MEDIUMsdk/ruby/lib/ubicloud/model.rb42 # Create a new model instance, which should represent an object that already existsCOMMENT
MEDIUMsdk/ruby/lib/ubicloud/adapter/rack.rb20 # Create a new rack request enviroment hash for the internalCOMMENT
MEDIUMsdk/ruby/lib/ubicloud/model/machine_image.rb22 # Create a new version of this machine image by capturing a stopped VM.COMMENT
MEDIUMsdk/ruby/lib/ubicloud/model/machine_image_version.rb9 # Create a new instance from a hash returned by the Ubicloud API.COMMENT
MEDIUMsdk/ruby/lib/ubicloud/model/inference_api_key.rb15 # Create a new inference api keyCOMMENT
MEDIUMsdk/ruby/lib/ubicloud/model/inference_api_key.rb20 # Create a new InferenceApiKey instance. +values+ can be:COMMENT
MEDIUMsdk/ruby/lib/ubicloud/model/github_repository.rb13 # Create a new GithubRepository instance. +values+ must be a hash withCOMMENT
MEDIUMsdk/ruby/lib/ubicloud/model/postgres.rb156 # Create a read replica of this database, with the given name.COMMENT
MEDIUMsdk/ruby/lib/ubicloud/model/postgres.rb244 # Create a client certificate keypair with the given common name, expiring after duration seconds.COMMENT
MEDIUMsdk/ruby/lib/ubicloud/model/github_cache_entry.rb13 # Create a new GithubCacheEntry instance. +values+ must be a hash withCOMMENT
MEDIUMsdk/ruby/lib/ubicloud/model/github_installation.rb15 # Create a new GithubInstallation instance. +values+ can be:COMMENT
MEDIUMsdk/ruby/lib/ubicloud/model/ssh_public_key.rb16 # Create a new SSH public key with the given parameters.COMMENT
MEDIUMsdk/ruby/lib/ubicloud/model/ssh_public_key.rb21 # Create a new SSHPublicKey instance. +values+ can be:COMMENT
Redundant / Tautological Comments11 hits · 16 pts
SeverityFileLineSnippetContext
LOWrhizome/host/lib/spdk_rpc.rb175 # Check if we can return a specific subclass.COMMENT
LOWrhizome/postgres/lib/postgres_setup.rb26 # Check if the packages exist in the cache, if so, install them.COMMENT
LOWspec/prog/test/ha_postgres_resource_spec.rb263 # Set servers to "wait" stateCOMMENT
LOWspec/model/postgres/postgres_resource_spec.rb597 # Set target_version to trigger upgrade path (version < target_version)COMMENT
LOWspec/routes/web/admin/admin_spec.rb2381 # Set quota to zeroCOMMENT
LOWprog/page_nexus.rb43 # Check if the new page is related to an existing recent active page that did not suppressCOMMENT
LOWprog/test/upgrade_postgres_resource.rb185 # Check if all servers have been upgradedCOMMENT
LOWprog/postgres/postgres_server_nexus.rb1056 # Check if log file was modified recently and last 50 lines contain recovery messages.COMMENT
LOWmodel/postgres/postgres_timeline.rb91 # Check if we have cached earliest backup time, if not, calculate it.COMMENT
LOWlib/hosting/hetzner_apis.rb132 # Check if it is IPv6 or not by the existence of colon in the IP addressCOMMENT
LOWroutes/project/discount_code.rb13 # Check if the discount code existsCOMMENT
Decorative Section Separators3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMrhizome/postgres/lib/postgres_lockout.rb16# ================================================================COMMENT
MEDIUMrhizome/postgres/lib/pg_bouncer_setup.rb86# ============================COMMENT
MEDIUM.github/actions/gcp-cleanup-e2e/cleanup.rb241# ---------------------------------------------------------------------COMMENT
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMspec/spec_helper.rb134 # with RSpec, but feel free to customize to your heart's content.COMMENT
LOWmodel/project.rb194 # Don't forget to clean up billing info and payment methods.COMMENT
MEDIUMlib/validation.rb147 fail ValidationFailed.new({boot_image: "\"#{image_name}\" is not a valid boot image name. Available boot image namCODE
AI Slop Vocabulary3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM.herb.yml5# - Linter: Validates templates and enforces best practicesCOMMENT
LOWrhizome/host/lib/storage_volume.rb402 # key, and auth_data is key name, so just pass the base64-encodedCOMMENT
LOWspec/routes/web/kubernetes_cluster_spec.rb32 # These are just set for passing the creation validationsCOMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHmodel/postgres/postgres_resource.rb729 "Auto-scaling for your PostgreSQL database '#{name}' (#{ubid}) has been canceled as requested.",CODE