Repository Analysis

Kotlin/kotlinx.coroutines

Library support for Kotlin coroutines

7.7 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Kotlin/kotlinx.coroutines, a Kotlin project with 13,798 GitHub stars. SynthScan v2.0 examined 130,865 lines of code across 1168 source files, recording 121 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 7.7 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.7
Adjusted Score
7.7
Raw Score
100%
Time Factor
2026-07-14
Last Push
13.8K
Stars
Kotlin
Language
130.9K
Lines of Code
1.2K
Files
121
Pattern Hits
2026-07-14
Scan Date
0.07
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 75HIGH 1MEDIUM 2LOW 43

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

Hallucination Indicators75 hits · 950 pts
SeverityFileLineSnippetContext
CRITICALdocs/topics/debugging.md85 at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:374)CODE
CRITICALdocs/topics/debugging.md86 at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:342)CODE
CRITICALdocs/topics/debugging.md87 at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:328)CODE
CRITICALdocs/topics/debugging.md88 at kotlinx.coroutines.debug.internal.DebugProbesImpl.install(DebugProbesImpl.kt:39)CODE
CRITICAL…amicAgentJpmsTest/kotlin/DynamicAttachDebugJpmsTest.kt29 * at kotlinx.coroutines.debug/kotlinx.coroutines.repackaged.net.bytebuddy.agent.Installer.getInstrumentation(InstaCOMMENT
CRITICALkotlinx-coroutines-debug/README.md155 at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:374)CODE
CRITICALkotlinx-coroutines-debug/README.md156 at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:342)CODE
CRITICALkotlinx-coroutines-debug/README.md157 at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:328)CODE
CRITICALkotlinx-coroutines-debug/README.md158 at kotlinx.coroutines.debug.internal.DebugProbesImpl.install(DebugProbesImpl.kt:39)CODE
CRITICALkotlinx-coroutines-debug/README.md213 at com.android.builder.merge.DelegateIncrementalFileMergerOutput.create(DelegateIncrementalFileMergerOutput.javaCODE
CRITICALkotlinx-coroutines-debug/README.md215 at com.android.builder.merge.IncrementalFileMerger.updateChangedFile(IncrementalFileMerger.java:242)CODE
CRITICALkotlinx-coroutines-debug/README.md216 at com.android.builder.merge.IncrementalFileMerger.mergeChangedInputs(IncrementalFileMerger.java:203)CODE
CRITICALkotlinx-coroutines-debug/README.md217 at com.android.builder.merge.IncrementalFileMerger.merge(IncrementalFileMerger.java:80)CODE
CRITICALkotlinx-coroutines-debug/README.md218 at com.android.build.gradle.internal.tasks.MergeJavaResourcesDelegate.run(MergeJavaResourcesDelegate.kt:276)CODE
CRITICALkotlinx-coroutines-debug/README.md219 at com.android.build.gradle.internal.tasks.MergeJavaResRunnable.run(MergeJavaResRunnable.kt:81)CODE
CRITICALkotlinx-coroutines-debug/README.md221 at org.gradle.workers.internal.AdapterWorkAction.execute(AdapterWorkAction.java:50)CODE
CRITICALkotlinx-coroutines-debug/README.md222 at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:50)CODE
CRITICALkotlinx-coroutines-debug/README.md225 at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:98)CODE
CRITICALkotlinx-coroutines-debug/README.md232 at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)CODE
CRITICALkotlinx-coroutines-debug/README.md233 at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)CODE
CRITICALkotlinx-coroutines-debug/README.md234 at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)CODE
CRITICALkotlinx-coroutines-debug/README.md235 at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36CODE
CRITICALkotlinx-coroutines-debug/README.md236 at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41)CODE
CRITICALkotlinx-coroutines-debug/test/SanitizedProbesTest.kt28 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.oneMoreNestedMethod(SanitizedProbesTest.CODE
CRITICALkotlinx-coroutines-debug/test/SanitizedProbesTest.kt29 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.nestedMethod(SanitizedProbesTest.kt:61)\CODE
CRITICALkotlinx-coroutines-debug/test/SanitizedProbesTest.kt35 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.testRecoveredStackTrace(SanitizedProbesTCODE
CRITICALkotlinx-coroutines-debug/test/SanitizedProbesTest.kt38 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n"CODE
CRITICALkotlinx-coroutines-debug/test/SanitizedProbesTest.kt55 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.testCoroutinesDump(SanitizedProbesTest.kt:56CODE
CRITICALkotlinx-coroutines-debug/test/SanitizedProbesTest.kt64 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.createActiveDeferred(SanitizedProbesTestCODE
CRITICALkotlinx-coroutines-debug/test/SanitizedProbesTest.kt67 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n" +CODE
CRITICALkotlinx-coroutines-debug/test/SanitizedProbesTest.kt70 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.testCoroutinesDump(SanitizedProbesTest.kCODE
CRITICALkotlinx-coroutines-debug/test/SanitizedProbesTest.kt93 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.launchSelector(SanitizedProbesTest.kt:100)\nCODE
CRITICALkotlinx-coroutines-debug/test/SanitizedProbesTest.kt96 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n" +CODE
CRITICALkotlinx-coroutines-debug/test/SanitizedProbesTest.kt99 "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.testSelectBuilder(SanitizedProbesTest.kt:88)CODE
CRITICAL…x-coroutines-debug/test/RunningThreadStackMergeTest.kt23 "\tat java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)\n" +CODE
CRITICAL…x-coroutines-debug/test/RunningThreadStackMergeTest.kt79 "\tat java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)\n" +CODE
CRITICAL…x-coroutines-debug/test/RunningThreadStackMergeTest.kt117 "\tat java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)\n" +CODE
CRITICAL…x-coroutines-debug/test/RunningThreadStackMergeTest.kt148 "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.enhanceStackTraceWithThreadDumpImpl(DebugProbesICODE
CRITICAL…x-coroutines-debug/test/RunningThreadStackMergeTest.kt149 "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutinesSynchronized(DebugProbesImpl.kt)\nCODE
CRITICAL…x-coroutines-debug/test/RunningThreadStackMergeTest.kt150 "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutines(DebugProbesImpl.kt)\n" +CODE
CRITICALkotlinx-coroutines-debug/test/DebugProbesTest.kt28 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)"CODE
CRITICALkotlinx-coroutines-debug/test/DebugProbesTest.kt48 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt)\n"CODE
CRITICALkotlinx-coroutines-debug/test/DebugProbesTest.kt69 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n"CODE
CRITICAL…oroutines-debug/test/DumpWithCreationStackTraceTest.kt22 "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.enhanceStackTraceWithThreadDumpImpl(DebugProbesICODE
CRITICAL…oroutines-debug/test/DumpWithCreationStackTraceTest.kt23 "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutinesSynchronized(DebugProbesImpl.kt)\nCODE
CRITICAL…oroutines-debug/test/DumpWithCreationStackTraceTest.kt24 "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutines(DebugProbesImpl.kt)\n" +CODE
CRITICAL…/test/exceptions/StackTraceRecoveryNestedScopesTest.kt24 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)"CODE
CRITICAL…/test/exceptions/StackTraceRecoveryNestedScopesTest.kt96 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)")CODE
CRITICAL…nes-core/jvm/test/exceptions/StackTraceRecoveryTest.kt42 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n"CODE
CRITICAL…nes-core/jvm/test/exceptions/StackTraceRecoveryTest.kt64 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)"CODE
CRITICAL…nes-core/jvm/test/exceptions/StackTraceRecoveryTest.kt99 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n")CODE
CRITICAL…nes-core/jvm/test/exceptions/StackTraceRecoveryTest.kt136 "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n")CODE
CRITICAL…s/stacktraces/resume-mode/testUnconfinedSuspending.txt9 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)CODE
CRITICAL…aces/resume-mode/testEventLoopDispatcherSuspending.txt10 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)CODE
CRITICAL…es/stacktraces/resume-mode/testEventLoopDispatcher.txt12 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)CODE
CRITICAL…t-resources/stacktraces/resume-mode/testUnconfined.txt9 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt)CODE
CRITICAL…ktraces/resume-mode/testNestedUnconfinedSuspending.txt11 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)CODE
CRITICAL…-mode/testNestedUnconfinedChangedContextSuspending.txt11 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)CODE
CRITICAL…ces/resume-mode/testNestedUnconfinedChangedContext.txt13 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)CODE
CRITICAL…aces/resume-mode/testNestedEventLoopChangedContext.txt13 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)CODE
15 more matches not shown…
Over-Commented Block34 hits · 31 pts
SeverityFileLineSnippetContext
LOWkotlinx-coroutines-core/common/src/JobSupport.kt901 // final state -- when completed, for call to afterCompletionCOMMENT
LOWkotlinx-coroutines-core/common/src/selects/Select.kt481 * provided via [selectInRegistrationPhase] -- the algorithmCOMMENT
LOWkotlinx-coroutines-core/common/src/selects/Select.kt561 * coroutine to invoke [trySelect] while this `select` is still in REGISTRATION phase.COMMENT
LOWkotlinx-coroutines-core/common/src/selects/Select.kt641 // Success! Store the resumption value andCOMMENT
LOWkotlinx-coroutines-core/common/src/selects/Select.kt701 val selectedClause = state.value as SelectImplementation<R>.ClauseDataCOMMENT
LOWkotlinx-coroutines-core/common/src/selects/SelectOld.kt21 @PublishedApiCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt181 }COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt281 // Try to find the required segment if the initially obtainedCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt421 // Read the current cell state.COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt761 val r = receivers.valueCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt821 if (segment.id != id) {COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt881 // Read the segment reference before the counter increment;COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1041 // The cell state should be updated according to its state machine;COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1101 // suspended sender. Wait in a spin-loop untilCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1161 }COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1181 // In case its value is lower than `b`, the `send(e)`COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1201 // the linked list of segments is already closed,COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1241 // Read the current cell state.COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1281 b: LongCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1301 // suspended in the cell operation is sender or receiver.COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1401 val b = bufferEndCounterCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt1921 // Close the linked list for further segment addition,COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2021 // the variable below. If multiple exceptions are thrown, the firstCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2261 val r = receiversCounterCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2321 state === INTERRUPTED_SEND -> return falseCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2381 // this case, as the closing/cancellation procedure mayCOMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2441 } else {COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2481 completeCloseOrCancel()COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2821 // ########################COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2861 cur === INTERRUPTED_SEND || cur === INTERRUPTED_RCV -> {COMMENT
LOW…coroutines-core/common/src/channels/BufferedChannel.kt2961private val IN_BUFFER = Symbol("SHOULD_BUFFER")COMMENT
LOW…oroutines-core/common/src/channels/BroadcastChannel.kt101 // as, reputedly, it is the simplest synchronization scheme.COMMENT
LOW…oroutines-core/common/src/channels/BroadcastChannel.kt161 override suspend fun send(element: E) {COMMENT
LOW…oroutines-core/common/src/channels/BroadcastChannel.kt201 // Finish with success.COMMENT
Verbosity Indicators4 hits · 8 pts
SeverityFileLineSnippetContext
LOWkotlinx-coroutines-core/common/src/Await.kt65 // Step 1: Create nodes and install them as completion handlers, they may fire!COMMENT
LOWkotlinx-coroutines-core/common/src/Await.kt74 // Step 2: Set disposer to each nodeCOMMENT
LOWkotlinx-coroutines-core/common/src/Await.kt77 // Step 3: Now we can check if continuation is completeCOMMENT
LOW…-coroutines-core/common/src/CancellableContinuation.kt157 * The purpose of this function is to enable atomic delivery guarantees: either resumption succeeded, passingCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHui/kotlinx-coroutines-android/src/HandlerDispatcher.kt170 // inlining `Boolean.hashCode()` for Android compatibility, as requested by Animal SnifferCOMMENT
Structural Annotation Overuse3 hits · 7 pts
SeverityFileLineSnippetContext
LOWkotlinx-coroutines-core/common/src/Await.kt65 // Step 1: Create nodes and install them as completion handlers, they may fire!COMMENT
LOWkotlinx-coroutines-core/common/src/Await.kt74 // Step 2: Set disposer to each nodeCOMMENT
LOWkotlinx-coroutines-core/common/src/Await.kt77 // Step 3: Now we can check if continuation is completeCOMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…coroutines-core/common/src/channels/BufferedChannel.kt773 // the operation decides to suspend. This way, we can leverageCOMMENT
MEDIUM…m/kotlin/kotlinx/coroutines/flow/TakeWhileBenchmark.kt51 // Essentially the same code, but reusing the logic via collectWhile functionCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWkotlinx-coroutines-core/common/src/JobSupport.kt351 // Notify parent but don't forget to check cancellationCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWkotlinx-coroutines-core/common/src/channels/Produce.kt243 * ## Usage exampleCOMMENT