Repository Analysis

basecamp/once-campfire

Super simple group chat, without a subscription

4.3 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of basecamp/once-campfire, a Ruby project with 4,552 GitHub stars. SynthScan v2.0 examined 18,298 lines of code across 376 source files, recording 58 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 4.3 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.3
Adjusted Score
4.3
Raw Score
100%
Time Factor
2026-08-28
Last Push
4.6K
Stars
Ruby
Language
18.3K
Lines of Code
376
Files
58
Pattern Hits
2026-08-29
Scan Date
0.00
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 1HIGH 0MEDIUM 4LOW 53

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 58 distinct pattern matches across 5 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 Identifiers34 hits · 36 pts
SeverityFileLineSnippetContext
LOWapp/models/webhook.rb72 def receive_attachment_reply_to(room, attachment:)CODE
LOWapp/models/webhook.rb76 def without_recipient_mentions(body)CODE
LOWapp/models/room/message_pusher.rb40 def push_to_users_involved_in_everything(payload)CODE
LOWapp/models/room/message_pusher.rb44 def push_to_users_involved_in_mentions(payload)CODE
LOWapp/models/room/message_pusher.rb52 def push_subscriptions_for_mentionable_users(mentionees)CODE
LOWapp/models/room/message_pusher.rb62 def enqueue_payload_for_delivery(payload, subscriptions)CODE
LOWapp/models/user/mentionable.rb12 def attachable_plain_text_representation(caption)CODE
LOWapp/models/opengraph/metadata/fetching.rb30 def fetch_non_fxtwitter_document(untrusted_url)CODE
LOWapp/models/opengraph/metadata/fetching.rb53 def replace_twitter_domain_for_opengraph_support(url)CODE
LOWapp/javascript/lib/autocomplete/helpers.js28export function transitionElementWithClass(element, className, callback) {CODE
LOWapp/javascript/lib/autocomplete/helpers.js86export function getAbsolutePositionForOffsets({ top, right, bottom, left }) {CODE
LOWapp/controllers/users/sidebars_controller.rb13 def extract_direct_memberships(all_memberships)CODE
LOWapp/controllers/concerns/authentication.rb14 def allow_unauthenticated_access(**options)CODE
LOWapp/controllers/concerns/authentication.rb22 def require_unauthenticated_access(**options)CODE
LOWapp/controllers/concerns/authentication.rb86 def set_authentication_cookie(session)CODE
LOWapp/helpers/messages_helper.rb86 def message_attachment_presentation(message)CODE
LOWapp/helpers/messages_helper.rb90 def message_sound_presentation(message)CODE
LOWapp/helpers/users_helper.rb2 def button_to_direct_room_with(user)CODE
LOWapp/helpers/clipboard_helper.rb2 def button_to_copy_to_clipboard(url, &)CODE
LOWapp/helpers/messages/attachment_presentation.rb48 def inline_media_dimension_constraints(width, height, &)CODE
LOWapp/helpers/rooms/involvements_helper.rb2 def turbo_frame_for_involvement_tag(room, &)CODE
LOWapp/helpers/rooms/involvements_helper.rb8 def button_to_change_involvement(room, involvement)CODE
LOWtest/models/room/push_test.rb67 def wait_for_web_push_delivery_pool_tasks(count)CODE
LOWtest/models/room/push_test.rb71 def wait_for_invalidation_pool_tasks(count)CODE
LOWtest/models/message/attachment_test.rb24 def create_attachment_message(file, content_type)CODE
LOWtest/controllers/messages_controller_test.rb158 def ensure_messages_not_present(*messages)CODE
LOWtest/controllers/accounts/logos_controller_test.rb49 def assert_valid_png_response(size:)CODE
LOWtest/test_helpers/turbo_test_helper.rb2 def assert_rendered_turbo_stream_broadcast(*streambles, action:, target:, &block)CODE
LOWtest/helpers/content_filters_test.rb143 def unfurled_message_body_for_basecamp(text)CODE
LOWtest/helpers/content_filters_test.rb153 def unfurled_message_body_for_twitter(text)CODE
LOWtest/channels/unread_rooms_channel_test.rb36 def capture_unread_broadcasts_for(user)CODE
LOWlib/rails_ext/actiontext_opengraph_embeds.rb33 def attachable_plain_text_representation(caption)CODE
LOWlib/rails_ext/action_text_attachables.rb13 def attachable_from_possibly_expired_sgid(sgid)CODE
LOWlib/web_push/pool.rb44 def invalidate_subscription_later(id)CODE
Over-Commented Block13 hits · 13 pts
SeverityFileLineSnippetContext
LOWapp/channels/room_messages_channel.rb1# Authorizes the room message stream when the subscription is made, so that revoking aCOMMENT
LOWconfig/storage.yml1test:COMMENT
LOWconfig/storage.yml21# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>COMMENT
LOWconfig/locales/en.yml1# Files in the config/locales directory are used for internationalizationCOMMENT
LOWconfig/locales/en.yml21#COMMENT
LOWconfig/environments/test.rb1require "active_support/core_ext/integer/time"COMMENT
LOWconfig/initializers/web_push.rb21 # Pin the connection to the public IP resolved (and guarded) byCOMMENT
LOWconfig/initializers/permissions_policy.rb1# Define an application-wide HTTP permissions policy. For furtherCOMMENT
LOWconfig/initializers/content_security_policy.rb1# Be sure to restart your server when you modify this file.COMMENT
LOWconfig/initializers/content_security_policy.rb21# config.content_security_policy_nonce_directives = %w(script-src)COMMENT
LOWconfig/initializers/inflections.rb1# Be sure to restart your server when you modify this file.COMMENT
LOWlib/restricted_http/private_network_guard.rb1require "surfguard"COMMENT
LOWdb/schema.rb1# This file is auto-generated from the current state of the database. InsteadCOMMENT
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMconfig/initializers/permissions_policy.rb1# Define an application-wide HTTP permissions policy. For furtherCOMMENT
MEDIUMconfig/initializers/content_security_policy.rb3# Define an application-wide content security policy.COMMENT
MEDIUMdb/schema.rb1# This file is auto-generated from the current state of the database. InsteadCOMMENT
MEDIUMdb/schema.rb5# This file is the source Rails uses to define your schema when running `bin/railsCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALapp/javascript/controllers/refresh_room_controller.js52 this.channel.consumer.connection.monitor.visibilityDidChange()CODE
Fake / Example Data6 hits · 8 pts
SeverityFileLineSnippetContext
LOWtest/models/first_run_test.rb27 FirstRun.create!({ name: "User", email_address: "user@example.com", password: "secret123456" })CODE
LOWtest/models/user_test.rb35 User.create!(name: "User", email_address: "user@example.com", password: "secret123456")CODE
LOWtest/models/user/role_test.rb5 assert User.create!(name: "User", email_address: "user@example.com", password: "secret123456").member?CODE
LOWtest/controllers/users/profiles_controller_test.rb15 put user_profile_url, params: { user: { name: "John Doe", bio: "Acrobat" } }CODE
LOWtest/controllers/users/profiles_controller_test.rb18 assert_equal "John Doe", users(:david).reload.nameCODE
LOWtest/controllers/users/profiles_controller_test.rb24 put user_profile_url(users(:jason)), params: { user: { name: "John Doe" } }CODE