{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.9415740966796875,
        "class": 0
      }
    ],
    "prob": 0.9415741,
    "class": 0,
    "version": "v16.16",
    "thresholds": [
      0.9815004,
      0.99404883
    ],
    "analyzed_at": "2026-04-30T09:30:54Z"
  },
  "path": "post_policy_spec.rb",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "Md(In)",
        "x": 1,
        "id": 0,
        "is": [
          "require",
          "describe",
          "let",
          "let",
          "double",
          "let",
          "double",
          "subject",
          "permissions",
          "it",
          "should",
          "permit",
          "it",
          "to",
          "expect",
          "should",
          "permit",
          "raise_error",
          "spec_helper"
        ],
        "ms": {
          "text": {
            "space_count": 95.0,
            "total_lines": 20.0,
            "char_entropy": 4.45,
            "unique_chars": 40.0,
            "import_density": 95.0,
            "string_density": 0.65,
            "avg_line_length": 24.65,
            "max_line_length": 69.0,
            "empty_line_ratio": 0.15,
            "last_line_length": 3.0,
            "most_common_char": "e",
            "whitespace_ratio": 0.22,
            "most_common_ratio": 0.09,
            "identifier_density": 1.3,
            "line_length_stddev": 19.71,
            "dynamic_import_ratio": 0.05,
            "normalized_import_count": 4.25,
            "normalized_string_count": 2.91,
            "max_inline_whitespace_run": 1.0,
            "normalized_unique_identifiers": 3.7
          },
          "imports": {
            "total": 19.0,
            "unique_modules": 13.0,
            "dynamic_imports": 1.0,
            "third_party_count": 19.0,
            "third_party_ratio": 1.0
          },
          "strings": {
            "total": 13.0,
            "avg_length": 17.46,
            "max_length": 40.0,
            "avg_entropy": 3.01,
            "total_bytes": 227.0,
            "entropy_stddev": 0.66
          },
          "comments": {},
          "functions": {},
          "identifiers": {
            "total": 26.0,
            "avg_length": 7.0,
            "max_length": 15.0,
            "min_length": 2.0,
            "avg_entropy": 2.35,
            "reuse_ratio": 0.62,
            "unique_count": 16.0,
            "length_stddev": 3.41,
            "all_lowercase_ratio": 1.0
          }
        },
        "ss": [
          [
            8,
            "spec_helper"
          ],
          [
            9,
            "spec_helper"
          ],
          [
            52,
            "user"
          ],
          [
            76,
            "own_post"
          ],
          [
            96,
            "user"
          ],
          [
            116,
            "other_post"
          ],
          [
            138,
            "user"
          ],
          [
            199,
            "update?"
          ],
          [
            209,
            "show?"
          ],
          [
            226,
            "is successful when all permissions match"
          ],
          [
            227,
            "is successful when all permissions match"
          ],
          [
            324,
            "fails when any permissions do not match"
          ],
          [
            325,
            "fails when any permissions do not match"
          ]
        ],
        "sz": 513,
        "ts": [
          {
            "c": 0.949999988079071,
            "d": "imports spec_helper",
            "e": [
              "spec_helper"
            ],
            "i": "metadata/import/ruby::spec_helper",
            "l": 2
          }
        ],
        "sha": "745edffceb14955bd3217082b508491b82939a4dca858048fd44ddb37ceea6f7",
        "path": "/data/samples/good/rubygems/pundit-2.0.1/spec/policies/post_policy_spec.rb",
        "type": "ruby"
      }
    ],
    "tv": "f6eaa"
  }
}