AI Slop Code Risk Monitor

google-research/bert

SlopCodeMonitor badge for google-research/bert Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

TensorFlow code and pre-trained models for BERT

20.0 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for google-research/bert, a Python project with 40,018 GitHub stars. SynthScan examined 7,499 lines of code across 18 source files, recording 112 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 20.0 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

20.0
Adjusted Signal
20.0
Raw Pattern Score
100%
Time Factor
2024-07-23
Last Push
40.0K
Stars
Python
Language
7.5K
Lines of Code
18
Files
112
Pattern Hits
2026-11-27
Scan Date
0.44
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-27.

Cognitive Ownership Risk 46.6/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 72 finding(s).

Hallucinated Dependency & Supply Chain Risk 21.3/100 · LOW

Are imports declared and package/API names verified? 36 finding(s).

Agent Over-Engineering Ratio 26.9/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 31 finding(s).

PR Review Velocity Impact 64.7/100 · HIGH

Which changes need focused human review? 112 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 8MEDIUM 2LOW 102

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 112 distinct pattern matches across 9 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Unused Imports36 hits · 36 pts
SeverityFileLineSnippetContext
LOWrun_classifier_with_tfhub.py17CODE
LOWrun_classifier_with_tfhub.py18CODE
LOWrun_classifier_with_tfhub.py19CODE
LOWmodeling_test.py15CODE
LOWmodeling_test.py16CODE
LOWmodeling_test.py17CODE
LOWextract_features.py17CODE
LOWextract_features.py18CODE
LOWextract_features.py19CODE
LOWoptimization_test.py15CODE
LOWoptimization_test.py16CODE
LOWoptimization_test.py17CODE
LOWoptimization.py17CODE
LOWoptimization.py18CODE
LOWoptimization.py19CODE
LOWtokenization_test.py15CODE
LOWtokenization_test.py16CODE
LOWtokenization_test.py17CODE
LOWrun_squad.py17CODE
LOWrun_squad.py18CODE
LOWrun_squad.py19CODE
LOWtokenization.py17CODE
LOWtokenization.py18CODE
LOWtokenization.py19CODE
LOWrun_pretraining.py17CODE
LOWrun_pretraining.py18CODE
LOWrun_pretraining.py19CODE
LOWrun_classifier.py17CODE
LOWrun_classifier.py18CODE
LOWrun_classifier.py19CODE
LOWcreate_pretraining_data.py17CODE
LOWcreate_pretraining_data.py18CODE
LOWcreate_pretraining_data.py19CODE
LOWmodeling.py17CODE
LOWmodeling.py18CODE
LOWmodeling.py19CODE
Docstring Block Structure4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHmodeling.py281Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`. Args: activation_string: String name of the actSTRING
HIGHmodeling.py438Performs various post-processing on a word embedding tensor. Args: input_tensor: float Tensor of shape [batch_sizSTRING
HIGHmodeling.py572Performs multi-headed attention from `from_tensor` to `to_tensor`. This is an implementation of multi-headed attentioSTRING
HIGHmodeling.py765Multi-headed, multi-layer Transformer from "Attention is All You Need". This is almost an exact implementation of theSTRING
Cross-File Repetition4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHextract_features.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHrun_squad.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHrun_pretraining.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
HIGHrun_classifier.py0creates an `input_fn` closure to be passed to tpuestimator.STRING
Hyper-Verbose Identifiers19 hits · 19 pts
SeverityFileLineSnippetContext
LOWrun_classifier_with_tfhub.py146def create_tokenizer_from_hub_module(bert_hub_module_handle):CODE
LOWmodeling_test.py129 def test_config_to_json_string(self):CODE
LOWmodeling_test.py162 def assert_all_tensors_reachable(self, sess, outputs):CODE
LOWextract_features.py210def convert_examples_to_features(examples, seq_length, tokenizer):CODE
LOWtokenization_test.py58 def test_basic_tokenizer_lower(self):CODE
LOWtokenization_test.py66 def test_basic_tokenizer_no_lower(self):CODE
LOWtokenization_test.py93 def test_convert_tokens_to_ids(self):CODE
LOWrun_squad.py309def convert_examples_to_features(examples, tokenizer, max_seq_length,CODE
LOWtokenization.py28def validate_case_matches_checkpoint(do_lower_case, init_checkpoint):CODE
LOWrun_classifier.py177class DataProcessor(object):CODE
LOWrun_classifier.py479def file_based_convert_examples_to_features(CODE
LOWrun_classifier.py509def file_based_input_fn_builder(input_file, seq_length, is_training,CODE
LOWrun_classifier.py767def convert_examples_to_features(examples, label_list, max_seq_length,CODE
LOWcreate_pretraining_data.py96def write_instance_to_example_files(instances, tokenizer, max_seq_length,CODE
LOWcreate_pretraining_data.py179def create_training_instances(input_files, tokenizer, max_seq_length,CODE
LOWcreate_pretraining_data.py223def create_instances_from_document(CODE
LOWcreate_pretraining_data.py342def create_masked_lm_predictions(tokens, masked_lm_prob,CODE
LOWmodeling.py317def get_assignment_map_from_checkpoint(tvars, init_checkpoint):CODE
LOWmodeling.py524def create_attention_mask_from_input_mask(from_tensor, to_mask):CODE
Over-Commented Block19 hits · 19 pts
SeverityFileLineSnippetContext
LOWrun_classifier_with_tfhub.py1# coding=utf-8COMMENT
LOWmodeling_test.py1# coding=utf-8COMMENT
LOWextract_features.py1# coding=utf-8COMMENT
LOWextract_features.py221 if tokens_b:COMMENT
LOWoptimization_test.py1# coding=utf-8COMMENT
LOWoptimization.py1# coding=utf-8COMMENT
LOWtokenization_test.py1# coding=utf-8COMMENT
LOWrun_squad.py1# coding=utf-8COMMENT
LOWrun_squad.py481 # whitespace-tokenized words. But then after WordPiece tokenization, we canCOMMENT
LOWrun_squad.py521 # Span C: and bought a gallon ofCOMMENT
LOWrun_squad.py921COMMENT
LOWrun_squad.py941 #COMMENT
LOW__init__.py1# coding=utf-8COMMENT
LOWtokenization.py1# coding=utf-8COMMENT
LOWrun_pretraining.py1# coding=utf-8COMMENT
LOWrun_classifier.py1# coding=utf-8COMMENT
LOWrun_classifier.py401 # Account for [CLS], [SEP], [SEP] with "- 3"COMMENT
LOWcreate_pretraining_data.py1# coding=utf-8COMMENT
LOWmodeling.py1# coding=utf-8COMMENT
Deep Nesting16 hits · 16 pts
SeverityFileLineSnippetContext
LOWmodeling_test.py194CODE
LOWmodeling_test.py257CODE
LOWextract_features.py343CODE
LOWrun_squad.py227CODE
LOWrun_squad.py309CODE
LOWrun_squad.py741CODE
LOWtokenization.py78CODE
LOWtokenization.py98CODE
LOWtokenization.py308CODE
LOWrun_classifier.py783CODE
LOWcreate_pretraining_data.py96CODE
LOWcreate_pretraining_data.py179CODE
LOWcreate_pretraining_data.py223CODE
LOWcreate_pretraining_data.py342CODE
LOWmodeling.py280CODE
LOWmodeling.py754CODE
AI Structural Patterns8 hits · 8 pts
SeverityFileLineSnippetContext
LOWmodeling_test.py33CODE
LOWmodeling.py359CODE
LOWmodeling.py521CODE
LOWmodeling.py428CODE
LOWmodeling.py558CODE
LOWmodeling.py754CODE
LOWmodeling.py34CODE
LOWmodeling.py100CODE
AI Slop Vocabulary4 hits · 6 pts
SeverityFileLineSnippetContext
LOWrun_squad.py500 # "Japanese", we just use "Japanese" as the annotation. This is fairly rareCOMMENT
LOWrun_squad.py874 # just create a nonce prediction in this case to avoid failure.COMMENT
LOWrun_squad.py953 # can fail in certain cases in which case we just return `orig_text`.COMMENT
LOWmodeling.py297 # function, so we just return it.COMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMrun_classifier.py711# This function is not used by this file but is still used by the Colab andCOMMENT
MEDIUMrun_classifier.py765# This function is not used by this file but is still used by the Colab andCOMMENT