Repository Analysis

wasmerio/wasmer

🚀 Fast, secure, lightweight containers based on WebAssembly

2.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of wasmerio/wasmer, a Rust project with 20,889 GitHub stars. SynthScan v2.0 examined 386,555 lines of code across 1967 source files, recording 998 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 2.7 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).

2.7
Adjusted Score
2.7
Raw Score
100%
Time Factor
2026-07-13
Last Push
20.9K
Stars
Rust
Language
386.6K
Lines of Code
2.0K
Files
998
Pattern Hits
2026-07-14
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

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 0HIGH 2MEDIUM 9LOW 987

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 998 distinct pattern matches across 15 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 Block960 hits · 952 pts
SeverityFileLineSnippetContext
LOWdeny.toml1# This template contains all of the possible sections and their default valuesCOMMENT
LOWdeny.toml21# `target_family = "unix"` configuration, that only having windows targets inCOMMENT
LOWdeny.toml41#exclude = []COMMENT
LOWdeny.toml61COMMENT
LOWdeny.toml81]COMMENT
LOWdeny.toml141COMMENT
LOWdeny.toml161[licenses.private]COMMENT
LOWdeny.toml181wildcards = "allow"COMMENT
LOWdeny.toml201# List of crates to denyCOMMENT
LOWdeny.toml221# "__tls",COMMENT
LOWdeny.toml241# by default infinite.COMMENT
LOW.config/nextest.toml1[profile.ci]COMMENT
LOWtests/c-wasi-tests/sock_send_to.c1#include <assert.h>COMMENT
LOWtests/integration/cli/tests/snapshot.rs841// Performs a longjmp of a stack that was recorded before the fork.COMMENT
LOWtests/integration/cli/tests/snapshot.rs961 "../../../../wasmer-test-files/integration/wasm/example-spawn.wasm"COMMENT
LOW…libExample/DylibExample/DylibExample-Bridging-Header.h1#include "wasm.h"COMMENT
LOW…sts/integration/ios/DylibExample/DylibExample/calc.cpp1//COMMENT
LOWtests/integration/ios/DylibExample/DylibExample/calc.h1//COMMENT
LOWtests/lib/wast/src/wast.rs401 // Ok(s) => ret.push_str(s),COMMENT
LOWtests/compilers/traps.rs361COMMENT
LOWtests/compilers/issues.rs341 &Value::I64(num.count_ones() as i64),COMMENT
LOWtests/compilers/issues.rs461///COMMENT
LOWexamples/platform_ios_headless.rs1//! Defining an engine in Wasmer is one of the fundamental steps.COMMENT
LOWexamples/features.rs1//! WebAssembly is a living standard. Wasmer integrates someCOMMENT
LOWexamples/imports_exports.rs1//! A Wasm module can import and export entities, like functions, memories, globals and tables.COMMENT
LOWexamples/imports_exports.rs61 println!("Creating the imported global...");COMMENT
LOWexamples/wasi_pipes.rs1//! Piping to and from a WASI compiled WebAssembly module with Wasmer.COMMENT
LOWexamples/compiler_cranelift.rs1//! A Wasm module can be compiled with multiple compilers.COMMENT
LOWexamples/metering.rs1//! Wasmer will let you easily run Wasm module in a Rust host.COMMENT
LOWexamples/metering.rs61 // Now let's create our metering middleware.COMMENT
LOWexamples/wasi_manual_setup.rs1//! Running a WASI compiled WebAssembly module with Wasmer.COMMENT
LOWexamples/hello_world.rs1//! This is a simple example introducing the core concepts of the Wasmer API.COMMENT
LOWexamples/imports_function_env_global.rs1//! A Wasm module can import entities, like functions, memories,COMMENT
LOWexamples/imports_function_env_global.rs61 // We create some shared data here, `Arc` is required because we mayCOMMENT
LOWexamples/memory.rs1//! With Wasmer you'll be able to interact with guest module memory.COMMENT
LOWexamples/memory.rs101COMMENT
LOWexamples/exports_function.rs1//! A Wasm module can export entities, like functions, memories,COMMENT
LOWexamples/exports_function.rs41 // Let's compile the Wasm module.COMMENT
LOWexamples/exports_function.rs61 //COMMENT
LOWexamples/exports_function.rs81 // `Rets`, respectively for the parameters and the results. IfCOMMENT
LOWexamples/instance.rs1//! Wasmer will let you easily run Wasm module in a Rust host.COMMENT
LOWexamples/instance.rs41COMMENT
LOWexamples/imports_function_env.rs1//! A Wasm module can import entities, like functions, memories,COMMENT
LOWexamples/compiler_singlepass.rs1//! A Wasm module can be compiled with multiple compilers.COMMENT
LOWexamples/engine_dylib.rs1//! Defining an engine in Wasmer is one of the fundamental steps.COMMENT
LOWexamples/engine_dylib.rs61 // Here we go.COMMENT
LOWexamples/exports_global.rs1//! A Wasm module can export entities, like functions, memories,COMMENT
LOWexamples/exports_global.rs41COMMENT
LOWexamples/exports_memory.rs1//! A Wasm module can export entities, like functions, memories,COMMENT
LOWexamples/errors.rs1//! A Wasm module can sometimes be invalid or trigger traps, and in those case we will getCOMMENT
LOWexamples/compiler_llvm.rs1//! A Wasm module can be compiled with multiple compilers.COMMENT
LOWexamples/imports_global.rs1//! A Wasm module can import entities, like functions, memories,COMMENT
LOWexamples/early_exit.rs1//! There are cases where you may want to interrupt this synchronous execution of the Wasm moduleCOMMENT
LOWexamples/wasi.rs1//! Running a WASI compiled WebAssembly module with Wasmer.COMMENT
LOWexamples/imports_function.rs1//! A Wasm module can import entities, like functions, memories,COMMENT
LOWexamples/engine_headless.rs1//! Defining an engine in Wasmer is one of the fundamental steps.COMMENT
LOWexamples/engine_headless.rs21//! will be executed can be very constrained. For such particularCOMMENT
LOWexamples/engine_headless.rs101 // Here we go.COMMENT
LOWexamples/engine_cross_compilation.rs1//! Defining an engine in Wasmer is one of the fundamental steps.COMMENT
LOWexamples/engine_cross_compilation.rs41"#,COMMENT
900 more matches not shown…
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHexamples/tunables_limit_memory.rs33 /// Takes an input memory type as requested by the guest and setsCOMMENT
HIGHlib/compiler-llvm/src/translator/code.rs69// ( Arshia: that comment above is AI-generated... AI is savage XD )COMMENT
AI Slop Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMlib/vm/src/vmcontext.rs190/// The fields compiled code needs to access to utilize a WebAssembly tableCOMMENT
MEDIUMlib/vm/src/vmcontext.rs225/// The fields compiled code needs to access to utilize a WebAssembly linearCOMMENT
MEDIUMlib/vm/src/vmcontext.rs264/// The fields compiled code needs to access to utilize a WebAssembly globalCOMMENT
MEDIUMlib/vm/src/vmcontext.rs452/// The fields compiled code needs to access to utilize a WebAssembly tableCOMMENT
MEDIUMlib/vm/src/vmcontext.rs812/// The fields compiled code needs to access to utilize a WebAssembly linearCOMMENT
Verbosity Indicators4 hits · 8 pts
SeverityFileLineSnippetContext
LOWlib/cli/src/commands/app/deploy.rs803 // We need to check if we have a manifest with the same name in theCOMMENT
LOWlib/vm/src/threadconditions.rs118 // Step 1: lock the map key, so we know no one else can get/create aCOMMENT
LOWlib/vm/src/threadconditions.rs124 // Step 2: lock the mutex while still holding the map lock, so nobodyCOMMENT
LOWlib/vm/src/threadconditions.rs128 // Step 3: unlock the map key, we don't need it anymore.COMMENT
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWlib/types/src/types.rs412 /// # Usage:COMMENT
LOWlib/cli/src/commands/mod.rs373 // Example usage:COMMENT
LOWlib/cli/src/commands/mod.rs404 /// Example usage:COMMENT
LOWlib/api/src/entities/imports.rs16/// # Usage:COMMENT
LOWlib/api/src/entities/imports.rs83 /// # Usage:COMMENT
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
LOWlib/wasix/src/runtime/resolver/resolve.rs591 // Don't forget to make the cycle start and end with the same nodeCOMMENT
MEDIUMlib/vm/src/probestack/compiler_builtins.rs39//! Finally it's worth noting that at the time of this writing LLVM only hasCOMMENT
MEDIUMlib/sys-utils/tests/fd_mmap_memory.rs1// // TODO: make this a sensible test before merge NOTE: commented out since it's mostly here for demonstration purposesCOMMENT
Structural Annotation Overuse3 hits · 7 pts
SeverityFileLineSnippetContext
LOWlib/vm/src/threadconditions.rs118 // Step 1: lock the map key, so we know no one else can get/create aCOMMENT
LOWlib/vm/src/threadconditions.rs124 // Step 2: lock the mutex while still holding the map lock, so nobodyCOMMENT
LOWlib/vm/src/threadconditions.rs128 // Step 3: unlock the map key, we don't need it anymore.COMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM.github/s3-cache-cleanup.py10# Define the S3 bucket name and the number of days to retain objectsCOMMENT
MEDIUM.github/s3-cache-cleanup.py18# Create a connection to the S3 serviceCOMMENT
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/wasmer-perf-record.py161CODE
LOWscripts/make-release.py74CODE
LOWscripts/publish.py111CODE
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/publish.py61def get_latest_version_for_crate(crate_name: str) -> typing.Optional[str]:CODE
LOWscripts/publish.py132 def check_local_workspace_dep(t):CODE
LOWscripts/publish.py241 def is_crate_already_published(self, crate_name: str) -> bool:CODE
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWlib/wasix/src/runtime/resolver/backend_source.rs243 // TODO: implement caching!COMMENT
LOWlib/wasix/src/syscalls/wasi/fd_sync.rs25 // TODO: implement this for more than filesCOMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/integration/cli/tests/packages/js/src/index.js1async function handleRequest(req) {CODE
LOW…/src/utils/package_wizard/templates/js-worker/index.js4async function handleRequest(ev) {CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…b/wasix/tests/wasm_tests/wasi_fyi/ported_fs_sandbox.rs7 let result: Result<(), String> = Err("placeholder".to_string());CODE
LOWlib/wasix/tests/wasm_tests/wasi_wast/fs_sandbox_test.rs8 let result: Result<(), String> = Err("placeholder".to_string());CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…ration/cli/resources/python/temp-dir-in-child/child.py2CODE
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWscripts/publish.py288 except Exception as exc:CODE