Repository Analysis

flutter/samples

A collection of Flutter examples and demos

2.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of flutter/samples, a Dart project with 19,204 GitHub stars. SynthScan v2.0 examined 113,478 lines of code across 1356 source files, recording 151 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 2.5 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).

2.5
Adjusted Score
2.5
Raw Score
100%
Time Factor
2026-07-09
Last Push
19.2K
Stars
Dart
Language
113.5K
Lines of Code
1.4K
Files
151
Pattern Hits
2026-07-14
Scan Date
0.01
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 6HIGH 7MEDIUM 14LOW 124

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 151 distinct pattern matches across 10 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.

Over-Commented Block119 hits · 119 pts
SeverityFileLineSnippetContext
LOW…o_app/plugin/flutter_module_using_plugin/lib/main.dart21}COMMENT
LOW…flutter_module_using_plugin_android_view/lib/main.dart21}COMMENT
LOW…pp/books/ios_books/IosBooks/IosBooks-Bridging-Header.h1//COMMENT
LOW…rc/main/java/dev/flutter/example/books/MainActivity.kt121 // into an idiomatic Android activity interface with intent extras as input andCOMMENT
LOW…esizingTests/Pods-ios_content_resizingTests-umbrella.h1#ifdef __OBJC__COMMENT
LOW…terPluginRegistrant/FlutterPluginRegistrant-umbrella.h1#ifdef __OBJC__COMMENT
LOW…ontent_resizing-ios_content_resizingUITests-umbrella.h1#ifdef __OBJC__COMMENT
LOW…_content_resizing/Pods-ios_content_resizing-umbrella.h1#ifdef __OBJC__COMMENT
LOW…o_app/ios_content_resizing/flutter_module/pubspec.yaml1name: flutter_moduleCOMMENT
LOW…o_app/ios_content_resizing/flutter_module/pubspec.yaml41 # included with your application, so that you can use the icons inCOMMENT
LOW…o_app/ios_content_resizing/flutter_module/pubspec.yaml61 # example:COMMENT
LOWbackground_isolate_channels/lib/simple_database.dart1// Copyright 2022 The Flutter team. All rights reserved.COMMENT
LOWbackground_isolate_channels/lib/simple_database.dart21// isolate and the [_SimpleDatabaseServer] operates on a background isolate.COMMENT
LOW…nd_routing/linux/flutter/generated_plugin_registrant.h1//COMMENT
LOWnavigation_and_routing/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_COMMENT
LOWnavigation_and_routing/windows/runner/win32_window.cpp1#include "win32_window.h"COMMENT
LOWnavigation_and_routing/windows/runner/resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOW…_routing/windows/flutter/generated_plugin_registrant.h1//COMMENT
LOW…sformation/linux/flutter/generated_plugin_registrant.h1//COMMENT
LOW…sformation/grayscale_transformer/analysis_options.yaml1# This file configures the static analysis results for your project (errors,COMMENT
LOW…sformation/grayscale_transformer/analysis_options.yaml21COMMENT
LOWasset_transformation/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_COMMENT
LOWasset_transformation/windows/runner/win32_window.cpp1#include "win32_window.h"COMMENT
LOWasset_transformation/windows/runner/resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOW…ormation/windows/flutter/generated_plugin_registrant.h1//COMMENT
LOW…ial_3_demo/linux/flutter/generated_plugin_registrant.h1//COMMENT
LOWmaterial_3_demo/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_COMMENT
LOWmaterial_3_demo/windows/runner/win32_window.cpp1#include "win32_window.h"COMMENT
LOWmaterial_3_demo/windows/runner/resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOW…l_3_demo/windows/flutter/generated_plugin_registrant.h1//COMMENT
LOWcupertino_gallery/analysis_options.yaml1# This file configures the analyzer, which statically analyzes Dart code toCOMMENT
LOWcupertino_gallery/analysis_options.yaml21 # `// ignore_for_file: name_of_lint` syntax on the line or in the fileCOMMENT
LOWcupertino_gallery/test/widget_test.dart1// This is a basic Flutter widget test.COMMENT
LOW…no_gallery/linux/flutter/generated_plugin_registrant.h1//COMMENT
LOWcupertino_gallery/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_COMMENT
LOWcupertino_gallery/windows/runner/win32_window.cpp1#include "win32_window.h"COMMENT
LOWcupertino_gallery/windows/runner/resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOW…_gallery/windows/flutter/generated_plugin_registrant.h1//COMMENT
LOW…ss_app/app/linux/flutter/generated_plugin_registrant.h1//COMMENT
LOWcompass_app/app/lib/utils/result.dart1// Copyright 2024 The Flutter team. All rights reserved.COMMENT
LOWcompass_app/app/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_COMMENT
LOWcompass_app/app/windows/runner/win32_window.cpp1#include "win32_window.h"COMMENT
LOWcompass_app/app/windows/runner/resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOW…_app/app/windows/flutter/generated_plugin_registrant.h1//COMMENT
LOWcompass_app/server/lib/middleware/auth.dart1// Copyright 2024 The Flutter team. All rights reserved.COMMENT
LOWcompass_app/server/lib/routes/booking.dart1// Copyright 2024 The Flutter team. All rights reserved.COMMENT
LOWform_app/linux/flutter/generated_plugin_registrant.h1//COMMENT
LOWform_app/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_COMMENT
LOWform_app/windows/runner/win32_window.cpp1#include "win32_window.h"COMMENT
LOWform_app/windows/runner/resource.h1//{{NO_DEPENDENCIES}}COMMENT
LOWform_app/windows/flutter/generated_plugin_registrant.h1//COMMENT
LOWplatform_design/lib/main.dart61 // data. Since changing platform re-parents those tabs into differentCOMMENT
LOWdate_planner/analysis_options.yaml1# This file configures the analyzer, which statically analyzes Dart code toCOMMENT
LOWdate_planner/analysis_options.yaml21 # `// ignore_for_file: name_of_lint` syntax on the line or in the fileCOMMENT
LOWdate_planner/lib/event_symbol.dart1// Copyright 2024 The Flutter Authors. All rights reserved.COMMENT
LOWdate_planner/lib/event_symbol.dart21 CupertinoIcons.clock_fill,COMMENT
LOW.prompts/llm.md201## Documentation StandardsCOMMENT
LOW.prompts/llm.md241}COMMENT
LOWpedometer/ffigen.yaml21COMMENT
LOWpedometer/pubspec.yaml21 jnigen: ^0.14.2COMMENT
59 more matches not shown…
Hallucination Indicators6 hits · 85 pts
SeverityFileLineSnippetContext
CRITICAL…r/example/androidfullscreen/ExampleInstrumentedTest.kt30 onView(withId(R.id.launch_button)).perform(androidx.test.espresso.action.ViewActions.click())CODE
CRITICAL…r/example/androidfullscreen/ExampleInstrumentedTest.kt46 androidx.test.espresso.assertion.ViewAssertions.matches(CODE
CRITICAL…r/example/androidfullscreen/ExampleInstrumentedTest.kt52 androidx.test.espresso.matcher.ViewMatchers.withText("Current count: 1")CODE
CRITICAL…r/example/androidfullscreen/ExampleInstrumentedTest.kt57 onView(withId(R.id.launch_button)).perform(androidx.test.espresso.action.ViewActions.click())CODE
CRITICAL…r/example/androidfullscreen/ExampleInstrumentedTest.kt65 androidx.test.espresso.assertion.ViewAssertions.matches(CODE
CRITICAL…r/example/androidfullscreen/ExampleInstrumentedTest.kt67 androidx.test.espresso.matcher.ViewMatchers.withText("Current count: 2")CODE
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHdesktop_photo_search/fluent_ui/test/unsplash_test.dart0{ "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width"STRING
HIGHdesktop_photo_search/fluent_ui/test/widget_test.dart0{ "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width"STRING
HIGHdesktop_photo_search/material/test/unsplash_test.dart0{ "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width"STRING
HIGHdesktop_photo_search/material/test/widget_test.dart0{ "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width"STRING
Slop Phrases6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM…o_app/ios_content_resizing/flutter_module/pubspec.yaml41 # included with your application, so that you can use the icons inCOMMENT
MEDIUMbackground_isolate_channels/lib/main.dart67 // just for demonstration purposes.COMMENT
MEDIUM…sformation/grayscale_transformer/analysis_options.yaml9# If you want a smaller set of lints you can change this to specifyCOMMENT
MEDIUMcompass_app/server/lib/routes/login.dart20/// This API only accepts a fixed email and password for demonstration purposes,COMMENT
MEDIUMcompass_app/server/lib/routes/user.dart14/// This API only returns a hardcoded user for demonstration purposes.COMMENT
MEDIUMpedometer/example/pubspec.yaml70 # included with your application, so that you can use the icons inCOMMENT
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHgoogle_maps/web/index.html33 <script src="https://maps.googleapis.com/maps/api/js?key=YOUR-API-KEY"></script>CODE
HIGHgoogle_maps/ios/Runner/AppDelegate.swift14 GMSServices.provideAPIKey("YOUR-API-KEY")CODE
HIGHgoogle_maps/android/app/src/main/AndroidManifest.xml10 android:value="YOUR-API-KEY"/>CODE
Modern AI Meta-Vocabulary5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMmaterial_3_demo/test/component_screen_test.dart115 // Third one is off screen in the scaffoldCOMMENT
MEDIUMmaterial_3_demo/test/component_screen_test.dart126 // Second one is off screen in the scaffoldCOMMENT
MEDIUMplatform_design/lib/main.dart44// Shows a different type of scaffold depending on the platform.COMMENT
MEDIUMplatform_design/lib/main.dart70 // actually building the scaffold around the drawer.COMMENT
MEDIUMplatform_design/lib/main.dart76 // a tab in the tab scaffold. The tab scaffold also positions the tab barCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMpedometer/pubspec.yaml29# The following section is specific to Flutter packages.COMMENT
MEDIUMpedometer/example/pubspec.yaml66# The following section is specific to Flutter packages.COMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOW.prompts/llm.md255/// final isValid = validateEmail('user@example.com'); // trueCOMMENT
LOW.prompts/llm.md338final name = 'John Doe';CODE
LOWanimations/lib/src/basics/custom_tween.dart116porro quisquam est, qui dolorem ipsum, quia dolor sit amet consecteturCODE
LOWanimations/lib/src/basics/custom_tween.dart116porro quisquam est, qui dolorem ipsum, quia dolor sit amet consecteturCODE
Excessive Try-Catch Wrapping1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtool/ci_script.dart110 print('Error detecting Flutter channel: $e');CODE
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…dding/element_embedding_demo/web/js/demo-js-interop.js36 function setJsInteropControlsEnabled(enabled) {CODE