Repository Analysis

JustVugg/colibri

Run GLM-5.2 (744B MoE) on a 25GB-RAM consumer machine — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

7.0 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of JustVugg/colibri, a C project with 12,302 GitHub stars. SynthScan v2.0 examined 20,225 lines of code across 107 source files, recording 119 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 7.0 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).

7.0
Adjusted Score
7.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
12.3K
Stars
C
Language
20.2K
Lines of Code
107
Files
119
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

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 10LOW 109

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 119 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.

Hyper-Verbose Identifiers56 hits · 63 pts
SeverityFileLineSnippetContext
LOWc/tests/test_benchmark_cuda_fixture.py13 def test_extracts_speed_and_profile(self):STRING
LOWc/tests/test_benchmark_cuda_fixture.py18 def test_rejects_incomplete_output(self):STRING
LOWc/tests/test_cli_output.py31 def test_info_status_is_english(self):CODE
LOWc/tests/test_cli_output.py39 def test_missing_model_error_is_english(self):CODE
LOWc/tests/test_doctor.py77 def test_healthy_cpu_install_has_versioned_report(self):CODE
LOWc/tests/test_doctor.py89 def test_missing_model_collects_failures_instead_of_stopping_early(self):CODE
LOWc/tests/test_doctor.py102 def test_non_executable_engine_and_excessive_ram_budget_fail(self):CODE
LOWc/tests/test_doctor.py118 def test_requested_missing_gpu_is_a_failure(self):CODE
LOWc/tests/test_doctor.py126 def test_cpu_engine_with_detected_gpu_is_only_a_warning(self):CODE
LOWc/tests/test_doctor.py136 def test_missing_cuda_runtime_is_a_failure(self):CODE
LOWc/tests/test_doctor.py148 def test_text_format_contains_checks_plan_and_result(self):CODE
LOWc/tests/test_doctor.py155 def test_cli_json_is_machine_readable_without_loading_model(self):CODE
LOWc/tests/test_openai_server.py60 def test_rejects_non_text_content(self):CODE
LOWc/tests/test_openai_server.py66 def test_renders_thinking_prefix(self):CODE
LOWc/tests/test_openai_server.py72 def test_validates_generation_limits(self):CODE
LOWc/tests/test_openai_server.py86 def test_reads_payload_and_extended_status(self):CODE
LOWc/tests/test_openai_server.py94 def test_rejects_invalid_kv_pool_before_engine_start(self):CODE
LOWc/tests/test_openai_server.py98 def test_occupied_port_fails_before_engine_start(self):CODE
LOWc/tests/test_openai_server.py112 def test_admits_up_to_capacity_without_serializing(self):CODE
LOWc/tests/test_openai_server.py119 def test_rejects_when_waiting_queue_is_full(self):CODE
LOWc/tests/test_openai_server.py129 def test_times_out_and_cancels_queued_requests(self):CODE
LOWc/tests/test_openai_server.py602 def test_string_parameter_holding_digits_stays_a_string(self):CODE
LOWc/tests/test_openai_server.py608 def test_declared_numeric_and_boolean_parameters_are_decoded(self):CODE
LOWc/tests/test_openai_server.py617 def test_unknown_parameter_keeps_permissive_decoding(self):CODE
LOWc/tests/test_openai_server.py624 def test_none_does_not_offer_the_tools(self):CODE
LOWc/tests/test_openai_server.py629 def test_auto_offers_the_tools(self):CODE
LOWc/tests/test_openai_server.py634 def test_required_instructs_the_model_to_call_one(self):CODE
LOWc/tests/test_openai_server.py640 def test_named_function_restricts_to_that_function(self):CODE
LOWc/tests/test_openai_server.py647 def test_rejects_unknown_string_and_unknown_function(self):CODE
LOWc/tests/test_openai_server.py655 def test_rejects_tool_choice_without_tools(self):CODE
LOWc/tests/test_openai_server.py45 def test_renders_text_subset_of_official_template(self):CODE
LOWc/tests/test_openai_server.py143 def test_admits_waiters_in_fifo_order(self):CODE
LOWc/tests/test_openai_server.py173 def test_close_rejects_waiters(self):CODE
LOWc/tests/test_openai_server.py266 def test_dispatches_interleaved_requests_by_id(self):CODE
LOWc/tests/test_openai_server.py307 def test_routes_engine_error_to_request(self):CODE
LOWc/tests/test_openai_server.py319 def test_close_wakes_pending_generation_and_is_idempotent(self):CODE
LOWc/tests/test_openai_server.py349 def test_protocol_corruption_fails_request_and_stops_dispatcher(self):CODE
LOWc/tests/test_openai_server.py378 def test_cancels_generation_after_consumer_disconnects(self):CODE
LOWc/tests/test_openai_server.py426 def test_lists_models_and_checks_auth(self):CODE
LOWc/tests/test_openai_server.py433 def test_health_reports_scheduler_and_kv_slots(self):CODE
LOWc/tests/test_openai_server.py466 def test_rejects_invalid_cache_slot(self):CODE
LOWc/tests/test_openai_server.py474 def test_streaming_chat_completion(self):CODE
LOWc/tests/test_openai_server.py495 def test_rejects_empty_legacy_completion(self):CODE
LOWc/tests/test_openai_server.py501 def test_rejects_invalid_stream_options(self):CODE
LOWc/tests/test_openai_server.py535 def test_static_root_stays_inside_dist_directory(self):CODE
LOWc/tests/test_makefile_platform.py14 def test_windows_nt_without_uname_selects_mingw_build(self):CODE
LOWc/tests/test_resource_plan.py56 def test_analyzes_dense_and_expert_storage(self):CODE
LOWc/tests/test_resource_plan.py63 def test_memory_available_is_positive(self):CODE
LOWc/tests/test_resource_plan.py69 def test_builds_bounded_three_tier_plan(self):CODE
LOWc/tests/test_resource_plan.py85 def test_filters_requested_devices(self):CODE
LOWc/tests/test_resource_plan.py92 def test_cli_emits_versioned_json(self):CODE
LOWc/tests/test_resource_plan.py102 def test_applies_plan_without_overriding_explicit_settings(self):CODE
LOWc/tests/test_resource_plan.py123 def test_cpu_binary_does_not_apply_gpu_tier(self):CODE
LOWc/tests/test_resource_plan.py134 def test_rejects_unknown_policy_and_marks_experimental_policy(self):CODE
LOWc/tests/test_resource_plan.py143 def test_balanced_policy_enables_lossless_live_repin(self):CODE
LOWc/tests/test_resource_plan.py152 def test_plan_explains_hot_warm_and_cold_placement(self):CODE
Deep Nesting20 hits · 20 pts
SeverityFileLineSnippetContext
LOWc/openai_server.py202CODE
LOWc/openai_server.py243CODE
LOWc/openai_server.py286CODE
LOWc/openai_server.py364CODE
LOWc/openai_server.py509CODE
LOWc/openai_server.py568CODE
LOWc/openai_server.py829CODE
LOWc/doctor.py34CODE
LOWc/resource_plan.py79CODE
LOWc/tools/eval_glm.py51CODE
LOWc/tools/expert_atlas.py71CODE
LOWc/tools/fetch_benchmarks.py41CODE
LOWc/tools/route_pairs.py24CODE
LOWc/tools/route_pairs.py30CODE
LOWc/tools/convert_fp8_to_int4.py172CODE
LOWc/tools/convert_fp8_to_int4.py193CODE
LOWc/tools/convert_fp8_to_int4.py358CODE
LOWc/tools/convert_fp8_to_int4.py451CODE
LOWc/tools/convert_fp8_to_int4.py398CODE
LOWc/tools/route_coupling_report.py40CODE
Decorative Section Separators6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMc/tools/quant_ablation.py57# --------------------------------------------------------------------------------------COMMENT
MEDIUMc/tools/quant_ablation.py65# --------------------------------------------------------------------------------------COMMENT
MEDIUMc/tools/quant_ablation.py81# --------------------------------------------------------------------------------------COMMENT
MEDIUMc/tools/quant_ablation.py89# --------------------------------------------------------------------------------------COMMENT
MEDIUMc/tools/quant_ablation.py169# --------------------------------------------------------------------------------------COMMENT
MEDIUMc/tools/quant_ablation.py185# --------------------------------------------------------------------------------------COMMENT
Excessive Try-Catch Wrapping13 hits · 16 pts
SeverityFileLineSnippetContext
LOWc/openai_server.py563 except Exception as error:CODE
LOWc/openai_server.py601 except Exception:CODE
LOWc/openai_server.py820 except Exception as error:CODE
MEDIUMc/openai_server.py509def _dispatch_stdout(self):CODE
MEDIUMc/openai_server.py707def read_json(self):CODE
LOWc/tools/fetch_benchmarks.py61 except Exception: continueCODE
LOWc/tools/convert_fp8_to_int4.py393 except Exception: passCODE
LOWc/tools/convert_fp8_to_int4.py416 except Exception as ex:CODE
LOWc/tools/convert_fp8_to_int4.py498 except Exception as ex:CODE
LOWc/tools/convert_fp8_to_int4.py519 except Exception as ex:CODE
LOWc/tools/convert_fp8_to_int4.py530 except Exception: passCODE
MEDIUMc/tests/test_openai_server.py183def waiting():CODE
LOWc/tests/test_openai_server.py568 except Exception as error:CODE
Over-Commented Block12 hits · 12 pts
SeverityFileLineSnippetContext
LOWc/st.h1/* Indicizzazione e lettura on-demand di tensori da piu' file safetensors.COMMENT
LOWc/glm.c21#include <stdlib.h>COMMENT
LOWc/glm.c41#include "grammar.h" /* metodo F: draft grammaticali (#48) */COMMENT
LOWc/glm.c61#endifCOMMENT
LOWc/glm.c481#define IDOT_KERNEL "avx2"COMMENT
LOWc/backend_cuda.h1#ifndef COLIBRI_BACKEND_CUDA_HCOMMENT
LOWc/backend_metal.mm1// Apple-GPU (Metal) backend for colibrì. Runtime-compiled shader (no Xcode needed),COMMENT
LOWc/compat.h81#include <windows.h>COMMENT
LOWc/iobench.c1/* Microbench: banda in lettura RANDOM con blocchi tipo-expert (~19 MB int4).COMMENT
LOWc/tools/quant_ablation.py161 if skip_head and is_head_or_embed(name):COMMENT
LOWc/tools/convert_fp8_to_int4.py301 out = {}; convert_shard(sp, out, a.n_layers, a.ebits, a.io_bits, a.xbits)COMMENT
LOWc/tools/bench_ux.sh1#!/bin/bashCOMMENT
Unused Imports8 hits · 8 pts
SeverityFileLineSnippetContext
LOWc/tools/gen_unicode.py9CODE
LOWc/tools/convert_olmoe.py13CODE
LOWc/tools/convert_olmoe.py13CODE
LOWc/tools/convert_olmoe.py13CODE
LOWc/tools/convert_olmoe.py13CODE
LOWc/tools/convert_fp8_to_int4.py28CODE
LOWc/tools/convert_fp8_to_int4.py229CODE
LOWc/tools/convert_fp8_to_int4.py230CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMc/openai_server.py307 # preamble makes it hallucinate other frameworks' syntax (e.g. `end_action`).COMMENT
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWc/openai_server.py1057CODE
LOWc/doctor.py34CODE
LOWc/resource_plan.py189CODE