Repository Analysis

pimalaya/himalaya

CLI to manage emails

8.3 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pimalaya/himalaya, a Rust project with 6,806 GitHub stars. SynthScan v2.0 examined 31,231 lines of code across 312 source files, recording 183 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 8.3 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).

8.3
Adjusted Score
8.3
Raw Score
100%
Time Factor
2026-07-31
Last Push
6.8K
Stars
Rust
Language
31.2K
Lines of Code
312
Files
183
Pattern Hits
2026-08-02
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 34LOW 149

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 183 distinct pattern matches across 3 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 Block130 hits · 120 pts
SeverityFileLineSnippetContext
LOWconfig.sample.toml1# ================================================================================COMMENT
LOWconfig.sample.toml21# Global configCOMMENT
LOWconfig.sample.toml41#envelope.list.datetime-local-tz = falseCOMMENT
LOWconfig.sample.toml61#envelope.list.table.att-color = "reset"COMMENT
LOWconfig.sample.toml81#mailbox.list.table.id-color = "reset"COMMENT
LOWconfig.sample.toml101COMMENT
LOWconfig.sample.toml121# Gmail/Microsoft Graph use their well-known label/folder ids, and IMAP pinsCOMMENT
LOWconfig.sample.toml141#downloads-dir = "~/downloads/example"COMMENT
LOWconfig.sample.toml161#imap.tls.provider = "rustls"COMMENT
LOWconfig.sample.toml181# to skip authentication entirely (no `AUTHENTICATE` command sent).COMMENT
LOWconfig.sample.toml201#imap.sasl.oauthbearer.username = "user@example.com"COMMENT
LOWconfig.sample.toml221# `true` substitutes himalaya's canned value for the well-known keys (name,COMMENT
LOWconfig.sample.toml241#jmap.server = "https://api.fastmail.com/jmap/session"COMMENT
LOWconfig.sample.toml261#jmap.auth.bearer.token.command = ["ortie", "token", "show", "-a", "fastmail"]COMMENT
LOWconfig.sample.toml281# Gmail configCOMMENT
LOWconfig.sample.toml301#gmail.alpn = ["http/1.1"]COMMENT
LOWconfig.sample.toml321#msgraph.user-id = "me"COMMENT
LOWconfig.sample.toml341COMMENT
LOWconfig.sample.toml361COMMENT
LOWconfig.sample.toml381# SASL ANONYMOUSCOMMENT
LOWconfig.sample.toml401COMMENT
LOWsrc/config.rs61COMMENT
LOWsrc/config.rs141 pub m2dir: Option<M2dirConfig>,COMMENT
LOWsrc/config.rs241}COMMENT
LOWsrc/config.rs261COMMENT
LOWsrc/config.rs301/// Global / per-account table rendering quirks shared across every listCOMMENT
LOWsrc/config.rs361COMMENT
LOWsrc/config.rs381 /// negotiation entirely. Only relevant for the rustls provider;COMMENT
LOWsrc/config.rs401 #[serde(default)]COMMENT
LOWsrc/config.rs421 /// after the tagged auth response. Default `false` skips IDCOMMENT
LOWsrc/config.rs441 pub root: PathBuf,COMMENT
LOWsrc/config.rs541///COMMENT
LOWsrc/config.rs561#[derive(Clone, Debug, Default, Deserialize, Serialize)]COMMENT
LOWsrc/config.rs581#[derive(Clone, Debug, Deserialize, Serialize)]COMMENT
LOWsrc/config.rs661}COMMENT
LOWsrc/config.rs681 /// Defaults to `["http/1.1"]` (JMAP rides on HTTP/1.1). Set toCOMMENT
LOWsrc/config.rs721/// Gmail REST API configuration.COMMENT
LOWsrc/config.rs761///COMMENT
LOWsrc/config.rs781 /// Graph user id (the mailbox owner). Defaults to `me`, theCOMMENT
LOWsrc/backend.rs1use std::fmt;COMMENT
LOWsrc/main.rs1//! # himalayaCOMMENT
LOWsrc/main.rs21//!COMMENT
LOWsrc/main.rs41//! a sibling argument through every `execute` chain.COMMENT
LOWsrc/main.rs61//! discovers an account and offers to save it to a config file (orCOMMENT
LOWsrc/json_schema.rs1//! JSON Schema registry for the `json-schema <DIR>` meta command.COMMENT
LOWsrc/cli.rs41 backend::Backend,COMMENT
LOWsrc/cli.rs61 pub config: ConfigFlags,COMMENT
LOWsrc/cli.rs81/// Top-level subcommands.COMMENT
LOWsrc/cli.rs101COMMENT
LOWsrc/cli.rs121 M2dir(M2dirCommand),COMMENT
LOWsrc/imap/raw.rs1use anyhow::Result;COMMENT
LOWsrc/imap/fetch.rs41 /// Fetch the envelope (date, subject, from, to, cc, ...).COMMENT
LOWsrc/imap/flag/store.rs21#[derive(Debug, Parser)]COMMENT
LOWsrc/imap/mailbox/arg.rs41 /// Do not select the given mailbox before performing the currentCOMMENT
LOWsrc/imap/envelope/search.rs21 mailbox::arg::{MailboxNameOptionalFlag, MailboxNoSelectFlag},COMMENT
LOWsrc/imap/envelope/search.rs81/// the raw passthrough.COMMENT
LOWsrc/imap/envelope/search.rs101 pub body: Option<String>,COMMENT
LOWsrc/imap/envelope/search.rs121 pub smaller: Option<u32>,COMMENT
LOWsrc/imap/envelope/search.rs141 /// Match \Deleted messages.COMMENT
LOWsrc/wizard/local.rs1//! Local backend wizard.COMMENT
70 more matches not shown…
Decorative Section Separators34 hits · 118 pts
SeverityFileLineSnippetContext
MEDIUMconfig.sample.toml18# ================================================================================COMMENT
MEDIUMconfig.sample.toml20# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml22# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml75# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml77# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml86# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml88# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml98# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml100# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml107# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml109# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml280# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml282# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml289# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml309# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml311# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml318# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml338# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml340# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml345# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml348# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml1# ================================================================================COMMENT
MEDIUMconfig.sample.toml48# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml50# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml129# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml131# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml147# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml150# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml232# --------------------------------------------------------------------------------COMMENT
MEDIUMconfig.sample.toml236# --------------------------------------------------------------------------------COMMENT
MEDIUMsrc/account/context.rs168 // ── envelopes list — flag glyphs ─────────────────────────────────────COMMENT
MEDIUMsrc/account/context.rs191 // ── envelopes list — column colors ───────────────────────────────────COMMENT
MEDIUMsrc/account/context.rs224 // ── mailboxes list — column colors ───────────────────────────────────COMMENT
MEDIUMsrc/account/context.rs242 // ── attachments list — column colors ─────────────────────────────────COMMENT
Fake / Example Data19 hits · 22 pts
SeverityFileLineSnippetContext
LOWconfig.sample.toml195#imap.sasl.login.username = "user@example.com"COMMENT
LOWconfig.sample.toml201#imap.sasl.oauthbearer.username = "user@example.com"COMMENT
LOWconfig.sample.toml207#imap.sasl.xoauth2.username = "user@example.com"COMMENT
LOWconfig.sample.toml212#imap.sasl.scram-sha-256.username = "user@example.com"COMMENT
LOWconfig.sample.toml390#smtp.sasl.login.username = "user@example.com"COMMENT
LOWconfig.sample.toml395#smtp.sasl.oauthbearer.username = "user@example.com"COMMENT
LOWconfig.sample.toml399#smtp.sasl.xoauth2.username = "user@example.com"COMMENT
LOWconfig.sample.toml403#smtp.sasl.scram-sha-256.username = "user@example.com"COMMENT
LOWconfig.sample.toml189imap.sasl.plain.username = "user@example.com"CODE
LOWconfig.sample.toml264#jmap.auth.basic.username = "user@example.com"COMMENT
LOWconfig.sample.toml385smtp.sasl.plain.username = "user@example.com"CODE
LOWMIGRATION.md147imap.sasl.plain.authcid = "user@example.com"CODE
LOWMIGRATION.md153imap.sasl.login.username = "user@example.com"CODE
LOWMIGRATION.md157imap.sasl.oauthbearer.username = "user@example.com"CODE
LOWMIGRATION.md163imap.sasl.xoauth2.username = "user@example.com"CODE
LOWMIGRATION.md167imap.sasl.scram-sha-256.username = "user@example.com"CODE
LOWMIGRATION.md214jmap.auth.basic.username = "user@example.com"CODE
LOWsrc/email/search/eval.rs156 email: String::from("alice@example.org"),CODE
LOWsrc/email/search/eval.rs160 email: String::from("team@example.org"),CODE