TensorFlow examples
This report presents the forensic synthetic code analysis of tensorflow/examples, a Jupyter Notebook project with 8,281 GitHub stars. SynthScan v2.0 examined 168,678 lines of code across 1367 source files, recording 1541 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 12.7 places this repository in the Low AI signal 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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.
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.
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 1 | # Copyright 2015 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/tools/build_ios_app.sh | 1 | #!/bin/bash | COMMENT |
| LOW | lite/tools/test_pip_setup.sh | 1 | #!/bin/bash | COMMENT |
| LOW | lite/tools/build_android_app.sh | 1 | #!/bin/bash | COMMENT |
| LOW | lite/tools/build_all_android.sh | 1 | #!/bin/bash | COMMENT |
| LOW | lite/tools/build_all_ios.sh | 1 | #!/bin/bash | COMMENT |
| LOW | lite/tools/build_model_maker_api_docs.py | 1 | # Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/tools/build_model_maker_api_docs.py | 121 | # Before: | COMMENT |
| LOW | lite/examples/recommendation/ml/configs/model_config.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/examples/recommendation/ml/configs/__init__.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …ecommendation/ml/configs/input_config_generated_pb2.py | 1 | # THIS IS A GENERATED FILE. DO NOT EDIT! | COMMENT |
| LOW | …s/recommendation/ml/model/recommendation_model_test.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/examples/recommendation/ml/model/metrics.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …examples/recommendation/ml/model/label_encoder_test.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …amples/recommendation/ml/model/recommendation_model.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …commendation/ml/model/recommendation_model_launcher.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/examples/recommendation/ml/model/input_pipeline.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …amples/recommendation/ml/model/context_encoder_test.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/examples/recommendation/ml/model/__init__.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/examples/recommendation/ml/model/metrics_test.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …xamples/recommendation/ml/model/input_pipeline_test.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/examples/recommendation/ml/model/label_encoder.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …ndation/ml/model/recommendation_model_launcher_test.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/examples/recommendation/ml/model/utils.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …mples/recommendation/ml/model/dotproduct_similarity.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …te/examples/recommendation/ml/model/context_encoder.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/examples/recommendation/ml/model/losses.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …/recommendation/ml/model/dotproduct_similarity_test.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/examples/recommendation/ml/model/losses_test.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/examples/recommendation/ml/data/__init__.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …mendation/ml/data/example_generation_movielens_test.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …recommendation/ml/data/example_generation_movielens.py | 1 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/examples/bert_qa/ios/ViewInUIKit/AppDelegate.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …ios/ViewInUIKit/Controllers/OptionViewController.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …iewInUIKit/Controllers/OptionTableViewController.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …wInUIKit/Controllers/DataSetsTableViewController.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …wInUIKit/Controllers/DataSetDetailViewController.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …s/bert_qa/ios/ViewInUIKit/Views/ControlPanelView.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …s/bert_qa/ios/ViewInUIKit/Views/DataSetTitleCell.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …qa/ios/ViewInUIKit/Views/SuggestedQuestionButton.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | lite/examples/bert_qa/ios/BertQACore/Constants.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …xamples/bert_qa/ios/BertQACore/Models/FileLoader.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …e/examples/bert_qa/ios/BertQACore/Models/Dataset.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …a/ios/BertQACore/Models/Tokenizers/FullTokenizer.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …/BertQACore/Models/Tokenizers/WordpieceTokenizer.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …/ios/BertQACore/Models/Tokenizers/BasicTokenizer.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …s/bert_qa/ios/BertQACore/Models/ML/BertQAHandler.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …examples/bert_qa/ios/BertQACore/Models/ML/Result.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …s/bert_qa/ios/BertQACore/Models/ML/InputFeatures.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …les/bert_qa/ios/BertQACore/Models/ML/ContentData.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …ios/BertQACore/Extensions/UnicodeScalarExtension.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …/bert_qa/ios/BertQACore/Extensions/DataExtension.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …ert_qa/ios/BertQACore/Extensions/StringExtension.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …ert_qa/ios/BertQACore/Extensions/StringExtension.swift | 41 | func splitByWhitespace() -> [String] { | COMMENT |
| LOW | …bert_qa/ios/ViewInSwiftUI/KeyboardHeightObserver.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …e/examples/bert_qa/ios/ViewInSwiftUI/AppDelegate.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …examples/bert_qa/ios/ViewInSwiftUI/SceneDelegate.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …ert_qa/ios/ViewInSwiftUI/Views/DatasetDetailView.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …a/ios/ViewInSwiftUI/Views/SuggestedQuestionsView.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | …/bert_qa/ios/ViewInSwiftUI/Views/DatasetListView.swift | 1 | // Copyright 2020 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| 455 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | __init__.py | 3 | CODE | |
| LOW | __init__.py | 4 | CODE | |
| LOW | __init__.py | 5 | CODE | |
| LOW | setup.py | 17 | CODE | |
| LOW | setup.py | 18 | CODE | |
| LOW | setup.py | 19 | CODE | |
| LOW | lite/examples/recommendation/ml/model/metrics.py | 15 | CODE | |
| LOW | lite/examples/recommendation/ml/model/metrics.py | 16 | CODE | |
| LOW | lite/examples/recommendation/ml/model/metrics.py | 17 | CODE | |
| LOW | lite/examples/recommendation/ml/model/metrics_test.py | 15 | CODE | |
| LOW | lite/examples/recommendation/ml/model/metrics_test.py | 16 | CODE | |
| LOW | lite/examples/recommendation/ml/model/metrics_test.py | 17 | CODE | |
| LOW | lite/examples/recommendation/ml/model/utils.py | 16 | CODE | |
| LOW | lite/examples/recommendation/ml/model/utils.py | 17 | CODE | |
| LOW | lite/examples/recommendation/ml/model/utils.py | 18 | CODE | |
| LOW | lite/examples/recommendation/ml/model/losses.py | 15 | CODE | |
| LOW | lite/examples/recommendation/ml/model/losses.py | 16 | CODE | |
| LOW | lite/examples/recommendation/ml/model/losses.py | 17 | CODE | |
| LOW | lite/examples/recommendation/ml/model/losses_test.py | 15 | CODE | |
| LOW | lite/examples/recommendation/ml/model/losses_test.py | 16 | CODE | |
| LOW | lite/examples/recommendation/ml/model/losses_test.py | 17 | CODE | |
| LOW | lite/examples/reinforcement_learning/ml/common.py | 50 | CODE | |
| LOW | …d_jax/gym_planestrike/gym_planestrike/envs/__init__.py | 15 | CODE | |
| LOW | …nt_learning/ml/tf_agents/planestrike_py_environment.py | 16 | CODE | |
| LOW | …nt_learning/ml/tf_agents/planestrike_py_environment.py | 17 | CODE | |
| LOW | …nt_learning/ml/tf_agents/planestrike_py_environment.py | 18 | CODE | |
| LOW | …mples/pose_estimation/raspberry_pi/tracker/__init__.py | 16 | CODE | |
| LOW | …mples/pose_estimation/raspberry_pi/tracker/__init__.py | 17 | CODE | |
| LOW | …mples/pose_estimation/raspberry_pi/tracker/__init__.py | 18 | CODE | |
| LOW | …mples/pose_estimation/raspberry_pi/tracker/__init__.py | 19 | CODE | |
| LOW | …mples/pose_estimation/raspberry_pi/tracker/__init__.py | 20 | CODE | |
| LOW | …mples/pose_estimation/raspberry_pi/tracker/__init__.py | 21 | CODE | |
| LOW | …e/examples/pose_estimation/raspberry_pi/ml/__init__.py | 16 | CODE | |
| LOW | …e/examples/pose_estimation/raspberry_pi/ml/__init__.py | 17 | CODE | |
| LOW | …e/examples/pose_estimation/raspberry_pi/ml/__init__.py | 18 | CODE | |
| LOW | …e/examples/pose_estimation/raspberry_pi/ml/__init__.py | 19 | CODE | |
| LOW | lite/examples/speech_commands/ml/download.py | 16 | CODE | |
| LOW | lite/examples/speech_commands/ml/download.py | 17 | CODE | |
| LOW | lite/examples/speech_commands/ml/download.py | 18 | CODE | |
| LOW | lite/examples/speech_commands/ml/model.py | 16 | CODE | |
| LOW | lite/examples/speech_commands/ml/model.py | 17 | CODE | |
| LOW | lite/examples/speech_commands/ml/model.py | 18 | CODE | |
| LOW | lite/examples/speech_commands/ml/model.py | 21 | CODE | |
| LOW | lite/examples/speech_commands/ml/generator.py | 16 | CODE | |
| LOW | lite/examples/speech_commands/ml/generator.py | 17 | CODE | |
| LOW | lite/examples/speech_commands/ml/generator.py | 18 | CODE | |
| LOW | lite/examples/speech_commands/ml/utils.py | 16 | CODE | |
| LOW | lite/examples/speech_commands/ml/utils.py | 17 | CODE | |
| LOW | lite/examples/speech_commands/ml/utils.py | 18 | CODE | |
| LOW | lite/examples/speech_commands/ml/callbacks.py | 16 | CODE | |
| LOW | lite/examples/speech_commands/ml/callbacks.py | 17 | CODE | |
| LOW | lite/examples/speech_commands/ml/callbacks.py | 18 | CODE | |
| LOW | lite/examples/speech_commands/ml/train.py | 16 | CODE | |
| LOW | lite/examples/speech_commands/ml/train.py | 17 | CODE | |
| LOW | lite/examples/speech_commands/ml/train.py | 18 | CODE | |
| LOW | lite/examples/speech_commands/ml/classes.py | 16 | CODE | |
| LOW | lite/examples/speech_commands/ml/classes.py | 17 | CODE | |
| LOW | lite/examples/speech_commands/ml/classes.py | 18 | CODE | |
| LOW | …amples/speech_commands/ml/export/convert_keras_lite.py | 16 | CODE | |
| LOW | …amples/speech_commands/ml/export/convert_keras_lite.py | 17 | CODE | |
| 397 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | setup.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | lite/tools/build_ios_app.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | lite/tools/test_pip_setup.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | lite/tools/build_android_app.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | lite/tools/build_all_android.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | lite/tools/build_all_ios.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | lite/tools/build_model_maker_api_docs.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ecommendation/ml/configs/input_config_generated_pb2.py | 17 | # ============================================================================== | COMMENT |
| MEDIUM | …/examples/bert_qa/ios/RunScripts/download_resources.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …d_play_services/cc_api/app/src/main/cpp/CMakeLists.txt | 5 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …d_play_services/cc_api/app/src/main/cpp/CMakeLists.txt | 32 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …d_play_services/cc_api/app/src/main/cpp/CMakeLists.txt | 42 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …d_play_services/cc_api/app/src/main/cpp/CMakeLists.txt | 47 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …d_play_services/cc_api/app/src/main/cpp/CMakeLists.txt | 56 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …d_play_services/cc_api/app/src/main/cpp/CMakeLists.txt | 64 | #----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ples/pose_estimation/ios/RunScripts/download_models.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …esture_classification/ios/RunScripts/download_model.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …les/object_detection/ios/RunScripts/download_models.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …audio_classification/ios/RunScripts/download_models.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …sound_classification/ios/RunScripts/download_models.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …ples/speech_commands/ios/RunScripts/download_models.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | lite/examples/speech_commands/ml/download.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | lite/examples/speech_commands/ml/model.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | lite/examples/speech_commands/ml/generator.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | lite/examples/speech_commands/ml/utils.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | lite/examples/speech_commands/ml/callbacks.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | lite/examples/speech_commands/ml/train.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | lite/examples/speech_commands/ml/classes.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …amples/speech_commands/ml/export/convert_keras_lite.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …peech_commands/ml/export/convert_keras_to_quantized.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | lite/examples/speech_commands/ml/export/__init__.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | lite/examples/posenet/ios/RunScripts/download_models.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …image_classification/ios/RunScripts/download_models.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …ation/metadata/metadata_writer_for_image_classifier.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_examples/__init__.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_examples/lite/__init__.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ples/lite/model_maker/core/task/image_preprocessing.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …aker/core/task/metadata_writer_for_image_classifier.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …el_maker/core/task/metadata_writers/metadata_writer.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …text_classifier/metadata_writer_for_text_classifier.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …task/metadata_writers/bert/metadata_writer_for_bert.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …answerer/metadata_writer_for_bert_question_answerer.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …classifier/metadata_writer_for_bert_text_classifier.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …sorflow_examples/lite/model_maker/pip_package/setup.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ow_examples/lite/model_maker/pip_package/setup_util.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …rd_party/recommendation/ml/configs/input_config_pb2.py | 17 | # ============================================================================== | COMMENT |
| MEDIUM | …e/model_maker/third_party/efficientdet/det_model_fn.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …/model_maker/third_party/efficientdet/model_inspect.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …lite/model_maker/third_party/efficientdet/iou_utils.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …es/lite/model_maker/third_party/efficientdet/nms_np.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …/lite/model_maker/third_party/efficientdet/__init__.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …el_maker/third_party/efficientdet/efficientdet_arch.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …e/model_maker/third_party/efficientdet/install_deps.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …les/lite/model_maker/third_party/efficientdet/utils.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ite/model_maker/third_party/efficientdet/run_tflite.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …model_maker/third_party/efficientdet/hparams_config.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …lite/model_maker/third_party/efficientdet/inference.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ite/model_maker/third_party/efficientdet/dataloader.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …te/model_maker/third_party/efficientdet/coco_metric.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …/lite/model_maker/third_party/efficientdet/tensorrt.py | 14 | # ============================================================================== | COMMENT |
| 75 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/recommendation/ml/model/recommendation_model_test.py | 24 | def _create_test_input_config(self, | CODE |
| LOW | …s/recommendation/ml/model/recommendation_model_test.py | 50 | def _create_test_model_config(self): | CODE |
| LOW | …examples/recommendation/ml/model/label_encoder_test.py | 23 | def _create_test_input_config(self): | CODE |
| LOW | lite/examples/recommendation/ml/model/input_pipeline.py | 45 | def _prepare_feature_vocab_table( | CODE |
| LOW | lite/examples/recommendation/ml/model/input_pipeline.py | 82 | def _get_features_vocabs_for_groups( | CODE |
| LOW | lite/examples/recommendation/ml/model/input_pipeline.py | 109 | def get_features_and_vocabs_by_name( | CODE |
| LOW | lite/examples/recommendation/ml/model/input_pipeline.py | 178 | def _get_serving_feature_spec(feature_name: str, | CODE |
| LOW | …amples/recommendation/ml/model/context_encoder_test.py | 24 | def _create_test_feature_group(self, | CODE |
| LOW | …amples/recommendation/ml/model/context_encoder_test.py | 39 | def _create_test_input_config(self): | CODE |
| LOW | …amples/recommendation/ml/model/context_encoder_test.py | 65 | def _create_test_model_config(self): | CODE |
| LOW | …amples/recommendation/ml/model/context_encoder_test.py | 73 | def test_feature_group_encoder_bow(self): | CODE |
| LOW | …amples/recommendation/ml/model/context_encoder_test.py | 88 | def test_feature_group_encoder_cnn(self): | CODE |
| LOW | …amples/recommendation/ml/model/context_encoder_test.py | 103 | def test_feature_group_encoder_lstm(self): | CODE |
| LOW | lite/examples/recommendation/ml/model/metrics_test.py | 25 | def test_batch_recall_and_mean_rank(self): | CODE |
| LOW | lite/examples/recommendation/ml/model/metrics_test.py | 39 | def test_global_recall_and_mean_rank(self): | CODE |
| LOW | …xamples/recommendation/ml/model/input_pipeline_test.py | 173 | def test_get_serving_input_specs(self): | CODE |
| LOW | …recommendation/ml/data/example_generation_movielens.py | 98 | def download_and_extract_data(data_directory, | CODE |
| LOW | …recommendation/ml/data/example_generation_movielens.py | 180 | def generate_feature_of_movie_years(movies_dict, movies): | CODE |
| LOW | …recommendation/ml/data/example_generation_movielens.py | 213 | def _pad_or_truncate_movie_feature(feature, max_len, pad_value): | CODE |
| LOW | …recommendation/ml/data/example_generation_movielens.py | 218 | def generate_examples_from_single_timeline(timeline, | CODE |
| LOW | …recommendation/ml/data/example_generation_movielens.py | 278 | def generate_examples_from_timelines(timelines, | CODE |
| LOW | …recommendation/ml/data/example_generation_movielens.py | 334 | def generate_movie_feature_vocabs(movies_df, movie_counts): | CODE |
| LOW | lite/examples/image_segmentation/raspberry_pi/utils.py | 22 | def segmentation_map_to_image( | CODE |
| LOW | …o_classification/raspberry_pi/video_classifier_test.py | 52 | def _run_classification_with_frames(self, classifier: VideoClassifier, | CODE |
| LOW | …o_classification/raspberry_pi/video_classifier_test.py | 106 | def test_score_threshold_option(self): | CODE |
| LOW | lite/examples/reinforcement_learning/ml/common.py | 87 | def initialize_random_hidden_board(board_size): | CODE |
| LOW | …nforcement_learning/ml/tf_agents/training_tf_agents.py | 52 | def compute_avg_return_and_steps(environment, policy, num_episodes=10): | CODE |
| LOW | lite/examples/pose_estimation/raspberry_pi/utils.py | 127 | def keep_aspect_ratio_resizer( | CODE |
| LOW | lite/examples/pose_estimation/raspberry_pi/data.py | 70 | def person_from_keypoints_with_scores( | CODE |
| LOW | …te/examples/pose_estimation/raspberry_pi/visualizer.py | 48 | def _visualize_detection_result(input_image, ground_truth): | CODE |
| LOW | …tion/raspberry_pi/tracker/bounding_box_tracker_test.py | 62 | def test_bounding_box_tracker(self): | CODE |
| LOW | …se_estimation/raspberry_pi/tracker/keypoint_tracker.py | 52 | def _object_keypoint_similarity(self, person: Person, track: Track) -> float: | CODE |
| LOW | …amples/pose_estimation/raspberry_pi/tracker/tracker.py | 184 | def _update_and_get_next_track_id(self): | CODE |
| LOW | …te/examples/pose_estimation/raspberry_pi/ml/movenet.py | 132 | def _determine_torso_and_body_range(self, keypoints: np.ndarray, | CODE |
| LOW | …Classification/ModelDataHandler/ModelDataHandler.swift | 52 | class ModelDataHandler { | CODE |
| LOW | …SpeechCommands/ModelDataHandler/ModelDataHandler.swift | 36 | class ModelDataHandler { | CODE |
| LOW | lite/examples/speech_commands/ml/generator.py | 122 | def maybe_download_and_extract_dataset(self, data_dir): | CODE |
| LOW | …et/ios/PoseNet/ModelDataHandler/ModelDataHandler.swift | 23 | class ModelDataHandler { | CODE |
| LOW | …ite/model_maker/demo/audio_classification_demo_test.py | 61 | def test_audio_classification_demo(self, spec, dataset): | CODE |
| LOW | …ite/model_maker/demo/image_classification_demo_test.py | 50 | def test_image_classification_demo(self): | CODE |
| LOW | …lite/model_maker/demo/text_classification_demo_test.py | 50 | def test_text_classification_demo(self): | CODE |
| LOW | …les/lite/model_maker/demo/audio_classification_demo.py | 90 | def download_speech_commands_dataset(**kwargs): | CODE |
| LOW | …core/data_util/object_detector_dataloader_util_test.py | 38 | def test_filename_from_pascal(self): | CODE |
| LOW | …core/data_util/object_detector_dataloader_util_test.py | 102 | def test_pascal_voc_cache_writer(self): | CODE |
| LOW | …ite/model_maker/core/data_util/text_dataloader_test.py | 55 | def convert_examples_to_features(self, examples, tfrecord_file, label_names): | CODE |
| LOW | …ite/model_maker/core/data_util/text_dataloader_test.py | 132 | def convert_examples_to_features(self, examples, is_training, output_fn, | CODE |
| LOW | …maker/core/data_util/recommendation_dataloader_test.py | 30 | def test_download_and_extract_data(self): | CODE |
| LOW | …maker/core/data_util/recommendation_dataloader_test.py | 37 | def test_generate_movielens_dataset(self): | CODE |
| LOW | …les/lite/model_maker/core/data_util/text_dataloader.py | 353 | def _generate_tf_record_from_squad_file(cls, | CODE |
| LOW | …es/lite/model_maker/core/data_util/audio_dataloader.py | 111 | def examples_and_label_indices(self): | CODE |
| LOW | …es/lite/model_maker/core/data_util/audio_dataloader.py | 124 | def examples_and_label_indices_ds(self): | CODE |
| LOW | …/model_maker/core/data_util/recommendation_testutil.py | 105 | def patch_download_and_extract_data(data_dir): | CODE |
| LOW | …aker/core/data_util/object_detector_dataloader_util.py | 60 | def get_cache_prefix_filename_from_pascal(images_dir: str, | CODE |
| LOW | …aker/core/data_util/object_detector_dataloader_util.py | 88 | def get_cache_prefix_filename_from_csv(csv_file: str, num_shards: int) -> str: | CODE |
| LOW | …aker/core/data_util/object_detector_dataloader_util.py | 316 | def _get_xml_dict_from_csv_lines(images_dir: str, image_filename: str, | CODE |
| LOW | …odel_maker/core/data_util/recommendation_dataloader.py | 142 | def download_and_extract_movielens(cls, download_dir): | CODE |
| LOW | …odel_maker/core/data_util/recommendation_dataloader.py | 147 | def generate_movielens_dataset( | CODE |
| LOW | …te/model_maker/core/data_util/audio_dataloader_test.py | 230 | def test_no_audio_files_found(self): | CODE |
| LOW | …te/model_maker/core/data_util/audio_dataloader_test.py | 237 | def test_failed_librosa_imoprt(self): | CODE |
| LOW | …xamples/lite/model_maker/core/utils/scann_converter.py | 123 | def convert_serialized_to_on_device(serialized_path: str) -> OnDeviceArtifacts: | CODE |
| 180 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | lite/examples/recommendation/ml/model/input_pipeline.py | 147 | Get feature spec based on feature type and length. Args: feature_type: The type of the feature (input_config_pb2. | STRING |
| HIGH | lite/examples/recommendation/ml/model/utils.py | 30 | Get 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.py | 222 | Generate TF examples from a single user timeline. Generate TF examples from a single user timeline. Timeline with len | STRING |
| HIGH | …recommendation/ml/data/example_generation_movielens.py | 286 | Convert user timelines to tf examples. Convert user timelines to tf examples by adding all possible context-label p | STRING |
| HIGH | …xamples/lite/model_maker/core/utils/scann_converter.py | 64 | Helper 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.py | 1020 | Evaluate QA model. Args: model: The keras model to be evaluated. tflite_filepath: File path to the TFLi | STRING |
| HIGH | …/third_party/recommendation/ml/model/input_pipeline.py | 147 | Get 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.py | 30 | Get 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.py | 222 | Generate TF examples from a single user timeline. Generate TF examples from a single user timeline. Timeline with len | STRING |
| HIGH | …recommendation/ml/data/example_generation_movielens.py | 286 | Convert user timelines to tf examples. Convert user timelines to tf examples by adding all possible context-label p | STRING |
| HIGH | …e/model_maker/third_party/efficientdet/det_model_fn.py | 302 | Model definition entry. Args: features: the input image tensor with shape [batch_size, height, width, 3]. T | STRING |
| HIGH | …el_maker/third_party/efficientdet/efficientdet_arch.py | 308 | Builds backbone model. Args: features: input tensor. config: config for backbone, such as is_training_bn and ba | STRING |
| HIGH | …lite/model_maker/third_party/efficientdet/inference.py | 119 | Read and preprocess input images. Args: image_path_pattern: a path to indicate a single or multiple files. im | STRING |
| HIGH | …te/model_maker/third_party/efficientdet/coco_metric.py | 93 | Evaluates with detections from all images with COCO API. Args: log_level: Logging lavel to print logs. Re | STRING |
| HIGH | …d_party/efficientdet/dataset/create_pascal_tfrecord.py | 106 | Convert XML derived dict to tf.Example proto. Notice that this function normalizes the bounding box coordinates provi | STRING |
| HIGH | …ird_party/efficientdet/dataset/create_coco_tfrecord.py | 72 | Converts image and annotations to a tf.Example proto. Args: image: dict with keys: [u'license', u'file_name', u'c | STRING |
| HIGH | …aker/third_party/efficientdet/visualize/shape_utils.py | 178 | Runs map_fn as a (static) for loop when possible. This function rewrites the map_fn as an explicit unstack input -> f | STRING |
| HIGH | …aker/third_party/efficientdet/visualize/shape_utils.py | 250 | Checks that the image width/height are greater than some number. This function is used to check that the width and he | STRING |
| HIGH | …aker/third_party/efficientdet/visualize/shape_utils.py | 289 | Asserts 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.py | 318 | Asserts 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.py | 347 | Asserts 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.py | 370 | Flattens `K-d` tensor along [first, last) dimensions. Converts `inputs` with shape [D0, D1, ..., D(K-1)] into a tenso | STRING |
| HIGH | …party/efficientdet/object_detection/target_assigner.py | 82 | Assign 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.py | 21 | Asserts 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.py | 116 | Decode 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.py | 119 | Randomly flips the image and detections horizontally. The probability of flipping the image is 50%. Args: imag | STRING |
| HIGH | …rd_party/efficientdet/object_detection/preprocessor.py | 281 | Resizes 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.py | 122 | Accesses 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.py | 187 | Retrieves specified fields as a dictionary of tensors. Args: fields: (optional) list of fields to return in t | STRING |
| HIGH | …rd_party/efficientdet/backbone/efficientnet_builder.py | 227 | A helper function to create a model and return predicted logits. Args: images: input images tensor. model_nam | STRING |
| HIGH | …rd_party/efficientdet/backbone/efficientnet_builder.py | 293 | Create a base feature network and return the features before pooling. Args: images: input images tensor. mode | STRING |
| HIGH | …rty/efficientdet/backbone/efficientnet_lite_builder.py | 112 | A helper function to create a model and return predicted logits. Args: images: input images tensor. model_nam | STRING |
| HIGH | …rty/efficientdet/backbone/efficientnet_lite_builder.py | 176 | Create a base feature network and return the features before pooling. Args: images: input images tensor. mode | STRING |
| HIGH | …/third_party/efficientdet/backbone/backbone_factory.py | 36 | A helper function to create and return model. Args: model_name: string, the predefined model name. override_p | STRING |
| HIGH | tensorflow_examples/models/densenet/densenet.py | 32 | Calculate number of layers in each block from the depth. Args: depth: Depth of model num_blocks: Number of de | STRING |
| HIGH | tensorflow_examples/models/densenet/densenet.py | 64 | Calculate number of layers in each block. Args: depth: Depth of model num_blocks: Number of dense blocks | STRING |
| HIGH | tensorflow_examples/models/densenet/densenet.py | 91 | Calculate number of layers in each block. Args: depth: Depth of model num_blocks: Number of dense blocks | STRING |
| HIGH | tensorflow_examples/models/nmt_with_attention/utils.py | 138 | Create a tf.data Dataset. Args: path_to_file: Path to the file to load the text from. num_examples: Number of | STRING |
| HIGH | …g/imagenet_preprocessing_ineffecient_input_pipeline.py | 452 | Subtracts the given means from each image channel. For example: means = [123.68, 116.779, 103.939] image = _m | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …xamples/recommendation/ml/model/input_pipeline_test.py | 0 | activity_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.py | 0 | activity_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.py | 0 | activity_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.py | 0 | activity_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.py | 0 | features { feature { key: "context_movie_id" value { int64_list { value: [1, 2, 3, 0, 0] } } } feature { key: "context_m | STRING |
| HIGH | …ndation/ml/model/recommendation_model_launcher_test.py | 0 | features { feature { key: "context_movie_id" value { int64_list { value: [1, 2, 3, 0, 0] } } } feature { key: "context_m | STRING |
| HIGH | …d_party/recommendation/ml/model/input_pipeline_test.py | 0 | features { feature { key: "context_movie_id" value { int64_list { value: [1, 2, 3, 0, 0] } } } feature { key: "context_m | STRING |
| HIGH | …ndation/ml/model/recommendation_model_launcher_test.py | 0 | features { feature { key: "context_movie_id" value { int64_list { value: [1, 2, 3, 0, 0] } } } feature { key: "context_m | STRING |
| HIGH | …mendation/ml/data/example_generation_movielens_test.py | 0 | features { feature { key: "context_movie_id" value { int64_list { value: [1, 2, 3, 0, 0] } } } feature { key: "context_m | STRING |
| HIGH | …mendation/ml/data/example_generation_movielens_test.py | 0 | features { feature { key: "context_movie_id" value { int64_list { value: [1, 2, 3, 0, 0] } } } feature { key: "context_m | STRING |
| HIGH | …ation/metadata/metadata_writer_for_image_classifier.py | 0 | populates the metadata and label file to the model file. | STRING |
| HIGH | …aker/core/task/metadata_writer_for_image_classifier.py | 0 | populates the metadata and label file to the model file. | STRING |
| HIGH | …el_maker/core/task/metadata_writers/metadata_writer.py | 0 | populates the metadata and label file to the model file. | STRING |
| HIGH | …ite/model_maker/demo/audio_classification_demo_test.py | 0 | patch to train partial dataset rather than all of them. | STRING |
| HIGH | …ite/model_maker/demo/image_classification_demo_test.py | 0 | patch to train partial dataset rather than all of them. | STRING |
| HIGH | …lite/model_maker/demo/text_classification_demo_test.py | 0 | patch to train partial dataset rather than all of them. | STRING |
| HIGH | …xamples/lite/model_maker/core/task/image_classifier.py | 0 | converts the retrained model to tflite format and saves it. args: tflite_filepath: file path to save tflite model. quant | STRING |
| HIGH | …examples/lite/model_maker/core/task/object_detector.py | 0 | converts the retrained model to tflite format and saves it. args: tflite_filepath: file path to save tflite model. quant | STRING |
| HIGH | …examples/lite/model_maker/core/task/text_classifier.py | 0 | converts the retrained model to tflite format and saves it. args: tflite_filepath: file path to save tflite model. quant | STRING |
| HIGH | …examples/lite/model_maker/core/task/question_answer.py | 0 | converts the retrained model to tflite format and saves it. args: tflite_filepath: file path to save tflite model. quant | STRING |
| HIGH | …mples/lite/model_maker/core/task/model_util_v1_test.py | 0 | share text tests of the base class, but in tf v1 behavior. | STRING |
| HIGH | …/lite/model_maker/core/task/text_classifier_v1_test.py | 0 | share text tests of the base class, but in tf v1 behavior. | STRING |
| HIGH | …/lite/model_maker/core/task/question_answer_v1_test.py | 0 | share text tests of the base class, but in tf v1 behavior. | STRING |
| HIGH | …_examples/models/densenet/densenet_distributed_test.py | 0 | densely connected convolutional networks. reference [ densely connected convolutional networks](https://arxiv.org/abs/16 | STRING |
| HIGH | tensorflow_examples/models/densenet/densenet.py | 0 | densely connected convolutional networks. reference [ densely connected convolutional networks](https://arxiv.org/abs/16 | STRING |
| HIGH | tensorflow_examples/models/densenet/densenet_test.py | 0 | densely connected convolutional networks. reference [ densely connected convolutional networks](https://arxiv.org/abs/16 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …examples/video_classification/raspberry_pi/classify.py | 48 | # Initialize the video classification model | COMMENT |
| MEDIUM | …/video_classification/raspberry_pi/video_classifier.py | 109 | # Create the initial (zero) states | COMMENT |
| MEDIUM | …amples/pose_estimation/raspberry_pi/pose_estimation.py | 81 | # Initialize the classification model | COMMENT |
| MEDIUM | …te/examples/pose_estimation/raspberry_pi/visualizer.py | 81 | # Create a fake score column to convert ground truth to "Person" type | COMMENT |
| MEDIUM | …s/pose_estimation/raspberry_pi/ml/movenet_multipose.py | 166 | # Create the list of keypoints | COMMENT |
| MEDIUM | …s/pose_estimation/raspberry_pi/ml/movenet_multipose.py | 185 | # Create a Person instance corresponding to the detected entity. | COMMENT |
| MEDIUM | lite/examples/object_detection/raspberry_pi/detect.py | 56 | # Initialize the object detection model | COMMENT |
| MEDIUM | lite/examples/object_detection/raspberry_pi/detect.py | 79 | # Create a TensorImage object from the RGB image. | COMMENT |
| MEDIUM | …examples/audio_classification/raspberry_pi/classify.py | 45 | # Initialize the audio classification model. | COMMENT |
| MEDIUM | …examples/sound_classification/raspberry_pi/classify.py | 45 | # Initialize the audio classification model. | COMMENT |
| MEDIUM | …ification/android_play_services/.google/packaging.yaml | 3 | # This file is used by Google as part of our samples packaging process. | COMMENT |
| MEDIUM | …examples/image_classification/raspberry_pi/classify.py | 49 | # Initialize the image classification model | COMMENT |
| MEDIUM | …_examples/lite/model_maker/demo/recommendation_demo.py | 125 | # Create a model and train. | COMMENT |
| MEDIUM | …examples/lite/model_maker/core/data_util/dataloader.py | 37 | """This class provides generic utilities for loading customized domain data that will be used later in model retrainin | STRING |
| MEDIUM | …del_maker/core/data_util/object_detector_dataloader.py | 365 | """This function isn't implemented for the object detection task.""" | STRING |
| MEDIUM | …es/lite/model_maker/core/task/audio_classifier_test.py | 146 | # Create a new dataset without preprocessing since preprocessing has been | COMMENT |
| MEDIUM | …text_classifier/metadata_writer_for_text_classifier.py | 99 | # Create the vocab file. | COMMENT |
| MEDIUM | …text_classifier/metadata_writer_for_text_classifier.py | 106 | # Create the RegexTokenizer. | COMMENT |
| MEDIUM | …del_maker/third_party/efficientdet/keras/util_keras.py | 242 | ### The following code breaks COCO training. | COMMENT |
| MEDIUM | …odel_maker/third_party/efficientdet/aug/autoaugment.py | 396 | # Create the new bbox tensor by converting pixel integer values to floats. | COMMENT |
| MEDIUM | …odel_maker/third_party/efficientdet/aug/autoaugment.py | 545 | # 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.py | 832 | # Create a display string (and color) for every box location, group any boxes | COMMENT |
| MEDIUM | tensorflow_examples/models/nmt_with_attention/utils.py | 160 | # Create a tf.data dataset | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lite/examples/recommendation/ml/model/utils.py | 51 | CODE | |
| LOW | lite/examples/reinforcement_learning/ml/common.py | 87 | CODE | |
| LOW | …amples/pose_estimation/raspberry_pi/pose_estimation.py | 28 | CODE | |
| LOW | lite/examples/speech_commands/ml/model.py | 121 | CODE | |
| LOW | lite/examples/speech_commands/ml/generator.py | 270 | CODE | |
| LOW | …les/lite/model_maker/demo/audio_classification_demo.py | 173 | CODE | |
| LOW | …ite/model_maker/core/data_util/text_dataloader_test.py | 109 | CODE | |
| LOW | …_examples/lite/model_maker/core/data_util/data_util.py | 24 | CODE | |
| LOW | …odel_maker/core/data_util/image_searcher_dataloader.py | 94 | CODE | |
| LOW | …del_maker/core/data_util/object_detector_dataloader.py | 63 | CODE | |
| LOW | …xamples/lite/model_maker/core/utils/scann_converter.py | 59 | CODE | |
| LOW | …examples/lite/model_maker/core/task/object_detector.py | 162 | CODE | |
| LOW | …sorflow_examples/lite/model_maker/core/task/configs.py | 29 | CODE | |
| LOW | …sorflow_examples/lite/model_maker/core/task/configs.py | 32 | CODE | |
| LOW | …flow_examples/lite/model_maker/core/task/hub_loader.py | 49 | CODE | |
| LOW | …examples/lite/model_maker/core/task/text_classifier.py | 122 | CODE | |
| LOW | …les/lite/model_maker/core/task/model_spec/text_spec.py | 426 | CODE | |
| LOW | …les/lite/model_maker/core/task/model_spec/text_spec.py | 847 | CODE | |
| LOW | …ow_examples/lite/model_maker/core/api/api_util_test.py | 154 | CODE | |
| LOW | …del_maker/third_party/recommendation/ml/model/utils.py | 51 | CODE | |
| LOW | …/model_maker/third_party/efficientdet/model_inspect.py | 439 | CODE | |
| LOW | …el_maker/third_party/efficientdet/efficientdet_arch.py | 55 | CODE | |
| LOW | …el_maker/third_party/efficientdet/efficientdet_arch.py | 422 | CODE | |
| LOW | …el_maker/third_party/efficientdet/efficientdet_arch.py | 488 | CODE | |
| LOW | …les/lite/model_maker/third_party/efficientdet/utils.py | 45 | CODE | |
| LOW | …les/lite/model_maker/third_party/efficientdet/utils.py | 440 | CODE | |
| LOW | …les/lite/model_maker/third_party/efficientdet/utils.py | 454 | CODE | |
| LOW | …model_maker/third_party/efficientdet/hparams_config.py | 62 | CODE | |
| LOW | …model_maker/third_party/efficientdet/hparams_config.py | 91 | CODE | |
| LOW | …model_maker/third_party/efficientdet/hparams_config.py | 122 | CODE | |
| LOW | …ite/model_maker/third_party/efficientdet/dataloader.py | 253 | CODE | |
| LOW | …te/model_maker/third_party/efficientdet/coco_metric.py | 177 | CODE | |
| LOW | …te/model_maker/third_party/efficientdet/coco_metric.py | 239 | CODE | |
| LOW | …ples/lite/model_maker/third_party/efficientdet/main.py | 123 | CODE | |
| LOW | …odel_maker/third_party/efficientdet/keras/infer_lib.py | 337 | CODE | |
| LOW | …odel_maker/third_party/efficientdet/keras/inspector.py | 69 | CODE | |
| LOW | …r/third_party/efficientdet/keras/efficientdet_keras.py | 78 | CODE | |
| LOW | …r/third_party/efficientdet/keras/efficientdet_keras.py | 132 | CODE | |
| LOW | …r/third_party/efficientdet/keras/efficientdet_keras.py | 731 | CODE | |
| LOW | …del_maker/third_party/efficientdet/keras/util_keras.py | 128 | CODE | |
| LOW | …odel_maker/third_party/efficientdet/keras/train_lib.py | 729 | CODE | |
| LOW | …te/model_maker/third_party/efficientdet/keras/train.py | 152 | CODE | |
| LOW | …ker/third_party/efficientdet/dataset/label_map_util.py | 68 | CODE | |
| LOW | …ird_party/efficientdet/dataset/create_coco_tfrecord.py | 66 | CODE | |
| LOW | …_maker/third_party/efficientdet/visualize/vis_utils.py | 764 | CODE | |
| LOW | …hird_party/efficientdet/backbone/efficientnet_model.py | 640 | CODE | |
| LOW | …hird_party/efficientdet/backbone/efficientnet_model.py | 711 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …recommendation/ml/data/example_generation_movielens.py | 392 | CODE | |
| LOW | lite/examples/speech_commands/ml/utils.py | 23 | CODE | |
| LOW | tensorflow_examples/lite/model_maker/core/test_util.py | 140 | CODE | |
| LOW | …odel_maker/core/data_util/recommendation_dataloader.py | 147 | CODE | |
| LOW | …odel_maker/core/data_util/recommendation_dataloader.py | 226 | CODE | |
| LOW | …xamples/lite/model_maker/core/task/image_classifier.py | 255 | CODE | |
| LOW | …sorflow_examples/lite/model_maker/core/task/configs.py | 62 | CODE | |
| LOW | …les/lite/model_maker/core/task/classification_model.py | 143 | CODE | |
| LOW | …es/lite/model_maker/core/task/image_classifier_test.py | 57 | CODE | |
| LOW | …_examples/lite/model_maker/core/task/recommendation.py | 211 | CODE | |
| LOW | …_examples/lite/model_maker/core/task/recommendation.py | 214 | CODE | |
| LOW | …les/lite/model_maker/core/task/model_spec/text_spec.py | 66 | CODE | |
| LOW | …les/lite/model_maker/core/task/model_spec/text_spec.py | 333 | CODE | |
| LOW | …les/lite/model_maker/core/task/model_spec/text_spec.py | 459 | CODE | |
| LOW | …les/lite/model_maker/core/task/model_spec/text_spec.py | 758 | CODE | |
| LOW | …del_maker/core/task/model_spec/object_detector_spec.py | 115 | CODE | |
| LOW | …recommendation/ml/data/example_generation_movielens.py | 392 | CODE | |
| LOW | …/model_maker/third_party/efficientdet/model_inspect.py | 78 | CODE | |
| LOW | …les/lite/model_maker/third_party/efficientdet/utils.py | 391 | CODE | |
| LOW | …r/third_party/efficientdet/keras/efficientdet_keras.py | 237 | CODE | |
| LOW | …r/third_party/efficientdet/keras/efficientdet_keras.py | 339 | CODE | |
| LOW | …r/third_party/efficientdet/keras/efficientdet_keras.py | 487 | CODE | |
| LOW | …odel_maker/third_party/efficientdet/aug/autoaugment.py | 1091 | CODE | |
| LOW | …_maker/third_party/efficientdet/visualize/vis_utils.py | 403 | CODE | |
| LOW | …_maker/third_party/efficientdet/visualize/vis_utils.py | 764 | CODE | |
| LOW | …maker/third_party/efficientdet/backbone/autoaugment.py | 315 | CODE | |
| LOW | tensorflow_examples/models/densenet/densenet.py | 165 | CODE | |
| LOW | tensorflow_examples/models/densenet/densenet.py | 197 | CODE | |
| LOW | tensorflow_examples/models/densenet/densenet.py | 269 | CODE | |
| LOW | …nsorflow_examples/models/densenet/distributed_train.py | 184 | CODE | |
| LOW | tensorflow_examples/models/densenet/train.py | 160 | CODE | |
| LOW | …g/imagenet_preprocessing_ineffecient_input_pipeline.py | 295 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …/ios/ImageClassifierBuilder/CameraViewController.swift | 128 | print("Error Unable to initialize camera: \(error.localizedDescription)") | CODE |
| MEDIUM | …Classification/ModelDataHandler/ModelDataHandler.swift | 230 | print("Error: out of memory") | CODE |
| MEDIUM | …/model_maker/third_party/efficientdet/model_inspect.py | 225 | print('Error opening input video: {}'.format(video_path)) | CODE |
| MEDIUM | …odel_maker/third_party/efficientdet/keras/inspector.py | 153 | print('Error opening input video: {}'.format(FLAGS.input_video)) | CODE |
| LOW | …/third_party/efficientdet/dataset/inspect_tfrecords.py | 90 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | …/third_party/efficientdet/dataset/inspect_tfrecords.py | 125 | except Exception as e: # pylint: disable=broad-except | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …les/lite/model_maker/third_party/efficientdet/utils.py | 648 | tf.compat.v1.keras.layers.enable_v2_dtype_behavior() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …te/examples/pose_estimation/raspberry_pi/visualizer.py | 107 | # Thunder 3 times to leverage the cropping logic and improve accuracy. | COMMENT |
| MEDIUM | …model_maker/core/data_util/searcher_dataloader_test.py | 70 | # from raw input leverage embedder later. | COMMENT |
| LOW | …del_maker/third_party/efficientdet/keras/label_util.py | 138 | # case 1: if it is None or dict, just return it. | COMMENT |
| LOW | …odel_maker/third_party/efficientdet/aug/autoaugment.py | 1587 | # If no bounding boxes were specified, then just return the images. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lite/tools/build_ios_app.sh | 38 | # Check if this directory appears in the skipped builds list. | COMMENT |
| LOW | lite/tools/build_android_app.sh | 31 | # Check if this directory appears in the skipped builds list. | COMMENT |
| LOW | lite/tools/build_android_app.sh | 42 | # Check if the directory contains a gradle wrapper. | COMMENT |
| LOW | …o_classification/raspberry_pi/video_classifier_test.py | 68 | # Check if TOP-1 result match. | COMMENT |
| LOW | …amples/pose_estimation/raspberry_pi/pose_estimation.py | 110 | # Check if all keypoints are detected before running the classifier. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …es/lite/model_maker/third_party/efficientdet/README.md | 182 | # Step 1: export saved model. | COMMENT |
| LOW | …es/lite/model_maker/third_party/efficientdet/README.md | 188 | # Step 2: do inference with saved model. | COMMENT |
| LOW | …es/lite/model_maker/third_party/efficientdet/README.md | 199 | # Step 2: do inference with frozen graph. | COMMENT |
| LOW | …e/model_maker/third_party/efficientdet/keras/README.md | 154 | # Step 2: do inference with frozen graph. | COMMENT |
| LOW | …e/model_maker/third_party/efficientdet/keras/README.md | 163 | # Step 2: do inference with frozen graph. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lite/examples/classification_by_retrieval/README.md | 7 | as [one image per class](#model-accuracy-comparison-with-few-shot-learning), or | CODE |
| MEDIUM | lite/examples/generative_ai/android/README.md | 129 | As noted in the original [OpenAI GPT-2 announcement](https://openai.com/research/better-language-models), there are [not | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tensorflow_examples/models/densenet/densenet.py | 134 | # don't forget to set use_bias=False when using batchnorm | COMMENT |
| LOW | tensorflow_examples/models/densenet/densenet.py | 134 | # don't forget to set use_bias=False when using batchnorm | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …amples/pose_estimation/raspberry_pi/tracker/tracker.py | 144 | def _update_tracks(self) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …er/third_party/efficientdet/backbone/train_backbone.py | 87 | def process_data(image, label): | CODE |