Repository Analysis

INRIA/spoon

Spoon is a metaprogramming library to analyze and transform Java source code. :spoon: is made with :heart:, :beers: and :sparkles:. It parses source files to build a well-designed AST with powerful analysis and transformation API.

14.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of INRIA/spoon, a Java project with 1,949 GitHub stars. SynthScan v2.0 examined 287,430 lines of code across 2745 source files, recording 534 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 14.1 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).

14.1
Adjusted Score
14.1
Raw Score
100%
Time Factor
2026-08-09
Last Push
1.9K
Stars
Java
Language
287.4K
Lines of Code
2.7K
Files
534
Pattern Hits
2026-08-09
Scan Date
0.17
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 470HIGH 2MEDIUM 2LOW 60

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 534 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 Indicators470 hits · 3980 pts
SeverityFileLineSnippetContext
CRITICALdoc/js/search.min.js25var t,n,r,i,o,s=[],a=z.call(arguments),u=(yt.get(this,"events")||{})[e.type]||[],l=K.event.special[e.type]||{};if(a[0]=eCODE
CRITICAL…oon-smpl/src/test/java/spoon/smpl/C4JGetColorTest.java115 assertTrue(method.toString().contains("context.getResources().getColor(com.kickstarter.libs.utils.KSColorUtils.darkColCODE
CRITICAL…oon-smpl/src/test/java/spoon/smpl/C4JGetColorTest.java118 assertFalse(method.toString().contains("context.getResources().getColor(com.kickstarter.libs.utils.KSColorUtils.darkCoCODE
CRITICAL…oon-smpl/src/test/java/spoon/smpl/C4JGetColorTest.java119 assertTrue(method.toString().contains("ContextCompat.getColor(context, com.kickstarter.libs.utils.KSColorUtils.darkColCODE
CRITICAL…oon-smpl/src/test/java/spoon/smpl/C4JGetColorTest.java128 assertTrue(method.toString().contains("context.getResources().getColor(com.kickstarter.libs.utils.KSColorUtils.lightCoCODE
CRITICAL…oon-smpl/src/test/java/spoon/smpl/C4JGetColorTest.java131 assertFalse(method.toString().contains("context.getResources().getColor(com.kickstarter.libs.utils.KSColorUtils.lightCCODE
CRITICAL…oon-smpl/src/test/java/spoon/smpl/C4JGetColorTest.java132 assertTrue(method.toString().contains("ContextCompat.getColor(context, com.kickstarter.libs.utils.KSColorUtils.lightCoCODE
CRITICALsrc/test/resources/compilation5/A.java88 new me.ccrama.redditslide.Activities.A.AsyncGetSubredditName().execute(name);CODE
CRITICALsrc/test/resources/compilation5/A.java104 me.ccrama.redditslide.Authentication.me = me.ccrama.redditslide.Authentication.reddit.me();CODE
CRITICALsrc/test/resources/compilation5/A.java105 me.ccrama.redditslide.Authentication.mod = me.ccrama.redditslide.Authentication.me.isMod();CODE
CRITICALsrc/test/resources/compilation5/A.java106 me.ccrama.redditslide.Authentication.authentication.edit().putBoolean(me.ccrama.redditslide.CODE
CRITICALsrc/test/resources/compilation5/A.java109 me.ccrama.redditslide.Reddit.notifications.start(getApplicationContext());CODE
CRITICALsrc/test/resources/compilation5/A.java111 if (me.ccrama.redditslide.Reddit.cachedData.contains("toCache")) {CODE
CRITICALsrc/test/resources/compilation5/A.java113 me.ccrama.redditslide.Reddit.autoCache.start(getApplicationContext());CODE
CRITICALsrc/test/resources/compilation5/A.java115 final java.lang.String name = me.ccrama.redditslide.Authentication.me.getFullName();CODE
CRITICALsrc/test/resources/compilation5/A.java117 me.ccrama.redditslide.util.LogUtil.v("AUTHENTICATED");CODE
CRITICALsrc/test/resources/compilation5/A.java119 if (me.ccrama.redditslide.Authentication.reddit.isAuthenticated()) {CODE
CRITICALsrc/test/resources/compilation5/A.java120 final java.util.Set<java.lang.String> accounts = me.ccrama.redditslide.Authentication.auCODE
CRITICALsrc/test/resources/compilation5/A.java125 me.ccrama.redditslide.Authentication.authentication.edit().putStringSet("accounts", CODE
CRITICALsrc/test/resources/compilation5/A.java153 comments = new me.ccrama.redditslide.Activities.A.OverviewPagerAdapter(getSupportFragmentManager());CODE
CRITICALsrc/test/resources/compilation5/A.java157 pager.setOnPageChangeListener(new android.support.v4.view.ViewPager.OnPageChangeListener() {CODE
CRITICALsrc/test/resources/compilation5/A.java195 final net.dean.jraw.models.Submission s = me.ccrama.redditslide.Authentication.reddit.getSubmission(paraCODE
CRITICALsrc/test/resources/compilation4/A.java35 android.support.design.widget.Snackbar s = android.support.design.widget.Snackbar.make(vCODE
CRITICALsrc/test/resources/compilation4/A.java54 android.support.design.widget.Snackbar s = android.support.design.widget.Snackbar.make(v, meCODE
CRITICAL…ses2/apachetestsuite/staticjava3/AllLangTestJava3.java56 suite.add(spoon.test.imports.testclasses2.apachetestsuite.enums.EnumTestSuite.suite());CODE
CRITICAL…/apachetestsuite/staticcollision/AllLangTestSuite.java56 suite.add(spoon.test.imports.testclasses2.apachetestsuite.enum2.EnumTestSuite.suite());CODE
CRITICAL…/spoon/test/query_function/VariableReferencesTest.java365 assertEquals("org.junit.jupiter.api.Assertions.assertTrue(field == 2)", stmt.toString());CODE
CRITICALsrc/test/java/spoon/test/generics/GenericsTest.java518 assertEquals("spoon.test.generics.testclasses.Tacos.makeTacos()", invocation2.toString());CODE
CRITICAL…est/java/spoon/test/fieldaccesses/FieldAccessTest.java233 String expectedLambda = "() -> {" + System.lineSeparator() + " spoon.test.fieldaccesses.testclasses.MyClass.LOG.infCODE
CRITICAL…spoon/test/variable/AccessFullyQualifiedFieldTest.java144 assertTrue(!result.contains("spoon.test.variable.testclasses.MultiBurritos.toto();"), "The result should not contain aCODE
CRITICAL…spoon/test/variable/AccessFullyQualifiedFieldTest.java146 assertTrue(!result.contains("spoon.test.variable.testclasses.ForStaticVariables.foo();"), "The result should not contaCODE
CRITICAL…spoon/test/variable/AccessFullyQualifiedFieldTest.java158 assertTrue(!result.contains("spoon.test.variable.testclasses.ForStaticVariables.foo()"), "The result should not contaiCODE
CRITICALsrc/test/java/spoon/test/casts/CastTest.java117 assertEquals("((java.lang.@spoon.test.casts.testclasses.Castings.TypeAnnotation(integer = 1)" + System.lineSeparator()CODE
CRITICALsrc/test/java/spoon/test/path/PathTest.java167 equals(new CtPathStringBuilder().fromString(".spoon.test.path.testclasses.Foo.bar(int,int)/CtParameter"),CODE
CRITICALsrc/test/java/spoon/test/path/PathTest.java173 equals(new CtPathStringBuilder().fromString(".spoon.test.path.testclasses.Foo.bar(int)/CtParameter"),CODE
CRITICAL…spoon/test/prettyprinter/DefaultPrettyPrinterTest.java262 + " localField = spoon.test.prettyprinter.testclasses.sub.TypeIdentifierCollision.ENUM.E1.ordinal();" + nlCODE
CRITICAL…t/java/spoon/test/prettyprinter/TestSniperPrinter.java275 testSniper(spoon.test.prettyprinter.testclasses.Simple.class.getName(), type -> {CODE
CRITICAL…prettyprinter/testclasses/TypeIdentifierCollision.java23 localField = spoon.test.prettyprinter.testclasses.sub.TypeIdentifierCollision.ENUM.E1.ordinal();CODE
CRITICALsrc/test/java/spoon/test/template/TemplateTest.java670 assertEquals("spoon.test.template.testclasses.logger.Logger.exit(\"enter\")", aTry.getFinalizer().getStatement(0).toStCODE
CRITICALsrc/test/java/spoon/test/template/TemplateTest.java672 assertEquals("spoon.test.template.testclasses.logger.Logger.enter(\"Logger\", \"enter\")", aTry.getBody().getStatementCODE
CRITICALsrc/test/java/spoon/test/template/TemplateTest.java934 assertEquals("java.lang.System.out.println(spoon.test.template.testclasses.Params.value1())", result.getMethodsByNameCODE
CRITICALsrc/test/java/spoon/test/template/TemplateTest.java1119 assertEquals("o = spoon.test.template.TypeReferenceClassAccess.Example.currentTimeMillis()", method.getBody().getStateCODE
CRITICAL…t/java/spoon/test/template/TemplateEnumAccessTest.java47 assertEquals("java.lang.annotation.ElementType.FIELD.name()", resultKlass.getMethod("method").getBody().getStatement(0CODE
CRITICALsrc/test/java/spoon/test/template/PatternTest.java1579 assertEquals("spoon.test.template.testclasses.logger.Logger.exit(\"enter\")", aTry.getFinalizer().getStatement(0).toStCODE
CRITICALsrc/test/java/spoon/test/template/PatternTest.java1581 assertEquals("spoon.test.template.testclasses.logger.Logger.enter(\"Logger\", \"enter\")", aTry.getBody().getStatementCODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1273 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatable.Tag(\"machin\")"), "Content of the filCODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1274 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatable.Tag(\"truc\")"), "Content of the file:CODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1304 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatable.Tag(\"foo\")"), "Content of the file: CODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1305 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatable.Tag(\"bar\")"), "Content of the file: CODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1326 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatandarrays.TagArrays({ \"machin\", \"truc\" CODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1327 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatandarrays.TagArrays({ \"truc\", \"bidule\" CODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1355 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatandarrays.TagArrays(\"foo\")"), "Content ofCODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1356 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatandarrays.TagArrays(\"bar\")"), "Content ofCODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1372 assertTrue(methodContent.contains("@spoon.test.annotation.testclasses.notrepeatable.StringAnnot(\"foo\")"), "Content: CODE
CRITICALsrc/test/java/spoon/test/imports/ImportTest.java228 assertEquals("new spoon.test.imports.testclasses.SubClass.Item(\"\")", ctConstructorCall.toString());CODE
CRITICALsrc/test/java/spoon/test/imports/ImportTest.java234 + " new spoon.test.imports.testclasses.SubClass.Item(\"\");"+ System.lineSeparator() + " }"CODE
CRITICALsrc/test/java/spoon/test/imports/ImportTest.java1141 assertThat("The call to the last EnumTestSuite should be in FQN", output, containsString("suite.add(spoon.test.importsCODE
CRITICALsrc/test/java/spoon/test/imports/ImportTest.java1171 assertThat("The call to the last EnumTestSuite should be in FQN", output, containsString("suite.add(spoon.test.importsCODE
CRITICALsrc/test/java/spoon/test/imports/ImportTest.java1471 " java.lang.System.out.println(spoon.test.imports.testclasses.JavaLongUse.method());" + nl +CODE
CRITICALsrc/test/java/spoon/test/arrays/ArraysTest.java54 assertEquals("@spoon.test.arrays.testclasses.ArrayClass.TypeAnnotation(integer = 1)", arrayTypeReference.getArrayType(CODE
410 more matches not shown…
Over-Commented Block38 hits · 38 pts
SeverityFileLineSnippetContext
LOW.github/workflows/scorecards.yml41 persist-credentials: falseCOMMENT
LOWdoc/js/jquery.shuffle.min.js941 // could fit, ignoring the current positions of items.COMMENT
LOWdoc/jenkins/build.sh1#!/bin/bashCOMMENT
LOWspoon-smpl/src/main/java/spoon/smpl/SmPLParser.java141COMMENT
LOWspoon-smpl/src/main/java/spoon/smpl/SmPLParser.java161 //COMMENT
LOWsrc/test/resources/noclasspath/FileIO.java441 // newppt.ppt_name.setVisibility("public");COMMENT
LOWsrc/test/resources/noclasspath/FileIO.java621 // COMPARABILITY TESTCOMMENT
LOWsrc/test/resources/noclasspath/FileIO.java901 all_program_points = all_program_points && is_program_point;COMMENT
LOWsrc/test/resources/noclasspath/FileIO.java1401 // is true and isCombinedExitPoint() is false. "Combined" exit pointsCOMMENT
LOWsrc/test/resources/noclasspath/Daikon.java361 * calculated by joining the invariants from each of their childrenCOMMENT
LOWsrc/test/resources/noclasspath/Daikon.java1961 // continue;COMMENT
LOWsrc/test/resources/noclasspath/Daikon.java2181// /**COMMENT
LOWsrc/test/resources/noclasspath/Solver.java821 // without limitation the rights to use, copy, modify, merge, publish,COMMENT
LOWsrc/test/resources/variable/PropPanelUseCase_1.40.java1// $Id: PropPanelUseCase.java,v 1.40 2003-12-06 07:56:44 mkl Exp $COMMENT
LOWsrc/test/resources/variable/PropPanelUseCase_1.40.java21// PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OFCOMMENT
LOWsrc/test/resources/comment/MarkdownCommentExamples.java21 ///COMMENT
LOWsrc/test/resources/spoon/test/api/CommentedClass.java1//package spoon.test.api.testclasses;COMMENT
LOWsrc/test/java/spoon/test/generics/GenericsTest.java901 + "X"COMMENT
LOW…t/java/spoon/test/ctType/testclasses/SubtypeModel.java61 listAll = listExtendsY;COMMENT
LOW…t/java/spoon/test/ctType/testclasses/SubtypeModel.java101// listExtendsY = listExtendsX; COMMENT
LOWsrc/test/java/spoon/test/module/TestModule.java381 }COMMENT
LOWsrc/test/java/spoon/test/template/PatternTest.java601 }COMMENT
LOW…n/test/architecture/SpoonArchitectureEnforcerTest.java281 // and crashes with a dirty exceptionCOMMENT
LOW…n/test/architecture/SpoonArchitectureEnforcerTest.java301// @OverrideCOMMENT
LOWsrc/test/java/spoon/test/factory/FactoryTest.java201 // so we remove that test in order to proceed with other key features with strong contracts (incl. wrt to parents)COMMENT
LOWsrc/test/java/spoon/test/factory/FactoryTest.java221// // Feed some new inputResourcesCOMMENT
LOW…oon/testing/assertions/CtReferenceAssertInterface.java41 // is implemented.COMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java221COMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java241 // CtBinaryOperatorCOMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java261 // / \COMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java281 // Then it moves up to the next parent which is what we were passed initially as the branch.COMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java601 }COMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java621 // -> it should be impossible to introduce a pattern variable through the enhanced for statement.COMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java701 // branches. This will add the other branch's scopes as well:COMMENT
LOWsrc/main/java/spoon/reflect/factory/PackageFactory.java161 // it were ever allowed) does not allow overlapping packages, one of them will be a syntheticCOMMENT
LOW…ort/sniper/internal/AbstractSourceFragmentPrinter.java61 // We DO NOT want to print spaces between `index` and `prevIndex` in the case that thereCOMMENT
LOW…in/java/spoon/support/compiler/jdt/JDTTreeBuilder.java481 }COMMENT
LOW…in/java/spoon/support/compiler/jdt/ContextBuilder.java401COMMENT
Structural Annotation Overuse7 hits · 16 pts
SeverityFileLineSnippetContext
LOWdoc/architecture_test.md92 // Step 1: create modelCOMMENT
LOWdoc/architecture_test.md98 // Step 3: Remove fields not matching conditions. Our conditions here are:COMMENT
LOWdoc/architecture_test.md105 // Step 4: Query the model for all fieldReadsCOMMENT
LOWdoc/architecture_test.md110 // Step 5: Query every fieldRead for there declaring fieldCOMMENT
LOWdoc/architecture_test.md115 // Step 6: Lookup every field in the set. The set contains all fields, that have a read.COMMENT
LOWdoc/architecture_test.md120 // Step 7: Remove the fields having a read from the set of fields.COMMENT
LOWdoc/architecture_test.md122 // Step 8: Lets compare our result. if the set is empty, every field has a read, otherwise print the fields without COMMENT
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHspoon-smpl/tools/gen-e2e-testsuite.py86 if (results.size() > 0 && rule.getMethodsAdded().size() > 0) {CODE
HIGHspoon-smpl/tools/gen-e2e-testsuite.py92 assertEquals(expected.toString(), input.toString());CODE
Hyper-Verbose Identifiers7 hits · 6 pts
SeverityFileLineSnippetContext
LOWdoc/js/jekyll-search.js1!function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0)CODE
LOWchore/check-javadoc-regressions.py61def print_quality_check_not_parseable_error():CODE
LOWchore/check-javadoc-regressions.py119def find_added_violation_lines(reference: 'Counter[str]', other: 'Counter[str]') -> 'Counter[str]':CODE
LOWchore/check-javadoc-regressions.py176def command_compare_with_branch(target_branch: str) -> None:CODE
LOWchore/check-javadoc-regressions.py196def handle_compare_with_branch_output(target_branch: str, reference_output: str, other_output: str):CODE
LOWchore/check-javadoc-regressions.py230def print_status_deteriorated(reference_output: str, other_output: str):STRING
LOWchore/check-javadoc-regressions.py238def command_filtered_quality_check_errors(regex_str: str) -> None:STRING
Unused Imports6 hits · 6 pts
SeverityFileLineSnippetContext
LOWdoc/jenkins/inject_spoon_snapshot.py13CODE
LOWchore/check-links-in-doc.py6CODE
LOWspoon-smpl/tools/smplgui.py10CODE
LOWspoon-smpl/tools/smplgui.py14CODE
LOWspoon-smpl/tools/smplgui.py15CODE
LOWspoon-smpl/tools/smplgui.py17CODE
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
MEDIUMchore/check-javadoc-regressions.py316 print("Error executing native command:", e.cmd)STRING
MEDIUMchore/check-javadoc-regressions.py317 print("Error output:")STRING
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWchore/check-links-in-doc.py40CODE
LOWspoon-smpl/tools/smplgui.py92CODE