Repository Analysis

ubicloud/ubicloud

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

3.1 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of ubicloud/ubicloud, a Ruby project with 12,149 GitHub stars. SynthScan v2.0 examined 213,469 lines of code across 2038 source files, recording 470 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 3.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).

3.1
Adjusted Score
3.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
12.1K
Stars
Ruby
Language
213.5K
Lines of Code
2.0K
Files
470
Pattern Hits
2026-07-14
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

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 11HIGH 1MEDIUM 38LOW 420

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 470 distinct pattern matches across 10 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.

Over-Commented Block213 hits · 213 pts
SeverityFileLineSnippetContext
LOWubid.rb1# frozen_string_literal: trueCOMMENT
LOWrhizome/host/lib/vm_setup.rb541#{runner_config}COMMENT
LOWrhizome/postgres/lib/otel_log_config.rb1# frozen_string_literal: trueCOMMENT
LOWrhizome/postgres/lib/otel_log_config.rb21# severity_number OTel native severity level (set via severity_parser)COMMENT
LOWscheduling/allocator.rb461COMMENT
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.rb81 endCOMMENT
LOWspec/spec_helper.rb101 endCOMMENT
LOWspec/spec_helper.rb121 # The settings below are suggested to provide a good initial experienceCOMMENT
LOWspec/spec_helper.rb141 # This setting enables warnings. It's recommended, but in some cases mayCOMMENT
LOWspec/spec_helper.rb161 # Run specs in random order to surface order dependencies. If you find anCOMMENT
LOWspec/prog/vnet/metal/update_firewall_rules_spec.rb361 # established,related,new traffic because this is outgoing traffic.COMMENT
LOWspec/prog/vnet/metal/update_firewall_rules_spec.rb521COMMENT
LOWspec/model/private_subnet_spec.rb501 # Ordering is by raw uuid bytes, which is not controllable through theCOMMENT
LOWspec/model/firewall_concurrency_spec.rb1# frozen_string_literal: trueCOMMENT
LOWprog/base.rb261 # If a reaper argument is given, it is called with each child afterCOMMENT
LOWprog/learn_network.rb1# frozen_string_literal: trueCOMMENT
LOWprog/rollout_semaphore.rb21 unless incorrect_semaphores.empty?COMMENT
LOWprog/vnet/metal/update_firewall_rules.rb141 # If we are using clover_ephemeral, that means we are using ipsec. We needCOMMENT
LOWprog/vnet/metal/update_firewall_rules.rb201 endCOMMENT
LOWprog/vnet/metal/update_firewall_rules.rb221 # 2. 5432-8080COMMENT
LOWprog/vnet/metal/subnet_nexus.rb161COMMENT
LOWprog/vnet/gcp/update_firewall_rules.rb21 #COMMENT
LOWprog/vnet/gcp/update_firewall_rules.rb41 endCOMMENT
LOWprog/vnet/gcp/subnet_nexus.rb21 # 10000+ Per-firewall INGRESS: tag-targeted rules managed by VpcUpdateFirewallRules.COMMENT
LOWprog/vnet/gcp/subnet_nexus.rb201 label def finish_destroyCOMMENT
LOWprog/vnet/gcp/vpc_update_firewall_rules.rb21COMMENT
LOWprog/postgres/postgres_server_nexus.rb781 endCOMMENT
LOWprog/kubernetes/kubernetes_cluster_nexus.rb361 coredns_configmap = YAML.load(kubernetes_cluster.client.kubectl("-n kube-system get cm coredns -oyaml"))COMMENT
LOWserializers/base.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
LOWsdk/ruby/lib/ubicloud/model.rb1# frozen_string_literal: trueCOMMENT
LOWsdk/ruby/lib/ubicloud/context.rb1# frozen_string_literal: trueCOMMENT
LOW.github/actions/gcp-cleanup-e2e/cleanup.rb1#!/usr/bin/env rubyCOMMENT
LOW.github/actions/gcp-cleanup-e2e/cleanup.rb21# cleanup died leaks its names forever, since later runs grep onlyCOMMENT
LOWmodel/pg_gce_image.rb1# frozen_string_literal: trueCOMMENT
LOWmodel/archived_record.rb41# Table: archived_recordCOMMENT
LOWmodel/invoice.rb361# content | jsonb | NOT NULLCOMMENT
LOWmodel/victoria_metrics_resource.rb41 {cidr: "::/0", port_range: Sequel.pg_range(8427..8427)},COMMENT
LOWmodel/victoria_metrics_resource.rb61# project_id | uuid | NOT NULLCOMMENT
LOWmodel/host_provider.rb21# server_identifier | text |COMMENT
LOWmodel/account.rb81# name | text |COMMENT
LOWmodel/account.rb101# account_login_failures | account_login_failures_id_fkey | (id) REFERENCES accounts(id)COMMENT
LOWmodel/project.rb281# billable | boolean | NOT NULL DEFAULT trueCOMMENT
LOWmodel/project.rb301# gcp_vpc | gcp_vpc_project_id_fkey | (project_id) REFERENCES project(id)COMMENT
LOWmodel/project.rb321# victoria_metrics_resource | victoria_metrics_resource_project_id_fkey | (project_id) REFERENCES project(id)COMMENT
LOWmodel/private_subnet.rb101 # provider contributes only the addresses it actually reserves instead ofCOMMENT
153 more matches not shown…
Hallucination Indicators11 hits · 110 pts
SeverityFileLineSnippetContext
CRITICALspec/prog/test/upgrade_postgres_resource_spec.rb330 pgr_test.postgres_resource.servers.first.strand.update(label: "failed")CODE
CRITICALspec/prog/kubernetes/kubernetes_cluster_nexus_spec.rb725 kubernetes_cluster.nodepools.first.nodes.last.update(state: "draining")CODE
CRITICALspec/routes/web/auth_spec.rb139 verify_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/verify-account.+?)"/)[1]CODE
CRITICALspec/routes/web/auth_spec.rb189 verify_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/verify-account.+?)"/)[1]CODE
CRITICALspec/routes/web/auth_spec.rb227 page.driver.browser.rack_mock_session.cookie_jar.delete("_Clover.session")CODE
CRITICALspec/routes/web/auth_spec.rb245 reset_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/reset-password.+?)"/)[1]CODE
CRITICALspec/routes/web/auth_spec.rb351 page.driver.browser.rack_mock_session.cookie_jar.delete("_Clover.session")CODE
CRITICALspec/routes/web/auth_spec.rb983 verify_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/verify-account.+?)"/)[1]CODE
CRITICALspec/routes/web/auth_spec.rb1025 reset_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/reset-password.+?)"/)[1]CODE
CRITICALspec/routes/web/auth_spec.rb1587 verify_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/verify-login-change.+?)"/)[1]CODE
CRITICALspec/routes/web/auth_spec.rb1623 verify_link = Mail::TestMailer.deliveries.first.html_part.body.match(/(\/verify-login-change.+?)"/)[1]CODE
Hyper-Verbose Identifiers109 hits · 109 pts
SeverityFileLineSnippetContext
LOWrhizome/host/spec/storage_key_tool_spec.rb29 def register_ro_storage_key_encryption(kek, key_file, cipher, key, key2)CODE
LOWrhizome/host/spec/storage_key_tool_spec.rb39 def register_wo_storage_key_encryption(kek, key_file, cipher, key, key2)CODE
LOWrhizome/host/lib/storage_volume.rb132 def vhost_backend_create_config(encryption_key, key_wrapping_secrets)CODE
LOWrhizome/host/lib/storage_volume.rb150 def vhost_backend_create_metadata(key_wrapping_secrets)CODE
LOWrhizome/host/lib/storage_volume.rb162 def vhost_backend_create_encrypted_metadata(key_wrapping_secrets)CODE
LOWrhizome/host/lib/storage_volume.rb543 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.rb259 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.rb110 def calculate_archival_throttle(backlog_count)CODE
LOWrhizome/postgres/lib/postgres_setup.rb26 def configure_memory_overcommit(strict: false)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.rb673 def pci_iommu_groups_for_partition(id)CODE
LOWscheduling/allocator.rb755 def allocate_storage_volume_associations(vm, vm_host)CODE
LOWscheduling/dispatcher.rb214 def setup_prepared_statements(strand_id_range:)CODE
LOWspec/spec_helper.rb284 def create_vhost_block_backend(version: "v0.4.1", **)CODE
LOWspec/spec_helper.rb306 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.rb372 def expected_lifecycle_config(days)CODE
LOWspec/model/postgres/postgres_resource_spec.rb431 def create_server_with_boot_image(boot_image_version:, is_representative: false, created_offset: 0)CODE
LOWspec/model/postgres/postgres_resource_spec.rb733 def create_representative_server(strand_label:)CODE
LOWspec/model/postgres/postgres_resource_spec.rb1009 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.rb31 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.rb338 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/learn_storage.rb33 def find_underlying_unix_device_ids(unix_device)CODE
LOWprog/learn_storage.rb38 def find_underlying_unix_device_names(unix_device)CODE
LOWprog/download_boot_image.rb24 def latest_boot_image_version(image_name)CODE
LOWprog/test/hetzner_server.rb111 def verify_specs_installation(installed: true)CODE
LOWprog/test/postgres_base.rb121 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.rb285 def consolidate_rules_by_protocol(rules)CODE
LOWprog/vnet/metal/update_firewall_rules.rb290 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.rb348 def build_tag_based_policy_rules(rules, tag_value_name:)CODE
LOWprog/postgres/postgres_server_aws_nic_migration.rb333 def authorize_mgmt_ssh_ingress(sg_id, cidr)CODE
LOWprog/ai/inference_router_replica_nexus.rb90 def write_inference_router_service(asset_name, workdir)CODE
LOWsdk/ruby/lib/ubicloud/model/postgres.rb86 def add_syslog_log_destination(name:, host:, port: 6514, structured_data: {})CODE
LOWsdk/ruby/lib/ubicloud/model/postgres.rb102 def delete_metric_destination(md_id)CODE
LOWsdk/ruby/lib/ubicloud/model/postgres.rb228 def create_client_cert_keypair(common_name:, duration:)CODE
LOWmodel/account.rb34 def create_project_with_default_policy(name, reputation: "new", default_policy: true)CODE
LOWmodel/project.rb113 def insert_project_discount_code(discount)CODE
LOWmodel/private_subnet.rb136 def incr_destroy_if_only_used_internally(ubid:, vm_ids:)CODE
LOWmodel/vm_host.rb241 def download_cloud_hypervisor(version_x64: nil, version_arm64: nil, sha256_ch_bin_x64: nil, sha256_ch_bin_arm64: nil, CODE
LOWmodel/vm_host.rb362 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.rb44 def unattached_to_load_balancer(project)CODE
LOWmodel/vm.rb241 def fire_firewall_rules_update_for_vm_firewall(_firewall)CODE
LOWmodel/firewall.rb54 def associate_with_private_subnet(private_subnet, apply_firewalls: true)CODE
LOWmodel/firewall.rb63 def disassociate_from_private_subnet(private_subnet, apply_firewalls: true)CODE
LOWmodel/metal/private_subnet.rb98 def metal_validate_firewall_attachment(firewall)CODE
LOWmodel/metal/vm.rb230 def metal_validate_firewall_cap(firewall)CODE
49 more matches not shown…
Self-Referential Comments33 hits · 99 pts
SeverityFileLineSnippetContext
MEDIUMrhizome/postgres/lib/postgres_extensions.rb3# This file is used to define the upgrade scripts for extensions.COMMENT
MEDIUMscheduling/allocator.rb465 # 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.rb1286 # Create a real nic to generate params_json so we can check the slice_nameCOMMENT
MEDIUMspec/scheduling/allocator_spec.rb1414 # Create a second hostCOMMENT
MEDIUMspec/scheduling/allocator_spec.rb1522 # Create a standard VM in a sliceCOMMENT
MEDIUMspec/scheduling/allocator_spec.rb1544 # Create a burstable VM in a sliceCOMMENT
MEDIUMspec/scheduling/allocator_spec.rb1567 # Create a second burstable VM in a slice. It should go to the same sliceCOMMENT
MEDIUMspec/prog/vnet/nic_nexus_spec.rb194 # Create a NIC that occupies an IPCOMMENT
MEDIUMspec/prog/postgres/postgres_server_nexus_spec.rb722 # Create an AWS timeline to trigger the cloudwatch pathCOMMENT
MEDIUMspec/prog/postgres/postgres_server_nexus_spec.rb828 # Create a metric destination to trigger the map blockCOMMENT
MEDIUMspec/prog/github/github_runner_nexus_spec.rb275 # Create a recordCOMMENT
MEDIUMspec/model/postgres/postgres_resource_spec.rb388 # 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.rb589 # Create a server that doesn't need recycling and has strand.label == "wait"COMMENT
MEDIUMspec/routes/web/admin/admin_spec.rb1676 # Create a new quotaCOMMENT
MEDIUMprog/vnet/metal/update_firewall_rules.rb208 # This method is needed to properly consolidate port_ranges + cidrs.COMMENT
MEDIUMprog/vm/aws/nexus.rb116 # Create the custom userCOMMENT
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.rb145 # Create a read replica of this database, with the given name.COMMENT
MEDIUMsdk/ruby/lib/ubicloud/model/postgres.rb226 # 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
Fake / Example Data83 hits · 86 pts
SeverityFileLineSnippetContext
LOWspec/ruby_sdk_spec.rb135 account = Account.create(email: "user@example.com", status_id: 2)CODE
LOWspec/prog/check_usage_alerts_spec.rb13 user_id = Account.create(email: "user@example.com").idCODE
LOWspec/prog/check_usage_alerts_spec.rb38 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.rb69 expect(Config).to receive(:pagerduty_key).and_return("dummy-key").at_least(:once)CODE
LOWspec/model/page_spec.rb104 expect(Config).to receive(:incidentio_key).and_return("dummy-key").at_least(:once)CODE
LOWspec/model/page_spec.rb121 "Authorization" => "Bearer dummy-key",CODE
LOWspec/model/page_spec.rb143 "Authorization" => "Bearer dummy-key",CODE
LOWspec/model/page_spec.rb162 "Authorization" => "Bearer dummy-key",CODE
LOWspec/model/billing_info_spec.rb17 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "John Doe", "address" =>CODE
LOWspec/model/billing_info_spec.rb17 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "John Doe", "address" =>CODE
LOWspec/model/billing_info_spec.rb18 expect(billing_info.stripe_data["name"]).to eq("John Doe")CODE
LOWspec/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.rb1401 Account.create(email: "user@example.com").add_project(project)CODE
LOWspec/model/postgres/postgres_resource_spec.rb1440 Account.create(email: "user@example.com").add_project(project)CODE
LOWspec/model/postgres/postgres_resource_spec.rb1471 account = Account.create(email: "user@example.com")CODE
LOWspec/model/postgres/postgres_resource_spec.rb1490 ["user@example.com"],CODE
LOWspec/model/postgres/postgres_resource_spec.rb1550 account = Account.create(email: "user@example.com")CODE
LOWspec/model/postgres/postgres_resource_spec.rb1585 ["user@example.com"],CODE
LOWspec/lib/validation_spec.rb316 "John Doe",CODE
LOWspec/lib/invoice_generator_spec.rb192 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/invoice_generator_spec.rb201 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/invoice_generator_spec.rb210 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/invoice_generator_spec.rb219 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/invoice_generator_spec.rb228 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/invoice_generator_spec.rb238 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/invoice_generator_spec.rb248 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/invoice_generator_spec.rb257 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/invoice_generator_spec.rb275 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/invoice_generator_spec.rb284 expect(customers_service).to receive(:retrieve).with("cs_1234567890").and_return({"name" => "ACME Inc.", "metadataCODE
LOWspec/lib/util_spec.rb51 described_class.send_email("user@example.com", "Hello", greeting: "Hi", body: "Welcome")CODE
LOWspec/lib/util_spec.rb57 described_class.send_email("user@example.com", "Hello", greeting: "Hi", body: "Welcome", author_name: "The UbiclouCODE
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.rb89 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.rb113 def stub_userinfo_endpoint(body: {"sub" => "oidc_sub_123", "email" => "user@example.com"})CODE
LOWspec/routes/web/oidc_auth_spec.rb133 expect(account.email).to eq("user@example.com")CODE
LOWspec/routes/web/oidc_auth_spec.rb150 expect(account.email).to eq("user@example.com")CODE
LOWspec/routes/web/oidc_auth_spec.rb188 stub_userinfo_endpoint(body: {"sub" => "oidc_sub_123", "email" => "user@example.com", "groups" => %w[foo bar]})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.rb42 fill_in "Full Name", with: "John Doe"CODE
LOWspec/routes/web/auth_spec.rb90 fill_in "Full Name", with: "John Doe"CODE
LOWspec/routes/web/auth_spec.rb130 fill_in "Full Name", with: "John Doe"CODE
LOWspec/routes/web/auth_spec.rb180 fill_in "Full Name", with: "John Doe"CODE
LOWspec/routes/web/auth_spec.rb477 "verify_login_change" => ip_hash("new_login" => "new@example.com", "previous_login" => "user@example.com"),CODE
LOWspec/routes/web/auth_spec.rb946 info: {email: "user@example.com"})CODE
LOWspec/routes/web/auth_spec.rb950 expect(account.email).to eq "user@example.com"CODE
LOWspec/routes/web/auth_spec.rb974 fill_in "Full Name", with: "John Doe"CODE
LOWspec/routes/web/auth_spec.rb1003 fill_in "Full Name", with: "John Doe"CODE
LOWspec/routes/web/auth_spec.rb1114 info: {email: "user@example.com"})CODE
LOWspec/routes/web/auth_spec.rb1118 expect(account.email).to eq "user@example.com"CODE
LOWspec/routes/web/auth_spec.rb1151 info: {email: "user@example.com"})CODE
LOWspec/routes/web/auth_spec.rb1248 create_account("user@example.com")CODE
LOWspec/routes/web/auth_spec.rb1336 info: {email: "user@example.com"})CODE
23 more matches not shown…
Redundant / Tautological Comments12 hits · 18 pts
SeverityFileLineSnippetContext
LOWrhizome/host/lib/spdk_rpc.rb175 # Check if we can return a specific subclass.COMMENT
LOWrhizome/postgres/lib/postgres_setup.rb20 # Check if the packages exist in the cache, if so, install them.COMMENT
LOWbin/generate_instance_availability.rb134 # Check if instance storage is supportedCOMMENT
LOWspec/prog/test/ha_postgres_resource_spec.rb257 # Set servers to "wait" stateCOMMENT
LOWspec/model/postgres/postgres_resource_spec.rb408 # Set target_version to trigger upgrade path (version < target_version)COMMENT
LOWspec/routes/web/admin/admin_spec.rb1692 # Set quota to zeroCOMMENT
LOWprog/page_nexus.rb40 # Check if the new page is related to an existing recent active page that did not suppress triggers.COMMENT
LOWprog/test/upgrade_postgres_resource.rb185 # Check if all servers have been upgradedCOMMENT
LOWprog/postgres/postgres_server_nexus.rb965 # Check if log file was modified recently and last 50 lines contain recovery messages.COMMENT
LOWmodel/postgres/postgres_timeline.rb77 # Check if we have cached earliest backup time, if not, calculate it.COMMENT
LOWlib/hosting/hetzner_apis.rb107 # 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.rb84# ============================COMMENT
MEDIUM.github/actions/gcp-cleanup-e2e/cleanup.rb241# ---------------------------------------------------------------------COMMENT
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMspec/spec_helper.rb122 # with RSpec, but feel free to customize to your heart's content.COMMENT
LOWmodel/project.rb137 # Don't forget to clean up billing info and payment methods.COMMENT
MEDIUMlib/validation.rb134 fail ValidationFailed.new({boot_image: "\"#{image_name}\" is not a valid boot image name. Available boot image namCODE
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHmodel/postgres/postgres_resource.rb591 "Auto-scaling for your PostgreSQL database '#{name}' (#{ubid}) has been canceled as requested.",CODE
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippetContext
LOWrhizome/host/lib/storage_volume.rb422 # 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