Repository Analysis

purocean/yn

A highly extensible Markdown editor. Version control, AI Copilot, mind map, documents encryption, code snippet running, integrated terminal, chart embedding, HTML applets, Reveal.js, plug-in, and macro replacement.

4.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of purocean/yn, a TypeScript project with 6,657 GitHub stars. SynthScan v2.0 examined 97,366 lines of code across 518 source files, recording 80 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 4.9 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.9
Adjusted Score
4.9
Raw Score
100%
Time Factor
2026-07-12
Last Push
6.7K
Stars
TypeScript
Language
97.4K
Lines of Code
518
Files
80
Pattern Hits
2026-07-14
Scan Date
0.08
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 40HIGH 0MEDIUM 0LOW 40

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 80 distinct pattern matches across 4 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.

Hallucination Indicators40 hits · 440 pts
SeverityFileLineSnippetContext
CRITICALsrc/renderer/plugins/markdown-mind-map.ts315 km._modules.View.events.resize.apply(km)CODE
CRITICAL…c/renderer/plugins/markdown-hashtags/worker-indexer.ts11 const enableHashTags = await ctx.bridgeClient.call.ctx.setting.getSetting('render.md-hash-tags', true as any)CODE
CRITICALsrc/renderer/plugins/__tests__/editor-paste.ts135 expect(mocks.editor.addAction.mock.calls.map(([action]: any[]) => action.id)).toEqual([CODE
CRITICALsrc/renderer/plugins/__tests__/history-stack.ts87 expect(ctx.action.registerAction.mock.calls.map(([action]: any[]) => action.name)).toEqual([CODE
CRITICALsrc/renderer/plugins/__tests__/history-stack.ts176 ctx.statusBar.tapMenus.mock.calls.at(-1)[0](menusAfterDelete)CODE
CRITICALsrc/renderer/plugins/__tests__/switch-todo.ts150 expect(ctx.editor.replaceLine.mock.calls.map(([line]: any[]) => line)).toEqual([1, 2, 3])CODE
CRITICAL…c/renderer/plugins/__tests__/external-file-readonly.ts84 expect(mocks.editor.addAction.mock.calls.map(([action]: any[]) => action.id)).toEqual([CODE
CRITICALsrc/renderer/plugins/__tests__/editor-attachment.ts150 expect(ready.editor.addAction.mock.calls.map(([action]: any[]) => action.id)).toEqual([CODE
CRITICALsrc/renderer/plugins/__tests__/editor-attachment.ts185 const actions = new Map(ready.editor.addAction.mock.calls.map(([action]: any[]) => [action.id, action]))CODE
CRITICALsrc/renderer/plugins/__tests__/editor-attachment.ts208 const action = ready.editor.addAction.mock.calls.find(([item]: any[]) => item.id === 'plugin.editor.link-file')[0]CODE
CRITICALsrc/renderer/plugins/__tests__/editor-attachment.ts226 const action = ready.editor.addAction.mock.calls.find(([item]: any[]) => item.id === 'plugin.editor.link-doc')[0]CODE
CRITICALsrc/renderer/plugins/__tests__/editor-attachment.ts247 const addFile = ready.editor.addAction.mock.calls.find(([item]: any[]) => item.id === 'plugin.editor.add-file')[0]CODE
CRITICALsrc/renderer/plugins/__tests__/markdown-plantuml.ts58 expect(ctx.markdown.registerPlugin.mock.calls.map(([, options]: any[]) => options.openMarker)).toEqual([CODE
CRITICALsrc/renderer/plugins/__tests__/editor-restore-state.ts101 await Promise.all(ctx.editor.whenEditorReady.mock.results.map((result: any) => result.value))CODE
CRITICALsrc/renderer/plugins/__tests__/editor-restore-state.ts127 await Promise.all(ctx.editor.whenEditorReady.mock.results.map((result: any) => result.value))CODE
CRITICALsrc/renderer/plugins/__tests__/custom-styles.ts117 expect(ctx.theme.registerThemeStyle.mock.calls.map(([style]: any[]) => style)).toEqual([CODE
CRITICALsrc/renderer/plugins/__tests__/editor-md-list.ts173 harness.model.tokenization.grammarTokens.getLineTokens.mockReturnValueOnce({ getForeground: vi.fn(() => 23) })CODE
CRITICALsrc/renderer/plugins/__tests__/floating-editor.ts144 expect(ctx.action.registerAction.mock.calls.map(([action]: any[]) => action.name)).toEqual([CODE
CRITICALsrc/renderer/plugins/__tests__/editor-markdown.ts134 expect(mocks.editor.addAction.mock.calls.map(([action]: any[]) => action.id)).toEqual([CODE
CRITICALsrc/renderer/plugins/__tests__/editor-markdown.ts166 const actions = new Map(mocks.editor.addAction.mock.calls.map(([action]: any[]) => [action.id, action]))CODE
CRITICALsrc/renderer/plugins/__tests__/editor-markdown.ts225 const actions = new Map(mocks.editor.addAction.mock.calls.map(([action]: any[]) => [action.id, action]))CODE
CRITICALsrc/renderer/plugins/__tests__/drop-to-open-file.ts108 expect(ctx._iframeWindow.addEventListener.mock.calls.map(([type]: any[]) => type)).toEqual(expectedEvents)CODE
CRITICALsrc/renderer/plugins/__tests__/drop-to-open-file.ts109 expect(ctx._iframeWindow.addEventListener.mock.calls.map(([, , capture]: any[]) => capture)).toEqual([true, true, trCODE
CRITICAL…renderer/plugins/markdown-wiki-links/worker-indexer.ts11 const enableWikiLinks = await ctx.bridgeClient.call.ctx.setting.getSetting('render.md-wiki-links', true as any)CODE
CRITICALsrc/renderer/components/DefaultPreviewer.vue271 container.value.ownerDocument.documentElement.style.setProperty(CSS_VAR_NAME.PREVIEWER_HEIGHT, height.value + 'px')CODE
CRITICALsrc/renderer/components/__tests__/more-components.ts318 expect(mocks.lastIframe.contentDocument.documentElement.style.getPropertyValue('--previewer-height')).toBe('640px')CODE
CRITICALsrc/main/server/__tests__/mcp.ts121 mocks.jsonRPCClient.call.ctx.action.getRawActions.mockReset()CODE
CRITICALsrc/main/server/__tests__/mcp.ts122 mocks.jsonRPCClient.call.ctx.action.executeAction.mockReset()CODE
CRITICALsrc/main/server/__tests__/mcp.ts123 mocks.jsonRPCClient.call.ctx.setting.showSettingPanel.mockReset()CODE
CRITICALsrc/main/server/__tests__/mcp.ts124 mocks.jsonRPCClient.call.ctx.setting.getSchemaForMcp.mockReset()CODE
CRITICALsrc/main/server/__tests__/mcp.ts125 mocks.jsonRPCClient.call.ctx.setting.getSettingsForMcp.mockReset()CODE
CRITICALsrc/main/server/__tests__/mcp.ts151 mocks.jsonRPCClient.call.ctx.action.getRawActions.mockResolvedValue([CODE
CRITICALsrc/main/server/__tests__/mcp.ts180 mocks.jsonRPCClient.call.ctx.action.executeAction.mockResolvedValueOnce({ ok: true })CODE
CRITICALsrc/main/server/__tests__/mcp.ts185 mocks.jsonRPCClient.call.ctx.action.executeAction.mockRejectedValueOnce(new Error('bad action'))CODE
CRITICALsrc/main/server/__tests__/mcp.ts225 mocks.jsonRPCClient.call.ctx.setting.getSchemaForMcp.mockResolvedValue({CODE
CRITICALsrc/main/server/__tests__/mcp.ts249 mocks.jsonRPCClient.call.ctx.setting.getSettingsForMcp.mockResolvedValue({ theme: 'dark', readonly: true })CODE
CRITICALsrc/main/server/__tests__/mcp.ts263 mocks.jsonRPCClient.call.ctx.setting.getSchemaForMcp.mockResolvedValue({ properties: {} })CODE
CRITICALsrc/main/__tests__/app.ts349 mocks.jsonRPCClient.call.ctx.base.triggerDeepLinkOpen.mockClear()CODE
CRITICALsrc/main/__tests__/app.ts350 mocks.jsonRPCClient.call.ctx.doc.switchDocByPath.mockClear()CODE
CRITICALsrc/main/__tests__/app.ts351 mocks.jsonRPCClient.call.ctx.setting.showSettingPanel.mockClear()CODE
Hyper-Verbose Identifiers20 hits · 20 pts
SeverityFileLineSnippetContext
LOWsrc/renderer/plugins/markdown-macro.ts475 function buildGlobalMacroReplacement (settings: BuildInSettings) {CODE
LOWsrc/renderer/plugins/floating-editor.ts214 function hasVisibleMonacoEscapeWidget () {CODE
LOWsrc/renderer/plugins/floating-editor.ts227 function pausePreviewSyncForEditorScroll () {CODE
LOWsrc/renderer/plugins/floating-editor.ts696 function highlightPreviewClickLine (e: MouseEvent) {CODE
LOWsrc/renderer/plugins/insert-table/index.ts15 function buildTableCompletionItems (): SimpleCompletionItem[] | false {CODE
LOWsrc/renderer/others/premium.ts280async function refreshAndCheckLicenseStatus () {CODE
LOWsrc/renderer/others/extension.ts38export function getInstalledExtensionFileUrl (id: string, filename: string) {CODE
LOWsrc/renderer/others/extension.ts161export async function getRegistryExtensionVersions (id: string, registry: RegistryHostname = 'registry.npmjs.org'): PromCODE
LOWsrc/renderer/components/ExtensionManager.vue376async function refreshInstalledExtensions () {CODE
LOWsrc/renderer/components/DefaultPreviewerRender.ce.vue247function updateMarkdownBodyMaxWidth () {CODE
LOWsrc/renderer/components/Layout.vue250 function initContentRightSideResize (e: MouseEvent) {CODE
LOWsrc/renderer/support/api.ts606export async function abortExtensionInstallation (): Promise<any> {CODE
LOWsrc/renderer/services/editor.ts455export function tapMarkdownMonarchLanguage (tapper: (mdLanguage: any) => void) {CODE
LOWsrc/renderer/services/editor.ts464export function getMarkdownMonarchLanguage () {CODE
LOWsrc/renderer/services/editor.ts523export async function getAvailableCustomEditors (ctx: CustomEditorCtx): Promise<CustomEditor[]> {CODE
LOWsrc/renderer/services/export.ts427export async function printCurrentDocumentToPDF (opts?: PrintOpts, runtimeOptions: PrintPDFRuntimeOptions = {}): PromiseCODE
LOWsrc/renderer/services/layout.ts131export function toggleEditorPreviewExclusive (exclusive?: boolean) {CODE
LOWsrc/main/helper.ts36 function newStreamReadableFromReadableStream (readableStream: ReadableStream, options: any = {}) {CODE
LOWsrc/main/server/__tests__/mcp.ts51 StreamableHTTPServerTransport: vi.fn(function StreamableHTTPServerTransport (this: any) {CODE
LOWsrc/share/misc.ts38export function getDefaultApplicationAccelerators (platform: NodeJS.Platform, lang: Language = 'en') {CODE
Fake / Example Data14 hits · 14 pts
SeverityFileLineSnippetContext
LOWsrc/renderer/directives/placeholder.ts4 app.directive('placeholder', {CODE
LOWsrc/renderer/directives/__tests__/directives.ts52 'placeholder',CODE
LOWsrc/renderer/directives/__tests__/directives.ts106 const directive = installOne(placeholder, 'placeholder')CODE
LOWsrc/renderer/components/ExtensionManager.vue50 <div v-if="!registryExtensions" class="placeholder">{{ $t('loading') }}</div>CODE
LOWsrc/renderer/components/ExtensionManager.vue51 <div v-else-if="registryExtensions.length === 0 && installedExtensions?.length === 0" class="placeholder">{{CODE
LOWsrc/renderer/components/ExtensionManager.vue172 <div v-if="!iframeLoaded" class="placeholder">{{ $t('loading') }}</div>CODE
LOWsrc/renderer/components/ExtensionManager.vue183 <div v-else class="placeholder">{{ $t('loading') }}</div>CODE
LOWsrc/renderer/components/ExtensionManager.vue187 <div v-else class="placeholder">{{ $t('extension.extension-manager') }}</div>CODE
LOWsrc/renderer/components/QuickFilter.vue18 :placeholder="placeholder"CODE
LOWsrc/renderer/components/__tests__/basic-components.ts242 expect(input.element.getAttribute('placeholder')).toBe('enter name')CODE
LOWsrc/share/i18n/languages/zh-TW.ts86 'placeholder': '請輸入激活代碼',CODE
LOWsrc/share/i18n/languages/zh-CN.ts86 'placeholder': '请输入激活码',CODE
LOWsrc/share/i18n/languages/en.ts85 'placeholder': 'Enter license',CODE
LOWsrc/share/i18n/languages/ru.ts86 'placeholder': 'Введите лицензию',CODE
Over-Commented Block6 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/md/markmap.md41 + PrismJSCOMMENT
LOWtest/md/code-features.md181// Line 3COMMENT
LOWsrc/renderer/plugins/editor-md-list.ts141COMMENT
LOWsrc/renderer/others/fuzzy-match.ts1// https://github.com/forrestthewoods/lib_fts/blob/master/code/fts_fuzzy_match.jsCOMMENT
LOWsrc/renderer/services/export.ts241 body {COMMENT
LOWsrc/main/server/index.ts461 if (ctx.path.startsWith('/api/proxy-fetch/')) {COMMENT