Repository Analysis

tensorflow/serving

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

23.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tensorflow/serving, a C++ project with 6,354 GitHub stars. SynthScan v2.0 examined 30,605 lines of code across 260 source files, recording 411 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 23.0 places this repository in the Moderate 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).

23.0
Adjusted Score
23.0
Raw Score
100%
Time Factor
2026-07-14
Last Push
6.4K
Stars
C++
Language
30.6K
Lines of Code
260
Files
411
Pattern Hits
2026-07-14
Scan Date
0.08
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 18HIGH 2MEDIUM 66LOW 325

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 411 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented 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 "absl/flags/flag.h"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.h21#include <vector>COMMENT
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
CRITICALtensorflow_serving/example/mnist_client.py42tf.compat.v1.app.flags.DEFINE_integer(CODE
CRITICALtensorflow_serving/example/mnist_client.py44tf.compat.v1.app.flags.DEFINE_integer('num_tests', 100, 'Number of test images')CODE
CRITICALtensorflow_serving/example/mnist_client.py45tf.compat.v1.app.flags.DEFINE_string('server', '',CODE
CRITICALtensorflow_serving/example/mnist_client.py47tf.compat.v1.app.flags.DEFINE_string('work_dir', '/tmp', 'Working directory. ')CODE
CRITICALtensorflow_serving/example/mnist_saved_model.py39tf.compat.v1.app.flags.DEFINE_integer('training_iteration', 1000,STRING
CRITICALtensorflow_serving/example/mnist_saved_model.py41tf.compat.v1.app.flags.DEFINE_integer('model_version', 1,STRING
CRITICALtensorflow_serving/example/mnist_saved_model.py43tf.compat.v1.app.flags.DEFINE_string('work_dir', '/tmp', 'Working directory.')STRING
CRITICALtensorflow_serving/example/mnist_saved_model.py104 builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(export_path)STRING
CRITICALtensorflow_serving/example/mnist_saved_model.py107 classification_inputs = tf.compat.v1.saved_model.utils.build_tensor_info(STRING
CRITICALtensorflow_serving/example/mnist_saved_model.py109 classification_outputs_classes = tf.compat.v1.saved_model.utils.build_tensor_info(STRING
CRITICALtensorflow_serving/example/mnist_saved_model.py111 classification_outputs_scores = tf.compat.v1.saved_model.utils.build_tensor_info(STRING
CRITICALtensorflow_serving/example/mnist_saved_model.py115 tf.compat.v1.saved_model.signature_def_utils.build_signature_def(STRING
CRITICALtensorflow_serving/example/mnist_saved_model.py131 tensor_info_x = tf.compat.v1.saved_model.utils.build_tensor_info(x)STRING
CRITICALtensorflow_serving/example/mnist_saved_model.py132 tensor_info_y = tf.compat.v1.saved_model.utils.build_tensor_info(y)STRING
CRITICALtensorflow_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 Imports38 hits · 38 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.py27CODE
LOWtensorflow_serving/apis/prediction_service_pb2.py28CODE
LOWtensorflow_serving/apis/model_service_pb2.py23CODE
LOWtensorflow_serving/apis/model_service_pb2.py24CODE
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
LOWtensorflow_serving/example/mnist_input_data.py101 def __init__(self, images, labels, fake_data=False, one_hot=False):CODE
LOWtensorflow_serving/example/mnist_input_data.py102 """Construct a DataSet. one_hot arg is used only if fake_data is true."""STRING
LOWtensorflow_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
LOWtensorflow_serving/example/mnist_input_data.py171def read_data_sets(train_dir, fake_data=False, one_hot=False):CODE
LOWtensorflow_serving/example/mnist_input_data.py179 if fake_data:CODE
LOWtensorflow_serving/example/mnist_input_data.py180 data_sets.train = DataSet([], [], fake_data=True, one_hot=one_hot)CODE
LOWtensorflow_serving/example/mnist_input_data.py181 data_sets.validation = DataSet([], [], fake_data=True, one_hot=one_hot)CODE
LOWtensorflow_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