Repository Analysis

microsoft/typespec

3.2 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of microsoft/typespec, a Java project with 5,794 GitHub stars. SynthScan v2.0 examined 1,678,132 lines of code across 12076 source files, recording 3294 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 3.2 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).

3.2
Adjusted Score
3.2
Raw Score
100%
Time Factor
2026-07-14
Last Push
5.8K
Stars
Java
Language
1.7M
Lines of Code
12.1K
Files
3.3K
Pattern Hits
2026-07-14
Scan Date
0.00
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

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

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 21HIGH 25MEDIUM 754LOW 2494

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 3294 distinct pattern matches across 21 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.

Decorative Section Separators705 hits · 2169 pts
SeverityFileLineSnippetContext
MEDIUM…kages/http-client-python/eng/scripts/ci/run_pyright.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…kages/http-client-python/eng/scripts/ci/run_pyright.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/eng/scripts/ci/util.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/eng/scripts/ci/util.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/eng/scripts/ci/conf.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/eng/scripts/ci/conf.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…kages/http-client-python/eng/scripts/ci/run_apiview.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…kages/http-client-python/eng/scripts/ci/run_apiview.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/eng/scripts/ci/run_mypy.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/eng/scripts/ci/run_mypy.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/ci/run_pylint.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/ci/run_pylint.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…/http-client-python/eng/scripts/ci/run_sphinx_build.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…/http-client-python/eng/scripts/ci/run_sphinx_build.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/setup/run_tsp.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/setup/run_tsp.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…ages/http-client-python/eng/scripts/setup/venvtools.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…ages/http-client-python/eng/scripts/setup/venvtools.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…ttp-client-python/eng/scripts/setup/package_manager.py3# -------------------------------------------------------------------------COMMENT
MEDIUM…ttp-client-python/eng/scripts/setup/package_manager.py7# --------------------------------------------------------------------------COMMENT
MEDIUM…p-client-python/eng/scripts/setup/build_pygen_wheel.py3# -------------------------------------------------------------------------COMMENT
MEDIUM…p-client-python/eng/scripts/setup/build_pygen_wheel.py7# --------------------------------------------------------------------------COMMENT
MEDIUM…ages/http-client-python/eng/scripts/setup/run_batch.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…ages/http-client-python/eng/scripts/setup/run_batch.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/setup/install.py3# -------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/setup/install.py7# --------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/setup/prepare.py3# -------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/setup/prepare.py7# --------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/tests/conftest.py1# -------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/tests/conftest.py5# --------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/tests/tox.ini16# =============================================================================COMMENT
MEDIUMpackages/http-client-python/tests/tox.ini18# =============================================================================COMMENT
MEDIUMpackages/http-client-python/tests/tox.ini56# =============================================================================COMMENT
MEDIUMpackages/http-client-python/tests/tox.ini60# =============================================================================COMMENT
MEDIUMpackages/http-client-python/tests/tox.ini141# =============================================================================COMMENT
MEDIUMpackages/http-client-python/tests/tox.ini143# =============================================================================COMMENT
MEDIUM…nt-python/tests/unit/test_generated_packaging_files.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…nt-python/tests/unit/test_generated_packaging_files.py5# --------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/tests/unit/conftest.py1# -------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/tests/unit/conftest.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…/http-client-python/tests/unit/test_preprocess_etag.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…/http-client-python/tests/unit/test_preprocess_etag.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…python/tests/unit/test_model_base_xml_serialization.py1# ------------------------------------COMMENT
MEDIUM…python/tests/unit/test_model_base_xml_serialization.py4# ------------------------------------COMMENT
MEDIUM…-client-python/tests/unit/test_optional_return_type.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…-client-python/tests/unit/test_optional_return_type.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/tests/unit/test_typeddict.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/tests/unit/test_typeddict.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…s/http-client-python/tests/unit/test_name_converter.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…s/http-client-python/tests/unit/test_name_converter.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…t-python/tests/unit/test_paging_json_body_placement.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…t-python/tests/unit/test_paging_json_body_placement.py5# --------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/tests/unit/test_enums.py1# -------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/tests/unit/test_enums.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…client-python/tests/unit/test_pyproject_keep_fields.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…client-python/tests/unit/test_pyproject_keep_fields.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…tp-client-python/tests/unit/test_add_to_description.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…tp-client-python/tests/unit/test_add_to_description.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…ges/http-client-python/tests/unit/test_options_dict.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…ges/http-client-python/tests/unit/test_options_dict.py5# --------------------------------------------------------------------------COMMENT
645 more matches not shown…
Hyper-Verbose Identifiers1876 hits · 1989 pts
SeverityFileLineSnippetContext
LOWwebsite/public/1ds-init.js11function ensureCookieBannerPlaceholder() {CODE
LOWwebsite/src/content/current-sidebar.ts5function getBadgeForLibraryStability(stability: LibraryStability | undefined): Badge | undefined {CODE
LOWwebsite/src/content/current-sidebar.ts18function createLibraryReferenceStructure(CODE
LOW…/src/content/docs/docs/extending-typespec/codefixes.md18export function createChangeIdentifierCodeFix(node: IdentifierNode, newIdentifier: string) {CODE
LOW…e/src/content/docs/release-notes/release-2022-12-07.md155export function getServiceNamespaceString(program: Program): string | undefined;CODE
LOW…site/src/components/playground-component/import-map.ts14async function fetchAdditionalPackageImports(CODE
LOW…tp-client-js/test/scenarios/encoding/bytes_nullable.md50export function jsonModelWithBytesToApplicationTransform(input_?: any): ModelWithBytes {CODE
LOW…tp-client-js/test/scenarios/encoding/bytes_nullable.md130export function jsonModelWithBytesToTransportTransform(input_?: ModelWithBytes | null): any {CODE
LOW…ient-js/test/scenarios/encoding/bytes_json_property.md47export function jsonBytesBodyToApplicationTransform(input_?: any): BytesBody {CODE
LOW…s/test/scenarios/encoding/model_with_bytes_property.md37export function jsonBytesPropertyToApplicationTransform(input_?: any): BytesProperty {CODE
LOW…s/http-client-js/test/scenarios/models/model_spread.md38export function jsonDogToTransportTransform(input_?: Dog | null): any {CODE
LOW…s/http-client-js/test/scenarios/models/model_spread.md53export function jsonDogToApplicationTransform(input_?: any): Dog {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md112export function dateUnixTimestampSerializer(date?: Date | null): number {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md119export function dateUnixTimestampDeserializer(date?: number | null): Date {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md126export function jsonFishToTransportDiscriminator(input_?: Fish): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md141export function jsonFishToTransportTransform(input_?: Fish | null): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md151export function jsonFishToApplicationDiscriminator(input_?: any): Fish {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md166export function jsonFishToApplicationTransform(input_?: any): Fish {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md176export function jsonSharkToTransportDiscriminator(input_?: Shark): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md191export function jsonSharkToTransportTransform(input_?: Shark | null): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md202export function jsonSharkToApplicationDiscriminator(input_?: any): Shark {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md217export function jsonSharkToApplicationTransform(input_?: any): Shark {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md228export function jsonSawSharkToTransportTransform(input_?: SawShark | null): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md238export function jsonSawSharkToApplicationTransform(input_?: any): SawShark {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md248export function jsonGoblinSharkToTransportTransform(input_?: GoblinShark | null): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md258export function jsonGoblinSharkToApplicationTransform(input_?: any): GoblinShark {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md268export function jsonSalmonToTransportTransform(input_?: Salmon | null): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md280export function jsonSalmonToApplicationTransform(input_?: any): Salmon {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md292export function jsonArrayFishToTransportTransform(items_?: Array<Fish> | null): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md305export function jsonArrayFishToApplicationTransform(items_?: any): Array<Fish> {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md318export function jsonRecordFishToTransportTransform(items_?: Record<string, any> | null): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md332export function jsonRecordFishToApplicationTransform(items_?: any): Record<string, any> {CODE
LOW…/http-client-js/test/scenarios/models/model_extends.md44export function jsonPetToTransportTransform(input_?: Pet | null): any {CODE
LOW…/http-client-js/test/scenarios/models/model_extends.md58export function jsonPetToApplicationTransform(input_?: any): Pet {CODE
LOW…/http-client-js/test/scenarios/models/model_extends.md72export function jsonDogToTransportTransform(input_?: Dog | null): any {CODE
LOW…/http-client-js/test/scenarios/models/model_extends.md87export function jsonDogToApplicationTransform(input_?: any): Dog {CODE
LOW…s/test/scenarios/models/model_additional_properties.md46export function jsonDogToTransportTransform(input_?: Dog | null): any {CODE
LOW…s/test/scenarios/models/model_additional_properties.md62export function jsonDogToApplicationTransform(input_?: any): Dog {CODE
LOW…-js/test/scenarios/models/inheritance_discriminator.md39export function jsonDinosaurToTransportTransform(input_?: Dinosaur | null): any {CODE
LOW…-js/test/scenarios/models/inheritance_discriminator.md52export function jsonTRexToTransportTransform(input_?: TRex | null): any {CODE
LOW…-js/test/scenarios/models/inheritance_discriminator.md66export function jsonDinosaurToApplicationTransform(input_?: any): Dinosaur {CODE
LOW…-js/test/scenarios/models/inheritance_discriminator.md79export function jsonTRexToApplicationTransform(input_?: any): TRex {CODE
LOW…/test/scenarios/models/property_references_property.md37export function jsonBarToTransportTransform(input_?: Bar | null): any {CODE
LOW…/test/scenarios/models/property_references_property.md102export function dateUnixTimestampSerializer(date?: Date | null): number {CODE
LOW…/test/scenarios/models/property_references_property.md109export function dateUnixTimestampDeserializer(date?: number | null): Date {CODE
LOW…/test/scenarios/models/property_references_property.md116export function jsonBarToTransportTransform(input_?: Bar | null): any {CODE
LOW…/test/scenarios/models/property_references_property.md125export function jsonBarToApplicationTransform(input_?: any): Bar {CODE
LOW…/test/scenarios/models/property_references_property.md141export function jsonBarToApplicationTransform(input_?: any): Bar {CODE
LOW…es/http-client-js/test/scenarios/serializers/spread.md37export async function spreadWithMultipleParameters(CODE
LOW…st/scenarios/serializers/discriminated_union_spread.md43export function jsonSpreadRecordForDiscriminatedUnionToTransportTransform(CODE
LOW…st/scenarios/serializers/discriminated_union_spread.md57export function jsonSpreadRecordForDiscriminatedUnionToApplicationTransform(CODE
LOW…st/scenarios/serializers/discriminated_union_spread.md73export function jsonWidgetDataToTransportTransform(input_?: WidgetData | null): any {CODE
LOW…st/scenarios/serializers/discriminated_union_spread.md82export function jsonWidgetDataToApplicationDiscriminator(input_?: any): WidgetData {CODE
LOW…st/scenarios/serializers/discriminated_union_spread.md100export function jsonWidgetDataToTransportDiscriminator(input_?: WidgetData): any {CODE
LOW…es/http-client-js/test/scenarios/serializers/record.md24export function jsonFooToTransportTransform(input_?: Foo | null): any {CODE
LOW…es/http-client-js/test/scenarios/serializers/record.md35export function jsonFooToApplicationTransform(input_?: any): Foo {CODE
LOW…es/http-client-js/test/scenarios/serializers/record.md78export function jsonFooToTransportTransform(input_?: Foo | null): any {CODE
LOW…es/http-client-js/test/scenarios/serializers/record.md89export function jsonFooToApplicationTransform(input_?: any): Foo {CODE
LOW…t-js/test/scenarios/serializers/discriminated_union.md35export function jsonWidgetDataToTransportTransform(input_?: WidgetData | null): any {CODE
LOW…t-js/test/scenarios/serializers/discriminated_union.md44export function jsonWidgetDataToApplicationTransform(input_?: any): WidgetData {CODE
1816 more matches not shown…
Over-Commented Block375 hits · 332 pts
SeverityFileLineSnippetContext
LOWeng/tsp-core/pipelines/pr-tools.yml101 GH_TOKEN: $(GH_TOKEN)COMMENT
LOWeng/tsp-core/pipelines/jobs/cli/build-tsp-cli-all.yml21COMMENT
LOW…pleService/SampleClient/src/Generated/DogOperations.cs61 throw;COMMENT
LOW…rp/SampleService/SampleClient/src/Generated/Metrics.cs61COMMENT
LOW…Service/SampleClient/src/Generated/AnimalOperations.cs61 throw;COMMENT
LOW…Service/SampleClient/src/Generated/AnimalOperations.cs181 throw;COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs101 /// [Protocol Method] Return hiCOMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs141 /// <item>COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs241 /// </item>COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs381 /// </item>COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs501 {COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs601 System.Console.WriteLine($"An exception was thrown in method HelloDemo2Async: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs641 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs721 System.Console.WriteLine($"An exception was thrown in method CreateLiteralAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs861 System.Console.WriteLine("Exiting method TopAction.");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs941COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1001COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1061 System.Console.WriteLine($"An exception was thrown in method PatchActionAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1101 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1141 /// <param name="requiredNullableString"> required nullable string. </param>COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1201COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1261 {COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1301 /// [Protocol Method] Model can have its friendly nameCOMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1381 System.Console.WriteLine($"An exception was thrown in method FriendlyModelAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1521 {COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1641 {COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1721 /// [Protocol Method] get extensible enumCOMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1841 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1961 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2061 {COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2101 /// <summary>COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2181 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2221 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2301 System.Console.WriteLine($"An exception was thrown in method WithApiVersionAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2401 System.Console.WriteLine($"An exception was thrown in method GetWithNextLinkAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2501 System.Console.WriteLine($"An exception was thrown in method GetWithStringNextLinkAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2541 /// [Protocol Method] List things with continuation tokenCOMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2641 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2741 finallyCOMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2821 /// <item>COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2861 /// <list type="bullet">COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2941 System.Console.WriteLine($"An exception was thrown in method EmbeddedParametersAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2981 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs3061 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs3201 {COMMENT
LOW…mpleClient/src/Generated/SampleTypeSpecModelFactory.cs21 /// <param name="optionalLiteralInt"> optional literal int. </param>COMMENT
LOW…mpleClient/src/Generated/SampleTypeSpecModelFactory.cs61 /// <param name="requiredCollection"> Required collection of enums. </param>COMMENT
LOW…mpleClient/src/Generated/SampleTypeSpecModelFactory.cs181 requiredQuery,COMMENT
LOW…mpleClient/src/Generated/SampleTypeSpecModelFactory.cs241 return new AnotherDynamicModel(bar, default);COMMENT
LOW…mpleClient/src/Generated/SampleTypeSpecModelFactory.cs261 /// <param name="wrappedColors"> A wrapped array of strings (default). </param>COMMENT
LOW…eService/SampleClient/src/Generated/PlantOperations.cs61 System.Console.WriteLine("Exiting method GetTree.");COMMENT
LOW…eService/SampleClient/src/Generated/PlantOperations.cs161 throw;COMMENT
LOW…eService/SampleClient/src/Generated/PlantOperations.cs241 }COMMENT
LOW…eService/SampleClient/src/Generated/PlantOperations.cs361 System.Console.WriteLine("Exiting method UpdateTreeAsync.");COMMENT
LOW…eService/SampleClient/src/Generated/PlantOperations.cs401 /// <list type="bullet">COMMENT
LOW…pleService/SampleClient/src/Generated/PetOperations.cs61 throw;COMMENT
LOW…pleService/SampleClient/src/Generated/PetOperations.cs181 throw;COMMENT
LOW…ce/SampleClient/src/Generated/Models/RoundTripModel.cs61 /// <param name="requiredCollection"> Required collection of enums. </param>COMMENT
LOW…ce/SampleClient/src/Generated/Models/RoundTripModel.cs161 /// <summary>COMMENT
LOW…ce/SampleClient/src/Generated/Models/RoundTripModel.cs181 /// <term> BinaryData.FromString("{\"key\": \"value\"}"). </term>COMMENT
315 more matches not shown…
Hallucination Indicators21 hits · 245 pts
SeverityFileLineSnippetContext
CRITICAL…-python/tests/mock_api/azure/test_azure_core_traits.py10from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL…hon/tests/mock_api/azure/test_service_multi_service.py7from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL…api/azure/test_azure_resource_manager_multi_service.py7from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL…k_api/azure/asynctests/test_azure_core_traits_async.py11from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL…i/azure/asynctests/test_service_multi_service_async.py7from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL…sts/test_azure_resource_manager_multi_service_async.py8from azure.core.exceptions import HttpResponseErrorCODE
CRITICALpackages/http/test/test-host.ts64 ? Array.from(r.parameters.body.type.properties.keys())CODE
CRITICAL…osoft.TypeSpec.Generator/test/Snippets/SnippetTests.cs123 Assert.AreEqual("new global::Microsoft.TypeSpec.Generator.Tests.Snippets.SnippetTests.TestClass(20)", writerCODE
CRITICAL…osoft.TypeSpec.Generator/test/Snippets/SnippetTests.cs143 Assert.AreEqual("new global::Microsoft.TypeSpec.Generator.Tests.Snippets.SnippetTests.TestClass(20)", writerCODE
CRITICAL…Data/SnippetTests/ValidateInstanceCtorWithArguments.cs1new global::Microsoft.TypeSpec.Generator.Tests.Snippets.SnippetTests.TestClass(20)CODE
CRITICAL…urceInput/TestData/ApiCompatBaselineTests/Baseline.txt3MembersMustExist : Member 'public Azure.AI.Projects.Agents.ProtocolVersionRecord Azure.AI.Projects.Agents.ProjectsAgentsCODE
CRITICAL…t.TypeSpec.Generator.ClientModel/src/ScmTypeFactory.cs59 => _hasDynamicModels ??= ScmCodeModelGenerator.Instance.InputLibrary.InputNamespace.Models.Any(m => m.IsDynaCODE
CRITICAL…ckages/http-client-csharp/playground-server/Program.cs150 arch = System.Runtime.InteropServices.RuntimeInformation.OSArchitecture.ToString()CODE
CRITICAL…ypespec/http/client/generator/core/util/CodeNamer.java32 return com.microsoft.typespec.http.client.generator.core.preprocessor.namer.CodeNamer.toCamelCase(name);CODE
CRITICAL…ypespec/http/client/generator/core/util/CodeNamer.java36 return com.microsoft.typespec.http.client.generator.core.preprocessor.namer.CodeNamer.toPascalCase(name);CODE
CRITICAL…ypespec/http/client/generator/core/util/CodeNamer.java40 return com.microsoft.typespec.http.client.generator.core.preprocessor.namer.CodeNamer.escapeXmlComment(comment);CODE
CRITICAL…ypespec/http/client/generator/core/util/CodeNamer.java130 return com.microsoft.typespec.http.client.generator.core.preprocessor.namer.CodeNamer.getValidName(name,CODE
CRITICAL…ator/core/template/util/ModelTemplateHeaderHelper.java42 for (Field httpHeaderNameConstant : io.clientcore.core.http.models.HttpHeaderName.class.getDeclaredFields()) {CODE
CRITICAL…enerator/core/template/example/ModelExampleWriter.java349 this.imports.add(java.nio.charset.StandardCharsets.class.getName());CODE
CRITICALpackages/compiler/test/formatter/formatter.test.ts2654@@Some.Very.Long.Namespace.Decorator.Some.Very.Long.Namespace.Decorator.Some.Very.Long.Namespace.Decorator(subscribe1);STRING
CRITICALpackages/compiler/test/formatter/formatter.test.ts2657@@Some.Very.Long.Namespace.Decorator.Some.Very.Long.Namespace.Decorator.Some.Very.Long.Namespace.Decorator(STRING
Structural Annotation Overuse65 hits · 110 pts
SeverityFileLineSnippetContext
LOW…ite/src/content/docs/docs/extending-typespec/basics.md36## Step 1: Initial setupCOMMENT
LOW…ite/src/content/docs/docs/extending-typespec/basics.md169## Step 2: Adding TypeSpec types to your libraryCOMMENT
LOW…ite/src/content/docs/docs/extending-typespec/basics.md210## Step 3: Defining dependenciesCOMMENT
LOW…ite/src/content/docs/docs/extending-typespec/basics.md242## Step 4: Testing your TypeSpec libraryCOMMENT
LOW…ite/src/content/docs/docs/extending-typespec/basics.md246## Step 5: Publishing your TypeSpec libraryCOMMENT
LOW…ite/src/content/docs/docs/extending-typespec/basics.md250## Step 6: Importing your TypeSpec libraryCOMMENT
LOW…ite/src/content/docs/docs/extending-typespec/basics.md269## Step 7: Next stepsCOMMENT
LOWwebsite/src/content/docs/release-notes/typespec-0-65.md59// Step 1: Update to retrieve the mutation instead of projectionsCOMMENT
LOWwebsite/src/content/docs/release-notes/typespec-0-65.md63// Step 2: call mutator instead of projection apiCOMMENT
LOWwebsite/src/content/docs/release-notes/typespec-0-67.md393 // Step 1: Update to retrieve the mutation instead of projectionsCOMMENT
LOWwebsite/src/content/docs/release-notes/typespec-0-67.md397 // Step 2: call mutator instead of projection apiCOMMENT
LOWpackages/http-client-python/ARCHITECTURE.md126#### Step 1: PreprocessCOMMENT
LOWpackages/http-client-python/ARCHITECTURE.md137#### Step 2: CodegenCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md37### Step 1: Build and regenerateCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md50### Step 2: Fetch or update baselineCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md90### Step 3: Generate diff summaryCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md155### Step 4: Open in editorCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md176### Step 5: Report to userCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md248### Step 1: Check what code changes were made on the branchCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md260### Step 2: Correlate code changes with expected generated output changesCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md272### Step 3: Compare expected vs actual diffsCOMMENT
LOW…-python/.github/skills/test-unbranded-emitter/SKILL.md32### Step 1: Build the emitterCOMMENT
LOW…-python/.github/skills/test-unbranded-emitter/SKILL.md42### Step 2: Check if regeneration is neededCOMMENT
LOW…-python/.github/skills/test-unbranded-emitter/SKILL.md77### Step 3: Regenerate if neededCOMMENT
LOW…-python/.github/skills/test-unbranded-emitter/SKILL.md99### Step 4: Run the generator test suiteCOMMENT
LOW…-python/.github/skills/test-unbranded-emitter/SKILL.md113### Step 5: Report resultsCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md35### Step 1: Resolve the spec pathCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md55### Step 2: Locate and parse `tspconfig.yaml`COMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md72### Step 3: Extract Python emitter options from tspconfig.yamlCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md97### Step 4: Determine the flavorCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md109### Step 5: Find the TypeSpec compilerCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md125### Step 6: Construct and run the compile commandCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md170### Step 7: Run the compilationCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md184### Step 8: Verify and clean upCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md224### Step 0: Library Selection (Interactive Mode Only)COMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md232### Step 1: Build Unbranded GeneratorCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md238### Step 2: Package Unbranded GeneratorCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md263#### Step 3: Update OpenAI Generator and RegenerateCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md293### Step 3: Update and Build Azure GeneratorCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md301### Step 4: Package Azure GeneratorCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md308### Step 5: Update eng Folder ArtifactsCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md318### Step 6: Update and Build Management Plane GeneratorCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md335### Step 7: Prepare Library ListCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md344### Step 8: Regenerate LibrariesCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md364### Step 9: Restore Artifacts (On Success Only)COMMENT
LOW…t.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs249 // Step 1: Build all types (simulating CSharpGen.ExecuteAsync)COMMENT
LOW…t.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs260 // Step 2: Visitor changes the parameter type from int to float,COMMENT
LOW…t.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs265 // Step 3: Apply customization filtering after visitorCOMMENT
LOW…t/typespec/http/client/generator/mgmt/FluentNamer.java125 // Step 2: TransformCOMMENT
LOW…osoft/typespec/http/client/generator/core/Javagen.java68 // Step 1: Parse input yaml as CodeModelCOMMENT
LOW…osoft/typespec/http/client/generator/core/Javagen.java71 // Step 2: MapCOMMENT
LOW…osoft/typespec/http/client/generator/core/Javagen.java74 // Step 3: Write to templatesCOMMENT
LOW…osoft/typespec/http/client/generator/core/Javagen.java77 // Step 4: Print to filesCOMMENT
LOW…client/generator/core/postprocessor/Postprocessor.java62 // Step 1: post processCOMMENT
LOW…client/generator/core/postprocessor/Postprocessor.java108 // Step 2: Print to filesCOMMENT
LOWpackages/versioning/CHANGELOG.md129 // Step 1: Update to retrieve the mutation instead of projectionsCOMMENT
LOWpackages/versioning/CHANGELOG.md133 // Step 2: call mutator instead of projection apiCOMMENT
LOWpackages/versioning/CHANGELOG.md164// Step 1: Update to retrieve the mutation instead of projectionsCOMMENT
LOWpackages/versioning/CHANGELOG.md168// Step 2: call mutator instead of projection apiCOMMENT
LOW.github/skills/emitter-prep-for-pr/SKILL.md27### Step 1: Determine the emitter packageCOMMENT
5 more matches not shown…
Modern AI Meta-Vocabulary37 hits · 87 pts
SeverityFileLineSnippetContext
MEDIUMCONTRIBUTING.md471| `agentic-workflows` | #000000 | Issues/PR created by github agentic workflows |CODE
MEDIUM…nt/docs/docs/getting-started/code-generation-csharp.md210## 7. Understanding the dependency injection systemCOMMENT
MEDIUM…nt/docs/docs/getting-started/code-generation-csharp.md212The generated C# service uses ASP.NET Core's dependency injection system to connect controllers with your business logicCODE
MEDIUM…ocs/extending-typespec/writing-scaffolding-template.md27## Basics of a scaffolding templateCOMMENT
MEDIUM…/src/content/docs/release-notes/typespec-1-0-0-rc-0.md95- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUM…/src/content/docs/release-notes/typespec-1-0-0-rc-0.md95- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUM…bsite/src/content/docs/release-notes/typespec-1-1-0.md31- [#7541](https://github.com/microsoft/typespec/pull/7541) Add extension API for other vscode extension to be able to reCODE
MEDIUMwebsite/src/content/blog/2025-05-30-mcp/blog.md15[MCP servers](https://modelcontextprotocol.io/) are everywhere these days. People are integrating MCP servers into theirCODE
MEDIUMpackages/http-server-js/CHANGELOG.md106- [#7280](https://github.com/microsoft/typespec/pull/7280) Fixed an error in which the scaffolding script incorrectly coCODE
MEDIUMpackages/http-server-js/CHANGELOG.md114- [#7234](https://github.com/microsoft/typespec/pull/7234) Fixed a few bugs with output directory resolution logic in `hCODE
MEDIUMpackages/http-server-js/CHANGELOG.md115- [#7225](https://github.com/microsoft/typespec/pull/7225) Added a missing shebang line to `hsjs-scaffold` for better plCODE
MEDIUMpackages/http-server-js/CHANGELOG.md115- [#7225](https://github.com/microsoft/typespec/pull/7225) Added a missing shebang line to `hsjs-scaffold` for better plCODE
MEDIUMpackages/http-server-js/CHANGELOG.md148- [#6796](https://github.com/microsoft/typespec/pull/6796) Fixes the mocks in hsjs-scaffold to use bigints for large intCODE
MEDIUMpackages/http-server-js/CHANGELOG.md148- [#6796](https://github.com/microsoft/typespec/pull/6796) Fixes the mocks in hsjs-scaffold to use bigints for large intCODE
MEDIUMpackages/http-server-js/CHANGELOG.md166- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUMpackages/http-server-js/CHANGELOG.md166- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUMpackages/http-server-js/CHANGELOG.md201- [#5906](https://github.com/microsoft/typespec/pull/5906) Implement basic project scaffolding.CODE
MEDIUMpackages/http-client-python/eng/scripts/ci/util.py21# These are auto-generated test/sample scaffolding, not the actual SDK code.COMMENT
MEDIUMpackages/typespec-vscode/CHANGELOG.md117- [#7541](https://github.com/microsoft/typespec/pull/7541) Add extension API for other vscode extension to be able to reCODE
MEDIUMpackages/http-server-csharp/CHANGELOG.md193- [#6701](https://github.com/microsoft/typespec/pull/6701) Write scaffolding and project files in output dir and fix issCODE
MEDIUMpackages/http-server-csharp/CHANGELOG.md194- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUMpackages/http-server-csharp/CHANGELOG.md194- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUMpackages/http-server-csharp/CHANGELOG.md242- [#5733](https://github.com/microsoft/typespec/pull/5733) Add scaffolding option for csharp generatorCODE
MEDIUMpackages/compiler/CHANGELOG.md528- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUMpackages/compiler/CHANGELOG.md528- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUMpackages/compiler/templates/scaffolding.json55 "message": "\n\tGenerated ASP.Net services require dotnet 9:\n\thttps://dotnet.microsoft.com/download \n\n\tCreaCODE
MEDIUMpackages/compiler/templates/scaffolding.json62 "message": "\n\tGenerated JavaScript services require a service runtime:\n\thttps://nodejs.org/download \n\n\tCrCODE
MEDIUMpackages/compiler/src/server/types.ts135 // with the compiler for multiple times in different steps (i.e. get core templates, validate the selected template, sCOMMENT
MEDIUM.github/workflows/agentics-maintenance.yml24# This file defines the generated agentic maintenance workflow for this repository.COMMENT
MEDIUM.github/agents/agentic-workflows.agent.md31- Configuration: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/github-agentic-workflows.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md54**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/create-agentic-workflow.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md66**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/update-agentic-workflow.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md78**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/debug-agentic-workflow.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md90**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/upgrade-agentic-workflows.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md102**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/create-shared-agentic-workflow.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md134# Initialize repository for agentic workflowsCOMMENT
MEDIUM.github/agents/agentic-workflows.agent.md162- Always reference the instructions file at https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/github-agentic-workfCODE
Cross-Language Confusion14 hits · 82 pts
SeverityFileLineSnippetContext
HIGH…sts/mock_api/shared/test_typetest_property_nullable.py29 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…sts/mock_api/shared/test_typetest_property_nullable.py42 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…sts/mock_api/shared/test_typetest_property_nullable.py58 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…sts/mock_api/shared/test_typetest_property_nullable.py68 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…sts/mock_api/shared/test_typetest_property_nullable.py78 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…sts/mock_api/shared/test_typetest_property_nullable.py88 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…sts/mock_api/shared/test_typetest_property_nullable.py98 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py32 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py46 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py63 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py74 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py85 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py96 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py107 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
Unused Imports75 hits · 72 pts
SeverityFileLineSnippetContext
LOWpackages/http-client-python/eng/scripts/ci/conf.py10CODE
LOWpackages/http-client-python/eng/scripts/ci/conf.py11CODE
LOW…/http-client-python/eng/scripts/ci/run_sphinx_build.py15CODE
LOW…ages/http-client-python/eng/scripts/setup/run_batch.py14CODE
LOW…ckages/http-client-python/eng/scripts/setup/install.py27CODE
LOW…ent-python/tests/unit/test_model_base_serialization.py5CODE
LOW…ck_api/azure/test_azure_client_generator_core_usage.py41CODE
LOW…_api/shared/test_typetest_model_usage_typeddictonly.py8CODE
LOW…_api/shared/test_typetest_model_usage_typeddictonly.py8CODE
LOW…s/mock_api/shared/test_typetest_property_valuetypes.py7CODE
LOW…sts/mock_api/shared/test_typetest_property_optional.py7CODE
LOW…ts/mock_api/shared/test_multipart_filetype_variants.py15CODE
LOW…ts/mock_api/shared/test_multipart_filetype_variants.py17CODE
LOW…ed/asynctests/test_typetest_property_optional_async.py7CODE
LOW…tests/test_typetest_model_usage_typeddictonly_async.py9CODE
LOW…tests/test_typetest_model_usage_typeddictonly_async.py9CODE
LOW…tests/test_typetest_model_usage_typeddictonly_async.py9CODE
LOW…hon/generator/pygen/codegen/models/credential_types.py21CODE
LOW…-python/generator/pygen/codegen/models/base_builder.py35CODE
LOW…-python/generator/pygen/codegen/models/base_builder.py36CODE
LOW…-python/generator/pygen/codegen/models/base_builder.py37CODE
LOW…-python/generator/pygen/codegen/models/base_builder.py38CODE
LOW…thon/generator/pygen/codegen/models/primitive_types.py15CODE
LOW…nt-python/generator/pygen/codegen/models/model_type.py17CODE
LOW…ython/generator/pygen/codegen/models/parameter_list.py38CODE
LOW…ient-python/generator/pygen/codegen/models/property.py16CODE
LOW…client-python/generator/pygen/codegen/models/client.py29CODE
LOW…client-python/generator/pygen/codegen/models/client.py30CODE
LOW…thon/generator/pygen/codegen/models/request_builder.py29CODE
LOW…thon/generator/pygen/codegen/models/request_builder.py30CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py8CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py9CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py9CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py11CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py12CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py16CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py39CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py39CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py39CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py42CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py42CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py42CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py42CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py52CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py53CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py54CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py55CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py55CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py55CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py60CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py66CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py70CODE
LOW…ient-python/generator/pygen/codegen/models/response.py18CODE
LOW…python/generator/pygen/codegen/models/combined_type.py14CODE
LOW…ent-python/generator/pygen/codegen/models/operation.py43CODE
LOW…ent-python/generator/pygen/codegen/models/operation.py44CODE
LOW…ent-python/generator/pygen/codegen/models/operation.py45CODE
LOW…lient-python/generator/pygen/codegen/models/imports.py10CODE
LOW…ent-python/generator/pygen/codegen/models/enum_type.py14CODE
LOW…python/generator/pygen/codegen/models/lro_operation.py15CODE
15 more matches not shown…
Cross-Language Confusion (JS/TS)7 hits · 42 pts
SeverityFileLineSnippetContext
HIGH…ramework/test/testing/snippet-extractor-python.test.ts19 print("Hello")CODE
HIGH…ramework/test/testing/snippet-extractor-python.test.ts26 print("Hello")CODE
HIGH…nts/function-declaration/function-declaration.test.tsx227 print("Hello World!")CODE
HIGH…kages/compiler/src/core/cli/actions/compile/compile.ts202 print("Compiler statistics:");CODE
HIGH…kages/compiler/src/core/cli/actions/compile/compile.ts203 print(" Complexity:");CODE
HIGH…kages/compiler/src/core/cli/actions/compile/compile.ts206 print(" Performance:");CODE
HIGH…kages/compiler/src/core/cli/actions/compile/compile.ts257 print(`${" ".repeat(indent)}${pc.gray(key)}: ${value}`);CODE
Deep Nesting40 hits · 34 pts
SeverityFileLineSnippetContext
LOWpackages/http-client-python/eng/scripts/ci/util.py38CODE
LOW…ttp-client-python/eng/scripts/setup/package_manager.py59CODE
LOW…ages/http-client-python/eng/scripts/setup/run_batch.py91CODE
LOW…ages/http-client-python/eng/scripts/setup/run_batch.py106CODE
LOWpackages/http-client-python/tests/conftest.py100CODE
LOWpackages/http-client-python/generator/pygen/__init__.py52CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py29CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py244CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py397CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py483CODE
LOW…http-client-python/generator/pygen/codegen/__init__.py22CODE
LOW…http-client-python/generator/pygen/codegen/__init__.py39CODE
LOW…nt-python/generator/pygen/codegen/models/model_type.py321CODE
LOW…nt-python/generator/pygen/codegen/models/model_type.py439CODE
LOW…client-python/generator/pygen/codegen/models/client.py60CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py160CODE
LOW…ent-python/generator/pygen/codegen/models/operation.py296CODE
LOW…lient-python/generator/pygen/codegen/models/imports.py179CODE
LOW…ent-python/generator/pygen/codegen/models/enum_type.py261CODE
LOW…nt-python/generator/pygen/codegen/models/code_model.py178CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py679CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py796CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py864CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py994CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py1068CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py1205CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py1343CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py1429CODE
LOW…enerator/pygen/codegen/serializers/types_serializer.py247CODE
LOW…erator/pygen/codegen/serializers/general_serializer.py83CODE
LOW…erator/pygen/codegen/serializers/general_serializer.py141CODE
LOW…erator/pygen/codegen/serializers/general_serializer.py325CODE
LOW…python/generator/pygen/codegen/serializers/__init__.py125CODE
LOW…python/generator/pygen/codegen/serializers/__init__.py621CODE
LOW…python/generator/pygen/codegen/serializers/__init__.py644CODE
LOW…ator/pygen/codegen/serializers/parameter_serializer.py55CODE
LOW…ator/pygen/codegen/serializers/parameter_serializer.py179CODE
LOW…enerator/pygen/codegen/serializers/model_serializer.py264CODE
LOW…enerator/pygen/codegen/serializers/model_serializer.py313CODE
LOW…enerator/pygen/codegen/serializers/model_serializer.py493CODE
Verbosity Indicators12 hits · 22 pts
SeverityFileLineSnippetContext
LOWpackages/http-server-js/src/util/case.ts117 // If we're in an acronym, we need to check if the next character is lower case.COMMENT
LOWpackages/http-client-python/emitter/src/utils.ts59 // To prevent that, first we need to check if s2 is undefined.COMMENT
LOW…t.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs249 // Step 1: Build all types (simulating CSharpGen.ExecuteAsync)COMMENT
LOW…t.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs260 // Step 2: Visitor changes the parameter type from int to float,COMMENT
LOW…t.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs265 // Step 3: Apply customization filtering after visitorCOMMENT
LOW…t/typespec/http/client/generator/mgmt/FluentNamer.java125 // Step 2: TransformCOMMENT
LOW…osoft/typespec/http/client/generator/core/Javagen.java68 // Step 1: Parse input yaml as CodeModelCOMMENT
LOW…osoft/typespec/http/client/generator/core/Javagen.java71 // Step 2: MapCOMMENT
LOW…osoft/typespec/http/client/generator/core/Javagen.java74 // Step 3: Write to templatesCOMMENT
LOW…osoft/typespec/http/client/generator/core/Javagen.java77 // Step 4: Print to filesCOMMENT
LOW…client/generator/core/postprocessor/Postprocessor.java62 // Step 1: post processCOMMENT
LOW…client/generator/core/postprocessor/Postprocessor.java108 // Step 2: Print to filesCOMMENT
Excessive Try-Catch Wrapping19 hits · 22 pts
SeverityFileLineSnippetContext
LOWpackages/http-client-python/eng/scripts/ci/util.py100 except Exception as e:CODE
LOW…kages/http-client-python/eng/scripts/ci/run_apiview.py40 except Exception as e:CODE
LOW…/http-client-python/eng/scripts/ci/run_sphinx_build.py122 except Exception as e:CODE
LOW…ages/http-client-python/eng/scripts/setup/run_batch.py65 except Exception as e:CODE
LOW…ckages/http-client-python/eng/scripts/setup/install.py56 except Exception as e:CODE
MEDIUM…ckages/http-client-python/eng/scripts/setup/install.py58 print(f"Error: Installation failed despite Python and package manager being available: {e}")CODE
LOWpackages/http-client-python/tests/conftest.py91 except Exception:CODE
LOWpackages/http-client-python/tests/conftest.py95 except Exception:CODE
MEDIUMpackages/http-client-python/tests/install_packages.py115 print(f"Error installing packages: {e}")CODE
MEDIUMpackages/http-client-python/tests/install_packages.py146 print(f"Error: Unknown command or flavor '{sys.argv[1]}'")CODE
LOW…ts/mock_api/shared/test_multipart_filetype_variants.py31 except Exception: # pylint: disable=broad-exceptCODE
LOW…ests/mock_api/shared/unittests/test_parse_pyproject.py72 except Exception as e:CODE
LOWpackages/http-client-python/generator/pygen/__init__.py222 except Exception: # pylint: disable=broad-exceptCODE
LOW…erator/pygen/codegen/serializers/general_serializer.py93 except Exception: # pylint: disable=broad-exceptCODE
LOW…python/generator/pygen/codegen/serializers/__init__.py120 except Exception: # pylint: disable=broad-exceptCODE
LOW…python/generator/pygen/codegen/serializers/__init__.py618 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…python/generator/pygen/codegen/serializers/__init__.py677 except Exception as e: # pylint: disable=broad-exceptCODE
LOW.github/workflows/issue-triage.lock.yml827 except Exception as e:CODE
LOW.github/workflows/bump-tcgc-csharp.lock.yml812 except Exception as e:CODE
Fake / Example Data16 hits · 20 pts
SeverityFileLineSnippetContext
LOWeng/common/CredScanSuppression.json5 "placeholder": ["abcdef12345", "Y0uW1llN3v3rGu3ss!"],CODE
LOWpackages/asset-emitter/src/builders/object-builder.ts5const placeholderSym = Symbol("placeholder");CODE
LOW…_azure_resource_manager_multi_service_shared_models.py44 assert result.properties.metadata.created_by == "user@example.com"CODE
LOW…_azure_resource_manager_multi_service_shared_models.py57 created_by="user@example.com",CODE
LOW…_azure_resource_manager_multi_service_shared_models.py76 assert result.properties.metadata.created_by == "user@example.com"CODE
LOW…_azure_resource_manager_multi_service_shared_models.py95 assert result.properties.metadata.created_by == "admin@example.com"CODE
LOW…_azure_resource_manager_multi_service_shared_models.py108 created_by="admin@example.com",CODE
LOW…_azure_resource_manager_multi_service_shared_models.py127 assert result.properties.metadata.created_by == "admin@example.com"CODE
LOW…_resource_manager_multi_service_shared_models_async.py46 assert result.properties.metadata.created_by == "user@example.com"CODE
LOW…_resource_manager_multi_service_shared_models_async.py60 created_by="user@example.com",CODE
LOW…_resource_manager_multi_service_shared_models_async.py79 assert result.properties.metadata.created_by == "user@example.com"CODE
LOW…_resource_manager_multi_service_shared_models_async.py99 assert result.properties.metadata.created_by == "admin@example.com"CODE
LOW…_resource_manager_multi_service_shared_models_async.py113 created_by="admin@example.com",CODE
LOW…_resource_manager_multi_service_shared_models_async.py132 assert result.properties.metadata.created_by == "admin@example.com"CODE
LOW…vicesharedmodels/ArmMultiServiceSharedModelsTests.java29 SharedMetadata storageMetadata = new SharedMetadata().withCreatedBy("admin@example.com").withTags(storageTags);CODE
LOW…vicesharedmodels/ArmMultiServiceSharedModelsTests.java41 SharedMetadata vmMetadata = new SharedMetadata().withCreatedBy("user@example.com").withTags(vmTags);CODE
Self-Referential Comments7 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMeng/common/scripts/labels/automation.ts31 const content = `# This file is generated by the sync-labels script DO NOT EDIT manually\n${yaml}`;CODE
MEDIUM…http-client-python/eng/scripts/ci/regenerate-common.ts664 const DELETE_CONTENT = "# This file is to be deleted after regeneration";CODE
MEDIUM…http-client-python/eng/scripts/ci/regenerate-common.ts665 const KEEP_CONTENT = "# This file is to be kept after regeneration";CODE
MEDIUM…ttp-client-python/eng/scripts/setup/package_manager.py136 # Create a mock venv_context for compatibilityCOMMENT
MEDIUM.github/workflows/agentics-maintenance.yml24# This file defines the generated agentic maintenance workflow for this repository.COMMENT
MEDIUM.github/policies/issues.triage.generated.yml1# This file is generated by the sync-labels script DO NOT EDIT manuallyCOMMENT
MEDIUM.github/policies/prs.triage.generated.yml1# This file is generated by the sync-labels script DO NOT EDIT manuallyCOMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…ent-python/generator/pygen/codegen/models/enum_type.py0returns the serialization value for msrest. :return: the serialization value for msrest :rtype: strSTRING
HIGH…python/generator/pygen/codegen/models/constant_type.py0returns the serialization value for msrest. :return: the serialization value for msrest :rtype: strSTRING
HIGH…thon/generator/pygen/codegen/models/dictionary_type.py0returns the serialization value for msrest. :return: the serialization value for msrest :rtype: strSTRING
Modern Structural Boilerplate11 hits · 11 pts
SeverityFileLineSnippetContext
LOWpackages/http-client-python/generator/pygen/__init__.py313 def update_yaml(self, yaml_data: dict[str, Any]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py129def update_paging_response(yaml_data: dict[str, Any]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py483 def update_types(self, yaml_data: list[dict[str, Any]]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py514 def update_client(self, yaml_data: dict[str, Any]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py553 def update_parameter(self, yaml_data: dict[str, Any]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py636 def _update_lro_operation_helper(self, yaml_data: dict[str, Any]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py718 def update_operation_groups(self, code_model: dict[str, Any], client: dict[str, Any]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py742 def update_yaml(self, yaml_data: dict[str, Any]) -> None:CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py79__all__ = [CODE
LOW…erator/pygen/codegen/serializers/general_serializer.py60 def _update_version_map(self, version_map: dict[str, str], dep_name: str, dep: str) -> None:CODE
LOW…python/generator/pygen/codegen/serializers/__init__.py42__all__ = [CODE
AI Slop Vocabulary5 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…rc/components/transforms/json/json-model-transform.tsx83 // Make the input optional to make the transform more robust and check against null and undefinedCOMMENT
LOW…/http-client-python/eng/scripts/ci/run_sphinx_build.py77 # If no submodules, just use the main packageCOMMENT
LOW…ent-python/generator/pygen/codegen/models/list_type.py42 # this means we're version tolerant XML, we just return the XML elementCOMMENT
LOW…ent-python/generator/pygen/codegen/models/list_type.py85 # this means we're version tolerant XML, we just return the XML elementCOMMENT
LOW…ent-python/generator/pygen/codegen/models/list_type.py91 # this means we're version tolerant XML, we just return the XML elementCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…ests/mock_api/shared/unittests/test_parse_pyproject.py27 Get a specific section from a package's pyproject.toml file. Args: package_path: Relative path to the STRING
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWpackages/http-client-python/tests/conftest.py108 # Check if server is already runningCOMMENT
LOW…erator/pygen/codegen/serializers/builder_serializer.py729 # Check if this is a typeddict-only model within dpg mode — skip serializationCOMMENT
LOW…erator/pygen/codegen/serializers/general_serializer.py121 # Check if dependency is one we track in version mapCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…s/test/output/petstore/@typespec/openapi3/openapi.yaml4 description: 'This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](httCODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpackages/xml/src/decorators.ts77function getData(CODE