{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.9233219623565674,
        "class": 0
      }
    ],
    "prob": 0.92332196,
    "class": 0,
    "version": "v16.16",
    "thresholds": [
      0.9815004,
      0.99404883
    ],
    "analyzed_at": "2026-04-30T08:12:08Z"
  },
  "path": "sharding_util_ops.cc",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "H(Db)Md(Pt)",
        "x": 1,
        "id": 0,
        "is": [
          "TF_RETURN_IF_ERROR",
          "ctx.GetAttr",
          "num_partitions.size",
          "InvalidArgument",
          "TF_RETURN_IF_ERROR",
          "ctx.GetAttr",
          "InvalidArgument",
          "TF_RETURN_IF_ERROR",
          "ctx.GetAttr",
          "num_partitions.size",
          "paddings.empty",
          "paddings.size",
          "InvalidArgument",
          "paddings.size",
          "InvalidArgument",
          "paddings.assign",
          "OkStatus",
          "GetSliceIndices",
          "DCHECK_EQ",
          "num_partitions.size",
          "slice_shape.size",
          "slice_indices",
          "num_partitions.size",
          "num_partitions.empty",
          "num_partitions.size",
          "num_partitions.size",
          "divisor",
          "divisor",
          "XlaOpKernel",
          "OP_REQUIRES_OK",
          "TF_RETURN_IF_ERROR",
          "DataTypeToPrimitiveType",
          "input_shape.dims",
          "num_splits_.size",
          "InvalidArgument",
          "num_splits_.size",
          "input_shape.dim_size",
          "InvalidArgument",
          "input_shape.dim_size",
          "padding_config.add_dimensions",
          "padding_dim.set_edge_padding_low",
          "padding_dim.set_edge_padding_high",
          "padding_dim.set_interior_padding",
          "ctx.SetOutput",
          "Pad",
          "ConstantR0WithType",
          "ctx.builder",
          "OkStatus",
          "ctx.SetOutput",
          "OkStatus",
          "slice_shape",
          "input_shape.dim_size",
          "GetSliceIndices",
          "slice_limit_indices",
          "slice_shape.size",
          "slice_padding_config.add_dimensions",
          "padding_dim.set_edge_padding_low",
          "padding_dim.set_edge_padding_high",
          "padding_dim.set_interior_padding",
          "input_shape.dim_size",
          "slice_padding_config.mutable_dimensions.set_edge_padding_high",
          "slice_padding_config.mutable_dimensions",
          "slice_padding_config.mutable_dimensions.set_edge_padding_high",
          "slice_padding_config.mutable_dimensions",
          "ctx.SetOutput",
          "Broadcast",
          "ConstantR0WithType",
          "ctx.builder",
          "ctx.SetOutput",
          "Pad",
          "Slice",
          "ConstantR0WithType",
          "ctx.builder",
          "ctx.SetOutput",
          "Slice",
          "OkStatus",
          "OP_REQUIRES_OK",
          "this.CompileInternal",
          "ctx.Input",
          "ctx.InputShape",
          "ctx.input_type",
          "REGISTER_XLA_OP",
          "Name",
          "OP_REQUIRES_OK",
          "ctx.GetAttr",
          "OP_REQUIRES_OK",
          "ctx.GetVariableTypeAndShape",
          "OP_REQUIRES",
          "InvalidArgument",
          "DataTypeString",
          "OP_REQUIRES_OK",
          "ctx.ReadVariableInput",
          "OP_REQUIRES_OK",
          "this.CompileInternal",
          "REGISTER_XLA_OP",
          "Name",
          "XlaOpKernel",
          "OP_REQUIRES_OK",
          "OP_REQUIRES_OK",
          "ctx.GetAttr",
          "CompileInternal",
          "TF_RETURN_IF_ERROR",
          "DataTypeToPrimitiveType",
          "TF_RETURN_IF_ERROR",
          "GetInputsAndOutputShape",
          "output_shape.size",
          "Slice",
          "ConstantR0WithType",
          "ctx.builder",
          "GetSliceIndices",
          "slice_limit_indices",
          "input_slice_limit_indices",
          "Slice",
          "update_slice_start_indices.reserve",
          "DynamicUpdateSlice",
          "GetInputsAndOutputShape",
          "TF_RETURN_IF_ERROR",
          "ctx.InputList",
          "slice_shape.dims",
          "num_concats_.size",
          "InvalidArgument",
          "InvalidArgument",
          "num_concats_.size",
          "slice_shape.dims",
          "InvalidArgument",
          "slice_shape.dim_size",
          "InvalidArgument",
          "output_shape.push_back",
          "OkStatus",
          "XlaConcatNDOp",
          "XlaConcatNDBaseOp",
          "Compile",
          "this.CompileInternal",
          "OP_REQUIRES_OK",
          "output_or.status",
          "ctx.SetOutput",
          "output_or.value",
          "REGISTER_XLA_OP",
          "Name",
          "AssignVariableXlaConcatNDOp",
          "XlaConcatNDBaseOp",
          "Compile",
          "this.CompileInternal",
          "OP_REQUIRES_OK",
          "output_or.status",
          "OP_REQUIRES_OK",
          "ctx.AssignVariable",
          "output_or.value",
          "REGISTER_XLA_OP",
          "Name"
        ],
        "ms": {
          "text": {
            "digit_ratio": 0.01,
            "space_count": 3978.0,
            "total_lines": 474.0,
            "char_entropy": 4.84,
            "unique_chars": 82.0,
            "import_density": 31.65,
            "string_density": 0.3,
            "ascii_art_lines": 1.0,
            "avg_line_length": 35.74,
            "max_line_length": 80.0,
            "empty_line_ratio": 0.14,
            "last_line_length": 26.0,
            "most_common_char": "i",
            "whitespace_ratio": 0.26,
            "most_common_ratio": 0.06,
            "identifier_density": 1.59,
            "line_length_stddev": 26.03,
            "normalized_import_count": 6.89,
            "normalized_string_count": 6.43,
            "repeated_char_sequences": 87.0,
            "suspicious_comment_ratio": 0.04,
            "max_inline_whitespace_run": 2.0,
            "normalized_function_count": 0.37,
            "imports_to_functions_ratio": 18.75,
            "strings_to_functions_ratio": 17.5,
            "suspicious_identifier_ratio": 0.04,
            "normalized_unique_identifiers": 13.05,
            "identifiers_to_functions_ratio": 14.5
          },
          "imports": {
            "total": 150.0,
            "unique_modules": 63.0,
            "third_party_count": 150.0,
            "third_party_ratio": 1.0
          },
          "strings": {
            "total": 140.0,
            "avg_length": 19.46,
            "max_length": 58.0,
            "avg_entropy": 2.79,
            "total_bytes": 2725.0,
            "entropy_stddev": 1.39
          },
          "comments": {
            "chars": 1074.0,
            "lines": 37.0,
            "total": 24.0,
            "to_code_ratio": 0.08,
            "url_in_comments": 1.0,
            "high_entropy_comments": 1.0
          },
          "functions": {
            "total": 8.0,
            "length_stddev": 79.05,
            "over_100_lines": 2.0,
            "avg_name_length": 57.75,
            "no_params_count": 8.0,
            "avg_length_lines": 61.38,
            "max_length_lines": 221.0,
            "min_length_lines": 5.0,
            "avg_nesting_depth": 0.38,
            "max_nesting_depth": 1.0,
            "high_entropy_names": 5.0,
            "density_per_100_lines": 1.69,
            "code_in_functions_ratio": 1.04
          },
          "identifiers": {
            "total": 756.0,
            "avg_length": 11.29,
            "max_length": 27.0,
            "min_length": 1.0,
            "avg_entropy": 2.85,
            "reuse_ratio": 0.15,
            "unique_count": 116.0,
            "length_stddev": 6.24,
            "has_digit_ratio": 0.03,
            "sequential_names": 3.0,
            "base64_like_names": 2.0,
            "single_char_count": 3.0,
            "single_char_ratio": 0.03,
            "high_entropy_count": 25.0,
            "high_entropy_ratio": 0.22,
            "all_lowercase_ratio": 0.62,
            "all_uppercase_ratio": 0.04,
            "numeric_suffix_count": 1.0
          }
        },
        "ss": [
          [
            679,
            "\u003ccstdint\u003e"
          ],
          [
            698,
            "\u003cvector\u003e"
          ],
          [
            717,
            "absl/log/check.h"
          ],
          [
            718,
            "absl/log/check.h"
          ],
          [
            745,
            "absl/status/status.h"
          ],
          [
            746,
            "absl/status/status.h"
          ],
          [
            777,
            "absl/status/statusor.h"
          ],
          [
            778,
            "absl/status/statusor.h"
          ],
          [
            811,
            "absl/strings/string_view.h"
          ],
          [
            812,
            "absl/strings/string_view.h"
          ],
          [
            849,
            "absl/types/span.h"
          ],
          [
            850,
            "absl/types/span.h"
          ],
          [
            878,
            "tensorflow/compiler/tf2xla/type_util.h"
          ],
          [
            879,
            "tensorflow/compiler/tf2xla/type_util.h"
          ],
          [
            928,
            "tensorflow/compiler/tf2xla/xla_op_kernel.h"
          ],
          [
            929,
            "tensorflow/compiler/tf2xla/xla_op_kernel.h"
          ],
          [
            982,
            "tensorflow/compiler/tf2xla/xla_op_registry.h"
          ],
          [
            983,
            "tensorflow/compiler/tf2xla/xla_op_registry.h"
          ],
          [
            1038,
            "xla/hlo/builder/lib/constants.h"
          ],
          [
            1039,
            "xla/hlo/builder/lib/constants.h"
          ],
          [
            1081,
            "xla/hlo/builder/xla_builder.h"
          ],
          [
            1082,
            "xla/hlo/builder/xla_builder.h"
          ],
          [
            1122,
            "xla/tsl/platform/errors.h"
          ],
          [
            1123,
            "xla/tsl/platform/errors.h"
          ],
          [
            1159,
            "xla/xla_data.pb.h"
          ],
          [
            1160,
            "xla/xla_data.pb.h"
          ],
          [
            1188,
            "tensorflow/core/framework/op_kernel.h"
          ],
          [
            1189,
            "tensorflow/core/framework/op_kernel.h"
          ],
          [
            1237,
            "tensorflow/core/framework/op_requires.h"
          ],
          [
            1238,
            "tensorflow/core/framework/op_requires.h"
          ],
          [
            1288,
            "tensorflow/core/framework/tensor_shape.h"
          ],
          [
            1289,
            "tensorflow/core/framework/tensor_shape.h"
          ],
          [
            1340,
            "tensorflow/core/framework/types.h"
          ],
          [
            1341,
            "tensorflow/core/framework/types.h"
          ],
          [
            1385,
            "tensorflow/core/framework/types.pb.h"
          ],
          [
            1386,
            "tensorflow/core/framework/types.pb.h"
          ],
          [
            1433,
            "tensorflow/core/platform/errors.h"
          ],
          [
            1434,
            "tensorflow/core/platform/errors.h"
          ],
          [
            1478,
            "tensorflow/core/platform/status.h"
          ],
          [
            1479,
            "tensorflow/core/platform/status.h"
          ],
          [
            1523,
            "tensorflow/core/platform/types.h"
          ],
          [
            1524,
            "tensorflow/core/platform/types.h"
          ],
          [
            1644,
            "num_splits"
          ],
          [
            1645,
            "num_splits"
          ],
          [
            1708,
            "num_concats"
          ],
          [
            1709,
            "num_concats"
          ],
          [
            2513,
            " at index "
          ],
          [
            2514,
            " at index "
          ],
          [
            2568,
            " must be positive, but got "
          ],
          [
            2569,
            " must be positive, but got "
          ],
          [
            2606,
            "."
          ],
          [
            2607,
            "."
          ],
          [
            2745,
            "N"
          ],
          [
            2746,
            "N"
          ],
          [
            2825,
            "N' must match number of slices "
          ],
          [
            2826,
            "N' must match number of slices "
          ],
          [
            2873,
            " from "
          ],
          [
            2874,
            " from "
          ],
          [
            2918,
            ", but got "
          ],
          [
            2919,
            ", but got "
          ],
          [
            2936,
            "."
          ],
          [
            2937,
            "."
          ],
          [
            2981,
            "paddings"
          ],
          [
            2982,
            "paddings"
          ],
          [
            3176,
            "paddings' length must match "
          ],
          [
            3177,
            "paddings' length must match "
          ],
          [
            3246,
            " length "
          ],
          [
            3247,
            " length "
          ],
          [
            3274,
            ", but got "
          ],
          [
            3275,
            ", but got "
          ],
          [
            3305,
            "."
          ],
          [
            3306,
            "."
          ],
          [
            3453,
            "padding' must be all non-negative, but got "
          ],
          [
            3454,
            "padding' must be all non-negative, but got "
          ],
          [
            3528,
            " at index "
          ],
          [
            3529,
            " at index "
          ],
          [
            3547,
            "."
          ],
          [
            3548,
            "."
          ],
          [
            4596,
            "input' tensor"
          ],
          [
            4597,
            "input' tensor"
          ],
          [
            4658,
            "resource' variable tensor"
          ],
          [
            4659,
            "resource' variable tensor"
          ],
          [
            5563,
            " rank must be the same as 'num_splits' length "
          ],
          [
            5564,
            " rank must be the same as 'num_splits' length "
          ],
          [
            5643,
            ", but got rank "
          ],
          [
            5644,
            ", but got rank "
          ],
          [
            5668,
            "."
          ],
          [
            5669,
            "."
          ],
          [
            5880,
            " shape dimension "
          ],
          [
            5881,
            " shape dimension "
          ],
          [
            5906,
            " ("
          ],
          [
            5907,
            " ("
          ],
          [
            5951,
            ") with padding "
          ],
          [
            5952,
            ") with padding "
          ],
          [
            5998,
            " must be evenly divisible by 'num_splits' "
          ],
          [
            5999,
            " must be evenly divisible by 'num_splits' "
          ],
          [
            6074,
            "."
          ],
          [
            6075,
            "."
          ],
          [
            10071,
            "XlaSplitND"
          ],
          [
            10072,
            "XlaSplitND"
          ],
          [
            10314,
            "T"
          ],
          [
            10315,
            "T"
          ],
          [
            10718,
            "T' must match 'resource' variable dtype "
          ],
          [
            10719,
            "T' must match 'resource' variable dtype "
          ],
          [
            10865,
            ", but got "
          ],
          [
            10866,
            ", but got "
          ],
          [
            11218,
            "ReadVariableXlaSplitND"
          ],
          [
            11219,
            "ReadVariableXlaSplitND"
          ],
          [
            11613,
            "T"
          ],
          [
            11614,
            "T"
          ],
          [
            15138,
            "inputs"
          ],
          [
            15139,
            "inputs"
          ],
          [
            15337,
            "inputs' rank must be the same as 'num_concats' length "
          ],
          [
            15338,
            "inputs' rank must be the same as 'num_concats' length "
          ],
          [
            15427,
            ", but got rank "
          ],
          [
            15428,
            ", but got rank "
          ],
          [
            15466,
            "."
          ],
          [
            15467,
            "."
          ],
          [
            15674,
            "inputs' must all have the same expected shape "
          ],
          [
            15675,
            "inputs' must all have the same expected shape "
          ],
          [
            15750,
            ", but got "
          ],
          [
            15751,
            ", but got "
          ],
          [
            15779,
            " at index "
          ],
          [
            15780,
            " at index "
          ],
          [
            15796,
            "."
          ],
          [
            15797,
            "."
          ],
          [
            16078,
            "paddings' must not exceed expected output shape dimension "
          ],
          [
            16079,
            "paddings' must not exceed expected output shape dimension "
          ],
          [
            16167,
            " at index "
          ],
          [
            16168,
            " at index "
          ],
          [
            16186,
            ", but got "
          ],
          [
            16187,
            ", but got "
          ],
          [
            16216,
            "."
          ],
          [
            16217,
            "."
          ],
          [
            16825,
            "XlaConcatND"
          ],
          [
            16826,
            "XlaConcatND"
          ],
          [
            17239,
            "resource"
          ],
          [
            17240,
            "resource"
          ],
          [
            17309,
            "AssignVariableXlaConcatND"
          ],
          [
            17310,
            "AssignVariableXlaConcatND"
          ]
        ],
        "sz": 17413,
        "ts": [
          {
            "c": 0.20000000298023224,
            "d": "output keyword",
            "e": [
              "output"
            ],
            "i": "micro-behaviors/data/text/keywords::output",
            "l": 1
          },
          {
            "c": 0.75,
            "d": "Delphi assign file pattern",
            "e": [
              "assign("
            ],
            "i": "metadata/lang/source::assignfile-pattern",
            "l": 2
          }
        ],
        "sha": "2774115b25c8ae719bb6f942468f3e0d8968c237cf4fd6e2d1aa4e3073d5b251",
        "path": "/data/samples/good/repos/tensorflow/tensorflow/compiler/tf2xla/kernels/sharding_util_ops.cc",
        "type": "c"
      }
    ],
    "tv": "f6eaa"
  }
}