Library support for Kotlin coroutines
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).
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | docs/topics/debugging.md | 85 | at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:374) | CODE |
| CRITICAL⚡ | docs/topics/debugging.md | 86 | at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:342) | CODE |
| CRITICAL⚡ | docs/topics/debugging.md | 87 | at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:328) | CODE |
| CRITICAL⚡ | docs/topics/debugging.md | 88 | at kotlinx.coroutines.debug.internal.DebugProbesImpl.install(DebugProbesImpl.kt:39) | CODE |
| CRITICAL | …amicAgentJpmsTest/kotlin/DynamicAttachDebugJpmsTest.kt | 29 | * at kotlinx.coroutines.debug/kotlinx.coroutines.repackaged.net.bytebuddy.agent.Installer.getInstrumentation(Insta | COMMENT |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 155 | at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:374) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 156 | at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:342) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 157 | at kotlinx.coroutines.repackaged.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:328) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 158 | at kotlinx.coroutines.debug.internal.DebugProbesImpl.install(DebugProbesImpl.kt:39) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 213 | at com.android.builder.merge.DelegateIncrementalFileMergerOutput.create(DelegateIncrementalFileMergerOutput.java | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 215 | at com.android.builder.merge.IncrementalFileMerger.updateChangedFile(IncrementalFileMerger.java:242) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 216 | at com.android.builder.merge.IncrementalFileMerger.mergeChangedInputs(IncrementalFileMerger.java:203) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 217 | at com.android.builder.merge.IncrementalFileMerger.merge(IncrementalFileMerger.java:80) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 218 | at com.android.build.gradle.internal.tasks.MergeJavaResourcesDelegate.run(MergeJavaResourcesDelegate.kt:276) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 219 | at com.android.build.gradle.internal.tasks.MergeJavaResRunnable.run(MergeJavaResRunnable.kt:81) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 221 | at org.gradle.workers.internal.AdapterWorkAction.execute(AdapterWorkAction.java:50) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 222 | at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:50) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 225 | at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:98) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 232 | at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 233 | at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 234 | at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 235 | at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36 | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/README.md | 236 | at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41) | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/test/SanitizedProbesTest.kt | 28 | "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.oneMoreNestedMethod(SanitizedProbesTest. | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/test/SanitizedProbesTest.kt | 29 | "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.nestedMethod(SanitizedProbesTest.kt:61)\ | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/test/SanitizedProbesTest.kt | 35 | "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.testRecoveredStackTrace(SanitizedProbesT | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/test/SanitizedProbesTest.kt | 38 | "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n" | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/test/SanitizedProbesTest.kt | 55 | "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.testCoroutinesDump(SanitizedProbesTest.kt:56 | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/test/SanitizedProbesTest.kt | 64 | "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.createActiveDeferred(SanitizedProbesTest | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/test/SanitizedProbesTest.kt | 67 | "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n" + | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/test/SanitizedProbesTest.kt | 70 | "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.testCoroutinesDump(SanitizedProbesTest.k | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/test/SanitizedProbesTest.kt | 93 | "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.launchSelector(SanitizedProbesTest.kt:100)\n | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/test/SanitizedProbesTest.kt | 96 | "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n" + | CODE |
| CRITICAL⚡ | kotlinx-coroutines-debug/test/SanitizedProbesTest.kt | 99 | "\tat definitely.not.kotlinx.coroutines.SanitizedProbesTest.testSelectBuilder(SanitizedProbesTest.kt:88) | CODE |
| CRITICAL | …x-coroutines-debug/test/RunningThreadStackMergeTest.kt | 23 | "\tat java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)\n" + | CODE |
| CRITICAL | …x-coroutines-debug/test/RunningThreadStackMergeTest.kt | 79 | "\tat java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)\n" + | CODE |
| CRITICAL | …x-coroutines-debug/test/RunningThreadStackMergeTest.kt | 117 | "\tat java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)\n" + | CODE |
| CRITICAL⚡ | …x-coroutines-debug/test/RunningThreadStackMergeTest.kt | 148 | "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.enhanceStackTraceWithThreadDumpImpl(DebugProbesI | CODE |
| CRITICAL⚡ | …x-coroutines-debug/test/RunningThreadStackMergeTest.kt | 149 | "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutinesSynchronized(DebugProbesImpl.kt)\n | CODE |
| CRITICAL⚡ | …x-coroutines-debug/test/RunningThreadStackMergeTest.kt | 150 | "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutines(DebugProbesImpl.kt)\n" + | CODE |
| CRITICAL | kotlinx-coroutines-debug/test/DebugProbesTest.kt | 28 | "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)" | CODE |
| CRITICAL | kotlinx-coroutines-debug/test/DebugProbesTest.kt | 48 | "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt)\n" | CODE |
| CRITICAL | kotlinx-coroutines-debug/test/DebugProbesTest.kt | 69 | "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n" | CODE |
| CRITICAL⚡ | …oroutines-debug/test/DumpWithCreationStackTraceTest.kt | 22 | "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.enhanceStackTraceWithThreadDumpImpl(DebugProbesI | CODE |
| CRITICAL⚡ | …oroutines-debug/test/DumpWithCreationStackTraceTest.kt | 23 | "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutinesSynchronized(DebugProbesImpl.kt)\n | CODE |
| CRITICAL⚡ | …oroutines-debug/test/DumpWithCreationStackTraceTest.kt | 24 | "\tat kotlinx.coroutines.debug.internal.DebugProbesImpl.dumpCoroutines(DebugProbesImpl.kt)\n" + | CODE |
| CRITICAL | …/test/exceptions/StackTraceRecoveryNestedScopesTest.kt | 24 | "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)" | CODE |
| CRITICAL | …/test/exceptions/StackTraceRecoveryNestedScopesTest.kt | 96 | "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)") | CODE |
| CRITICAL | …nes-core/jvm/test/exceptions/StackTraceRecoveryTest.kt | 42 | "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n" | CODE |
| CRITICAL | …nes-core/jvm/test/exceptions/StackTraceRecoveryTest.kt | 64 | "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)" | CODE |
| CRITICAL | …nes-core/jvm/test/exceptions/StackTraceRecoveryTest.kt | 99 | "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n") | CODE |
| CRITICAL | …nes-core/jvm/test/exceptions/StackTraceRecoveryTest.kt | 136 | "\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n") | CODE |
| CRITICAL | …s/stacktraces/resume-mode/testUnconfinedSuspending.txt | 9 | at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) | CODE |
| CRITICAL | …aces/resume-mode/testEventLoopDispatcherSuspending.txt | 10 | at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) | CODE |
| CRITICAL | …es/stacktraces/resume-mode/testEventLoopDispatcher.txt | 12 | at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) | CODE |
| CRITICAL | …t-resources/stacktraces/resume-mode/testUnconfined.txt | 9 | at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt) | CODE |
| CRITICAL | …ktraces/resume-mode/testNestedUnconfinedSuspending.txt | 11 | at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) | CODE |
| CRITICAL | …-mode/testNestedUnconfinedChangedContextSuspending.txt | 11 | at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) | CODE |
| CRITICAL | …ces/resume-mode/testNestedUnconfinedChangedContext.txt | 13 | at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) | CODE |
| CRITICAL | …aces/resume-mode/testNestedEventLoopChangedContext.txt | 13 | at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) | CODE |
| 15 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kotlinx-coroutines-core/common/src/JobSupport.kt | 901 | // final state -- when completed, for call to afterCompletion | COMMENT |
| LOW | kotlinx-coroutines-core/common/src/selects/Select.kt | 481 | * provided via [selectInRegistrationPhase] -- the algorithm | COMMENT |
| LOW | kotlinx-coroutines-core/common/src/selects/Select.kt | 561 | * coroutine to invoke [trySelect] while this `select` is still in REGISTRATION phase. | COMMENT |
| LOW | kotlinx-coroutines-core/common/src/selects/Select.kt | 641 | // Success! Store the resumption value and | COMMENT |
| LOW | kotlinx-coroutines-core/common/src/selects/Select.kt | 701 | val selectedClause = state.value as SelectImplementation<R>.ClauseData | COMMENT |
| LOW | kotlinx-coroutines-core/common/src/selects/SelectOld.kt | 21 | @PublishedApi | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 181 | } | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 281 | // Try to find the required segment if the initially obtained | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 421 | // Read the current cell state. | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 761 | val r = receivers.value | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 821 | if (segment.id != id) { | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 881 | // Read the segment reference before the counter increment; | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 1041 | // The cell state should be updated according to its state machine; | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 1101 | // suspended sender. Wait in a spin-loop until | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 1161 | } | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 1181 | // In case its value is lower than `b`, the `send(e)` | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 1201 | // the linked list of segments is already closed, | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 1241 | // Read the current cell state. | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 1281 | b: Long | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 1301 | // suspended in the cell operation is sender or receiver. | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 1401 | val b = bufferEndCounter | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 1921 | // Close the linked list for further segment addition, | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 2021 | // the variable below. If multiple exceptions are thrown, the first | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 2261 | val r = receiversCounter | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 2321 | state === INTERRUPTED_SEND -> return false | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 2381 | // this case, as the closing/cancellation procedure may | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 2441 | } else { | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 2481 | completeCloseOrCancel() | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 2821 | // ######################## | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 2861 | cur === INTERRUPTED_SEND || cur === INTERRUPTED_RCV -> { | COMMENT |
| LOW | …coroutines-core/common/src/channels/BufferedChannel.kt | 2961 | private val IN_BUFFER = Symbol("SHOULD_BUFFER") | COMMENT |
| LOW | …oroutines-core/common/src/channels/BroadcastChannel.kt | 101 | // as, reputedly, it is the simplest synchronization scheme. | COMMENT |
| LOW | …oroutines-core/common/src/channels/BroadcastChannel.kt | 161 | override suspend fun send(element: E) { | COMMENT |
| LOW | …oroutines-core/common/src/channels/BroadcastChannel.kt | 201 | // Finish with success. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | kotlinx-coroutines-core/common/src/Await.kt | 65 | // Step 1: Create nodes and install them as completion handlers, they may fire! | COMMENT |
| LOW⚡ | kotlinx-coroutines-core/common/src/Await.kt | 74 | // Step 2: Set disposer to each node | COMMENT |
| LOW⚡ | kotlinx-coroutines-core/common/src/Await.kt | 77 | // Step 3: Now we can check if continuation is complete | COMMENT |
| LOW | …-coroutines-core/common/src/CancellableContinuation.kt | 157 | * The purpose of this function is to enable atomic delivery guarantees: either resumption succeeded, passing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | ui/kotlinx-coroutines-android/src/HandlerDispatcher.kt | 170 | // inlining `Boolean.hashCode()` for Android compatibility, as requested by Animal Sniffer | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | kotlinx-coroutines-core/common/src/Await.kt | 65 | // Step 1: Create nodes and install them as completion handlers, they may fire! | COMMENT |
| LOW⚡ | kotlinx-coroutines-core/common/src/Await.kt | 74 | // Step 2: Set disposer to each node | COMMENT |
| LOW⚡ | kotlinx-coroutines-core/common/src/Await.kt | 77 | // Step 3: Now we can check if continuation is complete | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …coroutines-core/common/src/channels/BufferedChannel.kt | 773 | // the operation decides to suspend. This way, we can leverage | COMMENT |
| MEDIUM | …m/kotlin/kotlinx/coroutines/flow/TakeWhileBenchmark.kt | 51 | // Essentially the same code, but reusing the logic via collectWhile function | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kotlinx-coroutines-core/common/src/JobSupport.kt | 351 | // Notify parent but don't forget to check cancellation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | kotlinx-coroutines-core/common/src/channels/Produce.kt | 243 | * ## Usage example | COMMENT |