{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.9422892928123474,
        "class": 0
      }
    ],
    "prob": 0.9422893,
    "class": 0,
    "version": "v16.16",
    "thresholds": [
      0.9815004,
      0.99404883
    ],
    "analyzed_at": "2026-04-30T11:05:09Z"
  },
  "path": "quant.go",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "Md(In₂)",
        "x": 1,
        "id": 0,
        "is": [
          "strings.ToUpper",
          "QuantizationParams",
          "TensorQuantParams",
          "InferAffineQuantParamsFromShapes",
          "weight.Dims",
          "scales.Dims",
          "len",
          "len",
          "len",
          "len",
          "isCommonGroupSize",
          "isCommonGroupSize",
          "isCommonGroupSize",
          "isCommonGroupSize",
          "github.com/ollama/ollama/x/mlxrunner/mlx",
          "strings"
        ],
        "ms": {
          "text": {
            "tab_count": 145.0,
            "digit_ratio": 0.04,
            "space_count": 324.0,
            "total_lines": 130.0,
            "char_entropy": 5.1,
            "unique_chars": 73.0,
            "import_density": 12.31,
            "string_density": 0.25,
            "avg_line_length": 24.4,
            "max_line_length": 111.0,
            "empty_line_ratio": 0.12,
            "last_line_length": 1.0,
            "most_common_char": "e",
            "whitespace_ratio": 0.18,
            "most_common_ratio": 0.07,
            "identifier_density": 0.98,
            "line_length_stddev": 23.78,
            "normalized_import_count": 1.4,
            "normalized_string_count": 2.81,
            "suspicious_comment_ratio": 0.25,
            "max_inline_whitespace_run": 1.0,
            "normalized_function_count": 0.44,
            "imports_to_functions_ratio": 3.2,
            "strings_to_functions_ratio": 6.4,
            "suspicious_identifier_ratio": 0.1,
            "normalized_unique_identifiers": 4.41,
            "identifiers_to_functions_ratio": 6.2
          },
          "imports": {
            "total": 16.0,
            "stdlib_count": 1.0,
            "stdlib_ratio": 0.06,
            "unique_modules": 10.0,
            "third_party_count": 15.0,
            "third_party_ratio": 0.94
          },
          "strings": {
            "total": 32.0,
            "avg_length": 6.81,
            "max_length": 40.0,
            "avg_entropy": 2.11,
            "total_bytes": 218.0,
            "entropy_stddev": 0.62
          },
          "comments": {
            "chars": 544.0,
            "lines": 8.0,
            "total": 8.0,
            "to_code_ratio": 0.07,
            "base64_in_comments": 2.0
          },
          "functions": {
            "total": 5.0,
            "length_stddev": 11.95,
            "avg_name_length": 21.6,
            "no_params_count": 5.0,
            "avg_length_lines": 22.0,
            "max_length_lines": 43.0,
            "min_length_lines": 8.0,
            "high_entropy_names": 3.0,
            "density_per_100_lines": 3.85,
            "code_in_functions_ratio": 0.85
          },
          "identifiers": {
            "total": 128.0,
            "avg_length": 10.68,
            "max_length": 32.0,
            "min_length": 1.0,
            "avg_entropy": 2.78,
            "reuse_ratio": 0.24,
            "unique_count": 31.0,
            "length_stddev": 6.48,
            "has_digit_ratio": 0.06,
            "sequential_names": 1.0,
            "base64_like_names": 2.0,
            "single_char_count": 1.0,
            "single_char_ratio": 0.03,
            "high_entropy_count": 4.0,
            "high_entropy_ratio": 0.13,
            "all_lowercase_ratio": 0.32,
            "numeric_suffix_count": 2.0
          }
        },
        "ss": [
          [
            25,
            "strings"
          ],
          [
            26,
            "strings"
          ],
          [
            37,
            "github.com/ollama/ollama/x/mlxrunner/mlx"
          ],
          [
            38,
            "github.com/ollama/ollama/x/mlxrunner/mlx"
          ],
          [
            300,
            "NVFP4"
          ],
          [
            301,
            "NVFP4"
          ],
          [
            325,
            "nvfp4"
          ],
          [
            326,
            "nvfp4"
          ],
          [
            339,
            "FP4"
          ],
          [
            340,
            "FP4"
          ],
          [
            346,
            "Q4"
          ],
          [
            347,
            "Q4"
          ],
          [
            352,
            "INT4"
          ],
          [
            353,
            "INT4"
          ],
          [
            376,
            "affine"
          ],
          [
            377,
            "affine"
          ],
          [
            391,
            "MXFP8"
          ],
          [
            392,
            "MXFP8"
          ],
          [
            416,
            "mxfp8"
          ],
          [
            417,
            "mxfp8"
          ],
          [
            430,
            "FP8"
          ],
          [
            431,
            "FP8"
          ],
          [
            437,
            "Q8"
          ],
          [
            438,
            "Q8"
          ],
          [
            443,
            "INT8"
          ],
          [
            444,
            "INT8"
          ],
          [
            467,
            "affine"
          ],
          [
            468,
            "affine"
          ],
          [
            530,
            "affine"
          ],
          [
            531,
            "affine"
          ],
          [
            1761,
            "affine"
          ],
          [
            1762,
            "affine"
          ]
        ],
        "sz": 3302,
        "ts": [
          {
            "c": 0.949999988079071,
            "d": "imports github.com/ollama/ollama/x/mlxrunner/mlx",
            "e": [
              "github.com/ollama/ollama/x/mlxrunner/mlx"
            ],
            "i": "metadata/import/go::github/com/ollama/ollama/x/mlxrunner/mlx",
            "l": 2
          },
          {
            "c": 0.949999988079071,
            "d": "imports strings",
            "e": [
              "strings"
            ],
            "i": "metadata/import/go::strings",
            "l": 2
          }
        ],
        "sha": "4bf14fc42a49abb5899edfd5432614330be5fd4c853ab2cc2959d4a0b56cc4d1",
        "path": "/data/samples/good/repos/ollama/x/mlxrunner/model/quant.go",
        "type": "go"
      }
    ],
    "tv": "f6eaa"
  }
}