{
  "ml": {
    "v": "7",
    "id": 1820,
    "lvl": -1,
    "conf": 0,
    "prob": 0.00001288453768211184,
    "type": "ruby",
    "version": "v18.18",
    "analyzed_at": "2026-09-15T09:23:20Z"
  },
  "path": "spec/extensions/tactical_eager_loading_spec.rb",
  "raw": {
    "rev": "e86a6",
    "files": [
      {
        "id": 1820,
        "ctx": [
          {
            "b": "A+flkx(W=(A+f5}Bzk]far\u003e(CwN/7XwO=r%AV$?$wmY*(A+O#]ar\u003c-}ADL\u0026eiYZ8NB.tAaB2(uYvpKy[v{%gxvp%d(oMauIx(mMcay]x$arUiaw/#emy*R3/ByO#jdQ^vgB14CsarR!FACPXsjS)cVe]#2GA%:3jarU-By\u0026.jBwO#d5xFadA",
            "ln": 0,
            "col": 1,
            "line": 1
          },
          {
            "b": "vpT7\u0026xh9qPwO-#fvrt}0wPOn4arR^{ln0p\u0026B7GC2arR^HkY?5\u0026jS)11e[5Nj3lQDlaAIKsuU%j[v}Wnrq:\u003cwGlStfTavYm8o^1K9dgdguwO#2=arU98By/Fnwn.!$arR!5vRPE:Bs}SCzE+dRA+f9aC4C2\u003cz/fSrefD#MvpKy[v{%gxvp%d(oMauIx(mMTz!9A}dgdguarU-By*R3/ByO$\u003earUlkwc@U^azC{ub1b\u003cYvrl14bvLz8aAIjmB.\u003eOhB7GCoBzbkdA+fukx\u003eqE0wm5!\u003eayPd#aAz4nA+P9dwN]d(x([2hvruQix\u003c#jbwPG4rwn.!$arR!GB1RrrAc($SD(#Tre]\u003eJBA+P9dwN]dSC}p7.e]\u003eJBA+P9dwN]d(x([2]Ej/wVB97=2ADLYaax@5n",
            "ln": 1241,
            "col": 26,
            "line": 37
          }
        ],
        "mol": "H₂(DbOs)",
        "pid": 12,
        "rel": "fetched",
        "sha": "ad04dda9bcdf12f66f271c14091e32f494b871fd116884ffafe9f1fa339e57b3",
        "via": "https://rubygems.org/downloads/sequel-5.5.0.gem",
        "path": "pkg:gem/sequel@5.5.0!!data.tar.gz!!spec/extensions/tactical_eager_loading_spec.rb",
        "risk": 3,
        "size": 5841,
        "type": "ruby",
        "depth": 4,
        "facts": {
          "imp": [
            [
              "",
              "require_relative"
            ],
            [
              "",
              "describe"
            ],
            [
              "",
              "sqls"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "length"
            ],
            [
              "",
              "length"
            ],
            [
              "",
              "each"
            ],
            [
              "",
              "zip"
            ],
            [
              "",
              "is_a?"
            ],
            [
              "",
              "must_match"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "attr_reader"
            ],
            [
              "",
              "before"
            ],
            [
              "",
              "Model"
            ],
            [
              "",
              "plugin"
            ],
            [
              "",
              "columns"
            ],
            [
              "",
              "many_to_one"
            ],
            [
              "",
              "one_to_many"
            ],
            [
              "",
              "set_dataset"
            ],
            [
              "",
              "with_fetch"
            ],
            [
              "",
              "proc"
            ],
            [
              "",
              "to_i"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "split"
            ],
            [
              "",
              "to_i"
            ],
            [
              "",
              "compact"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "split"
            ],
            [
              "",
              "to_i"
            ],
            [
              "",
              "to_i"
            ],
            [
              "",
              "to_i"
            ],
            [
              "",
              "dataset"
            ],
            [
              "",
              "reset"
            ],
            [
              "",
              "all"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "after"
            ],
            [
              "",
              "send"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "retrieved_by"
            ],
            [
              "",
              "retrieved_with"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "all"
            ],
            [
              "",
              "naked"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "parent"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "children"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "parent"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "dataset"
            ],
            [
              "",
              "with_extend"
            ],
            [
              "",
              "dataset"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "parent"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "parent"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "parent"
            ],
            [
              "",
              "proc"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "parent"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "parent"
            ],
            [
              "",
              "first"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "fetch"
            ],
            [
              "",
              "associations"
            ],
            [
              "",
              "parent"
            ],
            [
              "",
              "first"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "fetch"
            ],
            [
              "",
              "associations"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "parent"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "children"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "parent"
            ],
            [
              "",
              "proc"
            ],
            [
              "",
              "eager"
            ],
            [
              "",
              "where"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "children"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "new"
            ],
            [
              "",
              "many_to_one"
            ],
            [
              "",
              "all"
            ],
            [
              "",
              "with_row_proc"
            ],
            [
              "",
              "dataset"
            ],
            [
              "",
              "proc"
            ],
            [
              "",
              "call"
            ],
            [
              "",
              "parent2"
            ],
            [
              "",
              "is_a?"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "freeze"
            ],
            [
              "",
              "first"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "parent"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "children"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "parent"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "must_equal"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "children"
            ],
            [
              "",
              "sql_match"
            ],
            [
              "",
              "it"
            ],
            [
              "",
              "dump"
            ],
            [
              "",
              "map"
            ],
            [
              "",
              "marshallable!"
            ],
            [
              "",
              "spec_helper"
            ]
          ],
          "mbr": [
            "@c.all",
            "@c.dataset",
            "@c.dataset.with_extend",
            "@c.dataset.with_row_proc",
            "@c.dataset.with_row_proc.all",
            "@c.naked",
            "@c.naked.all",
            "Class.new",
            "DB.reset",
            "DB.sqls",
            "Marshal.dump",
            "Object.send",
            "Sequel.Model",
            "TacticalEagerLoadingModel.dataset",
            "args.length",
            "c.many_to_one",
            "dataset.with_fetch",
            "ds.where",
            "ds.where.eager",
            "is.must_equal",
            "is.must_match",
            "parents.must_equal",
            "should.is_a?",
            "sqls.length",
            "sqls.length.must_equal",
            "sqls.zip",
            "sqls.zip.each",
            "ts.first",
            "ts.first.freeze",
            "ts.first.parent",
            "ts.map",
            "ts.map.must_equal",
            "x.associations",
            "x.associations.fetch",
            "x.children",
            "x.is_a?",
            "x.marshallable!",
            "x.parent",
            "x.parent2",
            "x.retrieved_by",
            "x.retrieved_with",
            "x.to_i"
          ],
          "tgt": [
            "Model",
            "after",
            "all",
            "associations",
            "attr_reader",
            "before",
            "call",
            "children",
            "columns",
            "compact",
            "dataset",
            "describe",
            "dump",
            "each",
            "eager",
            "fetch",
            "first",
            "freeze",
            "is_a?",
            "it",
            "length",
            "many_to_one",
            "map",
            "marshallable!",
            "must_equal",
            "must_match",
            "naked",
            "new",
            "one_to_many",
            "parent",
            "parent2",
            "plugin",
            "proc",
            "require_relative",
            "reset",
            "retrieved_by",
            "retrieved_with",
            "send",
            "set_dataset",
            "split",
            "sql_match",
            "sqls",
            "to_i",
            "where",
            "with_extend",
            "with_fetch",
            "with_row_proc",
            "zip"
          ],
          "funcs": [
            [
              "sql_match",
              86
            ],
            [
              "eager_load",
              2415
            ]
          ],
          "metrics": {
            "ast": {
              "op.eq": 1,
              "op.gt": 2,
              "op.sub": 1,
              "max_depth": 30,
              "op.concat": 105,
              "call_count": 150,
              "node_count": 1936,
              "member_count": 42,
              "max_array_len": 4,
              "op_density.eq": 0,
              "op_density.gt": 0,
              "op_density.sub": 0,
              "member_depth_max": 4,
              "op_density.concat": 0.05
            },
            "file": {
              "size": 5841,
              "entropy": 5.17
            },
            "text": {
              "lines": 130,
              "top_char": 116,
              "max_ws_run": 1,
              "digit_ratio": 0.04,
              "space_count": 1000,
              "char_entropy": 5.17,
              "unique_chars": 76,
              "top_char_null": 0,
              "string_density": 0.26,
              "top_char_ratio": 0.06,
              "avg_line_length": 43.93,
              "max_line_length": 144,
              "empty_line_ratio": 0.12,
              "last_line_length": 3,
              "whitespace_ratio": 0.19,
              "identifier_density": 2.48,
              "line_length_stddev": 36.69,
              "normalized_string_count": 2.98,
              "repeated_char_sequences": 4,
              "suspicious_string_ratio": 0.47,
              "trailing_whitespace_lines": 1,
              "suspicious_identifier_ratio": 0.04,
              "normalized_unique_identifiers": 10.11
            },
            "binds": {
              "count": 8
            },
            "binary": {
              "peak_region_bytes": 5841,
              "peak_region_entropy": 5.19
            },
            "source": {
              "function_count": 2
            },
            "imports": {
              "count": 1,
              "third_party_count": 1,
              "third_party_ratio": 1
            },
            "strings": {
              "sql": 16,
              "bytes": 1654,
              "count": 34,
              "avg_length": 48.65,
              "max_length": 97,
              "avg_entropy": 3.63,
              "entropy_stddev": 0.98
            },
            "functions": {
              "count": 2
            },
            "identifiers": {
              "count": 323,
              "unique": 71,
              "avg_length": 6.38,
              "max_length": 25,
              "min_length": 1,
              "avg_entropy": 2.16,
              "reuse_ratio": 0.22,
              "length_stddev": 4.07,
              "has_digit_ratio": 0.01,
              "sequential_names": 3,
              "single_char_count": 3,
              "single_char_ratio": 0.04,
              "high_entropy_count": 1,
              "high_entropy_ratio": 0.01,
              "all_lowercase_ratio": 0.8,
              "all_uppercase_ratio": 0.01,
              "numeric_suffix_count": 1
            }
          }
        },
        "traits": [
          {
            "id": "metadata/lang/natural::lang-english--atom-1",
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\""
          },
          {
            "id": "metadata/lang/natural::lang-english--atom-2",
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\""
          },
          {
            "id": "metadata/package/testing/presence/harness::test-directory-path",
            "conf": 1.0,
            "crit": 2,
            "desc": "File is in common test directory",
            "spans": [
              [
                0,
                0
              ]
            ]
          },
          {
            "id": "metadata/package/testing/presence/path::spec-path-basename",
            "conf": 1.0,
            "crit": 2,
            "desc": "Spec path basename",
            "spans": [
              [
                0,
                0
              ]
            ]
          },
          {
            "id": "micro-behaviors/data/source/dynamic/reflect::ruby-send-call",
            "conf": 0.9,
            "crit": 3,
            "desc": "Ruby dynamically invokes a method with send"
          },
          {
            "id": "micro-behaviors/os/module/load::ruby-require-relative",
            "conf": 0.9,
            "crit": 3,
            "desc": "Ruby loads a relative source module"
          },
          {
            "id": "micro-behaviors/data/db/sql::sql-select",
            "conf": 0.6,
            "crit": 3,
            "desc": "SQL SELECT syntax reference"
          },
          {
            "id": "metadata/package/testing/presence/harness::test-directory",
            "conf": 1.0,
            "crit": 2,
            "desc": "File identified as a test by path or name",
            "uses": [
              2
            ],
            "spans": [
              [
                0,
                0
              ]
            ]
          },
          {
            "id": "metadata/package/testing/harness/runtime::is-test",
            "conf": 0.9,
            "crit": 2,
            "desc": "Test, spec, or fixture file",
            "uses": [
              7
            ],
            "spans": [
              [
                0,
                0
              ]
            ]
          }
        ]
      }
    ]
  }
}