{
  "ml": {
    "v": "4",
    "fs": [
      {
        "id": 0,
        "prob": 0.9400631189346313,
        "class": 0
      }
    ],
    "prob": 0.9400631,
    "class": 0,
    "version": "v16.16",
    "thresholds": [
      0.9815004,
      0.99404883
    ],
    "analyzed_at": "2026-04-30T15:34:34Z"
  },
  "path": "prompts.test.ts",
  "raw": {
    "v": "4",
    "fs": [
      {
        "f": "O₂(As₂C₂)Md₂(Pa)",
        "x": 1,
        "id": 0,
        "is": [
          "describe",
          "beforeAll",
          "JSON.parse",
          "pkgPaths.get",
          "it",
          "useTempDir",
          "createNextApp",
          "childProcess.on",
          "expect.toBe",
          "expect",
          "projectFilesShouldExist",
          "resolve",
          "childProcess.stdin.write",
          "require",
          "join",
          "expect.toBe",
          "expect",
          "it",
          "useTempDir",
          "createNextApp",
          "childProcess.on",
          "expect.toBe",
          "expect",
          "projectFilesShouldExist",
          "resolve",
          "childProcess.stdin.write",
          "it",
          "useTempDir",
          "createNextApp",
          "childProcess.on",
          "expect.toBe",
          "expect",
          "projectFilesShouldExist",
          "resolve",
          "childProcess.stdin.write",
          "it",
          "useTempDir",
          "createNextApp",
          "childProcess.on",
          "expect.toBe",
          "expect",
          "resolve",
          "childProcess.stdout.on",
          "process.stdout.write",
          "childProcess.stdin.write",
          "check",
          "childProcess.stdin.write",
          "require",
          "join",
          "expect.toMatchInlineSnapshot",
          "expect",
          "it",
          "useTempDir",
          "createNextApp",
          "childProcess.on",
          "expect.toBe",
          "expect",
          "projectFilesShouldExist",
          "resolve",
          "require",
          "join",
          "expect.toBe",
          "expect",
          "require",
          "join",
          "expect.toMatchInlineSnapshot",
          "expect",
          "it",
          "useTempDir",
          "createNextApp",
          "childProcess.on",
          "expect.toBe",
          "expect",
          "projectFilesShouldExist",
          "resolve",
          "childProcess.stdin.write",
          "require",
          "join",
          "expect.toBe",
          "expect",
          "it",
          "require",
          "useTempDir",
          "conf.set",
          "createNextApp",
          "childProcess.stdout.on",
          "process.stdout.write",
          "childProcess.stdin.write",
          "check",
          "childProcess.on",
          "expect.toBe",
          "expect",
          "projectFilesShouldExist",
          "resolve",
          "require",
          "join",
          "expect.toBe",
          "expect",
          "it",
          "useTempDir",
          "createNextApp",
          "childProcess.on",
          "expect.toBe",
          "expect",
          "resolve",
          "childProcess.stdout.on",
          "process.stdout.write",
          "check",
          "childProcess.stdin.write",
          "check",
          "import"
        ],
        "ms": {
          "text": {
            "digit_ratio": 0.0,
            "space_count": 3070.0,
            "total_lines": 357.0,
            "char_entropy": 4.36,
            "unique_chars": 76.0,
            "escape_density": 0.03,
            "import_density": 31.09,
            "string_density": 0.57,
            "avg_line_length": 25.75,
            "max_line_length": 92.0,
            "empty_line_ratio": 0.1,
            "last_line_length": 2.0,
            "most_common_char": "e",
            "whitespace_ratio": 0.36,
            "most_common_ratio": 0.06,
            "identifier_density": 0.64,
            "line_length_stddev": 20.14,
            "dynamic_import_ratio": 0.06,
            "unicode_escape_count": 3.0,
            "normalized_import_count": 5.87,
            "normalized_string_count": 10.74,
            "repeated_char_sequences": 120.0,
            "suspicious_string_ratio": 0.04,
            "anonymous_function_ratio": 0.9,
            "max_inline_whitespace_run": 1.0,
            "normalized_function_count": 2.17,
            "imports_to_functions_ratio": 2.71,
            "strings_to_functions_ratio": 4.95,
            "normalized_unique_identifiers": 3.3,
            "identifiers_to_functions_ratio": 0.68
          },
          "imports": {
            "total": 111.0,
            "unique_modules": 21.0,
            "dynamic_imports": 7.0,
            "third_party_count": 111.0,
            "third_party_ratio": 1.0
          },
          "strings": {
            "total": 203.0,
            "avg_length": 15.73,
            "max_length": 90.0,
            "path_count": 2.0,
            "avg_entropy": 2.74,
            "email_count": 4.0,
            "sql_strings": 4.0,
            "total_bytes": 3194.0,
            "entropy_stddev": 0.84,
            "shell_command_strings": 5.0
          },
          "comments": {
            "chars": 584.0,
            "lines": 16.0,
            "total": 16.0,
            "to_code_ratio": 0.05
          },
          "functions": {
            "total": 41.0,
            "anonymous": 37.0,
            "one_liners": 4.0,
            "length_stddev": 53.5,
            "over_100_lines": 1.0,
            "avg_name_length": 6.0,
            "no_params_count": 41.0,
            "avg_length_lines": 30.41,
            "max_length_lines": 353.0,
            "min_length_lines": 1.0,
            "avg_nesting_depth": 2.66,
            "max_nesting_depth": 4.0,
            "density_per_100_lines": 11.48,
            "code_in_functions_ratio": 3.49
          },
          "identifiers": {
            "total": 228.0,
            "avg_length": 7.36,
            "max_length": 23.0,
            "min_length": 2.0,
            "avg_entropy": 2.4,
            "reuse_ratio": 0.12,
            "unique_count": 28.0,
            "length_stddev": 4.39,
            "high_entropy_count": 1.0,
            "high_entropy_ratio": 0.04,
            "all_lowercase_ratio": 0.46,
            "all_uppercase_ratio": 0.04
          }
        },
        "ss": [
          [
            22,
            "next-test-utils"
          ],
          [
            23,
            "next-test-utils"
          ],
          [
            61,
            "path"
          ],
          [
            62,
            "path"
          ],
          [
            135,
            "./utils"
          ],
          [
            136,
            "./utils"
          ],
          [
            155,
            "create-next-app prompts"
          ],
          [
            156,
            "create-next-app prompts"
          ],
          [
            213,
            "string"
          ],
          [
            307,
            "This test needs to be run with `node run-tests.js`."
          ],
          [
            308,
            "This test needs to be run with `node run-tests.js`."
          ],
          [
            398,
            "string"
          ],
          [
            406,
            "string"
          ],
          [
            507,
            "next"
          ],
          [
            508,
            "next"
          ],
          [
            526,
            "should prompt user for choice if directory name is absent"
          ],
          [
            527,
            "should prompt user for choice if directory name is absent"
          ],
          [
            665,
            "no-dir-name"
          ],
          [
            666,
            "no-dir-name"
          ],
          [
            741,
            "--ts"
          ],
          [
            742,
            "--ts"
          ],
          [
            759,
            "--app"
          ],
          [
            760,
            "--app"
          ],
          [
            778,
            "--eslint"
          ],
          [
            779,
            "--eslint"
          ],
          [
            800,
            "--no-src-dir"
          ],
          [
            801,
            "--no-src-dir"
          ],
          [
            826,
            "--no-tailwind"
          ],
          [
            827,
            "--no-tailwind"
          ],
          [
            853,
            "--no-import-alias"
          ],
          [
            854,
            "--no-import-alias"
          ],
          [
            884,
            "--no-react-compiler"
          ],
          [
            885,
            "--no-react-compiler"
          ],
          [
            917,
            "--no-agents-md"
          ],
          [
            918,
            "--no-agents-md"
          ],
          [
            1084,
            "exit"
          ],
          [
            1085,
            "exit"
          ],
          [
            1247,
            "package.json"
          ],
          [
            1248,
            "package.json"
          ],
          [
            1372,
            "${projectName}\\n"
          ],
          [
            1451,
            "package.json"
          ],
          [
            1452,
            "package.json"
          ],
          [
            1527,
            "should prompt user for choice if --js or --ts flag is absent"
          ],
          [
            1528,
            "should prompt user for choice if --js or --ts flag is absent"
          ],
          [
            1669,
            "ts-js"
          ],
          [
            1670,
            "ts-js"
          ],
          [
            1762,
            "--app"
          ],
          [
            1763,
            "--app"
          ],
          [
            1781,
            "--eslint"
          ],
          [
            1782,
            "--eslint"
          ],
          [
            1803,
            "--no-tailwind"
          ],
          [
            1804,
            "--no-tailwind"
          ],
          [
            1830,
            "--no-src-dir"
          ],
          [
            1831,
            "--no-src-dir"
          ],
          [
            1856,
            "--no-import-alias"
          ],
          [
            1857,
            "--no-import-alias"
          ],
          [
            1887,
            "--no-react-compiler"
          ],
          [
            1888,
            "--no-react-compiler"
          ],
          [
            1920,
            "--no-agents-md"
          ],
          [
            1921,
            "--no-agents-md"
          ],
          [
            2087,
            "exit"
          ],
          [
            2088,
            "exit"
          ],
          [
            2250,
            "tsconfig.json"
          ],
          [
            2251,
            "tsconfig.json"
          ],
          [
            2391,
            "\\n"
          ],
          [
            2424,
            "should prompt user for choice if --tailwind is absent"
          ],
          [
            2425,
            "should prompt user for choice if --tailwind is absent"
          ],
          [
            2559,
            "tw"
          ],
          [
            2560,
            "tw"
          ],
          [
            2649,
            "--ts"
          ],
          [
            2650,
            "--ts"
          ],
          [
            2667,
            "--app"
          ],
          [
            2668,
            "--app"
          ],
          [
            2686,
            "--eslint"
          ],
          [
            2687,
            "--eslint"
          ],
          [
            2708,
            "--no-src-dir"
          ],
          [
            2709,
            "--no-src-dir"
          ],
          [
            2734,
            "--no-import-alias"
          ],
          [
            2735,
            "--no-import-alias"
          ],
          [
            2765,
            "--no-react-compiler"
          ],
          [
            2766,
            "--no-react-compiler"
          ],
          [
            2798,
            "--no-agents-md"
          ],
          [
            2799,
            "--no-agents-md"
          ],
          [
            2965,
            "exit"
          ],
          [
            2966,
            "exit"
          ],
          [
            3128,
            "postcss.config.mjs"
          ],
          [
            3129,
            "postcss.config.mjs"
          ],
          [
            3272,
            "\\n"
          ],
          [
            3305,
            "should prompt user for choice if --import-alias is absent"
          ],
          [
            3306,
            "should prompt user for choice if --import-alias is absent"
          ],
          [
            3444,
            "import-alias"
          ],
          [
            3445,
            "import-alias"
          ],
          [
            3544,
            "--ts"
          ],
          [
            3545,
            "--ts"
          ],
          [
            3562,
            "--app"
          ],
          [
            3563,
            "--app"
          ],
          [
            3581,
            "--eslint"
          ],
          [
            3582,
            "--eslint"
          ],
          [
            3603,
            "--no-tailwind"
          ],
          [
            3604,
            "--no-tailwind"
          ],
          [
            3630,
            "--no-src-dir"
          ],
          [
            3631,
            "--no-src-dir"
          ],
          [
            3656,
            "--no-react-compiler"
          ],
          [
            3657,
            "--no-react-compiler"
          ],
          [
            3689,
            "--no-agents-md"
          ],
          [
            3690,
            "--no-agents-md"
          ],
          [
            3862,
            "exit"
          ],
          [
            3863,
            "exit"
          ],
          [
            4013,
            "data"
          ],
          [
            4014,
            "data"
          ],
          [
            4203,
            "\\u001b[C\\n"
          ],
          [
            4210,
            "[C"
          ],
          [
            4396,
            "@/something/*\\n"
          ],
          [
            4397,
            "@/something/*"
          ],
          [
            4479,
            "tsconfig.json"
          ],
          [
            4480,
            "tsconfig.json"
          ],
          [
            4564,
            "\n        {\n          \"@/something/*\": [\n            \"./*\",\n          ],\n        }\n      "
          ],
          [
            4565,
            "\n        {\n          \"@/something/*\": [\n            \"./*\",\n          ],\n        }\n      "
          ],
          [
            4674,
            "should not prompt user for choice and use defaults if --yes is defined"
          ],
          [
            4675,
            "should not prompt user for choice and use defaults if --yes is defined"
          ],
          [
            4826,
            "yes-we-can"
          ],
          [
            4827,
            "yes-we-can"
          ],
          [
            4903,
            "--yes"
          ],
          [
            4904,
            "--yes"
          ],
          [
            5051,
            "exit"
          ],
          [
            5052,
            "exit"
          ],
          [
            5229,
            "app"
          ],
          [
            5230,
            "app"
          ],
          [
            5250,
            "package.json"
          ],
          [
            5251,
            "package.json"
          ],
          [
            5280,
            "postcss.config.mjs"
          ],
          [
            5281,
            "postcss.config.mjs"
          ],
          [
            5316,
            "tsconfig.json"
          ],
          [
            5317,
            "tsconfig.json"
          ],
          [
            5347,
            "AGENTS.md"
          ],
          [
            5348,
            "AGENTS.md"
          ],
          [
            5374,
            "CLAUDE.md"
          ],
          [
            5375,
            "CLAUDE.md"
          ],
          [
            5505,
            "package.json"
          ],
          [
            5506,
            "package.json"
          ],
          [
            5617,
            "tsconfig.json"
          ],
          [
            5618,
            "tsconfig.json"
          ],
          [
            5702,
            "\n        {\n          \"@/*\": [\n            \"./*\",\n          ],\n        }\n      "
          ],
          [
            5703,
            "\n        {\n          \"@/*\": [\n            \"./*\",\n          ],\n        }\n      "
          ],
          [
            5802,
            "should use recommended defaults when user selects that option"
          ],
          [
            5803,
            "should use recommended defaults when user selects that option"
          ],
          [
            5945,
            "recommended-defaults"
          ],
          [
            5946,
            "recommended-defaults"
          ],
          [
            6171,
            "exit"
          ],
          [
            6172,
            "exit"
          ],
          [
            6349,
            "app"
          ],
          [
            6350,
            "app"
          ],
          [
            6370,
            "package.json"
          ],
          [
            6371,
            "package.json"
          ],
          [
            6400,
            "postcss.config.mjs"
          ],
          [
            6401,
            "postcss.config.mjs"
          ],
          [
            6448,
            "tsconfig.json"
          ],
          [
            6449,
            "tsconfig.json"
          ],
          [
            6493,
            "AGENTS.md"
          ],
          [
            6494,
            "AGENTS.md"
          ],
          [
            6535,
            "CLAUDE.md"
          ],
          [
            6536,
            "CLAUDE.md"
          ],
          [
            6726,
            "\\n"
          ],
          [
            6791,
            "package.json"
          ],
          [
            6792,
            "package.json"
          ],
          [
            6867,
            "should show reuse previous settings option when preferences exist"
          ],
          [
            6868,
            "should show reuse previous settings option when preferences exist"
          ],
          [
            6975,
            "next/dist/compiled/conf"
          ],
          [
            6976,
            "next/dist/compiled/conf"
          ],
          [
            7145,
            "create-next-app"
          ],
          [
            7146,
            "create-next-app"
          ],
          [
            7181,
            "preferences"
          ],
          [
            7182,
            "preferences"
          ],
          [
            7263,
            "eslint"
          ],
          [
            7264,
            "eslint"
          ],
          [
            7362,
            "@/*"
          ],
          [
            7363,
            "@/*"
          ],
          [
            7472,
            "reuse-prefs-project"
          ],
          [
            7473,
            "reuse-prefs-project"
          ],
          [
            7776,
            "data"
          ],
          [
            7777,
            "data"
          ],
          [
            7978,
            "\\u001b[B\\n"
          ],
          [
            7985,
            "[B"
          ],
          [
            8155,
            "exit"
          ],
          [
            8156,
            "exit"
          ],
          [
            8333,
            "pages"
          ],
          [
            8334,
            "pages"
          ],
          [
            8382,
            "package.json"
          ],
          [
            8383,
            "package.json"
          ],
          [
            8412,
            "jsconfig.json"
          ],
          [
            8413,
            "jsconfig.json"
          ],
          [
            8561,
            "package.json"
          ],
          [
            8562,
            "package.json"
          ],
          [
            8637,
            "should prompt user to confirm reset preferences"
          ],
          [
            8638,
            "should prompt user to confirm reset preferences"
          ],
          [
            8791,
            "--reset"
          ],
          [
            8792,
            "--reset"
          ],
          [
            8947,
            "exit"
          ],
          [
            8948,
            "exit"
          ],
          [
            9098,
            "data"
          ],
          [
            9099,
            "data"
          ],
          [
            9399,
            "\\u001b[C\\n"
          ],
          [
            9406,
            "[C"
          ]
        ],
        "sz": 9549,
        "ts": [
          {
            "a": "T1027.003",
            "c": 1.0,
            "d": "JavaScript or TypeScript source file extension",
            "e": [
              "prompts.test.ts"
            ],
            "i": "objectives/anti-static/obfuscation/payload::js-source-extension",
            "l": 1,
            "m": "B0032"
          },
          {
            "c": 0.699999988079071,
            "d": "JSON.parse call in staged payload loader",
            "e": [
              "JSON.parse("
            ],
            "i": "objectives/command-and-control/dropper/execution::json-parse-call-raw",
            "l": 1
          },
          {
            "c": 0.6000000238418579,
            "d": "Mocha describe() call",
            "e": [
              "describe("
            ],
            "i": "metadata/package/testing/presence::mocha-describe-call",
            "l": 2
          },
          {
            "a": "T1027",
            "c": 0.75,
            "d": "Many no-param functions",
            "e": [
              "functions.no_params_count = 41.00"
            ],
            "i": "objectives/anti-static/obfuscation/code-metrics/functions::many-no-param-functions",
            "l": 2,
            "m": "B0032"
          },
          {
            "c": 0.30000001192092896,
            "d": "Generic exit call",
            "e": [
              "exit",
              "exit",
              "exit",
              "exit",
              "exit",
              "exit",
              "exit",
              "exit",
              "exit",
              "exit",
              "exit",
              "exit",
              "exit",
              "exit",
              "exit",
              "exit"
            ],
            "i": "micro-behaviors/process/exit/terminate::exit-call",
            "l": 2
          },
          {
            "c": 1.0,
            "d": "Node.js test filename suffix",
            "e": [
              "prompts.test.ts"
            ],
            "i": "metadata/package/testing/harness::test-basename-suffix",
            "l": 2
          },
          {
            "a": "T1059",
            "c": 0.7799999713897705,
            "d": "Socket data event handler",
            "e": [
              ".on('data'"
            ],
            "i": "objectives/command-and-control/reverse-shell/socket::on-data-event",
            "l": 1
          },
          {
            "a": "T1027",
            "c": 0.8999999761581421,
            "d": "Low string density base64 context",
            "e": [
              "text.string_density = 0.57"
            ],
            "i": "objectives/anti-static/obfuscation/code-metrics::js-base64-candidate-low-string-density",
            "l": 1,
            "m": "B0032"
          },
          {
            "c": 0.8999999761581421,
            "d": "File has 30 or more lines",
            "e": [
              "text.total_lines = 357.00"
            ],
            "i": "metadata/package/metrics::file-has-30-plus-lines",
            "l": 1
          },
          {
            "a": "T1005",
            "c": 0.30000001192092896,
            "d": "JSON file extension",
            "e": [
              ".json"
            ],
            "i": "objectives/collection/file-targeting/filter::json-extension",
            "l": 1,
            "m": "B0024"
          },
          {
            "c": 0.6000000238418579,
            "d": "Common test filename pattern",
            "e": [
              "prompts.test.ts"
            ],
            "i": "metadata/package/testing/presence::test-filename-pattern",
            "l": 2
          },
          {
            "a": "T1027",
            "c": 0.8500000238418579,
            "d": "Spec or test filename markers",
            "e": [
              "prompts.test.ts"
            ],
            "i": "metadata/file/text/invisible-unicode::spec-test-filename",
            "l": 1
          },
          {
            "c": 0.20000000298023224,
            "d": "output keyword",
            "e": [
              "output"
            ],
            "i": "micro-behaviors/data/text/keywords::output",
            "l": 1
          },
          {
            "c": 0.75,
            "d": "it() test call marker",
            "e": [
              "it",
              "it",
              "it",
              "it",
              "it",
              "it",
              "it",
              "it"
            ],
            "i": "metadata/package/testing/scripted::js-bdd-it-text",
            "l": 2
          },
          {
            "c": 0.6000000238418579,
            "d": "expect() function call",
            "e": [
              "expect",
              "expect",
              "expect",
              "expect",
              "expect",
              "expect",
              "expect",
              "expect",
              "expect",
              "expect",
              "expect",
              "expect",
              "expect",
              "expect"
            ],
            "i": "metadata/package/testing/presence::jest-expect-call",
            "l": 2
          },
          {
            "c": 0.75,
            "d": "JavaScript describe() test call",
            "e": [
              "describe"
            ],
            "i": "metadata/package/testing/scripted::js-bdd-describe-text",
            "l": 2
          },
          {
            "c": 0.949999988079071,
            "d": "imports import",
            "e": [
              "import"
            ],
            "i": "metadata/import/npm::import",
            "l": 2
          },
          {
            "c": 0.8999999761581421,
            "d": "Jest test file",
            "e": [
              "prompts.test.ts",
              "expect"
            ],
            "i": "metadata/package/testing/presence::jest-test-file",
            "l": 2
          },
          {
            "c": 0.8999999761581421,
            "d": "Mocha test file",
            "e": [
              "describe(",
              "prompts.test.ts"
            ],
            "i": "metadata/package/testing/presence::mocha-test-file",
            "l": 2
          },
          {
            "c": 0.8500000238418579,
            "d": "JavaScript BDD suite text",
            "e": [
              "it",
              "describe"
            ],
            "i": "metadata/package/testing/scripted::js-bdd-suite-text",
            "l": 2
          }
        ],
        "sha": "934f549bb570ca4d520d82a8a71ab93b3edb4ff2a79a754badfcbae1ec2f9318",
        "path": "/data/samples/good/repos/next.js/test/integration/create-next-app/prompts.test.ts",
        "type": "javascript"
      }
    ],
    "tv": "13343"
  }
}