Repository Analysis

carrierwaveuploader/carrierwave

Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks

6.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of carrierwaveuploader/carrierwave, a Ruby project with 8,779 GitHub stars. SynthScan v2.0 examined 20,804 lines of code across 101 source files, recording 123 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 6.5 places this repository in the Low AI signal band.

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

6.5
Adjusted Score
6.5
Raw Score
100%
Time Factor
2026-08-29
Last Push
8.8K
Stars
Ruby
Language
20.8K
Lines of Code
101
Files
123
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 0HIGH 0MEDIUM 4LOW 119

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 123 distinct pattern matches across 8 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 Block102 hits · 102 pts
SeverityFileLineSnippetContext
LOWlib/carrierwave/mount.rb1module CarrierWaveCOMMENT
LOWlib/carrierwave/mount.rb21 @uploaders ||= superclass.respond_to?(:uploaders) ? superclass.uploaders.dup : {}COMMENT
LOWlib/carrierwave/mount.rb41 if uploader_options[column].has_key?(option)COMMENT
LOWlib/carrierwave/mount.rb61 #COMMENT
LOWlib/carrierwave/mount.rb81 #COMMENT
LOWlib/carrierwave/mount.rb101 #COMMENT
LOWlib/carrierwave/mount.rb121 # mount_uploader :csvCOMMENT
LOWlib/carrierwave/mount.rb181 def #{column}_processing_errorCOMMENT
LOWlib/carrierwave/mount.rb201 #COMMENT
LOWlib/carrierwave/mount.rb221 # [images_cache] Returns a string that identifies the cache location of the filesCOMMENT
LOWlib/carrierwave/mount.rb241 #COMMENT
LOWlib/carrierwave/mount.rb261 # endCOMMENT
LOWlib/carrierwave/sanitized_file.rb81 # Returns the full path to the file. If the file has no path, it will return nil.COMMENT
LOWlib/carrierwave/sanitized_file.rb181 # Helper to move file to new path.COMMENT
LOWlib/carrierwave/sanitized_file.rb261 #COMMENT
LOWlib/carrierwave/uploader.rb21COMMENT
LOWlib/carrierwave/compatibility/paperclip.rb1module CarrierWaveCOMMENT
LOWlib/carrierwave/compatibility/paperclip.rb21 #COMMENT
LOWlib/carrierwave/uploader/dimension.rb21 # def width_rangeCOMMENT
LOWlib/carrierwave/uploader/processing.rb21 # an array of arguments to call the method with. Also accepts an :if or :unless conditionCOMMENT
LOWlib/carrierwave/uploader/processing.rb41 # def vignetteCOMMENT
LOWlib/carrierwave/uploader/mountable.rb1module CarrierWaveCOMMENT
LOWlib/carrierwave/uploader/mountable.rb21 #COMMENT
LOWlib/carrierwave/uploader/versions.rb41 # Regardless of what is set in the parent uploader, do not enforce theCOMMENT
LOWlib/carrierwave/uploader/versions.rb121 # [name (#to_sym)] name of the versionCOMMENT
LOWlib/carrierwave/uploader/versions.rb181 endCOMMENT
LOWlib/carrierwave/uploader/versions.rb241 # When given a version name as a parameter, will return the url for that versionCOMMENT
LOWlib/carrierwave/uploader/extension_denylist.rb21 #COMMENT
LOWlib/carrierwave/uploader/content_type_denylist.rb1module CarrierWaveCOMMENT
LOWlib/carrierwave/uploader/extension_allowlist.rb1module CarrierWaveCOMMENT
LOWlib/carrierwave/uploader/extension_allowlist.rb21 #COMMENT
LOWlib/carrierwave/uploader/cache.rb61 #COMMENT
LOWlib/carrierwave/uploader/cache.rb101 # === ReturnsCOMMENT
LOWlib/carrierwave/uploader/cache.rb161 endCOMMENT
LOWlib/carrierwave/uploader/cache.rb181 endCOMMENT
LOWlib/carrierwave/uploader/proxy.rb41 ##COMMENT
LOWlib/carrierwave/uploader/proxy.rb61 def temporary_identifierCOMMENT
LOWlib/carrierwave/uploader/proxy.rb81 # [Integer] size of the fileCOMMENT
LOWlib/carrierwave/uploader/configuration.rb61 # Can be any class that implements a #store!(CarrierWave::SanitizedFile) and a #retrieve!COMMENT
LOWlib/carrierwave/uploader/configuration.rb101 # Same as .storage except for required methods being #cache!(CarrierWave::SanitizedFile),COMMENT
LOWlib/carrierwave/uploader/content_type_allowlist.rb1module CarrierWaveCOMMENT
LOWlib/carrierwave/uploader/store.rb41 # loaded correctly.COMMENT
LOWlib/carrierwave/uploader/store.rb61COMMENT
LOWlib/carrierwave/processing/vips.rb1module CarrierWaveCOMMENT
LOWlib/carrierwave/processing/vips.rb21 # process :resize_to_fit => [200, 200]COMMENT
LOWlib/carrierwave/processing/vips.rb41 # endCOMMENT
LOWlib/carrierwave/processing/vips.rb81COMMENT
LOWlib/carrierwave/processing/vips.rb101 #COMMENT
LOWlib/carrierwave/processing/vips.rb121 # [height (Integer)] the height to scale the image toCOMMENT
LOWlib/carrierwave/processing/vips.rb141 #COMMENT
LOWlib/carrierwave/processing/vips.rb161 ##COMMENT
LOWlib/carrierwave/processing/vips.rb181 endCOMMENT
LOWlib/carrierwave/processing/vips.rb201 #COMMENT
LOWlib/carrierwave/processing/vips.rb241COMMENT
LOWlib/carrierwave/processing/vips.rb261 vips_image.heightCOMMENT
LOWlib/carrierwave/processing/rmagick.rb1module CarrierWaveCOMMENT
LOWlib/carrierwave/processing/rmagick.rb21 # process :resize_to_fit => [200, 200]COMMENT
LOWlib/carrierwave/processing/rmagick.rb41 #COMMENT
LOWlib/carrierwave/processing/rmagick.rb121 #COMMENT
LOWlib/carrierwave/processing/rmagick.rb161COMMENT
42 more matches not shown…
Hyper-Verbose Identifiers8 hits · 8 pts
SeverityFileLineSnippetContext
LOWspec/spec_helper.rb82 def change_locale_and_store_translations(locale, translations, &block)CODE
LOWspec/spec_helper.rb97 def change_and_enforce_available_locales(locale, available_locales, &block)CODE
LOWlib/carrierwave/sanitized_file.rb328 def first_declared_content_type(content_type)CODE
LOWlib/carrierwave/compatibility/paperclip.rb98 def interpolate_paperclip_path(path)CODE
LOWlib/carrierwave/uploader/store.rb150 def show_warning_when_filename_is_unavailable(_)CODE
LOWlib/carrierwave/test/matchers.rb98 def have_directory_permissions(expected)CODE
LOWlib/carrierwave/processing/rmagick.rb102 def resize_to_geometry_string(geometry_string)CODE
LOWlib/carrierwave/processing/rmagick.rb256 def resize_to_geometry_string(geometry_string)CODE
Fake / Example Data5 hits · 8 pts
SeverityFileLineSnippetContext
LOWspec/spec_helper.rb53 def stub_tempfile(filename, mime_type=nil, fake_name=nil)CODE
LOWspec/spec_helper.rb58 allow(tempfile).to receive_messages(:original_filename => fake_name || filename,CODE
LOWspec/spec_helper.rb65 def stub_stringio(filename, mime_type=nil, fake_name=nil)CODE
LOWspec/spec_helper.rb69 :original_filename => filename || fake_name,CODE
LOWspec/spec_helper.rb74 def stub_file(filename, mime_type=nil, fake_name=nil)CODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMlib/carrierwave/compatibility/paperclip.rb20 # This file contains code taken from PaperclipCOMMENT
MEDIUMlib/carrierwave/uploader/versions.rb30 # Define the enable_processing method for versions so they get theCOMMENT
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMlib/carrierwave/sanitized_file.rb12 # It's probably needlessly comprehensive and complex. Help is appreciated.COMMENT
LOWlib/carrierwave/uploader/configuration.rb66 # If no argument is given, it will simply return the currently used storage engine.COMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMlib/carrierwave/uploader.rb33 # Once you have an uploader you can use it in isolation:COMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWlib/carrierwave/storage/fog.rb350 # Check if the file exists on the remote serviceCOMMENT
LOWlib/carrierwave/storage/fog.rb360 # Write file to serviceCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlib/carrierwave/processing/mini_magick.rb269 # NOTE: This method exists mostly for backwards compatibility, you shouldCOMMENT