AI Slop Code RIsk Monitor

tensorflow/examples

TensorFlow examples

12.7 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for tensorflow/examples, a Jupyter Notebook project with 8,280 GitHub stars. SynthScan examined 168,679 lines of code across 1367 source files, recording 1541 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 12.7 (Moderate 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.

12.7
Adjusted Signal
12.7
Raw Pattern Score
100%
Time Factor
2026-10-05
Last Push
8.3K
Stars
Jupyter Notebook
Language
168.7K
Lines of Code
1.4K
Files
1.5K
Pattern Hits
2026-10-12
Scan Date
0.05
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 28.4/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 12.8/100 · LOW

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

Agent Over-Engineering Ratio 21.7/100 · LOW

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

PR Review Velocity Impact 48.0/100 · MEDIUM

Which changes need focused human review? 1541 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

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

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 1HIGH 65MEDIUM 166LOW 1309

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 1541 distinct pattern matches across 18 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.

Over-Commented Block515 hits · 515 pts
SeverityFileLineSnippetContext
LOWsetup.py1# Copyright 2015 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/tools/build_ios_app.sh1#!/bin/bashCOMMENT
LOWlite/tools/test_pip_setup.sh1#!/bin/bashCOMMENT
LOWlite/tools/build_android_app.sh1#!/bin/bashCOMMENT
LOWlite/tools/build_all_android.sh1#!/bin/bashCOMMENT
LOWlite/tools/build_all_ios.sh1#!/bin/bashCOMMENT
LOWlite/tools/build_model_maker_api_docs.py1# Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/tools/build_model_maker_api_docs.py121 # Before:COMMENT
LOWlite/examples/recommendation/ml/configs/model_config.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/examples/recommendation/ml/configs/__init__.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ecommendation/ml/configs/input_config_generated_pb2.py1# THIS IS A GENERATED FILE. DO NOT EDIT!COMMENT
LOW…s/recommendation/ml/model/recommendation_model_test.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/examples/recommendation/ml/model/metrics.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…examples/recommendation/ml/model/label_encoder_test.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…amples/recommendation/ml/model/recommendation_model.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…commendation/ml/model/recommendation_model_launcher.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/examples/recommendation/ml/model/input_pipeline.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…amples/recommendation/ml/model/context_encoder_test.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/examples/recommendation/ml/model/__init__.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/examples/recommendation/ml/model/metrics_test.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…xamples/recommendation/ml/model/input_pipeline_test.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/examples/recommendation/ml/model/label_encoder.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ndation/ml/model/recommendation_model_launcher_test.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/examples/recommendation/ml/model/utils.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…mples/recommendation/ml/model/dotproduct_similarity.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…te/examples/recommendation/ml/model/context_encoder.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/examples/recommendation/ml/model/losses.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…/recommendation/ml/model/dotproduct_similarity_test.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/examples/recommendation/ml/model/losses_test.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/examples/recommendation/ml/data/__init__.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…mendation/ml/data/example_generation_movielens_test.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…recommendation/ml/data/example_generation_movielens.py1# Copyright 2021 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/examples/bert_qa/ios/ViewInUIKit/AppDelegate.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ios/ViewInUIKit/Controllers/OptionViewController.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…iewInUIKit/Controllers/OptionTableViewController.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…wInUIKit/Controllers/DataSetsTableViewController.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…wInUIKit/Controllers/DataSetDetailViewController.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…s/bert_qa/ios/ViewInUIKit/Views/ControlPanelView.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…s/bert_qa/ios/ViewInUIKit/Views/DataSetTitleCell.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…qa/ios/ViewInUIKit/Views/SuggestedQuestionButton.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWlite/examples/bert_qa/ios/BertQACore/Constants.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…xamples/bert_qa/ios/BertQACore/Models/FileLoader.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…e/examples/bert_qa/ios/BertQACore/Models/Dataset.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…a/ios/BertQACore/Models/Tokenizers/FullTokenizer.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…/BertQACore/Models/Tokenizers/WordpieceTokenizer.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…/ios/BertQACore/Models/Tokenizers/BasicTokenizer.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…s/bert_qa/ios/BertQACore/Models/ML/BertQAHandler.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…examples/bert_qa/ios/BertQACore/Models/ML/Result.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…s/bert_qa/ios/BertQACore/Models/ML/InputFeatures.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…les/bert_qa/ios/BertQACore/Models/ML/ContentData.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ios/BertQACore/Extensions/UnicodeScalarExtension.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…/bert_qa/ios/BertQACore/Extensions/DataExtension.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ert_qa/ios/BertQACore/Extensions/StringExtension.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ert_qa/ios/BertQACore/Extensions/StringExtension.swift41 func splitByWhitespace() -> [String] {COMMENT
LOW…bert_qa/ios/ViewInSwiftUI/KeyboardHeightObserver.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…e/examples/bert_qa/ios/ViewInSwiftUI/AppDelegate.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…examples/bert_qa/ios/ViewInSwiftUI/SceneDelegate.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…ert_qa/ios/ViewInSwiftUI/Views/DatasetDetailView.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…a/ios/ViewInSwiftUI/Views/SuggestedQuestionsView.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
LOW…/bert_qa/ios/ViewInSwiftUI/Views/DatasetListView.swift1// Copyright 2020 The TensorFlow Authors. All Rights Reserved.COMMENT
455 more matches not shown…
Unused Imports457 hits · 454 pts
SeverityFileLineSnippetContext
LOW__init__.py3CODE
LOW__init__.py4CODE
LOW__init__.py5CODE
LOWsetup.py17CODE
LOWsetup.py18CODE
LOWsetup.py19CODE
LOWlite/examples/recommendation/ml/model/metrics.py15CODE
LOWlite/examples/recommendation/ml/model/metrics.py16CODE
LOWlite/examples/recommendation/ml/model/metrics.py17CODE
LOWlite/examples/recommendation/ml/model/metrics_test.py15CODE
LOWlite/examples/recommendation/ml/model/metrics_test.py16CODE
LOWlite/examples/recommendation/ml/model/metrics_test.py17CODE
LOWlite/examples/recommendation/ml/model/utils.py16CODE
LOWlite/examples/recommendation/ml/model/utils.py17CODE
LOWlite/examples/recommendation/ml/model/utils.py18CODE
LOWlite/examples/recommendation/ml/model/losses.py15CODE
LOWlite/examples/recommendation/ml/model/losses.py16CODE
LOWlite/examples/recommendation/ml/model/losses.py17CODE
LOWlite/examples/recommendation/ml/model/losses_test.py15CODE
LOWlite/examples/recommendation/ml/model/losses_test.py16CODE
LOWlite/examples/recommendation/ml/model/losses_test.py17CODE
LOWlite/examples/reinforcement_learning/ml/common.py50CODE
LOW…d_jax/gym_planestrike/gym_planestrike/envs/__init__.py15CODE
LOW…nt_learning/ml/tf_agents/planestrike_py_environment.py16CODE
LOW…nt_learning/ml/tf_agents/planestrike_py_environment.py17CODE
LOW…nt_learning/ml/tf_agents/planestrike_py_environment.py18CODE
LOW…mples/pose_estimation/raspberry_pi/tracker/__init__.py16CODE
LOW…mples/pose_estimation/raspberry_pi/tracker/__init__.py17CODE
LOW…mples/pose_estimation/raspberry_pi/tracker/__init__.py18CODE
LOW…mples/pose_estimation/raspberry_pi/tracker/__init__.py19CODE
LOW…mples/pose_estimation/raspberry_pi/tracker/__init__.py20CODE
LOW…mples/pose_estimation/raspberry_pi/tracker/__init__.py21CODE
LOW…e/examples/pose_estimation/raspberry_pi/ml/__init__.py16CODE
LOW…e/examples/pose_estimation/raspberry_pi/ml/__init__.py17CODE
LOW…e/examples/pose_estimation/raspberry_pi/ml/__init__.py18CODE
LOW…e/examples/pose_estimation/raspberry_pi/ml/__init__.py19CODE
LOWlite/examples/speech_commands/ml/download.py16CODE
LOWlite/examples/speech_commands/ml/download.py17CODE
LOWlite/examples/speech_commands/ml/download.py18CODE
LOWlite/examples/speech_commands/ml/model.py16CODE
LOWlite/examples/speech_commands/ml/model.py17CODE
LOWlite/examples/speech_commands/ml/model.py18CODE
LOWlite/examples/speech_commands/ml/model.py21CODE
LOWlite/examples/speech_commands/ml/generator.py16CODE
LOWlite/examples/speech_commands/ml/generator.py17CODE
LOWlite/examples/speech_commands/ml/generator.py18CODE
LOWlite/examples/speech_commands/ml/utils.py16CODE
LOWlite/examples/speech_commands/ml/utils.py17CODE
LOWlite/examples/speech_commands/ml/utils.py18CODE
LOWlite/examples/speech_commands/ml/callbacks.py16CODE
LOWlite/examples/speech_commands/ml/callbacks.py17CODE
LOWlite/examples/speech_commands/ml/callbacks.py18CODE
LOWlite/examples/speech_commands/ml/train.py16CODE
LOWlite/examples/speech_commands/ml/train.py17CODE
LOWlite/examples/speech_commands/ml/train.py18CODE
LOWlite/examples/speech_commands/ml/classes.py16CODE
LOWlite/examples/speech_commands/ml/classes.py17CODE
LOWlite/examples/speech_commands/ml/classes.py18CODE
LOW…amples/speech_commands/ml/export/convert_keras_lite.py16CODE
LOW…amples/speech_commands/ml/export/convert_keras_lite.py17CODE
397 more matches not shown…
Decorative Section Separators135 hits · 412 pts
SeverityFileLineSnippetContext
MEDIUMsetup.py14# ==============================================================================COMMENT
MEDIUMlite/tools/build_ios_app.sh15# ==============================================================================COMMENT
MEDIUMlite/tools/test_pip_setup.sh15# ==============================================================================COMMENT
MEDIUMlite/tools/build_android_app.sh15# ==============================================================================COMMENT
MEDIUMlite/tools/build_all_android.sh15# ==============================================================================COMMENT
MEDIUMlite/tools/build_all_ios.sh15# ==============================================================================COMMENT
MEDIUMlite/tools/build_model_maker_api_docs.py14# ==============================================================================COMMENT
MEDIUM…ecommendation/ml/configs/input_config_generated_pb2.py17# ==============================================================================COMMENT
MEDIUM…/examples/bert_qa/ios/RunScripts/download_resources.sh15# ==============================================================================COMMENT
MEDIUM…d_play_services/cc_api/app/src/main/cpp/CMakeLists.txt5#-----------------------------------------------------------------------------COMMENT
MEDIUM⚡…d_play_services/cc_api/app/src/main/cpp/CMakeLists.txt32#-----------------------------------------------------------------------------COMMENT
MEDIUM⚡…d_play_services/cc_api/app/src/main/cpp/CMakeLists.txt42#-----------------------------------------------------------------------------COMMENT
MEDIUM⚡…d_play_services/cc_api/app/src/main/cpp/CMakeLists.txt47#-----------------------------------------------------------------------------COMMENT
MEDIUM⚡…d_play_services/cc_api/app/src/main/cpp/CMakeLists.txt56#-----------------------------------------------------------------------------COMMENT
MEDIUM⚡…d_play_services/cc_api/app/src/main/cpp/CMakeLists.txt64#-----------------------------------------------------------------------------COMMENT
MEDIUM…ples/pose_estimation/ios/RunScripts/download_models.sh15# ==============================================================================COMMENT
MEDIUM…esture_classification/ios/RunScripts/download_model.sh15# ==============================================================================COMMENT
MEDIUM…les/object_detection/ios/RunScripts/download_models.sh15# ==============================================================================COMMENT
MEDIUM…audio_classification/ios/RunScripts/download_models.sh15# ==============================================================================COMMENT
MEDIUM…sound_classification/ios/RunScripts/download_models.sh15# ==============================================================================COMMENT
MEDIUM…ples/speech_commands/ios/RunScripts/download_models.sh15# ==============================================================================COMMENT
MEDIUMlite/examples/speech_commands/ml/download.py14# ==============================================================================COMMENT
MEDIUMlite/examples/speech_commands/ml/model.py14# ==============================================================================COMMENT
MEDIUMlite/examples/speech_commands/ml/generator.py14# ==============================================================================COMMENT
MEDIUMlite/examples/speech_commands/ml/utils.py14# ==============================================================================COMMENT
MEDIUMlite/examples/speech_commands/ml/callbacks.py14# ==============================================================================COMMENT
MEDIUMlite/examples/speech_commands/ml/train.py14# ==============================================================================COMMENT
MEDIUMlite/examples/speech_commands/ml/classes.py14# ==============================================================================COMMENT
MEDIUM…amples/speech_commands/ml/export/convert_keras_lite.py14# ==============================================================================COMMENT
MEDIUM…peech_commands/ml/export/convert_keras_to_quantized.py14# ==============================================================================COMMENT
MEDIUMlite/examples/speech_commands/ml/export/__init__.py14# ==============================================================================COMMENT
MEDIUMlite/examples/posenet/ios/RunScripts/download_models.sh15# ==============================================================================COMMENT
MEDIUM…image_classification/ios/RunScripts/download_models.sh15# ==============================================================================COMMENT
MEDIUM…ation/metadata/metadata_writer_for_image_classifier.py14# ==============================================================================COMMENT
MEDIUMtensorflow_examples/__init__.py14# ==============================================================================COMMENT
MEDIUMtensorflow_examples/lite/__init__.py14# ==============================================================================COMMENT
MEDIUM…ples/lite/model_maker/core/task/image_preprocessing.py14# ==============================================================================COMMENT
MEDIUM…aker/core/task/metadata_writer_for_image_classifier.py14# ==============================================================================COMMENT
MEDIUM…el_maker/core/task/metadata_writers/metadata_writer.py14# ==============================================================================COMMENT
MEDIUM…text_classifier/metadata_writer_for_text_classifier.py14# ==============================================================================COMMENT
MEDIUM…task/metadata_writers/bert/metadata_writer_for_bert.py14# ==============================================================================COMMENT
MEDIUM…answerer/metadata_writer_for_bert_question_answerer.py14# ==============================================================================COMMENT
MEDIUM…classifier/metadata_writer_for_bert_text_classifier.py14# ==============================================================================COMMENT
MEDIUM…sorflow_examples/lite/model_maker/pip_package/setup.py14# ==============================================================================COMMENT
MEDIUM…ow_examples/lite/model_maker/pip_package/setup_util.py14# ==============================================================================COMMENT
MEDIUM…rd_party/recommendation/ml/configs/input_config_pb2.py17# ==============================================================================COMMENT
MEDIUM…e/model_maker/third_party/efficientdet/det_model_fn.py14# ==============================================================================COMMENT
MEDIUM…/model_maker/third_party/efficientdet/model_inspect.py14# ==============================================================================COMMENT
MEDIUM…lite/model_maker/third_party/efficientdet/iou_utils.py14# ==============================================================================COMMENT
MEDIUM…es/lite/model_maker/third_party/efficientdet/nms_np.py14# ==============================================================================COMMENT
MEDIUM…/lite/model_maker/third_party/efficientdet/__init__.py14# ==============================================================================COMMENT
MEDIUM…el_maker/third_party/efficientdet/efficientdet_arch.py14# ==============================================================================COMMENT
MEDIUM…e/model_maker/third_party/efficientdet/install_deps.sh15# ==============================================================================COMMENT
MEDIUM…les/lite/model_maker/third_party/efficientdet/utils.py14# ==============================================================================COMMENT
MEDIUM…ite/model_maker/third_party/efficientdet/run_tflite.py14# ==============================================================================COMMENT
MEDIUM…model_maker/third_party/efficientdet/hparams_config.py14# ==============================================================================COMMENT
MEDIUM…lite/model_maker/third_party/efficientdet/inference.py14# ==============================================================================COMMENT
MEDIUM…ite/model_maker/third_party/efficientdet/dataloader.py14# ==============================================================================COMMENT
MEDIUM…te/model_maker/third_party/efficientdet/coco_metric.py14# ==============================================================================COMMENT
MEDIUM…/lite/model_maker/third_party/efficientdet/tensorrt.py14# ==============================================================================COMMENT
75 more matches not shown…
Hyper-Verbose Identifiers240 hits · 239 pts
SeverityFileLineSnippetContext
LOW…s/recommendation/ml/model/recommendation_model_test.py24 def _create_test_input_config(self,CODE
LOW…s/recommendation/ml/model/recommendation_model_test.py50 def _create_test_model_config(self):CODE
LOW…examples/recommendation/ml/model/label_encoder_test.py23 def _create_test_input_config(self):CODE
LOWlite/examples/recommendation/ml/model/input_pipeline.py45def _prepare_feature_vocab_table(CODE
LOWlite/examples/recommendation/ml/model/input_pipeline.py82def _get_features_vocabs_for_groups(CODE
LOWlite/examples/recommendation/ml/model/input_pipeline.py109def get_features_and_vocabs_by_name(CODE
LOWlite/examples/recommendation/ml/model/input_pipeline.py178def _get_serving_feature_spec(feature_name: str,CODE
LOW…amples/recommendation/ml/model/context_encoder_test.py24 def _create_test_feature_group(self,CODE
LOW…amples/recommendation/ml/model/context_encoder_test.py39 def _create_test_input_config(self):CODE
LOW…amples/recommendation/ml/model/context_encoder_test.py65 def _create_test_model_config(self):CODE
LOW…amples/recommendation/ml/model/context_encoder_test.py73 def test_feature_group_encoder_bow(self):CODE
LOW…amples/recommendation/ml/model/context_encoder_test.py88 def test_feature_group_encoder_cnn(self):CODE
LOW…amples/recommendation/ml/model/context_encoder_test.py103 def test_feature_group_encoder_lstm(self):CODE
LOWlite/examples/recommendation/ml/model/metrics_test.py25 def test_batch_recall_and_mean_rank(self):CODE
LOWlite/examples/recommendation/ml/model/metrics_test.py39 def test_global_recall_and_mean_rank(self):CODE
LOW…xamples/recommendation/ml/model/input_pipeline_test.py173 def test_get_serving_input_specs(self):CODE
LOW…recommendation/ml/data/example_generation_movielens.py98def download_and_extract_data(data_directory,CODE
LOW…recommendation/ml/data/example_generation_movielens.py180def generate_feature_of_movie_years(movies_dict, movies):CODE
LOW…recommendation/ml/data/example_generation_movielens.py213def _pad_or_truncate_movie_feature(feature, max_len, pad_value):CODE
LOW…recommendation/ml/data/example_generation_movielens.py218def generate_examples_from_single_timeline(timeline,CODE
LOW…recommendation/ml/data/example_generation_movielens.py278def generate_examples_from_timelines(timelines,CODE
LOW…recommendation/ml/data/example_generation_movielens.py334def generate_movie_feature_vocabs(movies_df, movie_counts):CODE
LOWlite/examples/image_segmentation/raspberry_pi/utils.py22def segmentation_map_to_image(CODE
LOW…o_classification/raspberry_pi/video_classifier_test.py52 def _run_classification_with_frames(self, classifier: VideoClassifier,CODE
LOW…o_classification/raspberry_pi/video_classifier_test.py106 def test_score_threshold_option(self):CODE
LOWlite/examples/reinforcement_learning/ml/common.py87def initialize_random_hidden_board(board_size):CODE
LOW…nforcement_learning/ml/tf_agents/training_tf_agents.py52def compute_avg_return_and_steps(environment, policy, num_episodes=10):CODE
LOWlite/examples/pose_estimation/raspberry_pi/utils.py127def keep_aspect_ratio_resizer(CODE
LOWlite/examples/pose_estimation/raspberry_pi/data.py70def person_from_keypoints_with_scores(CODE
LOW…te/examples/pose_estimation/raspberry_pi/visualizer.py48def _visualize_detection_result(input_image, ground_truth):CODE
LOW…tion/raspberry_pi/tracker/bounding_box_tracker_test.py62 def test_bounding_box_tracker(self):CODE
LOW…se_estimation/raspberry_pi/tracker/keypoint_tracker.py52 def _object_keypoint_similarity(self, person: Person, track: Track) -> float:CODE
LOW…amples/pose_estimation/raspberry_pi/tracker/tracker.py184 def _update_and_get_next_track_id(self):CODE
LOW…te/examples/pose_estimation/raspberry_pi/ml/movenet.py132 def _determine_torso_and_body_range(self, keypoints: np.ndarray,CODE
LOW…Classification/ModelDataHandler/ModelDataHandler.swift52class ModelDataHandler {CODE
LOW…SpeechCommands/ModelDataHandler/ModelDataHandler.swift36class ModelDataHandler {CODE
LOWlite/examples/speech_commands/ml/generator.py122 def maybe_download_and_extract_dataset(self, data_dir):CODE
LOW…et/ios/PoseNet/ModelDataHandler/ModelDataHandler.swift23class ModelDataHandler {CODE
LOW…ite/model_maker/demo/audio_classification_demo_test.py61 def test_audio_classification_demo(self, spec, dataset):CODE
LOW…ite/model_maker/demo/image_classification_demo_test.py50 def test_image_classification_demo(self):CODE
LOW…lite/model_maker/demo/text_classification_demo_test.py50 def test_text_classification_demo(self):CODE
LOW…les/lite/model_maker/demo/audio_classification_demo.py90def download_speech_commands_dataset(**kwargs):CODE
LOW…core/data_util/object_detector_dataloader_util_test.py38 def test_filename_from_pascal(self):CODE
LOW…core/data_util/object_detector_dataloader_util_test.py102 def test_pascal_voc_cache_writer(self):CODE
LOW…ite/model_maker/core/data_util/text_dataloader_test.py55 def convert_examples_to_features(self, examples, tfrecord_file, label_names):CODE
LOW…ite/model_maker/core/data_util/text_dataloader_test.py132 def convert_examples_to_features(self, examples, is_training, output_fn,CODE
LOW…maker/core/data_util/recommendation_dataloader_test.py30 def test_download_and_extract_data(self):CODE
LOW…maker/core/data_util/recommendation_dataloader_test.py37 def test_generate_movielens_dataset(self):CODE
LOW…les/lite/model_maker/core/data_util/text_dataloader.py353 def _generate_tf_record_from_squad_file(cls,CODE
LOW…es/lite/model_maker/core/data_util/audio_dataloader.py111 def examples_and_label_indices(self):CODE
LOW…es/lite/model_maker/core/data_util/audio_dataloader.py124 def examples_and_label_indices_ds(self):CODE
LOW…/model_maker/core/data_util/recommendation_testutil.py105def patch_download_and_extract_data(data_dir):CODE
LOW…aker/core/data_util/object_detector_dataloader_util.py60def get_cache_prefix_filename_from_pascal(images_dir: str,CODE
LOW…aker/core/data_util/object_detector_dataloader_util.py88def get_cache_prefix_filename_from_csv(csv_file: str, num_shards: int) -> str:CODE
LOW…aker/core/data_util/object_detector_dataloader_util.py316def _get_xml_dict_from_csv_lines(images_dir: str, image_filename: str,CODE
LOW…odel_maker/core/data_util/recommendation_dataloader.py142 def download_and_extract_movielens(cls, download_dir):CODE
LOW…odel_maker/core/data_util/recommendation_dataloader.py147 def generate_movielens_dataset(CODE
LOW…te/model_maker/core/data_util/audio_dataloader_test.py230 def test_no_audio_files_found(self):CODE
LOW…te/model_maker/core/data_util/audio_dataloader_test.py237 def test_failed_librosa_imoprt(self):CODE
LOW…xamples/lite/model_maker/core/utils/scann_converter.py123def convert_serialized_to_on_device(serialized_path: str) -> OnDeviceArtifacts:CODE
180 more matches not shown…
Docstring Block Structure39 hits · 195 pts
SeverityFileLineSnippetContext
HIGHlite/examples/recommendation/ml/model/input_pipeline.py147Get feature spec based on feature type and length. Args: feature_type: The type of the feature (input_config_pb2.STRING
HIGHlite/examples/recommendation/ml/model/utils.py30Get a list of filenames given a pattern. This will also check whether the files exist on the filesystem. The pattern STRING
HIGH…recommendation/ml/data/example_generation_movielens.py222Generate TF examples from a single user timeline. Generate TF examples from a single user timeline. Timeline with lenSTRING
HIGH…recommendation/ml/data/example_generation_movielens.py286Convert user timelines to tf examples. Convert user timelines to tf examples by adding all possible context-label pSTRING
HIGH…xamples/lite/model_maker/core/utils/scann_converter.py64Helper util that builds an indexer for `convert_artifacts_to_leveldb`. Args: on_device_distance: DistanceMeasure STRING
HIGH…les/lite/model_maker/core/task/model_spec/text_spec.py1020Evaluate QA model. Args: model: The keras model to be evaluated. tflite_filepath: File path to the TFLiSTRING
HIGH…/third_party/recommendation/ml/model/input_pipeline.py147Get feature spec based on feature type and length. Args: feature_type: The type of the feature (input_config_pb2.STRING
HIGH…del_maker/third_party/recommendation/ml/model/utils.py30Get a list of filenames given a pattern. This will also check whether the files exist on the filesystem. The pattern STRING
HIGH…recommendation/ml/data/example_generation_movielens.py222Generate TF examples from a single user timeline. Generate TF examples from a single user timeline. Timeline with lenSTRING
HIGH…recommendation/ml/data/example_generation_movielens.py286Convert user timelines to tf examples. Convert user timelines to tf examples by adding all possible context-label pSTRING
HIGH…e/model_maker/third_party/efficientdet/det_model_fn.py302Model definition entry. Args: features: the input image tensor with shape [batch_size, height, width, 3]. TSTRING
HIGH…el_maker/third_party/efficientdet/efficientdet_arch.py308Builds backbone model. Args: features: input tensor. config: config for backbone, such as is_training_bn and baSTRING
HIGH…lite/model_maker/third_party/efficientdet/inference.py119Read and preprocess input images. Args: image_path_pattern: a path to indicate a single or multiple files. imSTRING
HIGH…te/model_maker/third_party/efficientdet/coco_metric.py93Evaluates with detections from all images with COCO API. Args: log_level: Logging lavel to print logs. ReSTRING
HIGH…d_party/efficientdet/dataset/create_pascal_tfrecord.py106Convert XML derived dict to tf.Example proto. Notice that this function normalizes the bounding box coordinates proviSTRING
HIGH…ird_party/efficientdet/dataset/create_coco_tfrecord.py72Converts image and annotations to a tf.Example proto. Args: image: dict with keys: [u'license', u'file_name', u'cSTRING
HIGH…aker/third_party/efficientdet/visualize/shape_utils.py178Runs map_fn as a (static) for loop when possible. This function rewrites the map_fn as an explicit unstack input -> fSTRING
HIGH…aker/third_party/efficientdet/visualize/shape_utils.py250Checks that the image width/height are greater than some number. This function is used to check that the width and heSTRING
HIGH…aker/third_party/efficientdet/visualize/shape_utils.py289Asserts that shape_a and shape_b are equal. If the shapes are static, raises a ValueError when the shapes mismatch.STRING
HIGH…aker/third_party/efficientdet/visualize/shape_utils.py318Asserts that shape_a and shape_b are the same along the 0th-dimension. If the shapes are static, raises a ValueError STRING
HIGH…aker/third_party/efficientdet/visualize/shape_utils.py347Asserts the input box tensor is normalized. Args: boxes: a tensor of shape [N, 4] where N is the number of boxes.STRING
HIGH…aker/third_party/efficientdet/visualize/shape_utils.py370Flattens `K-d` tensor along [first, last) dimensions. Converts `inputs` with shape [D0, D1, ..., D(K-1)] into a tensoSTRING
HIGH…party/efficientdet/object_detection/target_assigner.py82Assign classification and regression targets to each anchor. For a given set of anchors and groundtruth detections,STRING
HIGH…ird_party/efficientdet/object_detection/shape_utils.py21Asserts that shape_a and shape_b are equal. If the shapes are static, raises a ValueError when the shapes mismatch.STRING
HIGH…third_party/efficientdet/object_detection/box_coder.py116Decode a batch of encoded boxes. This op takes a batch of encoded bounding boxes and transforms them to a batch of STRING
HIGH…rd_party/efficientdet/object_detection/preprocessor.py119Randomly flips the image and detections horizontally. The probability of flipping the image is 50%. Args: imagSTRING
HIGH…rd_party/efficientdet/object_detection/preprocessor.py281Resizes an image so its dimensions are within the provided value. The output size can be described by two cases: 1.STRING
HIGH…/third_party/efficientdet/object_detection/box_list.py122Accesses a box collection and associated fields. This function returns specified field with object; if no field is STRING
HIGH…/third_party/efficientdet/object_detection/box_list.py187Retrieves specified fields as a dictionary of tensors. Args: fields: (optional) list of fields to return in tSTRING
HIGH…rd_party/efficientdet/backbone/efficientnet_builder.py227A helper function to create a model and return predicted logits. Args: images: input images tensor. model_namSTRING
HIGH…rd_party/efficientdet/backbone/efficientnet_builder.py293Create a base feature network and return the features before pooling. Args: images: input images tensor. modeSTRING
HIGH…rty/efficientdet/backbone/efficientnet_lite_builder.py112A helper function to create a model and return predicted logits. Args: images: input images tensor. model_namSTRING
HIGH…rty/efficientdet/backbone/efficientnet_lite_builder.py176Create a base feature network and return the features before pooling. Args: images: input images tensor. modeSTRING
HIGH…/third_party/efficientdet/backbone/backbone_factory.py36A helper function to create and return model. Args: model_name: string, the predefined model name. override_pSTRING
HIGHtensorflow_examples/models/densenet/densenet.py32Calculate number of layers in each block from the depth. Args: depth: Depth of model num_blocks: Number of deSTRING
HIGHtensorflow_examples/models/densenet/densenet.py64Calculate number of layers in each block. Args: depth: Depth of model num_blocks: Number of dense blocks STRING
HIGHtensorflow_examples/models/densenet/densenet.py91Calculate number of layers in each block. Args: depth: Depth of model num_blocks: Number of dense blocks STRING
HIGHtensorflow_examples/models/nmt_with_attention/utils.py138Create a tf.data Dataset. Args: path_to_file: Path to the file to load the text from. num_examples: Number ofSTRING
HIGH…g/imagenet_preprocessing_ineffecient_input_pipeline.py452Subtracts the given means from each image channel. For example: means = [123.68, 116.779, 103.939] image = _mSTRING
Cross-File Repetition26 hits · 130 pts
SeverityFileLineSnippetContext
HIGH…xamples/recommendation/ml/model/input_pipeline_test.py0activity_feature_groups { features { feature_name: "context_movie_id" feature_type: int vocab_size: 3952 embedding_dim: STRING
HIGH…d_party/recommendation/ml/model/input_pipeline_test.py0activity_feature_groups { features { feature_name: "context_movie_id" feature_type: int vocab_size: 3952 embedding_dim: STRING
HIGH…ndation/ml/model/recommendation_model_launcher_test.py0activity_feature_groups { features { feature_name: "context_movie_id" feature_type: int vocab_size: 3952 embedding_dim: STRING
HIGH…ndation/ml/model/recommendation_model_launcher_test.py0activity_feature_groups { features { feature_name: "context_movie_id" feature_type: int vocab_size: 3952 embedding_dim: STRING
HIGH…xamples/recommendation/ml/model/input_pipeline_test.py0features { feature { key: "context_movie_id" value { int64_list { value: [1, 2, 3, 0, 0] } } } feature { key: "context_mSTRING
HIGH…ndation/ml/model/recommendation_model_launcher_test.py0features { feature { key: "context_movie_id" value { int64_list { value: [1, 2, 3, 0, 0] } } } feature { key: "context_mSTRING
HIGH…d_party/recommendation/ml/model/input_pipeline_test.py0features { feature { key: "context_movie_id" value { int64_list { value: [1, 2, 3, 0, 0] } } } feature { key: "context_mSTRING
HIGH…ndation/ml/model/recommendation_model_launcher_test.py0features { feature { key: "context_movie_id" value { int64_list { value: [1, 2, 3, 0, 0] } } } feature { key: "context_mSTRING
HIGH…mendation/ml/data/example_generation_movielens_test.py0features { feature { key: "context_movie_id" value { int64_list { value: [1, 2, 3, 0, 0] } } } feature { key: "context_mSTRING
HIGH…mendation/ml/data/example_generation_movielens_test.py0features { feature { key: "context_movie_id" value { int64_list { value: [1, 2, 3, 0, 0] } } } feature { key: "context_mSTRING
HIGH…ation/metadata/metadata_writer_for_image_classifier.py0populates the metadata and label file to the model file.STRING
HIGH…aker/core/task/metadata_writer_for_image_classifier.py0populates the metadata and label file to the model file.STRING
HIGH…el_maker/core/task/metadata_writers/metadata_writer.py0populates the metadata and label file to the model file.STRING
HIGH…ite/model_maker/demo/audio_classification_demo_test.py0patch to train partial dataset rather than all of them.STRING
HIGH…ite/model_maker/demo/image_classification_demo_test.py0patch to train partial dataset rather than all of them.STRING
HIGH…lite/model_maker/demo/text_classification_demo_test.py0patch to train partial dataset rather than all of them.STRING
HIGH…xamples/lite/model_maker/core/task/image_classifier.py0converts the retrained model to tflite format and saves it. args: tflite_filepath: file path to save tflite model. quantSTRING
HIGH…examples/lite/model_maker/core/task/object_detector.py0converts the retrained model to tflite format and saves it. args: tflite_filepath: file path to save tflite model. quantSTRING
HIGH…examples/lite/model_maker/core/task/text_classifier.py0converts the retrained model to tflite format and saves it. args: tflite_filepath: file path to save tflite model. quantSTRING
HIGH…examples/lite/model_maker/core/task/question_answer.py0converts the retrained model to tflite format and saves it. args: tflite_filepath: file path to save tflite model. quantSTRING
HIGH…mples/lite/model_maker/core/task/model_util_v1_test.py0share text tests of the base class, but in tf v1 behavior.STRING
HIGH…/lite/model_maker/core/task/text_classifier_v1_test.py0share text tests of the base class, but in tf v1 behavior.STRING
HIGH…/lite/model_maker/core/task/question_answer_v1_test.py0share text tests of the base class, but in tf v1 behavior.STRING
HIGH…_examples/models/densenet/densenet_distributed_test.py0densely connected convolutional networks. reference [ densely connected convolutional networks](https://arxiv.org/abs/16STRING
HIGHtensorflow_examples/models/densenet/densenet.py0densely connected convolutional networks. reference [ densely connected convolutional networks](https://arxiv.org/abs/16STRING
HIGHtensorflow_examples/models/densenet/densenet_test.py0densely connected convolutional networks. reference [ densely connected convolutional networks](https://arxiv.org/abs/16STRING
Self-Referential Comments23 hits · 65 pts
SeverityFileLineSnippetContext
MEDIUM…examples/video_classification/raspberry_pi/classify.py48 # Initialize the video classification modelCOMMENT
MEDIUM…/video_classification/raspberry_pi/video_classifier.py109 # Create the initial (zero) statesCOMMENT
MEDIUM…amples/pose_estimation/raspberry_pi/pose_estimation.py81 # Initialize the classification modelCOMMENT
MEDIUM…te/examples/pose_estimation/raspberry_pi/visualizer.py81 # Create a fake score column to convert ground truth to "Person" typeCOMMENT
MEDIUM…s/pose_estimation/raspberry_pi/ml/movenet_multipose.py166 # Create the list of keypointsCOMMENT
MEDIUM…s/pose_estimation/raspberry_pi/ml/movenet_multipose.py185 # Create a Person instance corresponding to the detected entity.COMMENT
MEDIUMlite/examples/object_detection/raspberry_pi/detect.py56 # Initialize the object detection modelCOMMENT
MEDIUMlite/examples/object_detection/raspberry_pi/detect.py79 # Create a TensorImage object from the RGB image.COMMENT
MEDIUM…examples/audio_classification/raspberry_pi/classify.py45 # Initialize the audio classification model.COMMENT
MEDIUM…examples/sound_classification/raspberry_pi/classify.py45 # Initialize the audio classification model.COMMENT
MEDIUM…ification/android_play_services/.google/packaging.yaml3# This file is used by Google as part of our samples packaging process.COMMENT
MEDIUM…examples/image_classification/raspberry_pi/classify.py49 # Initialize the image classification modelCOMMENT
MEDIUM…_examples/lite/model_maker/demo/recommendation_demo.py125 # Create a model and train.COMMENT
MEDIUM…examples/lite/model_maker/core/data_util/dataloader.py37 """This class provides generic utilities for loading customized domain data that will be used later in model retraininSTRING
MEDIUM…del_maker/core/data_util/object_detector_dataloader.py365 """This function isn't implemented for the object detection task."""STRING
MEDIUM…es/lite/model_maker/core/task/audio_classifier_test.py146 # Create a new dataset without preprocessing since preprocessing has beenCOMMENT
MEDIUM…text_classifier/metadata_writer_for_text_classifier.py99 # Create the vocab file.COMMENT
MEDIUM…text_classifier/metadata_writer_for_text_classifier.py106 # Create the RegexTokenizer.COMMENT
MEDIUM…del_maker/third_party/efficientdet/keras/util_keras.py242### The following code breaks COCO training.COMMENT
MEDIUM…odel_maker/third_party/efficientdet/aug/autoaugment.py396 # Create the new bbox tensor by converting pixel integer values to floats.COMMENT
MEDIUM…odel_maker/third_party/efficientdet/aug/autoaugment.py545 # Create a mask that will be used to zero out a part of the original image.COMMENT
MEDIUM…_maker/third_party/efficientdet/visualize/vis_utils.py832 # Create a display string (and color) for every box location, group any boxesCOMMENT
MEDIUMtensorflow_examples/models/nmt_with_attention/utils.py160 # Create a tf.data datasetCOMMENT
Deep Nesting47 hits · 47 pts
SeverityFileLineSnippetContext
LOWlite/examples/recommendation/ml/model/utils.py51CODE
LOWlite/examples/reinforcement_learning/ml/common.py87CODE
LOW…amples/pose_estimation/raspberry_pi/pose_estimation.py28CODE
LOWlite/examples/speech_commands/ml/model.py121CODE
LOWlite/examples/speech_commands/ml/generator.py270CODE
LOW…les/lite/model_maker/demo/audio_classification_demo.py173CODE
LOW…ite/model_maker/core/data_util/text_dataloader_test.py109CODE
LOW…_examples/lite/model_maker/core/data_util/data_util.py24CODE
LOW…odel_maker/core/data_util/image_searcher_dataloader.py94CODE
LOW…del_maker/core/data_util/object_detector_dataloader.py63CODE
LOW…xamples/lite/model_maker/core/utils/scann_converter.py59CODE
LOW…examples/lite/model_maker/core/task/object_detector.py162CODE
LOW…sorflow_examples/lite/model_maker/core/task/configs.py29CODE
LOW…sorflow_examples/lite/model_maker/core/task/configs.py32CODE
LOW…flow_examples/lite/model_maker/core/task/hub_loader.py49CODE
LOW…examples/lite/model_maker/core/task/text_classifier.py122CODE
LOW…les/lite/model_maker/core/task/model_spec/text_spec.py426CODE
LOW…les/lite/model_maker/core/task/model_spec/text_spec.py847CODE
LOW…ow_examples/lite/model_maker/core/api/api_util_test.py154CODE
LOW…del_maker/third_party/recommendation/ml/model/utils.py51CODE
LOW…/model_maker/third_party/efficientdet/model_inspect.py439CODE
LOW…el_maker/third_party/efficientdet/efficientdet_arch.py55CODE
LOW…el_maker/third_party/efficientdet/efficientdet_arch.py422CODE
LOW…el_maker/third_party/efficientdet/efficientdet_arch.py488CODE
LOW…les/lite/model_maker/third_party/efficientdet/utils.py45CODE
LOW…les/lite/model_maker/third_party/efficientdet/utils.py440CODE
LOW…les/lite/model_maker/third_party/efficientdet/utils.py454CODE
LOW…model_maker/third_party/efficientdet/hparams_config.py62CODE
LOW…model_maker/third_party/efficientdet/hparams_config.py91CODE
LOW…model_maker/third_party/efficientdet/hparams_config.py122CODE
LOW…ite/model_maker/third_party/efficientdet/dataloader.py253CODE
LOW…te/model_maker/third_party/efficientdet/coco_metric.py177CODE
LOW…te/model_maker/third_party/efficientdet/coco_metric.py239CODE
LOW…ples/lite/model_maker/third_party/efficientdet/main.py123CODE
LOW…odel_maker/third_party/efficientdet/keras/infer_lib.py337CODE
LOW…odel_maker/third_party/efficientdet/keras/inspector.py69CODE
LOW…r/third_party/efficientdet/keras/efficientdet_keras.py78CODE
LOW…r/third_party/efficientdet/keras/efficientdet_keras.py132CODE
LOW…r/third_party/efficientdet/keras/efficientdet_keras.py731CODE
LOW…del_maker/third_party/efficientdet/keras/util_keras.py128CODE
LOW…odel_maker/third_party/efficientdet/keras/train_lib.py729CODE
LOW…te/model_maker/third_party/efficientdet/keras/train.py152CODE
LOW…ker/third_party/efficientdet/dataset/label_map_util.py68CODE
LOW…ird_party/efficientdet/dataset/create_coco_tfrecord.py66CODE
LOW…_maker/third_party/efficientdet/visualize/vis_utils.py764CODE
LOW…hird_party/efficientdet/backbone/efficientnet_model.py640CODE
LOW…hird_party/efficientdet/backbone/efficientnet_model.py711CODE
AI Structural Patterns32 hits · 32 pts
SeverityFileLineSnippetContext
LOW…recommendation/ml/data/example_generation_movielens.py392CODE
LOWlite/examples/speech_commands/ml/utils.py23CODE
LOWtensorflow_examples/lite/model_maker/core/test_util.py140CODE
LOW…odel_maker/core/data_util/recommendation_dataloader.py147CODE
LOW…odel_maker/core/data_util/recommendation_dataloader.py226CODE
LOW…xamples/lite/model_maker/core/task/image_classifier.py255CODE
LOW…sorflow_examples/lite/model_maker/core/task/configs.py62CODE
LOW…les/lite/model_maker/core/task/classification_model.py143CODE
LOW…es/lite/model_maker/core/task/image_classifier_test.py57CODE
LOW…_examples/lite/model_maker/core/task/recommendation.py211CODE
LOW…_examples/lite/model_maker/core/task/recommendation.py214CODE
LOW…les/lite/model_maker/core/task/model_spec/text_spec.py66CODE
LOW…les/lite/model_maker/core/task/model_spec/text_spec.py333CODE
LOW…les/lite/model_maker/core/task/model_spec/text_spec.py459CODE
LOW…les/lite/model_maker/core/task/model_spec/text_spec.py758CODE
LOW…del_maker/core/task/model_spec/object_detector_spec.py115CODE
LOW…recommendation/ml/data/example_generation_movielens.py392CODE
LOW…/model_maker/third_party/efficientdet/model_inspect.py78CODE
LOW…les/lite/model_maker/third_party/efficientdet/utils.py391CODE
LOW…r/third_party/efficientdet/keras/efficientdet_keras.py237CODE
LOW…r/third_party/efficientdet/keras/efficientdet_keras.py339CODE
LOW…r/third_party/efficientdet/keras/efficientdet_keras.py487CODE
LOW…odel_maker/third_party/efficientdet/aug/autoaugment.py1091CODE
LOW…_maker/third_party/efficientdet/visualize/vis_utils.py403CODE
LOW…_maker/third_party/efficientdet/visualize/vis_utils.py764CODE
LOW…maker/third_party/efficientdet/backbone/autoaugment.py315CODE
LOWtensorflow_examples/models/densenet/densenet.py165CODE
LOWtensorflow_examples/models/densenet/densenet.py197CODE
LOWtensorflow_examples/models/densenet/densenet.py269CODE
LOW…nsorflow_examples/models/densenet/distributed_train.py184CODE
LOWtensorflow_examples/models/densenet/train.py160CODE
LOW…g/imagenet_preprocessing_ineffecient_input_pipeline.py295CODE
Excessive Try-Catch Wrapping6 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUM…/ios/ImageClassifierBuilder/CameraViewController.swift128 print("Error Unable to initialize camera: \(error.localizedDescription)")CODE
MEDIUM…Classification/ModelDataHandler/ModelDataHandler.swift230 print("Error: out of memory")CODE
MEDIUM…/model_maker/third_party/efficientdet/model_inspect.py225 print('Error opening input video: {}'.format(video_path))CODE
MEDIUM…odel_maker/third_party/efficientdet/keras/inspector.py153 print('Error opening input video: {}'.format(FLAGS.input_video))CODE
LOW…/third_party/efficientdet/dataset/inspect_tfrecords.py90 except Exception: # pylint: disable=broad-exceptCODE
LOW…/third_party/efficientdet/dataset/inspect_tfrecords.py125 except Exception as e: # pylint: disable=broad-exceptCODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL…les/lite/model_maker/third_party/efficientdet/utils.py648 tf.compat.v1.keras.layers.enable_v2_dtype_behavior()CODE
AI Slop Vocabulary4 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…te/examples/pose_estimation/raspberry_pi/visualizer.py107 # Thunder 3 times to leverage the cropping logic and improve accuracy.COMMENT
MEDIUM…model_maker/core/data_util/searcher_dataloader_test.py70 # from raw input leverage embedder later.COMMENT
LOW…del_maker/third_party/efficientdet/keras/label_util.py138 # case 1: if it is None or dict, just return it.COMMENT
LOW…odel_maker/third_party/efficientdet/aug/autoaugment.py1587 # If no bounding boxes were specified, then just return the images.COMMENT
Redundant / Tautological Comments5 hits · 8 pts
SeverityFileLineSnippetContext
LOWlite/tools/build_ios_app.sh38 # Check if this directory appears in the skipped builds list.COMMENT
LOWlite/tools/build_android_app.sh31 # Check if this directory appears in the skipped builds list.COMMENT
LOWlite/tools/build_android_app.sh42 # Check if the directory contains a gradle wrapper.COMMENT
LOW…o_classification/raspberry_pi/video_classifier_test.py68 # Check if TOP-1 result match.COMMENT
LOW…amples/pose_estimation/raspberry_pi/pose_estimation.py110 # Check if all keypoints are detected before running the classifier.COMMENT
Structural Annotation Overuse5 hits · 8 pts
SeverityFileLineSnippetContext
LOW…es/lite/model_maker/third_party/efficientdet/README.md182 # Step 1: export saved model.COMMENT
LOW…es/lite/model_maker/third_party/efficientdet/README.md188 # Step 2: do inference with saved model.COMMENT
LOW…es/lite/model_maker/third_party/efficientdet/README.md199 # Step 2: do inference with frozen graph.COMMENT
LOW…e/model_maker/third_party/efficientdet/keras/README.md154 # Step 2: do inference with frozen graph.COMMENT
LOW…e/model_maker/third_party/efficientdet/keras/README.md163 # Step 2: do inference with frozen graph.COMMENT
Modern AI Meta-Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMlite/examples/classification_by_retrieval/README.md7as [one image per class](#model-accuracy-comparison-with-few-shot-learning), orCODE
MEDIUMlite/examples/generative_ai/android/README.md129As noted in the original [OpenAI GPT-2 announcement](https://openai.com/research/better-language-models), there are [notCODE
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtensorflow_examples/models/densenet/densenet.py134 # don't forget to set use_bias=False when using batchnormCOMMENT
LOWtensorflow_examples/models/densenet/densenet.py134 # don't forget to set use_bias=False when using batchnormCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…amples/pose_estimation/raspberry_pi/tracker/tracker.py144 def _update_tracks(self) -> None:CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…er/third_party/efficientdet/backbone/train_backbone.py87 def process_data(image, label):CODE