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.
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/renderer/plugins/markdown-mind-map.ts | 315 | km._modules.View.events.resize.apply(km) | CODE |
| CRITICAL | …c/renderer/plugins/markdown-hashtags/worker-indexer.ts | 11 | const enableHashTags = await ctx.bridgeClient.call.ctx.setting.getSetting('render.md-hash-tags', true as any) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-paste.ts | 135 | expect(mocks.editor.addAction.mock.calls.map(([action]: any[]) => action.id)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/history-stack.ts | 87 | expect(ctx.action.registerAction.mock.calls.map(([action]: any[]) => action.name)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/history-stack.ts | 176 | ctx.statusBar.tapMenus.mock.calls.at(-1)[0](menusAfterDelete) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/switch-todo.ts | 150 | expect(ctx.editor.replaceLine.mock.calls.map(([line]: any[]) => line)).toEqual([1, 2, 3]) | CODE |
| CRITICAL | …c/renderer/plugins/__tests__/external-file-readonly.ts | 84 | expect(mocks.editor.addAction.mock.calls.map(([action]: any[]) => action.id)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-attachment.ts | 150 | expect(ready.editor.addAction.mock.calls.map(([action]: any[]) => action.id)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-attachment.ts | 185 | const actions = new Map(ready.editor.addAction.mock.calls.map(([action]: any[]) => [action.id, action])) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-attachment.ts | 208 | const action = ready.editor.addAction.mock.calls.find(([item]: any[]) => item.id === 'plugin.editor.link-file')[0] | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-attachment.ts | 226 | const action = ready.editor.addAction.mock.calls.find(([item]: any[]) => item.id === 'plugin.editor.link-doc')[0] | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-attachment.ts | 247 | const addFile = ready.editor.addAction.mock.calls.find(([item]: any[]) => item.id === 'plugin.editor.add-file')[0] | CODE |
| CRITICAL | src/renderer/plugins/__tests__/markdown-plantuml.ts | 58 | expect(ctx.markdown.registerPlugin.mock.calls.map(([, options]: any[]) => options.openMarker)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-restore-state.ts | 101 | await Promise.all(ctx.editor.whenEditorReady.mock.results.map((result: any) => result.value)) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-restore-state.ts | 127 | await Promise.all(ctx.editor.whenEditorReady.mock.results.map((result: any) => result.value)) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/custom-styles.ts | 117 | expect(ctx.theme.registerThemeStyle.mock.calls.map(([style]: any[]) => style)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-md-list.ts | 173 | harness.model.tokenization.grammarTokens.getLineTokens.mockReturnValueOnce({ getForeground: vi.fn(() => 23) }) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/floating-editor.ts | 144 | expect(ctx.action.registerAction.mock.calls.map(([action]: any[]) => action.name)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-markdown.ts | 134 | expect(mocks.editor.addAction.mock.calls.map(([action]: any[]) => action.id)).toEqual([ | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-markdown.ts | 166 | const actions = new Map(mocks.editor.addAction.mock.calls.map(([action]: any[]) => [action.id, action])) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/editor-markdown.ts | 225 | const actions = new Map(mocks.editor.addAction.mock.calls.map(([action]: any[]) => [action.id, action])) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/drop-to-open-file.ts | 108 | expect(ctx._iframeWindow.addEventListener.mock.calls.map(([type]: any[]) => type)).toEqual(expectedEvents) | CODE |
| CRITICAL | src/renderer/plugins/__tests__/drop-to-open-file.ts | 109 | expect(ctx._iframeWindow.addEventListener.mock.calls.map(([, , capture]: any[]) => capture)).toEqual([true, true, tr | CODE |
| CRITICAL | …renderer/plugins/markdown-wiki-links/worker-indexer.ts | 11 | const enableWikiLinks = await ctx.bridgeClient.call.ctx.setting.getSetting('render.md-wiki-links', true as any) | CODE |
| CRITICAL | src/renderer/components/DefaultPreviewer.vue | 271 | container.value.ownerDocument.documentElement.style.setProperty(CSS_VAR_NAME.PREVIEWER_HEIGHT, height.value + 'px') | CODE |
| CRITICAL | src/renderer/components/__tests__/more-components.ts | 318 | expect(mocks.lastIframe.contentDocument.documentElement.style.getPropertyValue('--previewer-height')).toBe('640px') | CODE |
| CRITICAL⚡ | src/main/server/__tests__/mcp.ts | 121 | mocks.jsonRPCClient.call.ctx.action.getRawActions.mockReset() | CODE |
| CRITICAL⚡ | src/main/server/__tests__/mcp.ts | 122 | mocks.jsonRPCClient.call.ctx.action.executeAction.mockReset() | CODE |
| CRITICAL⚡ | src/main/server/__tests__/mcp.ts | 123 | mocks.jsonRPCClient.call.ctx.setting.showSettingPanel.mockReset() | CODE |
| CRITICAL⚡ | src/main/server/__tests__/mcp.ts | 124 | mocks.jsonRPCClient.call.ctx.setting.getSchemaForMcp.mockReset() | CODE |
| CRITICAL⚡ | src/main/server/__tests__/mcp.ts | 125 | mocks.jsonRPCClient.call.ctx.setting.getSettingsForMcp.mockReset() | CODE |
| CRITICAL | src/main/server/__tests__/mcp.ts | 151 | mocks.jsonRPCClient.call.ctx.action.getRawActions.mockResolvedValue([ | CODE |
| CRITICAL | src/main/server/__tests__/mcp.ts | 180 | mocks.jsonRPCClient.call.ctx.action.executeAction.mockResolvedValueOnce({ ok: true }) | CODE |
| CRITICAL | src/main/server/__tests__/mcp.ts | 185 | mocks.jsonRPCClient.call.ctx.action.executeAction.mockRejectedValueOnce(new Error('bad action')) | CODE |
| CRITICAL | src/main/server/__tests__/mcp.ts | 225 | mocks.jsonRPCClient.call.ctx.setting.getSchemaForMcp.mockResolvedValue({ | CODE |
| CRITICAL | src/main/server/__tests__/mcp.ts | 249 | mocks.jsonRPCClient.call.ctx.setting.getSettingsForMcp.mockResolvedValue({ theme: 'dark', readonly: true }) | CODE |
| CRITICAL | src/main/server/__tests__/mcp.ts | 263 | mocks.jsonRPCClient.call.ctx.setting.getSchemaForMcp.mockResolvedValue({ properties: {} }) | CODE |
| CRITICAL⚡ | src/main/__tests__/app.ts | 349 | mocks.jsonRPCClient.call.ctx.base.triggerDeepLinkOpen.mockClear() | CODE |
| CRITICAL⚡ | src/main/__tests__/app.ts | 350 | mocks.jsonRPCClient.call.ctx.doc.switchDocByPath.mockClear() | CODE |
| CRITICAL⚡ | src/main/__tests__/app.ts | 351 | mocks.jsonRPCClient.call.ctx.setting.showSettingPanel.mockClear() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/renderer/plugins/markdown-macro.ts | 475 | function buildGlobalMacroReplacement (settings: BuildInSettings) { | CODE |
| LOW | src/renderer/plugins/floating-editor.ts | 214 | function hasVisibleMonacoEscapeWidget () { | CODE |
| LOW | src/renderer/plugins/floating-editor.ts | 227 | function pausePreviewSyncForEditorScroll () { | CODE |
| LOW | src/renderer/plugins/floating-editor.ts | 696 | function highlightPreviewClickLine (e: MouseEvent) { | CODE |
| LOW | src/renderer/plugins/insert-table/index.ts | 15 | function buildTableCompletionItems (): SimpleCompletionItem[] | false { | CODE |
| LOW | src/renderer/others/premium.ts | 280 | async function refreshAndCheckLicenseStatus () { | CODE |
| LOW | src/renderer/others/extension.ts | 38 | export function getInstalledExtensionFileUrl (id: string, filename: string) { | CODE |
| LOW | src/renderer/others/extension.ts | 161 | export async function getRegistryExtensionVersions (id: string, registry: RegistryHostname = 'registry.npmjs.org'): Prom | CODE |
| LOW | src/renderer/components/ExtensionManager.vue | 376 | async function refreshInstalledExtensions () { | CODE |
| LOW | src/renderer/components/DefaultPreviewerRender.ce.vue | 247 | function updateMarkdownBodyMaxWidth () { | CODE |
| LOW | src/renderer/components/Layout.vue | 250 | function initContentRightSideResize (e: MouseEvent) { | CODE |
| LOW | src/renderer/support/api.ts | 606 | export async function abortExtensionInstallation (): Promise<any> { | CODE |
| LOW | src/renderer/services/editor.ts | 455 | export function tapMarkdownMonarchLanguage (tapper: (mdLanguage: any) => void) { | CODE |
| LOW | src/renderer/services/editor.ts | 464 | export function getMarkdownMonarchLanguage () { | CODE |
| LOW | src/renderer/services/editor.ts | 523 | export async function getAvailableCustomEditors (ctx: CustomEditorCtx): Promise<CustomEditor[]> { | CODE |
| LOW | src/renderer/services/export.ts | 427 | export async function printCurrentDocumentToPDF (opts?: PrintOpts, runtimeOptions: PrintPDFRuntimeOptions = {}): Promise | CODE |
| LOW | src/renderer/services/layout.ts | 131 | export function toggleEditorPreviewExclusive (exclusive?: boolean) { | CODE |
| LOW | src/main/helper.ts | 36 | function newStreamReadableFromReadableStream (readableStream: ReadableStream, options: any = {}) { | CODE |
| LOW | src/main/server/__tests__/mcp.ts | 51 | StreamableHTTPServerTransport: vi.fn(function StreamableHTTPServerTransport (this: any) { | CODE |
| LOW | src/share/misc.ts | 38 | export function getDefaultApplicationAccelerators (platform: NodeJS.Platform, lang: Language = 'en') { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/renderer/directives/placeholder.ts | 4 | app.directive('placeholder', { | CODE |
| LOW | src/renderer/directives/__tests__/directives.ts | 52 | 'placeholder', | CODE |
| LOW | src/renderer/directives/__tests__/directives.ts | 106 | const directive = installOne(placeholder, 'placeholder') | CODE |
| LOW | src/renderer/components/ExtensionManager.vue | 50 | <div v-if="!registryExtensions" class="placeholder">{{ $t('loading') }}</div> | CODE |
| LOW | src/renderer/components/ExtensionManager.vue | 51 | <div v-else-if="registryExtensions.length === 0 && installedExtensions?.length === 0" class="placeholder">{{ | CODE |
| LOW | src/renderer/components/ExtensionManager.vue | 172 | <div v-if="!iframeLoaded" class="placeholder">{{ $t('loading') }}</div> | CODE |
| LOW | src/renderer/components/ExtensionManager.vue | 183 | <div v-else class="placeholder">{{ $t('loading') }}</div> | CODE |
| LOW | src/renderer/components/ExtensionManager.vue | 187 | <div v-else class="placeholder">{{ $t('extension.extension-manager') }}</div> | CODE |
| LOW | src/renderer/components/QuickFilter.vue | 18 | :placeholder="placeholder" | CODE |
| LOW | src/renderer/components/__tests__/basic-components.ts | 242 | expect(input.element.getAttribute('placeholder')).toBe('enter name') | CODE |
| LOW | src/share/i18n/languages/zh-TW.ts | 86 | 'placeholder': '請輸入激活代碼', | CODE |
| LOW | src/share/i18n/languages/zh-CN.ts | 86 | 'placeholder': '请输入激活码', | CODE |
| LOW | src/share/i18n/languages/en.ts | 85 | 'placeholder': 'Enter license', | CODE |
| LOW | src/share/i18n/languages/ru.ts | 86 | 'placeholder': 'Введите лицензию', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/md/markmap.md | 41 | + PrismJS | COMMENT |
| LOW | test/md/code-features.md | 181 | // Line 3 | COMMENT |
| LOW | src/renderer/plugins/editor-md-list.ts | 141 | COMMENT | |
| LOW | src/renderer/others/fuzzy-match.ts | 1 | // https://github.com/forrestthewoods/lib_fts/blob/master/code/fts_fuzzy_match.js | COMMENT |
| LOW | src/renderer/services/export.ts | 241 | body { | COMMENT |
| LOW | src/main/server/index.ts | 461 | if (ctx.path.startsWith('/api/proxy-fetch/')) { | COMMENT |