Repository Analysis

swagger-api/swagger-core

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API

18.9 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of swagger-api/swagger-core, a Java project with 7,530 GitHub stars. SynthScan v2.0 examined 124,941 lines of code across 1212 source files, recording 199 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 18.9 places this repository in the Moderate 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).

18.9
Adjusted Score
18.9
Raw Score
100%
Time Factor
2026-07-08
Last Push
7.5K
Stars
Java
Language
124.9K
Lines of Code
1.2K
Files
199
Pattern Hits
2026-07-14
Scan Date
0.15
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 180HIGH 0MEDIUM 13LOW 6

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 199 distinct pattern matches across 7 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 Indicators180 hits · 2325 pts
SeverityFileLineSnippetContext
CRITICAL…rs2/src/test/java/io/swagger/v3/jaxrs2/ReaderTest.java748 @io.swagger.v3.oas.annotations.Operation(tags = "/receiver/rest")CODE
CRITICAL…wagger/v3/jaxrs2/resources/model/MultipleSub2Bean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…wagger/v3/jaxrs2/resources/model/MultipleSub1Bean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…wagger/v3/jaxrs2/resources/model/MultipleBaseBean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…s2/petstore/responses/MethodArrayResponseResource.java21 arraySchema = @io.swagger.v3.oas.annotations.media.Schema(description = "Array description"),CODE
CRITICAL…s2/petstore/responses/MethodArrayResponseResource.java23 @io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…gger/v3/jaxrs2/integration/JaxrsAnnotationScanner.java95 classes = new HashSet<>(scanResult.getClassesWithAnnotation(javax.ws.rs.Path.class.getName()).loadClasses())CODE
CRITICAL…3/plugins/gradle/resources/model/MultipleSub2Bean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…3/plugins/gradle/resources/model/MultipleSub1Bean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…3/plugins/gradle/resources/model/MultipleBaseBean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…ava/io/swagger/v3/java17/resolving/JavaRecordTest.java63 @io.swagger.v3.oas.annotations.media.Schema(description = "Java Record with Schema Test")CODE
CRITICAL…ava/io/swagger/v3/java17/resolving/JavaRecordTest.java65 @io.swagger.v3.oas.annotations.media.Schema(description = "Testing of Schema on fields processing in Java ReCODE
CRITICAL…ava/io/swagger/v3/java17/resolving/JavaRecordTest.java70 @io.swagger.v3.oas.annotations.media.Schema(description = "Java Record with Bean Validation Test")CODE
CRITICAL…er/v3/java17/resolving/v31/ModelResolverOAS31Test.java47 @io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…er/v3/java17/resolving/v31/ModelResolverOAS31Test.java59 contains = @io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…er/v3/java17/resolving/v31/ModelResolverOAS31Test.java62 unevaluatedItems = @io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…er/v3/java17/resolving/v31/ModelResolverOAS31Test.java66 @io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…er/v3/java17/resolving/v31/ModelResolverOAS31Test.java72 @io.swagger.v3.oas.annotations.media.Schema(types = {CODE
CRITICAL…io/swagger/v3/java17/resources/JavaRecordResource.java4 @io.swagger.v3.oas.annotations.media.Schema(description = "Testing of Java Record Processing") String test,CODE
CRITICAL…java17/resources/TestControllerWithRecordResource.java18 content = @Content(mediaType = "application/json",schema = @io.swagger.v3.oas.annotations.media.ScheCODE
CRITICAL…/v3/plugin/maven/resources/model/MultipleSub2Bean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…/v3/plugin/maven/resources/model/MultipleSub1Bean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…/v3/plugin/maven/resources/model/MultipleBaseBean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java97 @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = Byte.class)))CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java101 @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = Byte.class, foCODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java105 @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = String.class, CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java109 @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = DummyClass.claCODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java116 @io.swagger.v3.oas.annotations.media.Schema(type = "string", example = "5 lacs per annum")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java119 @io.swagger.v3.oas.annotations.media.Schema(type = "number", example = "10")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java122 @io.swagger.v3.oas.annotations.media.Schema(type = "integer", example = "5")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java125 @io.swagger.v3.oas.annotations.media.Schema(example = "10.00")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java128 @io.swagger.v3.oas.annotations.media.Schema(example = "42", type = "string")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java131 @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "10.00")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java134 @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "42", type = "string")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java137 @io.swagger.v3.oas.annotations.media.Schema(examples = {"10.00", "20.50"})CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java140 @io.swagger.v3.oas.annotations.media.Schema(examples = {"42"}, type = "string")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java143 @io.swagger.v3.oas.annotations.media.Schema(example = "true")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java146 @io.swagger.v3.oas.annotations.media.Schema(example = "true", type = "boolean")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java149 @io.swagger.v3.oas.annotations.media.Schema(example = "true", type = "string")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java287 @io.swagger.v3.oas.annotations.media.Schema(type = "string")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java290 @io.swagger.v3.oas.annotations.media.Schema(type = "string", defaultValue = "null")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java293 @io.swagger.v3.oas.annotations.media.Schema(type = "string", nullable = true, defaultValue = "null")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java854 @io.swagger.v3.oas.annotations.media.Schema(description = "type-level description")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java858 @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "myDefault")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java863 @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java867 @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "typeDefault")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java871 @io.swagger.v3.oas.annotations.media.Schema(description = "field-level description")CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java373 io.swagger.v3.oas.annotations.media.Schema nullableDefaultSchema = new io.swagger.v3.oas.annotations.media.SchemCODE
CRITICAL…gger/v3/core/resolving/JodaLocalDateConverterTest.java37 @io.swagger.v3.oas.annotations.media.Schema(description = "name of the model")CODE
CRITICAL…gger/v3/core/resolving/JodaLocalDateConverterTest.java40 @io.swagger.v3.oas.annotations.media.Schema(description = "creation localDate", required = true)CODE
CRITICAL…gger/v3/core/resolving/JodaLocalDateConverterTest.java55 @io.swagger.v3.oas.annotations.media.Schema(description = "name of the model")CODE
CRITICAL…c/test/java/io/swagger/v3/core/resolving/JodaTest.java43 @io.swagger.v3.oas.annotations.media.Schema(description = "Name!")CODE
CRITICAL…c/test/java/io/swagger/v3/core/resolving/JodaTest.java46 @io.swagger.v3.oas.annotations.media.Schema(description = "creation timestamp", required = true)CODE
CRITICAL…est/java/io/swagger/v3/core/resolving/XMLInfoTest.java56 @io.swagger.v3.oas.annotations.media.Schema(description = "DESC")CODE
CRITICAL…c/test/java/io/swagger/v3/core/resolving/EnumTest.java261 @io.swagger.v3.oas.annotations.media.Schema(enumAsRef = true, description = "Property description", maximum = "1CODE
CRITICAL…c/test/java/io/swagger/v3/core/resolving/EnumTest.java268 @io.swagger.v3.oas.annotations.media.Schema(description = "Enum description")CODE
CRITICAL…c/test/java/io/swagger/v3/core/resolving/EnumTest.java277 @io.swagger.v3.oas.annotations.media.ArraySchema(schema = @io.swagger.v3.oas.annotations.media.Schema(enumAsRef CODE
CRITICAL…c/test/java/io/swagger/v3/core/resolving/EnumTest.java284 @io.swagger.v3.oas.annotations.media.Schema(description = "Enum description")CODE
CRITICAL…c/test/java/io/swagger/v3/core/resolving/EnumTest.java294 @io.swagger.v3.oas.annotations.media.Schema(description = "Plain enum property")CODE
CRITICAL…/java/io/swagger/v3/core/resolving/Ticket3365Test.java55 @io.swagger.v3.oas.annotations.media.Schema(CODE
120 more matches not shown…
Self-Referential Comments7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUM…est/resources/comprehensiveOAS31/paths/user-paths.yaml2# This file contains user-related paths referenced by the root fileCOMMENT
MEDIUM…test/resources/comprehensiveOAS31/paths/pet-paths.yaml2# This file contains pet-related paths referenced by the root fileCOMMENT
MEDIUM…st/resources/comprehensiveOAS31/paths/order-paths.yaml2# This file contains order-related paths referenced by the root fileCOMMENT
MEDIUM…resources/comprehensiveOAS31/schemas/user-schemas.yaml2# This file contains user-related schemas referenced by the root fileCOMMENT
MEDIUM…/resources/comprehensiveOAS31/schemas/pet-schemas.yaml2# This file contains pet-related schemas referenced by the root fileCOMMENT
MEDIUM…esources/comprehensiveOAS31/schemas/order-schemas.yaml2# This file contains order-related schemas referenced by the root fileCOMMENT
MEDIUM…sources/comprehensiveOAS31/schemas/common-schemas.yaml2# This file contains common schemas referenced by the root fileCOMMENT
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…/test/resources/integration/openapi-configuration.json10 "description": "This is a TEST AAsample server Petstore server. You can find out more about Swagger at [httCODE
MEDIUM…core/src/test/resources/specFiles/compositionTest.json4 "description": "This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swCODE
MEDIUM…wagger-core/src/test/resources/specFiles/noModels.json4 "description": "This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swCODE
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…esources/comprehensiveOAS31/comprehensive-openapi.yaml2# This file demonstrates a comprehensive OpenAPI 3.1 document with JSON Schema 2020/12 featuresCOMMENT
MEDIUM…/resources/comprehensiveOAS31/schemas/json-schema.yaml2# This file demonstrates a comprehensive JSON Schema 2020/12 documentCOMMENT
Excessive Try-Catch Wrapping3 hits · 4 pts
SeverityFileLineSnippetContext
LOWCI/ghApiClient.py30 except Exception:CODE
LOWCI/ghApiClient.py56 except Exception:CODE
MEDIUMCI/ghApiClient.py14def readUrl(name):CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWCI/test.py8CODE
LOWCI/releaseNotes.py8CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…rs2/src/test/java/io/swagger/v3/jaxrs2/ReaderTest.java1192 " example: Lorem ipsum dolor set\n";CODE
LOW…io/swagger/v3/jaxrs2/resources/Ticket2806Resource.java30 example = "Lorem ipsum dolor set"CODE