Repository Analysis

felangel/bloc

A predictable state management library that helps implement the BLoC design pattern

2.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of felangel/bloc, a Dart project with 12,473 GitHub stars. SynthScan v2.0 examined 82,989 lines of code across 1010 source files, recording 147 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 2.7 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.7
Adjusted Score
2.7
Raw Score
100%
Time Factor
2026-07-05
Last Push
12.5K
Stars
Dart
Language
83.0K
Lines of Code
1.0K
Files
147
Pattern Hits
2026-07-14
Scan Date
0.02
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 0HIGH 16MEDIUM 1LOW 130

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 147 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.

Over-Commented Block87 hits · 87 pts
SeverityFileLineSnippetContext
LOWdocs/src/env.d.ts1/// <reference path="../.astro/types.d.ts" />COMMENT
LOWdocs/src/styles/landing.css1:root {COMMENT
LOW…er_weather/linux/flutter/generated_plugin_registrant.h1//COMMENT
LOW…lutter_todos/packages/todos_api/lib/src/todos_api.dart1import 'package:todos_api/todos_api.dart';COMMENT
LOW…tter_todos/packages/todos_api/lib/src/models/todo.dart1import 'package:equatable/equatable.dart';COMMENT
LOW…tter_todos/packages/todos_api/lib/src/models/todo.dart41COMMENT
LOWexamples/flutter_todos/lib/l10n/app_localizations.dart21///COMMENT
LOWexamples/flutter_todos/lib/l10n/app_localizations.dart41/// # Rest of dependenciesCOMMENT
LOWexamples/flutter_todos/lib/l10n/app_localizations.dart101 String get todosOverviewAppBarTitle;COMMENT
LOWexamples/flutter_todos/lib/l10n/app_localizations.dart121 /// Text shown in the filter dropdown of the Todos Overview Page for the option to display completed todos onlyCOMMENT
LOWexamples/flutter_todos/lib/l10n/app_localizations.dart141 /// In en, this message translates to:COMMENT
LOWexamples/flutter_todos/lib/l10n/app_localizations.dart161 String get todosOverviewErrorSnackbarText;COMMENT
LOWexamples/flutter_todos/lib/l10n/app_localizations.dart181 /// Button text shown in the options dropdown of the Todos Overview Page that deletes all completed todosCOMMENT
LOWexamples/flutter_todos/lib/l10n/app_localizations.dart201 /// In en, this message translates to:COMMENT
LOWexamples/flutter_todos/lib/l10n/app_localizations.dart221 String get editTodoTitleLabel;COMMENT
LOWpackages/flutter_bloc/lib/src/repository_provider.dart1import 'package:flutter/widgets.dart';COMMENT
LOWpackages/flutter_bloc/lib/src/repository_provider.dart21/// RepositoryProvider(COMMENT
LOWpackages/flutter_bloc/lib/src/multi_bloc_listener.dart1import 'package:flutter/widgets.dart';COMMENT
LOWpackages/flutter_bloc/lib/src/multi_bloc_listener.dart21/// child: ChildA(),COMMENT
LOWpackages/flutter_bloc/lib/src/multi_bloc_listener.dart41/// ],COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_provider.dart1import 'package:bloc/bloc.dart';COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_provider.dart21/// It automatically handles closing the instance when used with [Create].COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_provider.dart41 this.lazy = true,COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_consumer.dart1import 'package:flutter/foundation.dart';COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_consumer.dart21/// BlocConsumer<BlocA, BlocAState>(COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_consumer.dart41/// they will default to `true`.COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_selector.dart1import 'package:flutter/foundation.dart';COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_selector.dart21/// },COMMENT
LOWpackages/flutter_bloc/lib/src/multi_bloc_provider.dart1import 'package:flutter/widgets.dart';COMMENT
LOWpackages/flutter_bloc/lib/src/multi_bloc_provider.dart21/// child: ChildA(),COMMENT
LOWpackages/flutter_bloc/lib/src/multi_bloc_provider.dart41/// ],COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_listener.dart21/// the [listener] in response to `state` changes in the [bloc].COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_listener.dart41///COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_listener.dart61/// when the [BlocListener] is initialized.COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_builder.dart1import 'package:flutter/foundation.dart';COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_builder.dart21/// Please refer to [BlocListener] if you want to "do" anything in response toCOMMENT
LOWpackages/flutter_bloc/lib/src/bloc_builder.dart41/// builder: (context, state) {COMMENT
LOWpackages/flutter_bloc/lib/src/bloc_builder.dart61/// ```dartCOMMENT
LOWpackages/flutter_bloc/lib/src/bloc_builder.dart101COMMENT
LOW…es/flutter_bloc/lib/src/multi_repository_provider.dart1import 'package:flutter/widgets.dart';COMMENT
LOW…es/flutter_bloc/lib/src/multi_repository_provider.dart21/// child: ChildA(),COMMENT
LOWpackages/bloc_tools/lib/bloc_tools.dart1/// Tools for building applications using theCOMMENT
LOWpackages/bloc_concurrency/lib/src/restartable.dart1import 'package:bloc/bloc.dart';COMMENT
LOWpackages/replay_bloc/lib/src/replay_cubit.dart1import 'dart:collection';COMMENT
LOWpackages/replay_bloc/lib/src/replay_cubit.dart21/// }COMMENT
LOWpackages/replay_bloc/lib/src/replay_bloc.dart21}COMMENT
LOWpackages/replay_bloc/lib/src/replay_bloc.dart41///COMMENT
LOWpackages/angular_bloc/dart_test.yaml1# As of test: ^0.12.32, we can use a common/base dart_test.yaml, which this is.COMMENT
LOWpackages/angular_bloc/lib/src/pipes/bloc_pipe.dart1import 'dart:async';COMMENT
LOWpackages/bloc_test/lib/src/bloc_test.dart1import 'dart:async';COMMENT
LOWpackages/bloc_test/lib/src/bloc_test.dart21/// [seed] is an optional `Function` that returns a stateCOMMENT
LOWpackages/bloc_test/lib/src/bloc_test.dart41/// under test is expected to throw after [act] is executed.COMMENT
LOWpackages/bloc_test/lib/src/bloc_test.dart61/// [blocTest] can optionally be used with a seeded state.COMMENT
LOWpackages/bloc_test/lib/src/bloc_test.dart81/// act: (bloc) {COMMENT
LOWpackages/bloc_test/lib/src/bloc_test.dart101/// );COMMENT
LOWpackages/bloc_test/lib/src/bloc_test.dart121///COMMENT
LOWpackages/bloc_test/lib/src/when_listen.dart1import 'dart:async';COMMENT
LOWpackages/bloc_test/lib/src/when_listen.dart21///COMMENT
LOWpackages/bloc_test/lib/src/mock_bloc.dart1import 'package:bloc/bloc.dart';COMMENT
LOWpackages/bloc_test/lib/src/mock_bloc.dart21/// **BAD**COMMENT
27 more matches not shown…
Cross-File Repetition16 hits · 80 pts
SeverityFileLineSnippetContext
HIGHpackages/bloc_tools/e2e/main.dart0import 'package:bloc/bloc.dart'; class countercubit extends cubit<int> { ^^^^^^^^^^^^ countercubit() : super(0); }STRING
HIGH…ckages/bloc_lint/test/src/rules/prefer_cubit_test.dart0import 'package:bloc/bloc.dart'; class countercubit extends cubit<int> { ^^^^^^^^^^^^ countercubit() : super(0); }STRING
HIGH…t/src/rules/prefer_void_public_cubit_methods_test.dart0import 'package:bloc/bloc.dart'; class countercubit extends cubit<int> { ^^^^^^^^^^^^ countercubit() : super(0); }STRING
HIGH…est/src/rules/prefer_file_naming_conventions_test.dart0import 'package:bloc/bloc.dart'; class countercubit extends cubit<int> { ^^^^^^^^^^^^ countercubit() : super(0); }STRING
HIGH…bloc_lint/test/src/rules/avoid_public_fields_test.dart0import 'package:bloc/bloc.dart'; class countercubit extends cubit<int> { ^^^^^^^^^^^^ countercubit() : super(0); }STRING
HIGHpackages/bloc_lint/test/src/rules/prefer_bloc_test.dart0import 'package:bloc/bloc.dart'; class countercubit extends cubit<int> { ^^^^^^^^^^^^ countercubit() : super(0); }STRING
HIGHpackages/bloc_lint/test/src/lint_test_helper.dart0packages: bloc: dependency: "direct main" description: name: bloc sha256: "52c10575f4445c61dd9e0cafcc6356fdd827c4c64dd79STRING
HIGHpackages/bloc_lint/test/src/analysis_options_test.dart0packages: bloc: dependency: "direct main" description: name: bloc sha256: "52c10575f4445c61dd9e0cafcc6356fdd827c4c64dd79STRING
HIGHpackages/bloc_lint/test/src/linter_test.dart0packages: bloc: dependency: "direct main" description: name: bloc sha256: "52c10575f4445c61dd9e0cafcc6356fdd827c4c64dd79STRING
HIGHpackages/bloc_lint/test/src/linter_test.dart0import 'package:bloc/bloc.dart'; enum counterevent { increment, decrement } class counterbloc extends bloc<counterevent,STRING
HIGH…oc_lint/test/src/rules/avoid_flutter_imports_test.dart0import 'package:bloc/bloc.dart'; enum counterevent { increment, decrement } class counterbloc extends bloc<counterevent,STRING
HIGH…est/src/rules/prefer_file_naming_conventions_test.dart0import 'package:bloc/bloc.dart'; enum counterevent { increment, decrement } class counterbloc extends bloc<counterevent,STRING
HIGH…int/test/src/rules/avoid_public_bloc_methods_test.dart0import 'package:bloc/bloc.dart'; enum counterevent { increment, decrement } class counterbloc extends bloc<counterevent,STRING
HIGH…bloc_lint/test/src/rules/avoid_public_fields_test.dart0import 'package:bloc/bloc.dart'; enum counterevent { increment, decrement } class counterbloc extends bloc<counterevent,STRING
HIGHpackages/bloc_lint/test/src/rules/prefer_bloc_test.dart0import 'package:bloc/bloc.dart'; enum counterevent { increment, decrement } class counterbloc extends bloc<counterevent,STRING
HIGH…ckages/bloc_lint/test/src/rules/prefer_cubit_test.dart0import 'package:bloc/bloc.dart'; enum counterevent { increment, decrement } class counterbloc extends bloc<counterevent,STRING
TODO Padding30 hits · 38 pts
SeverityFileLineSnippetContext
LOW…rator_plugin/src/main/resources/liveTemplates/Bloc.xml16 value="BlocConsumer&lt;$Subject$$EnumBloc$, $Subject$State&gt;(&#10; listener: (context, state) {&#10; CODE
LOW…rator_plugin/src/main/resources/liveTemplates/Bloc.xml27 value="BlocListener&lt;$Subject$$EnumBloc$, $Subject$State&gt;(&#10; listener: (context, state) {&#10; CODE
LOW…rator_plugin/src/main/resources/liveTemplates/Bloc.xml62 value="MultiBlocListener(&#10; listeners: [&#10; BlocListener&lt;$Subject$$EnumBloc$, $Subject$State&gCODE
LOW…rator_plugin/src/main/resources/liveTemplates/Bloc.xml111 value="class $Subject$Bloc extends Bloc&lt;$Subject$Event, $Subject$State&gt; {&#10; $Subject$Bloc() : suCODE
LOW…rator_plugin/src/main/resources/liveTemplates/Bloc.xml119 value="on&lt;$eventName$&gt;((event, emit) {&#10; // TODO: implement event handler&#10;});"CODE
LOW…rator_plugin/src/main/resources/liveTemplates/Bloc.xml217 value="blocTest&lt;$Subject$$EnumBloc$, $Subject$State&gt;(&#10; $DESCRIPTION$,&#10; build: () =&gt; $SuCODE
LOW…intellij_generator_plugin/intention_action/Snippets.kt52 " // TODO: implement listener\n" +CODE
LOW…intellij_generator_plugin/intention_action/Snippets.kt68 " // TODO: implement listener\n" +CODE
LOW…intellij_generator_plugin/intention_action/Snippets.kt101 " // TODO: implement listener\n" +CODE
LOWextensions/vscode/snippets/bloc.json8 "\t\t\t${2:// TODO: implement event handler}",CODE
LOWextensions/vscode/snippets/bloc.json31 "\t\t${2:// TODO: implement onEvent}",CODE
LOWextensions/vscode/snippets/bloc.json36 "\t\t${3:// TODO: implement onError}",CODE
LOWextensions/vscode/snippets/bloc.json43 "\t\t${4:// TODO: implement onChange}",CODE
LOWextensions/vscode/snippets/bloc.json49 "\t\t${4:// TODO: implement onTransition}",CODE
LOWextensions/vscode/snippets/bloc.json91 "\t${2:// TODO: implement event handler}",CODE
LOWextensions/vscode/snippets/bloc.json103 "\t${5:// TODO: implement event handler}",CODE
LOWextensions/vscode/snippets/flutter_bloc.json80 "\t\t${3:// TODO: implement listener}",CODE
LOWextensions/vscode/snippets/flutter_bloc.json93 "\t\t\t\t${3:// TODO: implement listener}",CODE
LOWextensions/vscode/snippets/flutter_bloc.json98 "\t\t\t\t${6:// TODO: implement listener}",CODE
LOWextensions/vscode/snippets/flutter_bloc.json111 "\t\t${3:// TODO: implement listener}",CODE
LOWextensions/vscode/src/templates/bloc.template.ts29 // TODO: implement event handlerCOMMENT
LOWextensions/vscode/src/templates/bloc.template.ts50 // TODO: implement event handlerCOMMENT
LOWextensions/vscode/src/templates/bloc.template.ts72 // TODO: implement event handlerCOMMENT
LOWextensions/vscode/src/commands/convert-to.command.ts21 \${4:// TODO: implement listener}CODE
LOWextensions/vscode/src/commands/wrap-with.command.ts25 \${3:// TODO: implement listener}CODE
LOWextensions/vscode/src/commands/wrap-with.command.ts41 \${3:// TODO: implement listener}CODE
LOWpackages/hydrated_bloc/README.md181 // TODO: implement readCOMMENT
LOWpackages/hydrated_bloc/README.md186 // TODO: implement writeCOMMENT
LOWpackages/hydrated_bloc/README.md191 // TODO: implement deleteCOMMENT
LOWpackages/hydrated_bloc/README.md196 // TODO: implement clearCOMMENT
Hyper-Verbose Identifiers10 hits · 10 pts
SeverityFileLineSnippetContext
LOW…tensions/vscode/src/language-server/language-server.ts45async function startLanguageServerWithProgress(executable: string) {CODE
LOWextensions/vscode/src/templates/cubit.template.ts15function getEquatableCubitTemplate(cubitName: string) {CODE
LOWextensions/vscode/src/templates/bloc-event.template.ts19function getEquatableBlocEventTemplate(CODE
LOWextensions/vscode/src/templates/bloc-event.template.ts37function getDefaultBlocEventTemplate(CODE
LOWextensions/vscode/src/templates/cubit-state.template.ts19function getEquatableCubitStateTemplate(CODE
LOWextensions/vscode/src/templates/cubit-state.template.ts40function getDefaultCubitStateTemplate(CODE
LOWextensions/vscode/src/templates/cubit-state.template.ts57function getFreezedCubitStateTemplate(cubitName: string): string {CODE
LOWextensions/vscode/src/templates/bloc-state.template.ts19function getEquatableBlocStateTemplate(CODE
LOWextensions/vscode/src/templates/bloc-state.template.ts40function getDefaultBlocStateTemplate(CODE
LOWextensions/vscode/src/templates/bloc-state.template.ts57function getFreezedBlocStateTemplate(blocName: string): string {CODE
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md213- [Feature Scaffolding for VSCode](https://marketplace.visualstudio.com/items?itemName=KiritchoukC.flutter-clean-architeCODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWexamples/flutter_wizard/lib/main.dart117 hintText: 'John Doe',CODE
LOW…hydrated_bloc/test/cubits/json_serializable_cubit.dart28 'John Doe',CODE
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…les/github_search/angular_github_search/web/styles.css1350 2. Don't forget to clearfix your floats with .cfCODE