{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.9302694201469421,
        "class": 0
      }
    ],
    "prob": 0.9302694,
    "class": 0,
    "version": "v16.16",
    "thresholds": [
      0.9815004,
      0.99404883
    ],
    "analyzed_at": "2026-04-30T13:44:45Z"
  },
  "path": "gitignore.rs",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "H(Db)Md(Pa)",
        "x": 1,
        "id": 0,
        "is": [
          "gitignore_path.as_ref",
          "path.parent.unwrap_or",
          "path.parent",
          "errs.maybe_push_ignore_io",
          "builder.add",
          "builder.build",
          "errs.into_error_option",
          "errs.push",
          "errs.into_error_option",
          "gitconfig_excludes_path",
          "path.is_file",
          "vec",
          "path.as_ref",
          "path.as_ref",
          "assert",
          "path.parent",
          "path.as_ref",
          "matches.borrow_mut",
          "matches.iter.rev",
          "matches.iter",
          "glob.is_only_dir",
          "glob.is_whitelist",
          "path.as_ref",
          "strip_prefix",
          "is_file_name",
          "strip_prefix",
          "strip_prefix",
          "root.as_ref",
          "strip_prefix.unwrap_or.to_path_buf",
          "strip_prefix.unwrap_or",
          "strip_prefix",
          "vec",
          "g.is_whitelist",
          "g.is_whitelist",
          "err.to_string",
          "Ok",
          "Some",
          "path.as_ref",
          "Some",
          "rdr.lines.enumerate",
          "rdr.lines",
          "errs.push",
          "Some",
          "path.to_path_buf",
          "errs.push",
          "err.tagged",
          "errs.into_error_option",
          "gitignore.lines",
          "from.clone",
          "Ok",
          "line.starts_with",
          "Ok",
          "line.ends_with",
          "line.trim_right",
          "line.is_empty",
          "Ok",
          "line.to_string",
          "line.starts_with",
          "line.starts_with",
          "line.chars.nth",
          "line.chars",
          "Some",
          "line.starts_with",
          "line.starts_with",
          "line.char_indices.rev.nth",
          "line.char_indices.rev",
          "line.char_indices",
          "line.to_string",
          "line.chars.any",
          "line.chars",
          "glob.has_doublestar_prefix",
          "format",
          "glob.actual.ends_with",
          "format",
          "Some",
          "glob.original.clone",
          "err.kind.to_string",
          "err.kind",
          "Ok",
          "Ok",
          "gitconfig_home_contents.and_then",
          "gitconfig_home_contents",
          "parse_excludes_file",
          "Some",
          "gitconfig_xdg_contents.and_then",
          "gitconfig_xdg_contents",
          "parse_excludes_file",
          "Some",
          "excludes_file_default",
          "home_dir",
          "home.join",
          "vec",
          "file.read_to_end.ok.map",
          "file.read_to_end.ok",
          "file.read_to_end",
          "x.is_empty",
          "Some",
          "home_dir.map",
          "home_dir",
          "p.join",
          "x.join",
          "path.and_then",
          "vec",
          "file.read_to_end.ok.map",
          "file.read_to_end.ok",
          "file.read_to_end",
          "x.is_empty",
          "Some",
          "home_dir.map",
          "home_dir",
          "p.join",
          "x.join",
          "lazy_static",
          "RE.captures",
          "expand_tilde",
          "home_dir",
          "path.to_string",
          "home.to_string_lossy.into_owned",
          "home.to_string_lossy",
          "path.replace",
          "builder.add_str.unwrap",
          "builder.add_str",
          "builder.build.unwrap",
          "builder.build",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "not_ignored",
          "s.to_string.into_bytes",
          "s.to_string",
          "path.as_ref.to_str.unwrap.to_string",
          "path.as_ref.to_str.unwrap",
          "path.as_ref.to_str",
          "path.as_ref",
          "bytes",
          "assert_eq",
          "bytes",
          "assert_eq",
          "bytes",
          "assert",
          "gi_from_str",
          "assert",
          "assert",
          "assert",
          "assert",
          "not_ignored",
          "not_ignored",
          "not_ignored"
        ],
        "ms": {
          "text": {
            "digit_ratio": 0.01,
            "space_count": 7036.0,
            "total_lines": 764.0,
            "char_entropy": 4.71,
            "unique_chars": 90.0,
            "import_density": 25.39,
            "string_density": 0.46,
            "avg_line_length": 35.09,
            "max_line_length": 88.0,
            "empty_line_ratio": 0.07,
            "last_line_length": 1.0,
            "most_common_char": "e",
            "whitespace_ratio": 0.28,
            "most_common_ratio": 0.06,
            "identifier_density": 1.05,
            "line_length_stddev": 24.06,
            "normalized_import_count": 7.02,
            "normalized_string_count": 12.63,
            "repeated_char_sequences": 134.0,
            "suspicious_comment_ratio": 0.02,
            "max_inline_whitespace_run": 1.0,
            "normalized_function_count": 1.41,
            "imports_to_functions_ratio": 4.97,
            "strings_to_functions_ratio": 8.95,
            "suspicious_identifier_ratio": 0.03,
            "normalized_unique_identifiers": 21.3,
            "identifiers_to_functions_ratio": 5.23
          },
          "imports": {
            "total": 194.0,
            "unique_modules": 86.0,
            "third_party_count": 194.0,
            "third_party_ratio": 1.0
          },
          "strings": {
            "total": 349.0,
            "avg_length": 7.96,
            "max_length": 62.0,
            "path_count": 50.0,
            "avg_entropy": 2.11,
            "total_bytes": 2778.0,
            "entropy_stddev": 1.06
          },
          "comments": {
            "chars": 7693.0,
            "lines": 174.0,
            "total": 169.0,
            "to_code_ratio": 0.29,
            "empty_comments": 1.0,
            "high_entropy_comments": 3.0
          },
          "functions": {
            "total": 39.0,
            "length_stddev": 14.07,
            "avg_name_length": 11.74,
            "no_params_count": 39.0,
            "avg_length_lines": 10.9,
            "max_length_lines": 86.0,
            "min_length_lines": 3.0,
            "high_entropy_names": 7.0,
            "numeric_suffix_names": 3.0,
            "density_per_100_lines": 5.1,
            "code_in_functions_ratio": 0.56
          },
          "identifiers": {
            "total": 799.0,
            "avg_length": 6.61,
            "max_length": 27.0,
            "min_length": 1.0,
            "avg_entropy": 2.24,
            "reuse_ratio": 0.26,
            "unique_count": 204.0,
            "length_stddev": 4.73,
            "has_digit_ratio": 0.33,
            "sequential_names": 7.0,
            "single_char_count": 7.0,
            "single_char_ratio": 0.03,
            "high_entropy_count": 8.0,
            "high_entropy_ratio": 0.04,
            "all_lowercase_ratio": 0.51,
            "all_uppercase_ratio": 0.01,
            "numeric_suffix_count": 68.0,
            "underscore_prefix_count": 1.0
          }
        },
        "ss": [
          [
            2087,
            "**/"
          ],
          [
            2088,
            "**/"
          ],
          [
            2121,
            "**"
          ],
          [
            2122,
            "**"
          ],
          [
            3263,
            "/"
          ],
          [
            3264,
            "/"
          ],
          [
            7894,
            "path is expected to be under the root"
          ],
          [
            7895,
            "path is expected to be under the root"
          ],
          [
            9688,
            "./"
          ],
          [
            9689,
            "./"
          ],
          [
            10257,
            "."
          ],
          [
            10258,
            "."
          ],
          [
            10491,
            "/"
          ],
          [
            10492,
            "/"
          ],
          [
            11400,
            "./"
          ],
          [
            11401,
            "./"
          ],
          [
            14516,
            "#"
          ],
          [
            14517,
            "#"
          ],
          [
            14589,
            "\\\\ "
          ],
          [
            14592,
            " "
          ],
          [
            15027,
            "\\\\!"
          ],
          [
            15030,
            "!"
          ],
          [
            15054,
            "\\\\#"
          ],
          [
            15057,
            "#"
          ],
          [
            15203,
            "!"
          ],
          [
            15204,
            "!"
          ],
          [
            15333,
            "/"
          ],
          [
            15334,
            "/"
          ],
          [
            16735,
            "**/{}"
          ],
          [
            16736,
            "**/{}"
          ],
          [
            17040,
            "/**"
          ],
          [
            17041,
            "/**"
          ],
          [
            17083,
            "{}/*"
          ],
          [
            17084,
            "{}/*"
          ],
          [
            19101,
            ".gitconfig"
          ],
          [
            19102,
            ".gitconfig"
          ],
          [
            19489,
            "XDG_CONFIG_HOME"
          ],
          [
            19490,
            "XDG_CONFIG_HOME"
          ],
          [
            19634,
            ".config"
          ],
          [
            19635,
            ".config"
          ],
          [
            19671,
            "git/config"
          ],
          [
            19672,
            "git/config"
          ],
          [
            20110,
            "XDG_CONFIG_HOME"
          ],
          [
            20111,
            "XDG_CONFIG_HOME"
          ],
          [
            20255,
            ".config"
          ],
          [
            20256,
            ".config"
          ],
          [
            20292,
            "git/ignore"
          ],
          [
            20293,
            "git/ignore"
          ],
          [
            20713,
            "r\"(?im)^\\s*excludesfile\\s*=\\s*(.+)\\s*$"
          ],
          [
            20715,
            "(?im)^\\s*excludesfile\\s*=\\s*(.+)\\s*$"
          ],
          [
            21211,
            "~"
          ],
          [
            21212,
            "~"
          ],
          [
            22758,
            "/home/foobar/rust/rg"
          ],
          [
            22759,
            "/home/foobar/rust/rg"
          ],
          [
            22807,
            "months"
          ],
          [
            22808,
            "months"
          ],
          [
            22817,
            "months"
          ],
          [
            22818,
            "months"
          ],
          [
            22852,
            "*.lock"
          ],
          [
            22853,
            "*.lock"
          ],
          [
            22862,
            "Cargo.lock"
          ],
          [
            22863,
            "Cargo.lock"
          ],
          [
            22901,
            "*.rs"
          ],
          [
            22902,
            "*.rs"
          ],
          [
            22909,
            "src/main.rs"
          ],
          [
            22910,
            "src/main.rs"
          ],
          [
            22949,
            "src/*.rs"
          ],
          [
            22950,
            "src/*.rs"
          ],
          [
            22961,
            "src/main.rs"
          ],
          [
            22962,
            "src/main.rs"
          ],
          [
            23001,
            "/*.c"
          ],
          [
            23002,
            "/*.c"
          ],
          [
            23009,
            "cat-file.c"
          ],
          [
            23010,
            "cat-file.c"
          ],
          [
            23048,
            "/src/*.rs"
          ],
          [
            23049,
            "/src/*.rs"
          ],
          [
            23061,
            "src/main.rs"
          ],
          [
            23062,
            "src/main.rs"
          ],
          [
            23101,
            "!src/main.rs\\n*.rs"
          ],
          [
            23102,
            "!src/main.rs"
          ],
          [
            23116,
            "*.rs"
          ],
          [
            23123,
            "src/main.rs"
          ],
          [
            23124,
            "src/main.rs"
          ],
          [
            23163,
            "foo/"
          ],
          [
            23164,
            "foo/"
          ],
          [
            23171,
            "foo"
          ],
          [
            23172,
            "foo"
          ],
          [
            23209,
            "**/foo"
          ],
          [
            23210,
            "**/foo"
          ],
          [
            23219,
            "foo"
          ],
          [
            23220,
            "foo"
          ],
          [
            23252,
            "**/foo"
          ],
          [
            23253,
            "**/foo"
          ],
          [
            23262,
            "src/foo"
          ],
          [
            23263,
            "src/foo"
          ],
          [
            23299,
            "**/foo/**"
          ],
          [
            23300,
            "**/foo/**"
          ],
          [
            23312,
            "src/foo/bar"
          ],
          [
            23313,
            "src/foo/bar"
          ],
          [
            23353,
            "**/foo/**"
          ],
          [
            23354,
            "**/foo/**"
          ],
          [
            23366,
            "wat/src/foo/bar/baz"
          ],
          [
            23367,
            "wat/src/foo/bar/baz"
          ],
          [
            23415,
            "**/foo/bar"
          ],
          [
            23416,
            "**/foo/bar"
          ],
          [
            23429,
            "foo/bar"
          ],
          [
            23430,
            "foo/bar"
          ],
          [
            23466,
            "**/foo/bar"
          ],
          [
            23467,
            "**/foo/bar"
          ],
          [
            23480,
            "src/foo/bar"
          ],
          [
            23481,
            "src/foo/bar"
          ],
          [
            23521,
            "abc/**"
          ],
          [
            23522,
            "abc/**"
          ],
          [
            23531,
            "abc/x"
          ],
          [
            23532,
            "abc/x"
          ],
          [
            23566,
            "abc/**"
          ],
          [
            23567,
            "abc/**"
          ],
          [
            23576,
            "abc/x/y"
          ],
          [
            23577,
            "abc/x/y"
          ],
          [
            23613,
            "abc/**"
          ],
          [
            23614,
            "abc/**"
          ],
          [
            23623,
            "abc/x/y/z"
          ],
          [
            23624,
            "abc/x/y/z"
          ],
          [
            23662,
            "a/**/b"
          ],
          [
            23663,
            "a/**/b"
          ],
          [
            23672,
            "a/b"
          ],
          [
            23673,
            "a/b"
          ],
          [
            23705,
            "a/**/b"
          ],
          [
            23706,
            "a/**/b"
          ],
          [
            23715,
            "a/x/b"
          ],
          [
            23716,
            "a/x/b"
          ],
          [
            23750,
            "a/**/b"
          ],
          [
            23751,
            "a/**/b"
          ],
          [
            23760,
            "a/x/y/b"
          ],
          [
            23761,
            "a/x/y/b"
          ],
          [
            23797,
            "r\"\\!xy"
          ],
          [
            23799,
            "\\!xy"
          ],
          [
            23806,
            "!xy"
          ],
          [
            23807,
            "!xy"
          ],
          [
            23839,
            "r\"\\#foo"
          ],
          [
            23841,
            "\\#foo"
          ],
          [
            23849,
            "#foo"
          ],
          [
            23850,
            "#foo"
          ],
          [
            23883,
            "foo"
          ],
          [
            23884,
            "foo"
          ],
          [
            23890,
            "./foo"
          ],
          [
            23891,
            "./foo"
          ],
          [
            23925,
            "target"
          ],
          [
            23926,
            "target"
          ],
          [
            23935,
            "grep/target"
          ],
          [
            23936,
            "grep/target"
          ],
          [
            23976,
            "Cargo.lock"
          ],
          [
            23977,
            "Cargo.lock"
          ],
          [
            23990,
            "./tabwriter-bin/Cargo.lock"
          ],
          [
            23991,
            "./tabwriter-bin/Cargo.lock"
          ],
          [
            24046,
            "/foo/bar/baz"
          ],
          [
            24047,
            "/foo/bar/baz"
          ],
          [
            24062,
            "./foo/bar/baz"
          ],
          [
            24063,
            "./foo/bar/baz"
          ],
          [
            24105,
            "foo/"
          ],
          [
            24106,
            "foo/"
          ],
          [
            24113,
            "xyz/foo"
          ],
          [
            24114,
            "xyz/foo"
          ],
          [
            24150,
            "./src"
          ],
          [
            24151,
            "./src"
          ],
          [
            24159,
            "/llvm/"
          ],
          [
            24160,
            "/llvm/"
          ],
          [
            24169,
            "./src/llvm"
          ],
          [
            24170,
            "./src/llvm"
          ],
          [
            24215,
            "node_modules/ "
          ],
          [
            24216,
            "node_modules/ "
          ],
          [
            24233,
            "node_modules"
          ],
          [
            24234,
            "node_modules"
          ],
          [
            24281,
            "**/"
          ],
          [
            24282,
            "**/"
          ],
          [
            24288,
            "foo/bar"
          ],
          [
            24289,
            "foo/bar"
          ],
          [
            24331,
            "path1/*"
          ],
          [
            24332,
            "path1/*"
          ],
          [
            24342,
            "path1/foo"
          ],
          [
            24343,
            "path1/foo"
          ],
          [
            24381,
            ".a/b"
          ],
          [
            24382,
            ".a/b"
          ],
          [
            24389,
            ".a/b"
          ],
          [
            24390,
            ".a/b"
          ],
          [
            24417,
            "./"
          ],
          [
            24418,
            "./"
          ],
          [
            24423,
            ".a/b"
          ],
          [
            24424,
            ".a/b"
          ],
          [
            24431,
            ".a/b"
          ],
          [
            24432,
            ".a/b"
          ],
          [
            24459,
            "."
          ],
          [
            24460,
            "."
          ],
          [
            24464,
            ".a/b"
          ],
          [
            24465,
            ".a/b"
          ],
          [
            24472,
            ".a/b"
          ],
          [
            24473,
            ".a/b"
          ],
          [
            24500,
            "./."
          ],
          [
            24501,
            "./."
          ],
          [
            24507,
            ".a/b"
          ],
          [
            24508,
            ".a/b"
          ],
          [
            24515,
            ".a/b"
          ],
          [
            24516,
            ".a/b"
          ],
          [
            24543,
            "././"
          ],
          [
            24544,
            "././"
          ],
          [
            24551,
            ".a/b"
          ],
          [
            24552,
            ".a/b"
          ],
          [
            24559,
            ".a/b"
          ],
          [
            24560,
            ".a/b"
          ],
          [
            24587,
            "././."
          ],
          [
            24588,
            "././."
          ],
          [
            24596,
            ".a/b"
          ],
          [
            24597,
            ".a/b"
          ],
          [
            24604,
            ".a/b"
          ],
          [
            24605,
            ".a/b"
          ],
          [
            24638,
            "\\\\["
          ],
          [
            24641,
            "["
          ],
          [
            24645,
            "["
          ],
          [
            24646,
            "["
          ],
          [
            24676,
            "\\\\?"
          ],
          [
            24679,
            "?"
          ],
          [
            24683,
            "?"
          ],
          [
            24684,
            "?"
          ],
          [
            24714,
            "\\\\*"
          ],
          [
            24717,
            "*"
          ],
          [
            24721,
            "*"
          ],
          [
            24722,
            "*"
          ],
          [
            24752,
            "\\\\a"
          ],
          [
            24755,
            "a"
          ],
          [
            24759,
            "a"
          ],
          [
            24760,
            "a"
          ],
          [
            24797,
            "amonths"
          ],
          [
            24798,
            "amonths"
          ],
          [
            24808,
            "months"
          ],
          [
            24809,
            "months"
          ],
          [
            24850,
            "monthsa"
          ],
          [
            24851,
            "monthsa"
          ],
          [
            24861,
            "months"
          ],
          [
            24862,
            "months"
          ],
          [
            24903,
            "/src/*.rs"
          ],
          [
            24904,
            "/src/*.rs"
          ],
          [
            24916,
            "src/grep/src/main.rs"
          ],
          [
            24917,
            "src/grep/src/main.rs"
          ],
          [
            24972,
            "/*.c"
          ],
          [
            24973,
            "/*.c"
          ],
          [
            24980,
            "mozilla-sha1/sha1.c"
          ],
          [
            24981,
            "mozilla-sha1/sha1.c"
          ],
          [
            25035,
            "/src/*.rs"
          ],
          [
            25036,
            "/src/*.rs"
          ],
          [
            25048,
            "src/grep/src/main.rs"
          ],
          [
            25049,
            "src/grep/src/main.rs"
          ],
          [
            25104,
            "*.rs\\n!src/main.rs"
          ],
          [
            25105,
            "*.rs"
          ],
          [
            25111,
            "!src/main.rs"
          ],
          [
            25126,
            "src/main.rs"
          ],
          [
            25127,
            "src/main.rs"
          ]
        ],
        "sz": 27576,
        "ts": [
          {
            "c": 0.8999999761581421,
            "d": "#[cfg(test)] attribute",
            "e": [
              "#[cfg(test)]"
            ],
            "i": "metadata/package/testing/harness::rust-cfg-test",
            "l": 2
          },
          {
            "c": 0.20000000298023224,
            "d": "command keyword",
            "e": [
              "command"
            ],
            "i": "micro-behaviors/data/text/keywords::command-dup",
            "l": 1
          }
        ],
        "sha": "d98127845e5f24e18da865317fa5a246d339644fe4ebb995a61919950097cc16",
        "path": "/data/samples/good/cargo/ignore-0.4.5/ignore-0.4.5/src/gitignore.rs",
        "type": "rust"
      }
    ],
    "tv": "13343"
  }
}