AI Slop Code RIsk Monitor

tensorflow/serving

A flexible, high-performance serving system for machine learning models

23.0 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for tensorflow/serving, a C++ project with 6,362 GitHub stars. SynthScan examined 30,761 lines of code across 260 source files, recording 414 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 23.0 (Elevated pattern signal); it is not an authorship estimate.

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

23.0
Adjusted Signal
23.0
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
6.4K
Stars
C++
Language
30.8K
Lines of Code
260
Files
414
Pattern Hits
2026-10-12
Scan Date
0.08
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 39.6/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 30.8/100 · MEDIUM

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

Agent Over-Engineering Ratio 25.7/100 · MEDIUM

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

PR Review Velocity Impact 68.9/100 · HIGH

Which changes need focused human review? 414 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 18HIGH 2MEDIUM 66LOW 328

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 414 distinct pattern matches across 13 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 Block255 hits · 255 pts
SeverityFileLineSnippetContext
LOWtools/run_in_docker.sh1#!/bin/bashCOMMENT
LOWtools/run_in_docker.sh21# a source tree. Also useful for running python scripts without having toCOMMENT
LOWtools/gen_status_stamp.sh1#!/bin/bashCOMMENT
LOW…erving/experimental/example/half_plus_two_with_rpop.py1# Copyright 2020 Google Inc. All Rights Reserved.COMMENT
LOW…_serving/experimental/example/remote_predict_client.py1# Copyright 2020 Google Inc. All Rights Reserved.COMMENT
LOW…experimental/example/half_plus_two_with_rpop_client.py1# Copyright 2020 Google Inc. All Rights Reserved.COMMENT
LOW…experimental/tensorflow/ops/remote_predict/__init__.py1# Copyright 2020 Google Inc. All Rights Reserved.COMMENT
LOW…/ops/remote_predict/kernels/remote_predict_op_kernel.h21#include <utility>COMMENT
LOW…ow/ops/remote_predict/python/ops/remote_predict_ops.py1# Copyright 2020 Google Inc. All Rights Reserved.COMMENT
LOWtensorflow_serving/tools/docker/setup.sources.sh1#!/usr/bin/env bashCOMMENT
LOW…erving/tools/docker/tests/dockerfile_devel_mkl_test.sh1#!/bin/bashCOMMENT
LOW…flow_serving/tools/docker/tests/dockerfile_gpu_test.sh1#!/bin/bashCOMMENT
LOW…ow_serving/tools/docker/tests/dockerfile_devel_test.sh1#!/bin/bashCOMMENT
LOW…nsorflow_serving/tools/docker/tests/docker_test_lib.sh1#!/bin/bashCOMMENT
LOW…nsorflow_serving/tools/docker/tests/dockerfile_test.sh1#!/bin/bashCOMMENT
LOW…flow_serving/tools/docker/tests/dockerfile_mkl_test.sh1#!/bin/bashCOMMENT
LOW…ng/tools/docker/tests/dockerfile_devel_gpu_trt_test.sh1#!/bin/bashCOMMENT
LOW…erving/tools/docker/tests/dockerfile_devel_gpu_test.sh1#!/bin/bashCOMMENT
LOW…_serving/tools/docker/tests/dockerfile_gpu_trt_test.sh1#!/bin/bashCOMMENT
LOW…sorflow_serving/tools/pip_package/build_pip_package.sh1#!/bin/bashCOMMENT
LOWtensorflow_serving/tools/pip_package/setup.py1# Copyright 2017 Google Inc. All Rights Reserved.COMMENT
LOWtensorflow_serving/apis/model_service_pb2_grpc.py1# Copyright 2018 Google Inc. All Rights Reserved.COMMENT
LOWtensorflow_serving/apis/prediction_service_pb2_grpc.py1# Copyright 2016 Google Inc. All Rights Reserved.COMMENT
LOWtensorflow_serving/apis/prediction_service_pb2.py1# Copyright 2016 Google Inc. All Rights Reserved.COMMENT
LOWtensorflow_serving/apis/model_service_pb2.py1# Copyright 2018 Google Inc. All Rights Reserved.COMMENT
LOWtensorflow_serving/apis/classifier.h21COMMENT
LOWtensorflow_serving/apis/regressor.h21#include "tensorflow_serving/apis/regression.pb.h"COMMENT
LOWtensorflow_serving/core/servable_state_monitor.h21#include <map>COMMENT
LOWtensorflow_serving/core/servable_state_monitor.h121 BoundedLog GetBoundedLog() const TF_LOCKS_EXCLUDED(mu_);COMMENT
LOWtensorflow_serving/core/servable_state_monitor.h141 ///COMMENT
LOWtensorflow_serving/core/resource_preserving_policy.h21#include "absl/types/optional.h"COMMENT
LOW…orflow_serving/core/aspired_versions_manager_builder.h21#include "tensorflow/core/lib/core/status.h"COMMENT
LOW…orflow_serving/core/aspired_versions_manager_builder.h41///COMMENT
LOW…orflow_serving/core/aspired_versions_manager_builder.h61 using Options = AspiredVersionsManager::Options;COMMENT
LOWtensorflow_serving/core/servable_state.h21COMMENT
LOWtensorflow_serving/core/servable_state.h41 // The state of the servable as maintained by a manager. These states can onlyCOMMENT
LOWtensorflow_serving/core/simple_loader.h21#include <type_traits>COMMENT
LOWtensorflow_serving/core/simple_loader.h41// to take a dependency on SavedModelBundle and Servable.COMMENT
LOWtensorflow_serving/core/simple_loader.h61// memory resources are specified, Unload() releases that amount of memory toCOMMENT
LOWtensorflow_serving/core/simple_loader.h101 // Constructor that takes a single resource estimator, to use for estimatingCOMMENT
LOWtensorflow_serving/core/simple_loader.h181COMMENT
LOWtensorflow_serving/core/simple_loader.h201// For more complex behaviors, SimpleLoaderSourceAdapter is inapplicable. YouCOMMENT
LOWtensorflow_serving/core/manager.h21#include <memory>COMMENT
LOWtensorflow_serving/core/manager.h81 /// Gets a list of all available servable ids, i.e. each of these canCOMMENT
LOWtensorflow_serving/core/source.h21COMMENT
LOWtensorflow_serving/core/source.h41/// find out about new servables and/or new versions of servables and/or theCOMMENT
LOWtensorflow_serving/core/source.h61/// state should be deferred to the first applicable Loader::Load() call, i.e.COMMENT
LOW…nsorflow_serving/core/availability_preserving_policy.h21#include "tensorflow_serving/core/aspired_version_policy.h"COMMENT
LOWtensorflow_serving/core/servable_id.h21#include <unordered_map>COMMENT
LOWtensorflow_serving/core/servable_id.h41 // active servable with the largest version number.COMMENT
LOWtensorflow_serving/core/servable_handle.h41 virtual AnyPtr servable() = 0;COMMENT
LOWtensorflow_serving/core/servable_handle.h61/// // Define or use an existing servable:COMMENT
LOWtensorflow_serving/core/static_source_router.h21#include <vector>COMMENT
LOWtensorflow_serving/core/request_logger.h21COMMENT
LOWtensorflow_serving/core/source_router.h21#include <vector>COMMENT
LOWtensorflow_serving/core/source_router.h41// /path/to/some/orange/servableCOMMENT
LOWtensorflow_serving/core/static_manager.h21#include "absl/synchronization/notification.h"COMMENT
LOWtensorflow_serving/core/loader.h21#include "tensorflow/core/lib/core/errors.h"COMMENT
LOWtensorflow_serving/core/loader.h41/// A Loader should start in an unloaded state, meaning that no work has beenCOMMENT
LOWtensorflow_serving/core/loader.h61 virtual ~Loader() = default;COMMENT
195 more matches not shown…
Hallucination Indicators18 hits · 172 pts
SeverityFileLineSnippetContext
CRITICALtensorflow_serving/example/resnet_client_grpc.py35tf.compat.v1.app.flags.DEFINE_string('server', 'localhost:8500',CODE
CRITICALtensorflow_serving/example/resnet_client_grpc.py37tf.compat.v1.app.flags.DEFINE_string('image', '',CODE
CRITICAL⚡tensorflow_serving/example/mnist_client.py42tf.compat.v1.app.flags.DEFINE_integer(CODE
CRITICAL⚡tensorflow_serving/example/mnist_client.py44tf.compat.v1.app.flags.DEFINE_integer('num_tests', 100, 'Number of test images')CODE
CRITICAL⚡tensorflow_serving/example/mnist_client.py45tf.compat.v1.app.flags.DEFINE_string('server', '',CODE
CRITICAL⚡tensorflow_serving/example/mnist_client.py47tf.compat.v1.app.flags.DEFINE_string('work_dir', '/tmp', 'Working directory. ')CODE
CRITICAL⚡tensorflow_serving/example/mnist_saved_model.py39tf.compat.v1.app.flags.DEFINE_integer('training_iteration', 1000,STRING
CRITICAL⚡tensorflow_serving/example/mnist_saved_model.py41tf.compat.v1.app.flags.DEFINE_integer('model_version', 1,STRING
CRITICAL⚡tensorflow_serving/example/mnist_saved_model.py43tf.compat.v1.app.flags.DEFINE_string('work_dir', '/tmp', 'Working directory.')STRING
CRITICAL⚡tensorflow_serving/example/mnist_saved_model.py104 builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(export_path)STRING
CRITICAL⚡tensorflow_serving/example/mnist_saved_model.py107 classification_inputs = tf.compat.v1.saved_model.utils.build_tensor_info(STRING
CRITICAL⚡tensorflow_serving/example/mnist_saved_model.py109 classification_outputs_classes = tf.compat.v1.saved_model.utils.build_tensor_info(STRING
CRITICAL⚡tensorflow_serving/example/mnist_saved_model.py111 classification_outputs_scores = tf.compat.v1.saved_model.utils.build_tensor_info(STRING
CRITICAL⚡tensorflow_serving/example/mnist_saved_model.py115 tf.compat.v1.saved_model.signature_def_utils.build_signature_def(STRING
CRITICAL⚡tensorflow_serving/example/mnist_saved_model.py131 tensor_info_x = tf.compat.v1.saved_model.utils.build_tensor_info(x)STRING
CRITICAL⚡tensorflow_serving/example/mnist_saved_model.py132 tensor_info_y = tf.compat.v1.saved_model.utils.build_tensor_info(y)STRING
CRITICAL⚡tensorflow_serving/example/mnist_saved_model.py135 tf.compat.v1.saved_model.signature_def_utils.build_signature_def(STRING
CRITICAL…g/model_servers/tensorflow_model_server_test_client.py30tf.compat.v1.app.flags.DEFINE_string('server', 'localhost:8500',CODE
Decorative Section Separators54 hits · 162 pts
SeverityFileLineSnippetContext
MEDIUMtools/run_in_docker.sh15# ==============================================================================COMMENT
MEDIUMtools/gen_status_stamp.sh15# ==============================================================================COMMENT
MEDIUM…erving/experimental/example/half_plus_two_with_rpop.py14# ==============================================================================COMMENT
MEDIUM…_serving/experimental/example/remote_predict_client.py14# ==============================================================================COMMENT
MEDIUM…experimental/example/half_plus_two_with_rpop_client.py14# ==============================================================================COMMENT
MEDIUM…experimental/tensorflow/ops/remote_predict/__init__.py14# ==============================================================================COMMENT
MEDIUM…ow/ops/remote_predict/python/ops/remote_predict_ops.py14# ==============================================================================COMMENT
MEDIUMtensorflow_serving/tools/docker/setup.sources.sh16# ==============================================================================COMMENT
MEDIUM…erving/tools/docker/tests/dockerfile_devel_mkl_test.sh15# ==============================================================================COMMENT
MEDIUM…erving/tools/docker/tests/dockerfile_devel_mkl_test.sh32# ------------------------------------------------------------------------------COMMENT
MEDIUM…erving/tools/docker/tests/dockerfile_devel_mkl_test.sh40# ------------------------------------------------------------------------------COMMENT
MEDIUM…flow_serving/tools/docker/tests/dockerfile_gpu_test.sh15# ==============================================================================COMMENT
MEDIUM…flow_serving/tools/docker/tests/dockerfile_gpu_test.sh32# ------------------------------------------------------------------------------COMMENT
MEDIUM…flow_serving/tools/docker/tests/dockerfile_gpu_test.sh40# ------------------------------------------------------------------------------COMMENT
MEDIUM…ow_serving/tools/docker/tests/dockerfile_devel_test.sh15# ==============================================================================COMMENT
MEDIUM…ow_serving/tools/docker/tests/dockerfile_devel_test.sh32# ------------------------------------------------------------------------------COMMENT
MEDIUM…ow_serving/tools/docker/tests/dockerfile_devel_test.sh40# ------------------------------------------------------------------------------COMMENT
MEDIUM…nsorflow_serving/tools/docker/tests/docker_test_lib.sh15# ==============================================================================COMMENT
MEDIUM…nsorflow_serving/tools/docker/tests/dockerfile_test.sh15# ==============================================================================COMMENT
MEDIUM…nsorflow_serving/tools/docker/tests/dockerfile_test.sh31# ------------------------------------------------------------------------------COMMENT
MEDIUM…nsorflow_serving/tools/docker/tests/dockerfile_test.sh39# ------------------------------------------------------------------------------COMMENT
MEDIUM…flow_serving/tools/docker/tests/dockerfile_mkl_test.sh15# ==============================================================================COMMENT
MEDIUM…flow_serving/tools/docker/tests/dockerfile_mkl_test.sh31# ------------------------------------------------------------------------------COMMENT
MEDIUM…flow_serving/tools/docker/tests/dockerfile_mkl_test.sh39# ------------------------------------------------------------------------------COMMENT
MEDIUM…ng/tools/docker/tests/dockerfile_devel_gpu_trt_test.sh15# ==============================================================================COMMENT
MEDIUM…ng/tools/docker/tests/dockerfile_devel_gpu_trt_test.sh32# ------------------------------------------------------------------------------COMMENT
MEDIUM…ng/tools/docker/tests/dockerfile_devel_gpu_trt_test.sh40# ------------------------------------------------------------------------------COMMENT
MEDIUM…erving/tools/docker/tests/dockerfile_devel_gpu_test.sh15# ==============================================================================COMMENT
MEDIUM…erving/tools/docker/tests/dockerfile_devel_gpu_test.sh32# ------------------------------------------------------------------------------COMMENT
MEDIUM…erving/tools/docker/tests/dockerfile_devel_gpu_test.sh40# ------------------------------------------------------------------------------COMMENT
MEDIUM…_serving/tools/docker/tests/dockerfile_gpu_trt_test.sh15# ==============================================================================COMMENT
MEDIUM…_serving/tools/docker/tests/dockerfile_gpu_trt_test.sh32# ------------------------------------------------------------------------------COMMENT
MEDIUM…_serving/tools/docker/tests/dockerfile_gpu_trt_test.sh40# ------------------------------------------------------------------------------COMMENT
MEDIUMtensorflow_serving/apis/model_service_pb2_grpc.py14# ==============================================================================COMMENT
MEDIUMtensorflow_serving/apis/prediction_service_pb2_grpc.py14# ==============================================================================COMMENT
MEDIUMtensorflow_serving/apis/prediction_service_pb2.py14# ==============================================================================COMMENT
MEDIUMtensorflow_serving/apis/model_service_pb2.py14# ==============================================================================COMMENT
MEDIUMtensorflow_serving/example/resnet_warmup.py14# ==============================================================================COMMENT
MEDIUMtensorflow_serving/example/resnet_client_grpc.py14# ==============================================================================COMMENT
MEDIUMtensorflow_serving/example/resnet_k8s.yaml14# ==============================================================================COMMENT
MEDIUMtensorflow_serving/example/resnet_client.py14# ==============================================================================COMMENT
MEDIUMtensorflow_serving/example/mnist_client.py14# ==============================================================================COMMENT
MEDIUMtensorflow_serving/example/mnist_saved_model.py14# ==============================================================================COMMENT
MEDIUMtensorflow_serving/example/mnist_input_data.py14# ==============================================================================COMMENT
MEDIUM…/servables/tensorflow/testdata/parse_example_tflite.py14# ==============================================================================COMMENT
MEDIUM…erving/servables/tensorflow/testdata/export_counter.py14# ==============================================================================COMMENT
MEDIUM…vables/tensorflow/testdata/export_bad_half_plus_two.py14# ==============================================================================COMMENT
MEDIUM…ables/tensorflow/testdata/saved_model_half_plus_two.py14# ==============================================================================COMMENT
MEDIUM…_serving/model_servers/tensorflow_model_server_test.py14# ==============================================================================COMMENT
MEDIUMtensorflow_serving/model_servers/profiler_client.py14# ==============================================================================COMMENT
MEDIUM…g/model_servers/tensorflow_model_server_test_client.py14# ==============================================================================COMMENT
MEDIUM…servers/test_util/tensorflow_model_server_test_base.py14# ==============================================================================COMMENT
MEDIUM…batching/test_util/matrix_half_plus_two_saved_model.py14# ==============================================================================COMMENT
MEDIUM.github/workflows/stale.yaml14# ==============================================================================COMMENT
Unused Imports41 hits · 41 pts
SeverityFileLineSnippetContext
LOW…_serving/experimental/example/remote_predict_client.py20CODE
LOW…experimental/example/half_plus_two_with_rpop_client.py39CODE
LOW…experimental/tensorflow/ops/remote_predict/__init__.py19CODE
LOW…experimental/tensorflow/ops/remote_predict/__init__.py20CODE
LOW…experimental/tensorflow/ops/remote_predict/__init__.py21CODE
LOW…experimental/tensorflow/ops/remote_predict/__init__.py23CODE
LOW…ow/ops/remote_predict/python/ops/remote_predict_ops.py17CODE
LOW…ow/ops/remote_predict/python/ops/remote_predict_ops.py18CODE
LOW…ow/ops/remote_predict/python/ops/remote_predict_ops.py19CODE
LOW…ow/ops/remote_predict/python/ops/remote_predict_ops.py26CODE
LOWtensorflow_serving/apis/prediction_service_pb2.py42CODE
LOWtensorflow_serving/apis/prediction_service_pb2.py43CODE
LOWtensorflow_serving/apis/prediction_service_pb2.py44CODE
LOWtensorflow_serving/apis/prediction_service_pb2.py45CODE
LOWtensorflow_serving/apis/prediction_service_pb2.py46CODE
LOWtensorflow_serving/apis/model_service_pb2.py41CODE
LOWtensorflow_serving/apis/model_service_pb2.py42CODE
LOWtensorflow_serving/example/resnet_warmup.py34CODE
LOWtensorflow_serving/example/resnet_client_grpc.py19CODE
LOWtensorflow_serving/example/resnet_client.py30CODE
LOWtensorflow_serving/example/mnist_client.py28CODE
LOWtensorflow_serving/example/mnist_saved_model.py28CODE
LOWtensorflow_serving/example/mnist_input_data.py20CODE
LOW…erving/servables/tensorflow/testdata/export_counter.py21CODE
LOW…erving/servables/tensorflow/testdata/export_counter.py22CODE
LOW…erving/servables/tensorflow/testdata/export_counter.py23CODE
LOW…ables/tensorflow/testdata/saved_model_half_plus_two.py48CODE
LOW…ables/tensorflow/testdata/saved_model_half_plus_two.py49CODE
LOW…ables/tensorflow/testdata/saved_model_half_plus_two.py50CODE
LOW…_serving/model_servers/tensorflow_model_server_test.py18CODE
LOW…_serving/model_servers/tensorflow_model_server_test.py19CODE
LOW…_serving/model_servers/tensorflow_model_server_test.py20CODE
LOWtensorflow_serving/model_servers/profiler_client.py17CODE
LOWtensorflow_serving/model_servers/profiler_client.py18CODE
LOWtensorflow_serving/model_servers/profiler_client.py19CODE
LOW…g/model_servers/tensorflow_model_server_test_client.py17CODE
LOW…g/model_servers/tensorflow_model_server_test_client.py18CODE
LOW…g/model_servers/tensorflow_model_server_test_client.py19CODE
LOW…servers/test_util/tensorflow_model_server_test_base.py18CODE
LOW…servers/test_util/tensorflow_model_server_test_base.py19CODE
LOW…servers/test_util/tensorflow_model_server_test_base.py20CODE
Self-Referential Comments10 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUM…erving/experimental/example/half_plus_two_with_rpop.py82 # Create a placeholder for serialized tensorflow.Example messages to beSTRING
MEDIUM…erving/experimental/example/half_plus_two_with_rpop.py113 # Initialize all variables and then save the SavedModel.STRING
MEDIUMtensorflow_serving/example/resnet_warmup.py71 # Create the assets.extra directory, assuming model_dir is the versionedCOMMENT
MEDIUMtensorflow_serving/example/resnet_warmup.py92 # Create the inference requestCOMMENT
MEDIUM…ables/tensorflow/testdata/saved_model_half_plus_two.py140 # Create an assets file that can be saved and restored as part of theCOMMENT
MEDIUM…ables/tensorflow/testdata/saved_model_half_plus_two.py303 # Create a placeholder for serialized tensorflow.Example messages to beCOMMENT
MEDIUM…ables/tensorflow/testdata/saved_model_half_plus_two.py325 # Create a small convolution op to trigger MKLCOMMENT
MEDIUM…ables/tensorflow/testdata/saved_model_half_plus_two.py336 # Create a small convolution op to trigger MKLCOMMENT
MEDIUM…ables/tensorflow/testdata/saved_model_half_plus_two.py349 # Create a small convolution op to trigger MKLCOMMENT
MEDIUM…ables/tensorflow/testdata/saved_model_half_plus_two.py379 # Initialize all variables and then save the SavedModel.COMMENT
Fake / Example Data10 hits · 13 pts
SeverityFileLineSnippetContext
LOW⚡tensorflow_serving/example/mnist_input_data.py101 def __init__(self, images, labels, fake_data=False, one_hot=False):CODE
LOW⚡tensorflow_serving/example/mnist_input_data.py102 """Construct a DataSet. one_hot arg is used only if fake_data is true."""STRING
LOW⚡tensorflow_serving/example/mnist_input_data.py104 if fake_data:CODE
LOWtensorflow_serving/example/mnist_input_data.py142 def next_batch(self, batch_size, fake_data=False):CODE
LOWtensorflow_serving/example/mnist_input_data.py144 if fake_data:CODE
LOW⚡tensorflow_serving/example/mnist_input_data.py171def read_data_sets(train_dir, fake_data=False, one_hot=False):CODE
LOW⚡tensorflow_serving/example/mnist_input_data.py179 if fake_data:CODE
LOW⚡tensorflow_serving/example/mnist_input_data.py180 data_sets.train = DataSet([], [], fake_data=True, one_hot=one_hot)CODE
LOW⚡tensorflow_serving/example/mnist_input_data.py181 data_sets.validation = DataSet([], [], fake_data=True, one_hot=one_hot)CODE
LOW⚡tensorflow_serving/example/mnist_input_data.py182 data_sets.test = DataSet([], [], fake_data=True, one_hot=one_hot)CODE
Hyper-Verbose Identifiers11 hits · 10 pts
SeverityFileLineSnippetContext
LOW…erving/experimental/example/half_plus_two_with_rpop.py46def _generate_saved_model_for_half_plus_two(export_dir, target_address,STRING
LOW…/servables/tensorflow/testdata/parse_example_tflite.py66def _generate_tflite_for_parse_example_with_string(export_dir):CODE
LOW…erving/servables/tensorflow/testdata/export_counter.py37def build_signature_def_from_tensors(inputs, outputs, method_name):CODE
LOW…ables/tensorflow/testdata/saved_model_half_plus_two.py105def _build_regression_signature(input_tensor, output_tensor):CODE
LOW…ables/tensorflow/testdata/saved_model_half_plus_two.py122def _build_classification_signature(input_tensor, scores_tensor):CODE
LOW…ables/tensorflow/testdata/saved_model_half_plus_two.py259def _generate_saved_model_for_half_plus_two(CODE
LOW…_serving/model_servers/tensorflow_model_server_test.py655 def test_tf_saved_model_save_multiple_signatures(self):CODE
LOW…_serving/model_servers/tensorflow_model_server_test.py681 def test_sequential_keras_saved_model_save(self):CODE
LOW…_serving/model_servers/tensorflow_model_server_test.py705 def test_distrat_sequential_keras_saved_model_save(self):CODE
LOW…_serving/model_servers/tensorflow_model_server_test.py737 def test_profiler_service_with_valid_trace_request(self):CODE
LOW…batching/test_util/matrix_half_plus_two_saved_model.py23def _generate_saved_model_for_matrix_half_plus_two(export_dir):CODE
Docstring Block Structure2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHtensorflow_serving/example/mnist_client.py124Tests PredictionService with concurrent requests. Args: hostport: Host:port address of the PredictionService. STRING
HIGH…servers/test_util/tensorflow_model_server_test_base.py152Run tensorflow_model_server using test config. A unique instance of server is started for each set of arguments. STRING
Excessive Try-Catch Wrapping9 hits · 9 pts
SeverityFileLineSnippetContext
LOW…_serving/model_servers/tensorflow_model_server_test.py453 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…_serving/model_servers/tensorflow_model_server_test.py473 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…_serving/model_servers/tensorflow_model_server_test.py493 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…_serving/model_servers/tensorflow_model_server_test.py514 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…_serving/model_servers/tensorflow_model_server_test.py534 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…_serving/model_servers/tensorflow_model_server_test.py563 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…_serving/model_servers/tensorflow_model_server_test.py579 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…_serving/model_servers/tensorflow_model_server_test.py597 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…servers/test_util/tensorflow_model_server_test_base.py102 except Exception as e: # pylint: disable=broad-exceptCODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…_serving/model_servers/tensorflow_model_server_test.py574 # the sort OK (and the test robust).COMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtensorflow_serving/batching/streaming_batch_scheduler.h167 // StreamingBatchScheduler never enqueues tasks, as discussed above.COMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtensorflow_serving/core/basic_manager.h89/// Example usage:COMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…servers/test_util/tensorflow_model_server_test_base.py138CODE