{
  "ml": {
    "analyzed_at": "2026-11-19T14:58:43Z",
    "files": [
      {
        "lvl": -1,
        "prob": 0.0019742846,
        "id": 0
      },
      {
        "lvl": -1,
        "id": 1
      },
      {
        "lvl": -1,
        "id": 2
      },
      {
        "lvl": -1,
        "id": 3
      },
      {
        "lvl": -1,
        "id": 4
      },
      {
        "lvl": -1,
        "id": 5
      }
    ],
    "lvl": -1,
    "mods": [
      {
        "cls": 0
      }
    ],
    "prob": 0.0019742846,
    "v": "7",
    "version": "v20.20"
  },
  "path": "7f1a2c5655be4c6e0d45574153bb5753c8afa4b7",
  "raw": {
    "files": [
      {
        "depth": 0,
        "facts": {
          "metrics": {
            "archive": {
              "comment_size": 40,
              "compressed_size": 7643,
              "compression.method_counts.deflate": 11,
              "compression.method_counts.stored": 1,
              "compression.ratio": 0.23,
              "crc_collision_count": 0,
              "directory_count": 1,
              "double_extension_count": 0,
              "duplicate_member_count": 0,
              "entry_comment_count": 0,
              "eocd_signature_count": 1,
              "executable_count": 0,
              "extra_field_size": 108,
              "file_count": 11,
              "format.directory_count": 1,
              "format.regular_count": 11,
              "has_comment": 1,
              "hidden_file_count": 0,
              "homoglyph_filename_count": 0,
              "local_header_signature_count": 12,
              "max_filename_length": 75,
              "member_count": 12,
              "misplaced_executable_count": 0,
              "nested_archive_count": 0,
              "noise_file_count": 0,
              "path_traversal_count": 0,
              "rtlo_filename_count": 0,
              "script_count": 9,
              "security.encrypted_count": 0,
              "security.setgid_count": 0,
              "security.setuid_count": 0,
              "security.sticky_count": 0,
              "security.symlink_count": 0,
              "security.world_writable_count": 0,
              "symlink_escape_count": 0,
              "timing.mtime_dominant_count": 12,
              "timing.mtime_dominant_ratio": 1,
              "timing.mtime_spread_seconds": 0,
              "timing.mtime_unique_count": 1,
              "timing.mtime_unique_ratio": 0.08,
              "timing.sentinel_mtime_count": 0,
              "uncompressed_size": 32793,
              "unicode_filename_count": 0,
              "zip_bomb_ratio": 5.55
            },
            "binary": {
              "peak_region_bytes": 8192,
              "peak_region_entropy": 7.81
            },
            "file": {
              "entropy": 7.73,
              "size": 10341
            }
          }
        },
        "id": 0,
        "mol": "H₂(Db₃F₂)Md₄(NePa₂Pt₂)",
        "path": "7f1a2c5655be4c6e0d45574153bb5753c8afa4b7",
        "risk": 9,
        "sha": "0b889fca8b75c82ac526935ff4b741099ca17c7a2d1b38f010e4b8f0944184d0",
        "size": 10341,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Archive contains at least ten members",
            "id": "metadata/archive/layout::archive-at-least-10-members"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Zip basename is a hexadecimal hash",
            "id": "metadata/filename/shape::hex-hash-zip-basename"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PHP function name contains a read word",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/lang/source/naming/action/function-name::php-read-named-function"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "High proportion of entropy-heavy identifiers",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/lang/source/naming/population::high-entropy-identifier-ratio"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Calls PHPUnit assert method",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/package/testing/presence/secret-fixture::phpunit-assertion-invocation"
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "PHP class extends a TestCase base class",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/package/testing/presence/secret-fixture::phpunit-testcase-class-inheritance"
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "Go fuzz corpus entry basename (sha1[-index])",
            "id": "metadata/package/testing/scripted::go-fuzz-corpus-entry-basename"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PHP ZipArchive adds in-memory member",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/data/archive/create/zip::php-ziparchive-add-from-string"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "PHP creates a ZIP archive",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/archive/create/zip::php-ziparchive-create"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Suppresses errors with the PHP @ operator",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/data/control-flow/error-handling/suppress::error-suppress-prefix"
          },
          {
            "conf": 0.99,
            "crit": 3,
            "desc": "PHP reads remaining stream contents",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/data/stream/read::php-stream-get-contents"
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Calls PHP unlink()",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/fs/delete/file/library::php-unlink"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PHP opens a file or URL stream",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/fs/file/open/unspecified::php-fopen-call"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports fclose",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/fclose::fclose"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports fopen",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/fopen::fopen"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Generator",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/generator::generator"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports iterator_to_array",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/import/php/iterator_to_array::iterator_to_array"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\AdapterTestUtilities\\FilesystemAdapterTestCase",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/import/php/league/flysystem/adaptertestutilities/filesystemadaptertestcase::league/flysystem/adaptertestutilities/filesystemadaptertestcase"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\Config",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/config::league/flysystem/config"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\DirectoryAttributes",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/directoryattributes::league/flysystem/directoryattributes"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\FileAttributes",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/fileattributes::league/flysystem/fileattributes"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\FilesystemAdapter",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/filesystemadapter::league/flysystem/filesystemadapter"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\FilesystemException",
            "from": [],
            "id": "metadata/import/php/league/flysystem/filesystemexception::league/flysystem/filesystemexception"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\PathPrefixer",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/pathprefixer::league/flysystem/pathprefixer"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToCopyFile",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/unabletocopyfile::league/flysystem/unabletocopyfile"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToCreateDirectory",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/unabletocreatedirectory::league/flysystem/unabletocreatedirectory"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToDeleteDirectory",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/unabletodeletedirectory::league/flysystem/unabletodeletedirectory"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToDeleteFile",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/unabletodeletefile::league/flysystem/unabletodeletefile"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToMoveFile",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/unabletomovefile::league/flysystem/unabletomovefile"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToReadFile",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/unabletoreadfile::league/flysystem/unabletoreadfile"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToRetrieveMetadata",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/unabletoretrievemetadata::league/flysystem/unabletoretrievemetadata"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToSetVisibility",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/unabletosetvisibility::league/flysystem/unabletosetvisibility"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToWriteFile",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/unabletowritefile::league/flysystem/unabletowritefile"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnixVisibility\\PortableVisibilityConverter",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/unixvisibility/portablevisibilityconverter::league/flysystem/unixvisibility/portablevisibilityconverter"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnixVisibility\\VisibilityConverter",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/flysystem/unixvisibility/visibilityconverter::league/flysystem/unixvisibility/visibilityconverter"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\Visibility",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/import/php/league/flysystem/visibility::league/flysystem/visibility"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\MimeTypeDetection\\FinfoMimeTypeDetector",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/mimetypedetection/finfomimetypedetector::league/mimetypedetection/finfomimetypedetector"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\MimeTypeDetection\\MimeTypeDetector",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/league/mimetypedetection/mimetypedetector::league/mimetypedetection/mimetypedetector"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports rewind",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/rewind::rewind"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RuntimeException",
            "from": [],
            "id": "metadata/import/php/runtimeexception::runtimeexception"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports stream_copy_to_stream",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/stream_copy_to_stream::stream_copy_to_stream"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Throwable",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/php/throwable::throwable"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ZipArchive",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/import/php/ziparchive::ziparchive"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "from": [],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "from": [],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "from": [],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "from": [],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7"
          }
        ],
        "type": "composer"
      },
      {
        "analysis_gaps": [
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "\u003c?php\n\ndeclare(strict_types=1);\n\nnamespace League\\Flysystem\\ZipArchive;\n\nuse ZipArchive;\n\nclass FilesystemZipArchiveProvider implements ZipArchiveProvider\n{\n    /**\n     * @var bool\n     */\n    private $parentDirectoryCreated = false;\n\n    public function __construct(private string $filename, private int $localDirectoryPermissions = 0700)\n    {\n    }\n\n    public function createZipArchive(): ZipArchive\n    {\n        if ($this-\u003eparentDirectoryCreated !== true) {\n            $this-\u003eparentDirectoryCreated = true;\n            $this-\u003ecreateParentDirectoryForZipArchive($this-\u003efilename);\n        }\n\n        return $this-\u003eopenZipArchive();\n    }\n\n    private function createParentDirectoryForZipArchive(string $fullPath): void\n    {\n        $dirname = dirname($fullPath);\n\n        if (is_dir($dirname) || @mkdir($dirname, $this-\u003elocalDirectoryPermissions, true)) {\n            return;\n        }\n\n        if ( ! is_dir($dirname)) {\n            throw UnableToCreateParentDirectory::atLocation($fullPath, error_get_last()['message'] ?? '');\n        }\n    }\n\n    private function openZipArchive(): ZipArchive\n    {\n        $archive = new ZipArchive();\n        $success = $archive-\u003eopen($this-\u003efilename, ZipArchive::CREATE);\n\n        if ($success !== true) {\n            throw UnableToOpenZipArchive::atLocation($this-\u003efilename, $archive-\u003egetStatusString() ?: '');\n        }\n\n        return $archive;\n    }\n}\n"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "__construct",
              240
            ],
            [
              "createZipArchive",
              358
            ],
            [
              "createParentDirectoryForZipArchive",
              649
            ],
            [
              "openZipArchive",
              1057
            ]
          ],
          "imp": [
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "dirname"
            ],
            [
              "",
              "is_dir"
            ],
            [
              "",
              "mkdir"
            ],
            [
              "",
              "is_dir"
            ],
            [
              "",
              "UnableToCreateParentDirectory"
            ],
            [
              "",
              "error_get_last"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "UnableToOpenZipArchive"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "ZipArchive"
            ]
          ],
          "mbr": [
            "$this.filename",
            "$this.localDirectoryPermissions",
            "$this.parentDirectoryCreated",
            "error_get_last.message"
          ],
          "metrics": {
            "ast": {
              "call_count": 11,
              "max_depth": 16,
              "max_member_depth": 2,
              "member_count": 4,
              "node_count": 390,
              "op.coalesce": 1,
              "op.lnot": 1,
              "op.lor": 1,
              "op.ne": 2,
              "op_density.coalesce": 0,
              "op_density.lnot": 0,
              "op_density.lor": 0,
              "op_density.ne": 0.01
            },
            "binary": {
              "peak_region_bytes": 1402,
              "peak_region_entropy": 4.68
            },
            "binds": {
              "count": 4
            },
            "comments": {
              "chars": 24,
              "count": 1,
              "lines": 3,
              "to_code_ratio": 0.06
            },
            "file": {
              "entropy": 4.7,
              "size": 1402
            },
            "functions": {
              "avg_length_lines": 8.75,
              "avg_name_length": 18.75,
              "avg_param_name_length": 14.67,
              "avg_params": 0.75,
              "code_ratio": 0.65,
              "count": 5,
              "density": 7.41,
              "high_entropy_names": 1,
              "length_stddev": 3.49,
              "max_length_lines": 12,
              "max_params": 2,
              "min_length_lines": 3,
              "no_params_count": 2
            },
            "identifiers": {
              "all_lowercase_ratio": 0.38,
              "all_uppercase_ratio": 0.04,
              "avg_entropy": 2.93,
              "avg_length": 13.27,
              "count": 58,
              "high_entropy_count": 5,
              "high_entropy_ratio": 0.19,
              "length_stddev": 8.4,
              "max_length": 34,
              "min_length": 4,
              "reuse_ratio": 0.45,
              "underscore_prefix_count": 1,
              "unique": 26
            },
            "imports": {
              "count": 1,
              "third_party_count": 1,
              "third_party_ratio": 1
            },
            "source": {
              "class_count": 1,
              "function_count": 4
            },
            "strings": {
              "avg_entropy": 2.47,
              "avg_length": 3.8,
              "bytes": 19,
              "count": 5,
              "empty_count": 2,
              "entropy_stddev": 0.16,
              "max_length": 7
            },
            "text": {
              "avg_line_length": 24.96,
              "char_entropy": 4.7,
              "digit_ratio": 0.01,
              "empty_line_ratio": 0.24,
              "identifier_density": 1.07,
              "identifiers_to_functions_ratio": 6.5,
              "import_density": 1.85,
              "imports_to_functions_ratio": 0.25,
              "last_line_length": 1,
              "line_length_stddev": 30.64,
              "lines": 54,
              "max_line_length": 106,
              "max_whitespace_run": 1,
              "normalized_function_count": 0.54,
              "normalized_import_count": 0.14,
              "normalized_string_count": 0.68,
              "normalized_unique_identifiers": 4.52,
              "repeated_char_sequences": 5,
              "space_count": 297,
              "string_density": 0.09,
              "strings_to_functions_ratio": 1.25,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.07,
              "unique_chars": 63,
              "whitespace_ratio": 0.25
            }
          },
          "tgt": [
            "$archive",
            "$this",
            "UnableToCreateParentDirectory",
            "UnableToOpenZipArchive",
            "dirname",
            "error_get_last",
            "is_dir",
            "mkdir"
          ]
        },
        "id": 1,
        "mol": "H(Db₂)",
        "path": "7f1a2c5655be4c6e0d45574153bb5753c8afa4b7!!thephpleague-flysystem-ziparchive-7f1a2c5/FilesystemZipArchiveProvider.php",
        "pid": 0,
        "risk": 2,
        "sha": "14787d3883f35909997713cdd57cc699f565a9c0934cef9c5b68e55d02a80c65",
        "sid": 4140273049,
        "size": 1402,
        "traits": [
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "PHP creates a ZIP archive",
            "id": "micro-behaviors/data/archive/create/zip::php-ziparchive-create",
            "spans": [
              [
                1092,
                123
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Suppresses errors with the PHP @ operator",
            "id": "micro-behaviors/data/control-flow/error-handling/suppress::error-suppress-prefix",
            "spans": [
              [
                803,
                56
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ZipArchive",
            "id": "metadata/import/php/ziparchive::ziparchive",
            "spans": [
              [
                77,
                0
              ]
            ]
          }
        ],
        "type": "php"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "\u003c?php\n\ndeclare(strict_types=1);\n\nnamespace League\\Flysystem\\ZipArchive;\n\nuse ZipArchive;\n\nclass StubZipArchive extends ZipArchive\n{\n    private bool $failNextDirectoryCreation = false"
          },
          {
            "col": 38,
            "line": 17,
            "ln": 414,
            "s": "Creation(): void\n    {\n        $this-\u003efailNextDirectoryCreation = true;\n    }\n\n    /**\n     * @param"
          },
          {
            "col": 20,
            "line": 47,
            "ln": 1035,
            "s": "  $flags\n     *\n     * @return bool\n     */\n    public function addFromString($localname, $contents, $flags = 0): bool\n    {\n        if ($this-\u003efailNextWrite) {\n            $this-\u003efailNextWrite = false;\n\n "
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "failNextDirectoryCreation",
              381
            ],
            [
              "addEmptyDir",
              598
            ],
            [
              "failNextWrite",
              857
            ],
            [
              "addFromString",
              1083
            ],
            [
              "failNextDeleteName",
              1348
            ],
            [
              "deleteName",
              1486
            ],
            [
              "failWhenSettingVisibility",
              1711
            ],
            [
              "setExternalAttributesName",
              1827
            ],
            [
              "failWhenDeletingAnIndex",
              2141
            ],
            [
              "deleteIndex",
              2253
            ]
          ],
          "imp": [
            [
              "",
              "ZipArchive"
            ]
          ],
          "mbr": [
            "$this.failNextDeleteName",
            "$this.failNextDirectoryCreation",
            "$this.failNextWrite",
            "$this.failWhenDeletingAnIndex",
            "$this.failWhenSettingVisibility"
          ],
          "metrics": {
            "ast": {
              "call_count": 5,
              "max_depth": 11,
              "max_member_depth": 2,
              "member_count": 5,
              "node_count": 578
            },
            "binary": {
              "peak_region_bytes": 2489,
              "peak_region_entropy": 4.57
            },
            "binds": {
              "count": 10
            },
            "comments": {
              "chars": 244,
              "count": 3,
              "lines": 16,
              "to_code_ratio": 0.17
            },
            "file": {
              "entropy": 4.49,
              "size": 2489
            },
            "functions": {
              "avg_length_lines": 7,
              "avg_name_length": 17.4,
              "avg_param_name_length": 6.55,
              "avg_params": 1.1,
              "code_ratio": 0.63,
              "count": 11,
              "density": 8.93,
              "high_entropy_names": 4,
              "length_stddev": 3,
              "max_length_lines": 10,
              "max_params": 4,
              "min_length_lines": 4,
              "no_params_count": 5
            },
            "identifiers": {
              "all_lowercase_ratio": 0.39,
              "avg_entropy": 2.8,
              "avg_length": 11.48,
              "count": 75,
              "high_entropy_count": 5,
              "high_entropy_ratio": 0.22,
              "length_stddev": 6.94,
              "max_length": 25,
              "min_length": 4,
              "reuse_ratio": 0.31,
              "unique": 23
            },
            "imports": {
              "count": 1,
              "third_party_count": 1,
              "third_party_ratio": 1
            },
            "source": {
              "class_count": 1,
              "function_count": 10
            },
            "text": {
              "avg_line_length": 21.22,
              "char_entropy": 4.49,
              "digit_ratio": 0,
              "empty_line_ratio": 0.21,
              "identifier_density": 0.67,
              "identifiers_to_functions_ratio": 2.3,
              "import_density": 0.89,
              "imports_to_functions_ratio": 0.1,
              "last_line_length": 1,
              "line_length_stddev": 21.61,
              "lines": 112,
              "max_line_length": 88,
              "max_whitespace_run": 4,
              "normalized_function_count": 0.94,
              "normalized_import_count": 0.09,
              "normalized_unique_identifiers": 3.38,
              "repeated_char_sequences": 10,
              "space_count": 634,
              "strings_to_functions_ratio": 0,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.07,
              "unique_chars": 55,
              "whitespace_ratio": 0.3
            }
          }
        },
        "id": 2,
        "mol": "H(Db)",
        "path": "7f1a2c5655be4c6e0d45574153bb5753c8afa4b7!!thephpleague-flysystem-ziparchive-7f1a2c5/StubZipArchive.php",
        "pid": 0,
        "risk": 2,
        "sha": "ff83d2abd8de35b34748bad3d07b415c8d7e894c55c0d49fa17b6f8f36304590",
        "sid": 4140273127,
        "size": 2489,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PHP ZipArchive adds in-memory member",
            "id": "micro-behaviors/data/archive/create/zip::php-ziparchive-add-from-string",
            "spans": [
              [
                1099,
                13
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ZipArchive",
            "id": "metadata/import/php/ziparchive::ziparchive",
            "spans": [
              [
                77,
                0
              ]
            ]
          }
        ],
        "type": "php"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "\u003c?php\n\ndeclare(strict_types=1);\n\nnamespace League\\Flysystem\\ZipArchive;\n\nuse ZipArchive;\n\nclass StubZipArchiveProvider implements ZipArchiveProvider\n{\n    private FilesystemZipArchiveProvider $provider;\n\n    /**\n     * @var StubZipArchive\n     */\n    private $archive;\n\n    public function __construct(private string $filename, int $localDirectoryPermissions = 0700)\n    {\n        $this-\u003eprovider = new FilesystemZipArchiveProvider($filename, $localDirectoryPermissions);\n    }\n\n    public function createZipArchive(): ZipArchive\n    {\n        if ( ! $this-\u003earchive instanceof StubZipArchive) {\n            $zipArchive = $this-\u003eprovider-\u003ecreateZipArchive();\n            $zipArchive-\u003eclose();\n            unset($zipArchive);\n            $this-\u003earchive = new StubZipArchive();\n        }\n\n        $this-\u003earchive-\u003eopen($this-\u003efilename, ZipArchive::CREATE);\n\n        return $this-\u003earchive;\n    }\n\n    public function stubbedZipArchive(): StubZipArchive\n    {\n        $this-\u003ecreateZipArchive();\n\n        return $this-\u003earchive;\n    }\n}\n"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "__construct",
              274
            ],
            [
              "createZipArchive",
              483
            ],
            [
              "stubbedZipArchive",
              896
            ]
          ],
          "imp": [
            [
              "",
              "$this.provider"
            ],
            [
              "",
              "$zipArchive"
            ],
            [
              "",
              "$this.archive"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "ZipArchive"
            ]
          ],
          "mbr": [
            "$this.archive",
            "$this.filename",
            "$this.provider"
          ],
          "metrics": {
            "ast": {
              "call_count": 4,
              "max_depth": 12,
              "max_member_depth": 2,
              "member_count": 3,
              "node_count": 263,
              "op.lnot": 1,
              "op_density.lnot": 0
            },
            "binary": {
              "peak_region_bytes": 1024,
              "peak_region_entropy": 4.64
            },
            "binds": {
              "count": 3
            },
            "comments": {
              "chars": 34,
              "count": 1,
              "lines": 3,
              "to_code_ratio": 0.08
            },
            "file": {
              "entropy": 4.65,
              "size": 1029
            },
            "functions": {
              "avg_length_lines": 7.67,
              "avg_name_length": 14.67,
              "avg_param_name_length": 17.5,
              "avg_params": 0.67,
              "code_ratio": 0.53,
              "count": 4,
              "density": 6.98,
              "high_entropy_names": 1,
              "length_stddev": 3.86,
              "max_length_lines": 13,
              "max_params": 2,
              "min_length_lines": 4,
              "no_params_count": 2
            },
            "identifiers": {
              "all_lowercase_ratio": 0.37,
              "all_uppercase_ratio": 0.05,
              "avg_entropy": 2.98,
              "avg_length": 12,
              "count": 47,
              "high_entropy_count": 5,
              "high_entropy_ratio": 0.26,
              "length_stddev": 7,
              "max_length": 28,
              "min_length": 4,
              "reuse_ratio": 0.4,
              "underscore_prefix_count": 1,
              "unique": 19
            },
            "imports": {
              "count": 1,
              "third_party_count": 1,
              "third_party_ratio": 1
            },
            "source": {
              "class_count": 1,
              "function_count": 3
            },
            "strings": {
              "avg_entropy": 2.58,
              "avg_length": 6,
              "bytes": 6,
              "count": 1,
              "max_length": 6
            },
            "text": {
              "avg_line_length": 22.93,
              "char_entropy": 4.65,
              "digit_ratio": 0.01,
              "empty_line_ratio": 0.26,
              "identifier_density": 1.09,
              "identifiers_to_functions_ratio": 6.33,
              "import_density": 2.33,
              "imports_to_functions_ratio": 0.33,
              "last_line_length": 1,
              "line_length_stddev": 26.63,
              "lines": 43,
              "max_line_length": 98,
              "max_whitespace_run": 1,
              "normalized_function_count": 0.46,
              "normalized_import_count": 0.15,
              "normalized_string_count": 0.15,
              "normalized_unique_identifiers": 3.5,
              "repeated_char_sequences": 4,
              "space_count": 204,
              "string_density": 0.02,
              "strings_to_functions_ratio": 0.33,
              "top_char": 105,
              "top_char_null": 0,
              "top_char_ratio": 0.08,
              "unique_chars": 57,
              "whitespace_ratio": 0.24
            }
          },
          "tgt": [
            "$this",
            "$this.archive",
            "$this.provider",
            "$zipArchive"
          ]
        },
        "id": 3,
        "mol": "H(Db)",
        "path": "7f1a2c5655be4c6e0d45574153bb5753c8afa4b7!!thephpleague-flysystem-ziparchive-7f1a2c5/StubZipArchiveProvider.php",
        "pid": 0,
        "risk": 2,
        "sha": "a60c5c73b3d3257617ee9d642161db135eb3436091f6d2ec02dbd49f4b6afb95",
        "sid": 4140273098,
        "size": 1029,
        "traits": [
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "PHP creates a ZIP archive",
            "id": "micro-behaviors/data/archive/create/zip::php-ziparchive-create",
            "spans": [
              [
                608,
                242
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ZipArchive",
            "id": "metadata/import/php/ziparchive::ziparchive",
            "spans": [
              [
                77,
                0
              ]
            ]
          }
        ],
        "type": "php"
      },
      {
        "analysis_gaps": [
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "\u003c?php\n\ndeclare(strict_types=1);\n\nnamespace League\\Flysystem\\ZipArchive;\n\nuse Generator;\nuse League\\Flysystem\\Config;\nuse League\\Flysystem\\DirectoryAttributes;\nuse League\\Flysystem\\FileAttributes;\nuse League\\Flysystem\\FilesystemAdapter;\nuse League\\Flysystem\\PathPrefixer;\nuse League\\Flysystem\\UnableToCopyFile;\nuse League\\Flysystem\\UnableToCreateDirectory;\nuse League\\Flysystem\\UnableToDeleteDirectory;\nuse League\\Flysystem\\UnableToDeleteFile;\nuse League\\Flysystem\\UnableToMoveFile;\nuse League\\Flysystem\\UnableToReadFile;\nuse League\\Flysystem\\UnableToRetrieveMetadata;\nuse League\\Flysystem\\UnableToSetVisibility;\nuse League\\Flysystem\\UnableToWriteFile;\nuse League\\Flysystem\\UnixVisibility\\PortableVisibilityConverter;\nuse League\\Flysystem\\UnixVisibility\\VisibilityConverter;\nuse League\\MimeTypeDetection\\FinfoMimeTypeDetector;\nuse League\\MimeTypeDetection\\MimeTypeDetector;\nuse Throwable;\nuse ZipArchive;\n\nuse function fclose;\nuse function fopen;\nuse function rewind;\nuse function stream_copy_to_stream;\n\nfinal class ZipArchiveAdapter implements FilesystemAdapter\n{\n    private PathPrefixer $pathPr"
          },
          {
            "col": 25,
            "line": 45,
            "ln": 1439,
            "s": "tectMimeTypeUsingPath = false,\n    ) {\n        $this-\u003epathPrefixer = new PathPrefixer(ltrim($root, '/'));\n        $this-\u003emimeTypeDetector = $mimeTypeDetector ?? new FinfoMimeTypeDete"
          },
          {
            "col": 27,
            "line": 70,
            "ln": 2406,
            "s": "his-\u003epathPrefixer-\u003eprefixPath($path);\n\n        if ( ! $archive-\u003eaddFromString($prefixedPath, $contents)) {\n            throw UnableToWriteFile::atLocation($path, 'writing the file failed');\n        }\n\n        $archive-\u003eclose();\n        $archive = $this-\u003ezipArchiveProvid"
          },
          {
            "col": 51,
            "line": 79,
            "ln": 2751,
            "s": "VISIBILITY);\n        $visibilityResult = $visibility === null\n            || $this-\u003esetVisibilityAttribu"
          },
          {
            "col": 42,
            "line": 89,
            "ln": 3111,
            "s": "ath, $contents, Config $config): void\n    {\n        $contents = stream_get_contents($contents);\n\n        if ($contents === false) {\n            throw UnableToWriteFile::atLocation($path, 'Could not get contents "
          },
          {
            "col": 4,
            "line": 97,
            "ln": 3358,
            "s": "     $this-\u003ewrite($path, $contents, $config);\n    }\n\n    public function read(string $path): string\n    {\n        $archive = $this-\u003ezipArchiveProvider-\u003ecreateZipArchive();\n        $contents = $archive-\u003egetF"
          },
          {
            "col": 32,
            "line": 122,
            "ln": 4192,
            "s": "ile::fromLocation($path, $status);\n        }\n\n        $stream = fopen('php://temp', 'w+b');\n        stream_copy_to_stream($resource, $stream);\n        rewind($stream);\n        fclose($resource);\n\n "
          },
          {
            "col": 20,
            "line": 130,
            "ln": 4407,
            "s": "eam;\n    }\n\n    public function delete(string $path): void\n    {\n        $prefixedPath = $this-\u003epathPr"
          },
          {
            "col": 35,
            "line": 149,
            "ln": 5081,
            "s": "hPrefixer-\u003eprefixDirectoryPath($path);\n\n        for ($i = $archive-\u003enumFiles; $i \u003e 0; $i--) {\n            if (($stats = $archive-\u003estatIndex($i)) =="
          },
          {
            "col": 5,
            "line": 231,
            "ln": 7667,
            "s": "        $this-\u003evisibility-\u003einverseForFile($attr \u003e\u003e 16)\n        );\n    }\n\n    public function mimeType(string $path): FileAttributes\n    {\n        try"
          },
          {
            "col": 31,
            "line": 343,
            "ln": 11511,
            "s": "estination) {\n                //update the config of the file\n                $this-\u003ecopy($source, $destination, $config);\n\n                return;\n     "
          },
          {
            "col": 45,
            "line": 351,
            "ln": 11759,
            "s": "n, $config);\n            $this-\u003edelete($source);\n\n            return;\n        }\n\n        $renamed = $archive-\u003e"
          },
          {
            "col": 32,
            "line": 371,
            "ln": 12387,
            "s": "eption) {\n            if (isset($readStream)) {\n                @fclose($readStream);\n            }\n\n            throw UnableToCopyFile::fromLocationTo($source, $destination, $exception);\n        }\n    }\n\n    pri"
          },
          {
            "col": 63,
            "line": 380,
            "ln": 12654,
            "s": " Config $config): void\n    {\n        $dirname = dirname($path);\n\n        if ($dirname === '' || $dirname === '.') {\n            return;\n        }\n\n    "
          },
          {
            "col": 49,
            "line": 395,
            "ln": 13140,
            "s": "prefixDirectoryPath($dirname);\n        $parts = array_filter(explode('/', trim($prefixedDirname, '/')));\n        $dirPath = '';\n\n        foreach ($parts as "
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "__construct",
              1202
            ],
            [
              "fileExists",
              1718
            ],
            [
              "write",
              1998
            ],
            [
              "writeStream",
              3074
            ],
            [
              "read",
              3415
            ],
            [
              "readStream",
              3849
            ],
            [
              "delete",
              4423
            ],
            [
              "deleteDirectory",
              4923
            ],
            [
              "createDirectory",
              5760
            ],
            [
              "directoryExists",
              6044
            ],
            [
              "setVisibility",
              6305
            ],
            [
              "visibility",
              7102
            ],
            [
              "mimeType",
              7744
            ],
            [
              "lastModified",
              8384
            ],
            [
              "fileSize",
              8890
            ],
            [
              "listContents",
              9523
            ],
            [
              "yieldItemsFrom",
              10910
            ],
            [
              "move",
              11011
            ],
            [
              "copy",
              12134
            ],
            [
              "ensureParentDirectoryExists",
              12596
            ],
            [
              "ensureDirectoryExists",
              12869
            ],
            [
              "isDirectoryPath",
              13919
            ],
            [
              "isAtRootDirectory",
              14031
            ],
            [
              "setVisibilityAttribute",
              14319
            ]
          ],
          "imp": [
            [
              "",
              "ltrim"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "UnableToWriteFile"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "UnableToWriteFile"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$config"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "UnableToWriteFile"
            ],
            [
              "",
              "stream_get_contents"
            ],
            [
              "",
              "UnableToWriteFile"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "UnableToReadFile"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "UnableToReadFile"
            ],
            [
              "",
              "fopen"
            ],
            [
              "",
              "stream_copy_to_stream"
            ],
            [
              "",
              "rewind"
            ],
            [
              "",
              "fclose"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$zipArchive"
            ],
            [
              "",
              "$zipArchive"
            ],
            [
              "",
              "$zipArchive"
            ],
            [
              "",
              "$zipArchive"
            ],
            [
              "",
              "UnableToDeleteFile"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "str_starts_with"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "UnableToDeleteDirectory"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "UnableToCreateDirectory"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "UnableToSetVisibility"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "UnableToSetVisibility"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "UnableToRetrieveMetadata"
            ],
            [
              "",
              "$this.visibility"
            ],
            [
              "",
              "$this.mimeTypeDetector"
            ],
            [
              "",
              "$this.mimeTypeDetector"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "UnableToRetrieveMetadata"
            ],
            [
              "",
              "$exception"
            ],
            [
              "",
              "UnableToRetrieveMetadata"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$zipArchive"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$zipArchive"
            ],
            [
              "",
              "$zipArchive"
            ],
            [
              "",
              "UnableToRetrieveMetadata"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "UnableToRetrieveMetadata"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "UnableToRetrieveMetadata"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "str_starts_with"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$archive"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "UnableToMoveFile"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "UnableToMoveFile"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "isset"
            ],
            [
              "",
              "fclose"
            ],
            [
              "",
              "UnableToCopyFile"
            ],
            [
              "",
              "dirname"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$config"
            ],
            [
              "",
              "$this.zipArchiveProvider"
            ],
            [
              "",
              "$this.pathPrefixer"
            ],
            [
              "",
              "array_filter"
            ],
            [
              "",
              "explode"
            ],
            [
              "",
              "trim"
            ],
            [
              "",
              "UnableToCreateDirectory"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "UnableToCreateDirectory"
            ],
            [
              "",
              "str_ends_with"
            ],
            [
              "",
              "dirname"
            ],
            [
              "",
              "rtrim"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this.visibility"
            ],
            [
              "",
              "$this.visibility"
            ],
            [
              "",
              "Generator"
            ],
            [
              "",
              "League\\Flysystem\\Config"
            ],
            [
              "",
              "League\\Flysystem\\DirectoryAttributes"
            ],
            [
              "",
              "League\\Flysystem\\FileAttributes"
            ],
            [
              "",
              "League\\Flysystem\\FilesystemAdapter"
            ],
            [
              "",
              "League\\Flysystem\\PathPrefixer"
            ],
            [
              "",
              "League\\Flysystem\\UnableToCopyFile"
            ],
            [
              "",
              "League\\Flysystem\\UnableToCreateDirectory"
            ],
            [
              "",
              "League\\Flysystem\\UnableToDeleteDirectory"
            ],
            [
              "",
              "League\\Flysystem\\UnableToDeleteFile"
            ],
            [
              "",
              "League\\Flysystem\\UnableToMoveFile"
            ],
            [
              "",
              "League\\Flysystem\\UnableToReadFile"
            ],
            [
              "",
              "League\\Flysystem\\UnableToRetrieveMetadata"
            ],
            [
              "",
              "League\\Flysystem\\UnableToSetVisibility"
            ],
            [
              "",
              "League\\Flysystem\\UnableToWriteFile"
            ],
            [
              "",
              "League\\Flysystem\\UnixVisibility\\PortableVisibilityConverter"
            ],
            [
              "",
              "League\\Flysystem\\UnixVisibility\\VisibilityConverter"
            ],
            [
              "",
              "League\\MimeTypeDetection\\FinfoMimeTypeDetector"
            ],
            [
              "",
              "League\\MimeTypeDetection\\MimeTypeDetector"
            ],
            [
              "",
              "Throwable"
            ],
            [
              "",
              "ZipArchive"
            ],
            [
              "",
              "fclose"
            ],
            [
              "",
              "fopen"
            ],
            [
              "",
              "rewind"
            ],
            [
              "",
              "stream_copy_to_stream"
            ]
          ],
          "mbr": [
            "$archive.numFiles",
            "$stats.mtime",
            "$stats.name",
            "$stats.size",
            "$this.detectMimeTypeUsingPath",
            "$this.mimeTypeDetector",
            "$this.pathPrefixer",
            "$this.visibility",
            "$this.zipArchiveProvider"
          ],
          "metrics": {
            "ast": {
              "call_count": 146,
              "max_depth": 18,
              "max_member_depth": 2,
              "member_count": 9,
              "node_count": 4508,
              "op.coalesce": 2,
              "op.concat": 4,
              "op.eq": 25,
              "op.gt": 1,
              "op.land": 5,
              "op.lnot": 8,
              "op.lor": 6,
              "op.lt": 1,
              "op.ne": 5,
              "op.shl": 1,
              "op.shr": 1,
              "op_density.coalesce": 0,
              "op_density.concat": 0,
              "op_density.eq": 0.01,
              "op_density.gt": 0,
              "op_density.land": 0,
              "op_density.lnot": 0,
              "op_density.lor": 0,
              "op_density.lt": 0,
              "op_density.ne": 0,
              "op_density.shl": 0,
              "op_density.shr": 0
            },
            "binary": {
              "peak_region_bytes": 13694,
              "peak_region_entropy": 4.68
            },
            "binds": {
              "count": 63
            },
            "comments": {
              "base64": 2,
              "chars": 77,
              "count": 3,
              "lines": 3,
              "to_code_ratio": 0.01
            },
            "file": {
              "entropy": 4.65,
              "size": 14718
            },
            "functions": {
              "avg_length_lines": 15.88,
              "avg_name_length": 12.04,
              "avg_param_name_length": 7.82,
              "avg_params": 1.83,
              "code_ratio": 0.86,
              "count": 25,
              "density": 5.41,
              "high_entropy_names": 4,
              "length_stddev": 9.45,
              "max_length_lines": 42,
              "max_params": 5,
              "min_length_lines": 4
            },
            "identifiers": {
              "all_lowercase_ratio": 0.35,
              "all_uppercase_ratio": 0.02,
              "avg_entropy": 2.86,
              "avg_length": 11.76,
              "base64_like_names": 1,
              "count": 759,
              "has_digit_ratio": 0.01,
              "high_entropy_count": 20,
              "high_entropy_ratio": 0.14,
              "length_stddev": 5.97,
              "max_length": 27,
              "min_length": 1,
              "numeric_suffix_count": 1,
              "reuse_ratio": 0.18,
              "sequential_names": 1,
              "single_char_count": 1,
              "single_char_ratio": 0.01,
              "underscore_prefix_count": 1,
              "unique": 138
            },
            "imports": {
              "count": 25,
              "third_party_count": 25,
              "third_party_ratio": 1
            },
            "source": {
              "class_count": 1,
              "function_count": 24
            },
            "strings": {
              "avg_entropy": 2.13,
              "avg_length": 6.56,
              "bytes": 413,
              "count": 63,
              "empty_count": 5,
              "entropy_stddev": 1.07,
              "max_length": 41
            },
            "text": {
              "avg_line_length": 32.15,
              "char_entropy": 4.65,
              "digit_ratio": 0,
              "empty_line_ratio": 0.19,
              "escape_density": 0.07,
              "identifier_density": 1.71,
              "identifiers_to_functions_ratio": 5.75,
              "import_density": 5.63,
              "imports_to_functions_ratio": 1.04,
              "last_line_length": 1,
              "line_length_stddev": 28.68,
              "lines": 444,
              "max_line_length": 110,
              "max_whitespace_run": 1,
              "normalized_function_count": 1.14,
              "normalized_import_count": 1.19,
              "normalized_string_count": 2.99,
              "normalized_unique_identifiers": 15.69,
              "repeated_char_sequences": 108,
              "space_count": 3565,
              "string_density": 0.14,
              "strings_to_functions_ratio": 2.63,
              "suspicious_comment_ratio": 0.67,
              "suspicious_identifier_ratio": 0.01,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.07,
              "unicode_escape_count": 11,
              "unique_chars": 76,
              "whitespace_ratio": 0.27
            }
          },
          "tgt": [
            "$archive",
            "$config",
            "$exception",
            "$this",
            "$this.mimeTypeDetector",
            "$this.pathPrefixer",
            "$this.visibility",
            "$this.zipArchiveProvider",
            "$zipArchive",
            "UnableToCopyFile",
            "UnableToCreateDirectory",
            "UnableToDeleteDirectory",
            "UnableToDeleteFile",
            "UnableToMoveFile",
            "UnableToReadFile",
            "UnableToRetrieveMetadata",
            "UnableToSetVisibility",
            "UnableToWriteFile",
            "array_filter",
            "dirname",
            "explode",
            "fclose",
            "fopen",
            "isset",
            "ltrim",
            "rewind",
            "rtrim",
            "str_ends_with",
            "str_starts_with",
            "stream_copy_to_stream",
            "stream_get_contents",
            "trim"
          ]
        },
        "id": 4,
        "mol": "H₂(Db₃F)Md(Pt)",
        "path": "7f1a2c5655be4c6e0d45574153bb5753c8afa4b7!!thephpleague-flysystem-ziparchive-7f1a2c5/ZipArchiveAdapter.php",
        "pid": 0,
        "risk": 5,
        "sha": "22252051140c866fa0b6d77c6bff2a210669e5e65b52be8ba48ebdc61e7e1a56",
        "sid": 4140273055,
        "size": 14718,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PHP function name contains a read word",
            "id": "metadata/lang/source/naming/action/function-name::php-read-named-function",
            "spans": [
              [
                3422,
                14
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PHP ZipArchive adds in-memory member",
            "id": "micro-behaviors/data/archive/create/zip::php-ziparchive-add-from-string",
            "spans": [
              [
                2470,
                13
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Suppresses errors with the PHP @ operator",
            "id": "micro-behaviors/data/control-flow/error-handling/suppress::error-suppress-prefix",
            "spans": [
              [
                12451,
                20
              ]
            ]
          },
          {
            "conf": 0.99,
            "crit": 3,
            "desc": "PHP reads remaining stream contents",
            "id": "micro-behaviors/data/stream/read::php-stream-get-contents",
            "spans": [
              [
                3175,
                19
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PHP opens a file or URL stream",
            "id": "micro-behaviors/fs/file/open/unspecified::php-fopen-call",
            "spans": [
              [
                4256,
                5
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports fclose",
            "id": "metadata/import/php/fclose::fclose",
            "spans": [
              [
                918,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports fopen",
            "id": "metadata/import/php/fopen::fopen",
            "spans": [
              [
                939,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Generator",
            "id": "metadata/import/php/generator::generator",
            "spans": [
              [
                77,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\Config",
            "id": "metadata/import/php/league/flysystem/config::league/flysystem/config",
            "spans": [
              [
                92,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\DirectoryAttributes",
            "id": "metadata/import/php/league/flysystem/directoryattributes::league/flysystem/directoryattributes",
            "spans": [
              [
                121,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\FileAttributes",
            "id": "metadata/import/php/league/flysystem/fileattributes::league/flysystem/fileattributes",
            "spans": [
              [
                163,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\FilesystemAdapter",
            "id": "metadata/import/php/league/flysystem/filesystemadapter::league/flysystem/filesystemadapter",
            "spans": [
              [
                200,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\PathPrefixer",
            "id": "metadata/import/php/league/flysystem/pathprefixer::league/flysystem/pathprefixer",
            "spans": [
              [
                240,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToCopyFile",
            "id": "metadata/import/php/league/flysystem/unabletocopyfile::league/flysystem/unabletocopyfile",
            "spans": [
              [
                275,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToCreateDirectory",
            "id": "metadata/import/php/league/flysystem/unabletocreatedirectory::league/flysystem/unabletocreatedirectory",
            "spans": [
              [
                314,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToDeleteDirectory",
            "id": "metadata/import/php/league/flysystem/unabletodeletedirectory::league/flysystem/unabletodeletedirectory",
            "spans": [
              [
                360,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToDeleteFile",
            "id": "metadata/import/php/league/flysystem/unabletodeletefile::league/flysystem/unabletodeletefile",
            "spans": [
              [
                406,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToMoveFile",
            "id": "metadata/import/php/league/flysystem/unabletomovefile::league/flysystem/unabletomovefile",
            "spans": [
              [
                447,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToReadFile",
            "id": "metadata/import/php/league/flysystem/unabletoreadfile::league/flysystem/unabletoreadfile",
            "spans": [
              [
                486,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToRetrieveMetadata",
            "id": "metadata/import/php/league/flysystem/unabletoretrievemetadata::league/flysystem/unabletoretrievemetadata",
            "spans": [
              [
                525,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToSetVisibility",
            "id": "metadata/import/php/league/flysystem/unabletosetvisibility::league/flysystem/unabletosetvisibility",
            "spans": [
              [
                572,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToWriteFile",
            "id": "metadata/import/php/league/flysystem/unabletowritefile::league/flysystem/unabletowritefile",
            "spans": [
              [
                616,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnixVisibility\\PortableVisibilityConverter",
            "id": "metadata/import/php/league/flysystem/unixvisibility/portablevisibilityconverter::league/flysystem/unixvisibility/portablevisibilityconverter",
            "spans": [
              [
                656,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnixVisibility\\VisibilityConverter",
            "id": "metadata/import/php/league/flysystem/unixvisibility/visibilityconverter::league/flysystem/unixvisibility/visibilityconverter",
            "spans": [
              [
                721,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\MimeTypeDetection\\FinfoMimeTypeDetector",
            "id": "metadata/import/php/league/mimetypedetection/finfomimetypedetector::league/mimetypedetection/finfomimetypedetector",
            "spans": [
              [
                778,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\MimeTypeDetection\\MimeTypeDetector",
            "id": "metadata/import/php/league/mimetypedetection/mimetypedetector::league/mimetypedetection/mimetypedetector",
            "spans": [
              [
                830,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports rewind",
            "id": "metadata/import/php/rewind::rewind",
            "spans": [
              [
                959,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports stream_copy_to_stream",
            "id": "metadata/import/php/stream_copy_to_stream::stream_copy_to_stream",
            "spans": [
              [
                980,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Throwable",
            "id": "metadata/import/php/throwable::throwable",
            "spans": [
              [
                877,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ZipArchive",
            "id": "metadata/import/php/ziparchive::ziparchive",
            "spans": [
              [
                892,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                2577,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                5129,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                1487,
                0
              ]
            ]
          }
        ],
        "type": "php"
      },
      {
        "analysis_gaps": [
          "flow-graph-limited",
          "flow-call-unavailable"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "\u003c?php\n\ndeclare(strict_types=1);\n\nnamespace League\\Flysystem\\ZipArchive;\n\nuse Generator;\nuse League\\Flysystem\\AdapterTestUtilities\\FilesystemAdapterTestCase;\nuse League\\Flysystem\\Config;\nuse League\\Flysystem\\FilesystemAdapter;\nuse League\\Flysystem\\UnableToCopyFile;\nuse League\\Flysystem\\UnableToCreateDirectory;\nuse League\\Flysystem\\UnableToDeleteDirectory;\nuse League\\Flysystem\\UnableToDeleteFile;\nuse League\\Flysystem\\UnableToMoveFile;\nuse League\\Flysystem\\UnableToSetVisibility;\nuse League\\Flysystem\\UnableToWriteFile;\nuse League\\Flysystem\\Visibility;\n\nuse function iterator_to_array;\n\n/**\n * @group zip\n */\nabstract class ZipArchiveAdapterTestCase extends FilesystemAdapterTestCase\n{\n    private const ARCHIVE = __DIR__ . '/test.zip';\n\n    /**\n     * @var StubZipArchiveProvider\n     */\n    private static $ar"
          },
          {
            "col": 69,
            "line": 51,
            "ln": 1261,
            "s": "dapter\n    {\n        static::$archiveProvider = new StubZipArchiveProvider(self::ARCHIVE);\n\n        return new ZipArchiveAdapter(self::$archiveProvider, static::getRoot())"
          },
          {
            "col": 42,
            "line": 63,
            "ln": 1570,
            "s": "ate_the_parent_directory(): void\n    {\n        $this-\u003eexpectException(UnableToCreateParentDirectory::class);\n\n        (new ZipArchiveAdapter(new Stu"
          },
          {
            "col": 23,
            "line": 80,
            "ln": 2131,
            "s": "()-\u003ewrite('directoryName/is-here/filename.txt', 'contents', new Config());\n    }\n\n    /**\n     * @test\n     *"
          },
          {
            "col": 16,
            "line": 96,
            "ln": 2608,
            "s": "is-\u003eadapter()-\u003ewriteStream('some/path.txt', $handle, new Config([Config::OPTION_VISIBILITY =\u003e Visibility::PUBLIC]));\n            is_resource($handle) \u0026\u0026 @fclose($handle);\n        });\n    }\n\n    public static function scenariosThatCauseWritesToFail(): Generator\n    {\n        yield \"writing a file "
          },
          {
            "col": 9,
            "line": 109,
            "ln": 3207,
            "s": "}];\n\n        yield \"writing a file fails to get the stream contents\" =\u003e [function () {\n            mock_function('stream_get_contents', false);\n   "
          },
          {
            "col": 55,
            "line": 123,
            "ln": 3643,
            "s": "ss);\n\n        $this-\u003eadapter()-\u003edelete('path.txt');\n    }\n\n    /**\n     * @test\n     */\n    public fun"
          },
          {
            "col": 14,
            "line": 134,
            "ln": 3850,
            "s": "-\u003egivenWeHaveAnExistingFile('one/a.txt');\n        $this-\u003egivenWeHaveAnExistingFile('one/b.txt');\n        $this-\u003egivenWeHaveAnExistingFile('two/a.txt');\n\n    "
          },
          {
            "col": 23,
            "line": 138,
            "ln": 4025,
            "s": "tor_to_array($this-\u003eadapter()-\u003elistContents('', true));\n        $this-\u003eassertCount(6, $items);\n\n        $this-\u003eadapter()-\u003edeleteDirectory('one');\n\n        $items = iterator_to_array($this-\u003eadapter()-\u003elistContent"
          },
          {
            "col": 20,
            "line": 235,
            "ln": 7015,
            "s": "nWeHaveAnExistingFile('somewhere/here.txt');\n\n        static::$archiveProvider-\u003estubbedZipArchive()-\u003efail"
          },
          {
            "col": 53,
            "line": 253,
            "ln": 7563,
            "s": "ss);\n\n        $this-\u003eadapter()-\u003ecopy('here.txt', 'here.txt', new Config);\n    }\n\n    /**\n     * @tes"
          },
          {
            "col": 17,
            "line": 273,
            "ln": 8025,
            "s": "ivenWeHaveAnExistingFile('nested/path-a.txt');\n        $this-\u003egivenWeHaveAnExistingFile('nested/path-b.txt');\n\n        $this-\u003eadapter()-\u003edeleteDirectory('nested');\n      "
          },
          {
            "col": 15,
            "line": 304,
            "ln": 8982,
            "s": "dapter-\u003ewrite(\n                'source.txt',\n                'contents to be moved',\n                new C"
          },
          {
            "col": 35,
            "line": 324,
            "ln": 9947,
            "s": "ontents to be moved', $adapter-\u003eread('destination.txt'));\n        });\n    }\n\n    protected static fu"
          },
          {
            "col": 21,
            "line": 330,
            "ln": 10105,
            "s": "exists(self::ARCHIVE)) {\n            return;\n        }\n\n        unlink(self::ARCHIVE);\n    }\n}\n"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "setUp",
              832
            ],
            [
              "tearDownAfterClass",
              1005
            ],
            [
              "tearDown",
              1108
            ],
            [
              "createFilesystemAdapter",
              1197
            ],
            [
              "getRoot",
              1445
            ],
            [
              "not_being_able_to_create_the_parent_directory",
              1533
            ],
            [
              "not_being_able_to_write_a_file_because_the_parent_directory_could_not_be_created",
              1856
            ],
            [
              "scenarios_that_cause_writing_a_file_to_fail",
              2305
            ],
            [
              "scenariosThatCauseWritesToFail",
              2802
            ],
            [
              "failing_to_delete_a_file",
              3403
            ],
            [
              "deleting_a_directory",
              3735
            ],
            [
              "deleting_a_prefixed_directory",
              4329
            ],
            [
              "list_root_directory",
              4933
            ],
            [
              "failing_to_create_a_directory",
              5425
            ],
            [
              "failing_to_create_a_directory_because_setting_visibility_fails",
              5743
            ],
            [
              "failing_to_delete_a_directory",
              6156
            ],
            [
              "setting_visibility_on_a_directory",
              6515
            ],
            [
              "failing_to_move_a_file",
              6943
            ],
            [
              "failing_to_copy_a_file",
              7330
            ],
            [
              "failing_to_set_visibility_because_the_file_does_not_exist",
              7677
            ],
            [
              "deleting_a_directory_with_files_in_it",
              7941
            ],
            [
              "failing_to_set_visibility_because_setting_it_fails",
              8352
            ],
            [
              "moving_a_file_and_overwriting",
              8826
            ],
            [
              "removeZipArchive",
              10028
            ]
          ],
          "imp": [
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "stream_with_contents"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "is_resource"
            ],
            [
              "",
              "fclose"
            ],
            [
              "",
              "mock_function"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "iterator_to_array"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "iterator_to_array"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "iterator_to_array"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "$this"
            ],
            [
              "",
              "iterator_to_array"
            ],
            [
              "",
              "iterator_to_array"
            ],
            [
              "",
              "iterator_to_array"
            ],
            [
              "",
              "$adapter"
            ],
            [
              "",
              "$adapter"
            ],
            [
              "",
              "iterator_to_array"
            ],
            [
              "",
              "$adapter"
            ],
            [
              "",
              "$adapter"
            ],
            [
              "",
              "$adapter"
            ],
            [
              "",
              "$adapter"
            ],
            [
              "",
              "$adapter"
            ],
            [
              "",
              "$adapter"
            ],
            [
              "",
              "$adapter"
            ],
            [
              "",
              "$adapter"
            ],
            [
              "",
              "file_exists"
            ],
            [
              "",
              "unlink"
            ],
            [
              "",
              "Generator"
            ],
            [
              "",
              "League\\Flysystem\\AdapterTestUtilities\\FilesystemAdapterTestCase"
            ],
            [
              "",
              "League\\Flysystem\\Config"
            ],
            [
              "",
              "League\\Flysystem\\FilesystemAdapter"
            ],
            [
              "",
              "League\\Flysystem\\UnableToCopyFile"
            ],
            [
              "",
              "League\\Flysystem\\UnableToCreateDirectory"
            ],
            [
              "",
              "League\\Flysystem\\UnableToDeleteDirectory"
            ],
            [
              "",
              "League\\Flysystem\\UnableToDeleteFile"
            ],
            [
              "",
              "League\\Flysystem\\UnableToMoveFile"
            ],
            [
              "",
              "League\\Flysystem\\UnableToSetVisibility"
            ],
            [
              "",
              "League\\Flysystem\\UnableToWriteFile"
            ],
            [
              "",
              "League\\Flysystem\\Visibility"
            ],
            [
              "",
              "iterator_to_array"
            ]
          ],
          "metrics": {
            "ast": {
              "call_count": 137,
              "max_array_length": 1,
              "max_depth": 21,
              "node_count": 2711,
              "op.concat": 1,
              "op.land": 1,
              "op.lnot": 1,
              "op_density.concat": 0,
              "op_density.land": 0,
              "op_density.lnot": 0
            },
            "binary": {
              "peak_region_bytes": 9216,
              "peak_region_entropy": 5.05
            },
            "binds": {
              "count": 8
            },
            "comments": {
              "base64": 3,
              "chars": 536,
              "count": 19,
              "fixme_count": 1,
              "lines": 61,
              "to_code_ratio": 0.22
            },
            "file": {
              "entropy": 4.9,
              "size": 10200
            },
            "functions": {
              "anonymous": 5,
              "avg_length_lines": 9.03,
              "avg_name_length": 30.71,
              "avg_nesting_depth": 0.17,
              "avg_param_name_length": 9,
              "avg_params": 0.03,
              "code_ratio": 0.67,
              "count": 25,
              "density": 8.63,
              "high_entropy_names": 17,
              "length_stddev": 5.68,
              "max_length_lines": 27,
              "max_nesting_depth": 1,
              "max_params": 1,
              "min_length_lines": 1,
              "nested": 3,
              "no_params_count": 28,
              "one_liners": 1
            },
            "identifiers": {
              "all_lowercase_ratio": 0.41,
              "all_uppercase_ratio": 0.07,
              "avg_entropy": 3.11,
              "avg_length": 18.03,
              "count": 384,
              "double_underscore_count": 1,
              "high_entropy_count": 35,
              "high_entropy_ratio": 0.38,
              "length_stddev": 13.27,
              "max_length": 80,
              "min_length": 4,
              "reuse_ratio": 0.24,
              "underscore_prefix_count": 1,
              "unique": 91
            },
            "imports": {
              "count": 13,
              "third_party_count": 13,
              "third_party_ratio": 1
            },
            "source": {
              "class_count": 1,
              "function_count": 24
            },
            "strings": {
              "avg_entropy": 2.8,
              "avg_length": 12.78,
              "bytes": 856,
              "count": 67,
              "empty_count": 7,
              "entropy_stddev": 0.67,
              "max_length": 68,
              "path_count": 3
            },
            "text": {
              "anonymous_function_ratio": 0.17,
              "avg_line_length": 29.36,
              "char_entropy": 4.9,
              "digit_ratio": 0,
              "empty_line_ratio": 0.2,
              "escape_density": 0.07,
              "identifier_density": 1.14,
              "identifiers_to_functions_ratio": 3.14,
              "import_density": 3.87,
              "imports_to_functions_ratio": 0.45,
              "last_line_length": 1,
              "line_length_stddev": 30.87,
              "lines": 336,
              "max_line_length": 131,
              "max_whitespace_run": 1,
              "normalized_function_count": 1.58,
              "normalized_import_count": 0.71,
              "normalized_string_count": 3.66,
              "normalized_unique_identifiers": 10.84,
              "repeated_char_sequences": 30,
              "space_count": 1962,
              "string_density": 0.2,
              "strings_to_functions_ratio": 2.31,
              "suspicious_comment_ratio": 0.16,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.07,
              "unicode_escape_count": 7,
              "unique_chars": 77,
              "whitespace_ratio": 0.23
            }
          },
          "tgt": [
            "$adapter",
            "$this",
            "fclose",
            "file_exists",
            "is_resource",
            "iterator_to_array",
            "mock_function",
            "stream_with_contents",
            "unlink"
          ]
        },
        "id": 5,
        "mol": "H₂(DbF)Md₂(PaPt)",
        "path": "7f1a2c5655be4c6e0d45574153bb5753c8afa4b7!!thephpleague-flysystem-ziparchive-7f1a2c5/ZipArchiveAdapterTestCase.php",
        "pid": 0,
        "risk": 4,
        "sha": "53d499c6434dd09176021052b233dbfbcf24936d12ae0344d76486528625f7c4",
        "sid": 4140273072,
        "size": 10200,
        "traits": [
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "High proportion of entropy-heavy identifiers",
            "id": "metadata/lang/source/naming/population::high-entropy-identifier-ratio"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Calls PHPUnit assert method",
            "id": "metadata/package/testing/presence/secret-fixture::phpunit-assertion-invocation",
            "spans": [
              [
                4089,
                19
              ]
            ]
          },
          {
            "conf": 0.96,
            "crit": 3,
            "desc": "PHP class extends a TestCase base class",
            "id": "metadata/package/testing/presence/secret-fixture::phpunit-testcase-class-inheritance",
            "spans": [
              [
                619,
                65
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Suppresses errors with the PHP @ operator",
            "id": "micro-behaviors/data/control-flow/error-handling/suppress::error-suppress-prefix",
            "spans": [
              [
                2761,
                16
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 3,
            "desc": "Calls PHP unlink()",
            "id": "micro-behaviors/fs/delete/file/library::php-unlink",
            "spans": [
              [
                10169,
                6
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Generator",
            "id": "metadata/import/php/generator::generator",
            "spans": [
              [
                77,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports iterator_to_array",
            "id": "metadata/import/php/iterator_to_array::iterator_to_array",
            "spans": [
              [
                568,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\AdapterTestUtilities\\FilesystemAdapterTestCase",
            "id": "metadata/import/php/league/flysystem/adaptertestutilities/filesystemadaptertestcase::league/flysystem/adaptertestutilities/filesystemadaptertestcase",
            "spans": [
              [
                92,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\Config",
            "id": "metadata/import/php/league/flysystem/config::league/flysystem/config",
            "spans": [
              [
                161,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\FilesystemAdapter",
            "id": "metadata/import/php/league/flysystem/filesystemadapter::league/flysystem/filesystemadapter",
            "spans": [
              [
                190,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToCopyFile",
            "id": "metadata/import/php/league/flysystem/unabletocopyfile::league/flysystem/unabletocopyfile",
            "spans": [
              [
                230,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToCreateDirectory",
            "id": "metadata/import/php/league/flysystem/unabletocreatedirectory::league/flysystem/unabletocreatedirectory",
            "spans": [
              [
                269,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToDeleteDirectory",
            "id": "metadata/import/php/league/flysystem/unabletodeletedirectory::league/flysystem/unabletodeletedirectory",
            "spans": [
              [
                315,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToDeleteFile",
            "id": "metadata/import/php/league/flysystem/unabletodeletefile::league/flysystem/unabletodeletefile",
            "spans": [
              [
                361,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToMoveFile",
            "id": "metadata/import/php/league/flysystem/unabletomovefile::league/flysystem/unabletomovefile",
            "spans": [
              [
                402,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToSetVisibility",
            "id": "metadata/import/php/league/flysystem/unabletosetvisibility::league/flysystem/unabletosetvisibility",
            "spans": [
              [
                441,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\UnableToWriteFile",
            "id": "metadata/import/php/league/flysystem/unabletowritefile::league/flysystem/unabletowritefile",
            "spans": [
              [
                485,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports League\\Flysystem\\Visibility",
            "id": "metadata/import/php/league/flysystem/visibility::league/flysystem/visibility",
            "spans": [
              [
                525,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                3255,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                1618,
                0
              ]
            ]
          }
        ],
        "type": "php"
      }
    ],
    "v": 8
  }
}