{
  "ml": {
    "analyzed_at": "2026-11-19T18:01:58Z",
    "files": [
      {
        "lvl": -1,
        "prob": 0.010173529,
        "id": 0
      },
      {
        "lvl": -1,
        "id": 1
      },
      {
        "lvl": -1,
        "id": 2
      },
      {
        "lvl": -1,
        "id": 3
      },
      {
        "lvl": -1,
        "id": 4
      },
      {
        "lvl": -1,
        "id": 5
      },
      {
        "lvl": -1,
        "id": 6
      },
      {
        "lvl": -1,
        "id": 7
      },
      {
        "lvl": -1,
        "id": 8
      },
      {
        "lvl": -1,
        "id": 9
      },
      {
        "lvl": -1,
        "id": 10
      },
      {
        "lvl": -1,
        "id": 11
      },
      {
        "lvl": -1,
        "id": 12
      },
      {
        "lvl": -1,
        "id": 13
      },
      {
        "lvl": -1,
        "id": 14
      },
      {
        "lvl": -1,
        "id": 15
      },
      {
        "lvl": -1,
        "id": 16
      },
      {
        "lvl": -1,
        "id": 17
      },
      {
        "lvl": -1,
        "id": 18
      }
    ],
    "lvl": -1,
    "mods": [
      {
        "cls": 0
      }
    ],
    "prob": 0.010173529,
    "v": "7",
    "version": "v20.20"
  },
  "path": "apache_ranger-0.0.6-py3-none-any.whl",
  "raw": {
    "files": [
      {
        "depth": 0,
        "facts": {
          "metrics": {
            "archive": {
              "compressed_size": 23434,
              "compression.method_counts.deflate": 22,
              "compression.ratio": 0.3,
              "crc_collision_count": 2,
              "directory_count": 0,
              "double_extension_count": 0,
              "duplicate_member_count": 0,
              "entry_comment_count": 0,
              "eocd_signature_count": 1,
              "executable_count": 0,
              "extra_field_size": 0,
              "file_count": 22,
              "format.regular_count": 22,
              "hidden_file_count": 0,
              "homoglyph_filename_count": 0,
              "local_header_signature_count": 22,
              "max_filename_length": 48,
              "member_count": 22,
              "misplaced_executable_count": 0,
              "nested_archive_count": 0,
              "noise_file_count": 0,
              "path_traversal_count": 0,
              "rtlo_filename_count": 0,
              "script_count": 17,
              "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": 9,
              "timing.mtime_dominant_ratio": 0.41,
              "timing.mtime_spread_seconds": 27739380,
              "timing.mtime_unique_count": 5,
              "timing.mtime_unique_ratio": 0.23,
              "timing.sentinel_mtime_count": 0,
              "uncompressed_size": 79425,
              "unicode_filename_count": 0,
              "zip_bomb_ratio": 6.28
            },
            "binary": {
              "peak_region_bytes": 24576,
              "peak_region_entropy": 7.83
            },
            "consistency": {
              "metadata_identity_mismatch": 0,
              "self_dependency": 0
            },
            "file": {
              "entropy": 7.91,
              "size": 26714
            },
            "whl": {
              "native_extension_count": 0
            }
          }
        },
        "id": 0,
        "ident": {
          "name": {
            "value": "apache_ranger",
            "source": "whl.distribution",
            "verified": false
          },
          "urls": [
            {
              "url": "https://github.com/apache/ranger/tree/master/intg/src/main/python",
              "kind": "homepage",
              "source": "whl.homepage"
            }
          ],
          "trust": "unsigned",
          "emails": [
            "dev@ranger.apache.org"
          ],
          "authors": [
            {
              "name": "Apache Ranger",
              "role": "author",
              "email": "dev@ranger.apache.org",
              "source": "whl.authors"
            }
          ],
          "version": {
            "value": "0.0.6",
            "source": "whl.version",
            "verified": false
          },
          "description": {
            "value": "Python client for Apache Ranger 2.3.0",
            "source": "whl.description",
            "verified": false
          }
        },
        "mol": "H₂(Cm₇Db₅)Md₄(In₄NePa₄Pt)",
        "path": "apache_ranger-0.0.6-py3-none-any.whl",
        "risk": 16,
        "sha": "4c19afe72a69f0e904f1e999492f5fbef2e9991dd52ca58f6327af8295238e31",
        "size": 26714,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Archive contains at least ten members",
            "id": "metadata/archive/layout::archive-at-least-10-members"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports os",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/os::os"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports Response from requests",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/requests/response::response"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports Session from requests",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/requests/session::session"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports requests",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/requests::requests"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Session-named object request method call",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/lang/source/syntax/call/member::python-session-method-call"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PyPI metadata declares an HTTP client dependency",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/dependencies/network::pypi-http-client-dependency"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares Markdown package description",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/description/presence::pkginfo-markdown-description"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares Python runtime dependencies",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/ecosystem::pkginfo-requires-dist"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares supported Python versions",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/runtime::pkginfo-requires-python"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Session method call with an HTTP client import",
            "from": [
              {
                "file": 4,
                "line": 32,
                "off": 1451
              }
            ],
            "id": "micro-behaviors/communications/http/client/library::python-session-method-call",
            "uses": [
              2,
              3,
              4,
              5
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python HTTP client and response-body access coexist",
            "from": [
              {
                "file": 4,
                "line": 32,
                "off": 1451
              }
            ],
            "id": "micro-behaviors/communications/http/client/response-body::python-client-response-body-cooccurrence",
            "uses": [
              2,
              3,
              4,
              12
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Python response body member access",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/communications/http/client/response-body::python-response-body-member-reference"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Calls POST on session-named receiver",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/communications/http/post::session-post-call",
            "mbc": "C0002"
          },
          {
            "conf": 0.84,
            "crit": 3,
            "desc": "Source HTTP POST method literal",
            "from": [
              {
                "file": 18
              }
            ],
            "id": "micro-behaviors/communications/http/post::source-post-method-literal",
            "mbc": "C0002"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Quoted HTTP POST method token",
            "from": [
              {
                "file": 18
              }
            ],
            "id": "micro-behaviors/communications/http/request/reference::quoted-post-token"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Loop tests HTTP response status code",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/communications/http/response::http-loop-status-code-check"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python comment contains a URL",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/communications/url/reference::python-comment-url-reference"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "group collection URL path segment",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/communications/url/resource-path/identity::group-collection-path-token"
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Python mapping reads an assets key",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/collection/map::mapping-get-assets-key"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python message-key lookup",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/data/collection/map::mapping-get-message-key"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Calls a JSON body reader method",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/data/parse/json::python-json-body-method-call"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Mutates params dictionary or map entries",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/data/property/write::mutated-params-map-write"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Serializes data with Python json.dumps()",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/data/serialize/json::json-dumps-call"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Assigns variable to 257-999 numeric bound",
            "from": [
              {
                "file": 18
              }
            ],
            "id": "micro-behaviors/data/string/assembly::variable-bound-257-to-999"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Archive contains a script member",
            "id": "metadata/archive/layout::archive-contains-script-member"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Archive has no path traversal members",
            "id": "metadata/archive/member/path::no-path-traversal-members"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Source archive member context",
            "id": "metadata/build/archive::source-archive-member"
          },
          {
            "conf": 0.99,
            "crit": 2,
            "desc": "Wheel archive contains Python source member",
            "id": "metadata/build/archive::wheel-contains-python-source"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Overall entropy at most 5.0",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/file/entropy::overall-entropy-at-most-five"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Script peak-entropy region mass at least 1KB",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/file/entropy::script-peak-entropy-region-mass-at-least-1k"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Text, document, or config extension",
            "from": [],
            "id": "metadata/file/extension/identity::doc-or-config-extension"
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "JSON file extension",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/file/extension/identity::json-extension"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "JSON, text, or markdown filename extension",
            "from": [],
            "id": "metadata/file/extension/identity::json-txt-md-basename"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "File uses a Python artifact extension",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/file/extension/identity::py"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source, stub, or bytecode extension",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/file/extension/identity::python-artifact-extension"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source file extension (.py only)",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/file/extension/identity::python-source-extension"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Python wheel archive basename",
            "id": "metadata/file/extension/identity::python-wheel-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Short plain script basename token",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/file/extension/token-shape::bare-alphanumeric-script-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "File has 30 or more lines",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/file/line::file-has-30-plus-lines"
          },
          {
            "conf": 0.65,
            "crit": 2,
            "desc": "Python file under 120 lines",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/file/line::python-under-120-lines"
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "Python package __init__.py file",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/file/size::init-py-file"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerServiceException from apache_ranger.exceptions",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/exceptions/rangerserviceexception::rangerserviceexception"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.exceptions",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/exceptions::apache_ranger/exceptions"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerBase from apache_ranger.model.ranger_base",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_base/rangerbase::rangerbase"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerBaseModelObject from apache_ranger.model.ranger_base",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_base/rangerbasemodelobject::rangerbasemodelobject"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_base",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_base::apache_ranger/model/ranger_base"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerPolicy from apache_ranger.model.ranger_policy",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_policy/rangerpolicy::rangerpolicy"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerPolicyResource from apache_ranger.model.ranger_policy",
            "from": [
              {
                "file": 14
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_policy/rangerpolicyresource::rangerpolicyresource"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerValiditySchedule from apache_ranger.model.ranger_policy",
            "from": [
              {
                "file": 16
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_policy/rangervalidityschedule::rangervalidityschedule"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_policy",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_policy::apache_ranger/model/ranger_policy"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerRole from apache_ranger.model.ranger_role",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_role/rangerrole::rangerrole"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_role",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_role::apache_ranger/model/ranger_role"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerSecurityZone from apache_ranger.model.ranger_security_zone",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_security_zone/rangersecurityzone::rangersecurityzone"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_security_zone",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_security_zone::apache_ranger/model/ranger_security_zone"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerService from apache_ranger.model.ranger_service",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_service/rangerservice::rangerservice"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_service",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_service::apache_ranger/model/ranger_service"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerServiceDef from apache_ranger.model.ranger_service_def",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_service_def/rangerservicedef::rangerservicedef"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_service_def",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_service_def::apache_ranger/model/ranger_service_def"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerServiceResource from apache_ranger.model.ranger_service_resource",
            "from": [
              {
                "file": 15
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_service_resource/rangerserviceresource::rangerserviceresource"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_service_resource",
            "from": [
              {
                "file": 15
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_service_resource::apache_ranger/model/ranger_service_resource"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerServiceTags from apache_ranger.model.ranger_service_tags",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_service_tags/rangerservicetags::rangerservicetags"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_service_tags",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_service_tags::apache_ranger/model/ranger_service_tags"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerTag from apache_ranger.model.ranger_tag",
            "from": [
              {
                "file": 15
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_tag/rangertag::rangertag"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_tag",
            "from": [
              {
                "file": 15
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_tag::apache_ranger/model/ranger_tag"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerTagDef from apache_ranger.model.ranger_tagdef",
            "from": [
              {
                "file": 15
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_tagdef/rangertagdef::rangertagdef"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_tagdef",
            "from": [
              {
                "file": 15
              }
            ],
            "id": "metadata/import/python/apache_ranger/model/ranger_tagdef::apache_ranger/model/ranger_tagdef"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.utils",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/apache_ranger/utils::apache_ranger/utils"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports enum",
            "from": [
              {
                "file": 18
              }
            ],
            "id": "metadata/import/python/enum::enum"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports json",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/json::json"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports logging",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/logging::logging"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Mandatory-language vocabulary",
            "from": [],
            "id": "metadata/lang/natural/vocabulary/content-word::mandatory-word-english"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "uses": [
              113,
              114,
              117,
              118,
              119
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python shebang line (unversioned)",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/lang/shebang::python"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "High comment-to-code ratio",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/lang/source/comment::high-comment-to-code-ratio"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "File has 50 or more functions",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/lang/source/function::many-functions-50-generic"
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "Low identifier reuse ratio",
            "from": [
              {
                "file": 13
              }
            ],
            "id": "metadata/lang/source/naming/population::low-identifier-reuse"
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "Source contains for-loop syntax",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/lang/source/syntax/control-flow::for-loop-content"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Declares Python package summary",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/description/presence::pkginfo-summary-field"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Declares a Trove classifier",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/ecosystem::pkginfo-classifier-field"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Declares Python Core Metadata version",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/ecosystem::pkginfo-core-metadata"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "PyPI package declares name, version, summary",
            "from": [
              {
                "file": 1,
                "line": 2,
                "off": 22
              }
            ],
            "id": "metadata/package/ecosystem::pypi-basic-metadata",
            "uses": [
              78,
              80,
              95,
              96
            ]
          },
          {
            "conf": 0.94,
            "crit": 2,
            "desc": "PyPI package declares Python and dependencies",
            "from": [
              {
                "file": 1,
                "line": 14,
                "off": 483
              }
            ],
            "id": "metadata/package/ecosystem::pypi-runtime-metadata",
            "uses": [
              8,
              9,
              80
            ]
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "Python package archive metadata member",
            "id": "metadata/package/ecosystem::python-package-metadata-member"
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "Python wheel archive metadata",
            "id": "metadata/package/ecosystem::wheel-archive-member"
          },
          {
            "conf": 0.97,
            "crit": 2,
            "desc": "OpenClaw security test member",
            "from": [
              {
                "file": 11
              }
            ],
            "id": "metadata/package/files/ecosystem::openclaw-security-test-member"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Wheel has no start.sh launcher member",
            "id": "metadata/package/files/included::wheel-lacks-start-shell"
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "PKG-INFO has UNKNOWN platform",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/files/wheel-sdist::unknown-platform"
          },
          {
            "conf": 0.98,
            "crit": 2,
            "desc": "Wheel uses platform-independent tag",
            "id": "metadata/package/files/wheel-sdist::wheel-any-platform-tag"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Wheel contains a distribution-metadata member",
            "id": "metadata/package/files/wheel-sdist::wheel-dist-info-member"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Wheel has a file outside dist-info",
            "id": "metadata/package/files/wheel-sdist::wheel-non-dist-info-file-member"
          },
          {
            "conf": 0.92,
            "crit": 2,
            "desc": "Wheel contains a Python-code member",
            "id": "metadata/package/files/wheel-sdist::wheel-python-code-member"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Apache Software Foundation license header",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/package/license::apache-asf-source-header"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Apache License text",
            "from": [],
            "id": "metadata/package/license::apache-license-text"
          },
          {
            "conf": 0.6,
            "crit": 2,
            "desc": "Copyright notice",
            "from": [],
            "id": "metadata/package/license::copyright-word"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Declares Python package name",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/name/presence::pkginfo-name-field"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Declares Python package version",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/version::pkginfo-version-field"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Grant or authorization verb text",
            "from": [],
            "id": "metadata/permission/prose::permission-grant-verb-english"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Permission or access term",
            "from": [],
            "id": "metadata/permission/prose::permission-permission-term-english"
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "except keyword",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/data/control-flow/error-handling/catch::except-keyword-dup",
            "mbc": "C0027"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "For/foreach loop over a collection",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/data/control-flow/loop/collection::record-loop-header"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Calls a path join or combine API",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/fs/path-ops::source-path-builder-call"
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "Reference to an executable under /usr/bin",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/fs/path/binary::usr-bin-executable-path"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Top-level Python import statement line",
            "from": [
              {
                "file": 18
              }
            ],
            "id": "micro-behaviors/process/interpreter/python::module-import-statement"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Archive contains at least six members",
            "id": "metadata/archive/layout::archive-at-least-6-members"
          },
          {
            "conf": 0.82,
            "crit": 1,
            "desc": "Archive member filename looks text-like",
            "id": "metadata/archive/member/extension::archive-member-text-like-name"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "Python import-from statement",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/module::python-import-from-statement"
          },
          {
            "conf": 1.0,
            "crit": 1,
            "desc": "Python imports os module",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/module::python-import-os"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Control-action verb followed by alphabetic text",
            "from": [],
            "id": "metadata/lang/natural/vocabulary/content-word::control-action-prose-fragment"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-access verb token",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/lang/natural/vocabulary/content-word::data-access-verb-token"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-transfer verb token",
            "from": [
              {
                "file": 18
              }
            ],
            "id": "metadata/lang/natural/vocabulary/content-word::data-transfer-verb-token"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Directive or message vocabulary token",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/lang/natural/vocabulary/content-word::directive-or-message-word-token"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "English edit-action verb token",
            "from": [
              {
                "file": 18
              }
            ],
            "id": "metadata/lang/natural/vocabulary/content-word::english-edit-verb-token"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"that\"",
            "from": [],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-3"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"have\"",
            "from": [],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-4"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7"
          },
          {
            "conf": 0.95,
            "crit": 1,
            "desc": "Python class declared with a base class",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/lang/source/declaration::class-with-base"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Uppercase GET string literal",
            "from": [
              {
                "file": 18
              }
            ],
            "id": "metadata/lang/source/literal/string/label::uppercase-get-literal"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Uppercase PUT string literal",
            "from": [
              {
                "file": 18
              }
            ],
            "id": "metadata/lang/source/literal/string/label::uppercase-put-literal"
          },
          {
            "conf": 0.6,
            "crit": 1,
            "desc": "Literal has Service or Daemon suffix",
            "from": [
              {
                "file": 12
              }
            ],
            "id": "metadata/lang/source/literal/string/shape::service-daemon-suffixed-literal"
          },
          {
            "conf": 0.4,
            "crit": 1,
            "desc": "Result name with field or assignment separator",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/lang/source/shape::result-field-or-assignment-syntax"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Shallow agent skill bundle script file",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/package/agent-skill::agent-skill-bundle-script-file"
          },
          {
            "conf": 0.65,
            "crit": 1,
            "desc": "Package metadata has a 0.0.x version marker",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/versioning/scheme::pkginfo-lowest-version"
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "Python parses HTTP response body as JSON",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/communications/http/client/response-body::python-response-json-call"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "localhost hostname literal",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "micro-behaviors/communications/ip/endpoint::localhost-hostname-text"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "User-home path prefix",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/fs/path/personal::source-user-home-path"
          },
          {
            "conf": 0.86,
            "crit": 1,
            "desc": "Source references a privileged account",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/os/privilege/check::source-privileged-account-reference"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Call passes the bare string 'op'",
            "from": [
              {
                "file": 15
              }
            ],
            "id": "micro-behaviors/process/argument/subcommand::onepassword-cli-name"
          }
        ],
        "type": "whl"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "Metadata-Version: 2.1\nName: apache-ranger\nVersion: 0.0.6\nSummary: Python client for Apache Ranger 2.3.0\nHome-page: https://github.com/apache/ranger/tree/master/intg/src/main/python\nAuthor: Apache Ran"
          },
          {
            "col": 47,
            "line": 12,
            "ln": 419,
            "s": "Software License\nClassifier: Operating System :: OS Independent\nRequires-Python: \u003e=2.7\nDescription-Content-Type: text/markdown\nRequires-Dist: requests (\u003e=2.24)\n\n\u003c!---\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements.  See the NOTICE file\n"
          },
          {
            "col": 52,
            "line": 69,
            "ln": 1984,
            "s": "ger admin\nranger_url  = 'http://localhost:6080'\nranger_auth = ('admin', 'rangerR0cks!')\n\n# For Kerberos a"
          }
        ],
        "depth": 1,
        "facts": {
          "metrics": {
            "binary": {
              "peak_region_bytes": 4465,
              "peak_region_entropy": 4.98
            },
            "consistency": {
              "metadata_identity_mismatch": 0,
              "self_dependency": 0
            },
            "file": {
              "entropy": 5.04,
              "size": 4465
            }
          }
        },
        "id": 1,
        "mol": "Md(Pa₄)",
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger-0.0.6.dist-info/METADATA",
        "pid": 0,
        "refs": [
          {
            "kind": "dependency",
            "off": 561,
            "to": "pkg:pypi/requests?version_requirement=%3E%3D2.24"
          }
        ],
        "risk": 5,
        "sha": "8b680ec36fd0b94f687fa7c272e9ef230632bd057dab6da6edd4df1c0bd3ce7c",
        "sid": 10770049906,
        "size": 4465,
        "supp": [
          {
            "by": [
              {
                "id": "value"
              }
            ],
            "crit": "notable",
            "id": "metadata/package/description/presence::pkginfo-no-summary",
            "kind": "unless"
          }
        ],
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "PyPI metadata declares an HTTP client dependency",
            "id": "metadata/package/dependencies/network::pypi-http-client-dependency"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares Markdown package description",
            "id": "metadata/package/description/presence::pkginfo-markdown-description",
            "spans": [
              [
                506,
                39
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares Python runtime dependencies",
            "id": "metadata/package/ecosystem::pkginfo-requires-dist",
            "spans": [
              [
                546,
                32
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares supported Python versions",
            "id": "metadata/package/runtime::pkginfo-requires-python",
            "spans": [
              [
                483,
                22
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Declares Python package summary",
            "id": "metadata/package/description/presence::pkginfo-summary-field",
            "spans": [
              [
                57,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Declares a Trove classifier",
            "id": "metadata/package/ecosystem::pkginfo-classifier-field"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Declares Python Core Metadata version",
            "id": "metadata/package/ecosystem::pkginfo-core-metadata"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "PyPI package declares name, version, summary",
            "id": "metadata/package/ecosystem::pypi-basic-metadata",
            "spans": [
              [
                57,
                0
              ]
            ],
            "uses": [
              4,
              6,
              10,
              11
            ]
          },
          {
            "conf": 0.94,
            "crit": 2,
            "desc": "PyPI package declares Python and dependencies",
            "id": "metadata/package/ecosystem::pypi-runtime-metadata",
            "spans": [
              [
                483,
                0
              ]
            ],
            "uses": [
              2,
              3,
              6
            ]
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "PKG-INFO has UNKNOWN platform",
            "id": "metadata/package/files/wheel-sdist::unknown-platform"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Declares Python package name",
            "id": "metadata/package/name/presence::pkginfo-name-field",
            "spans": [
              [
                22,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Declares Python package version",
            "id": "metadata/package/version::pkginfo-version-field",
            "spans": [
              [
                42,
                0
              ]
            ]
          },
          {
            "conf": 0.65,
            "crit": 1,
            "desc": "Package metadata has a 0.0.x version marker",
            "id": "metadata/package/versioning/scheme::pkginfo-lowest-version"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "localhost hostname literal",
            "id": "micro-behaviors/communications/ip/endpoint::localhost-hostname-text",
            "spans": [
              [
                2016,
                0
              ]
            ]
          }
        ],
        "type": "pkg_info"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "#!/usr/bin/env python\n\n#\n# Licensed to the Apache Software Foundation (ASF) under one or more\n# contributor license agreements.  See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"License\"); you may not use this file except in compliance with\n# the License.  You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n"
          }
        ],
        "depth": 1,
        "facts": {
          "metrics": {
            "ast": {
              "call_count": 0,
              "max_depth": 1,
              "node_count": 17
            },
            "binary": {
              "peak_region_bytes": 802,
              "peak_region_entropy": 4.83
            },
            "comments": {
              "chars": 769,
              "count": 16,
              "empty": 3,
              "high_entropy": 2,
              "lines": 13,
              "to_code_ratio": 3.25,
              "url_count": 1
            },
            "file": {
              "entropy": 4.83,
              "size": 802
            },
            "text": {
              "avg_line_length": 46.18,
              "char_entropy": 4.83,
              "digit_ratio": 0.01,
              "empty_line_ratio": 0.06,
              "last_line_length": 32,
              "line_length_stddev": 29.03,
              "lines": 17,
              "max_line_length": 74,
              "max_whitespace_run": 2,
              "space_count": 115,
              "suspicious_comment_ratio": 0.13,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.1,
              "unique_chars": 58,
              "whitespace_ratio": 0.16
            }
          }
        },
        "id": 2,
        "mol": "H(Cm)",
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/__init__.py",
        "pid": 0,
        "risk": 3,
        "sha": "0bd9078c8025db64841b27a85cadcbe105b406cc938f1b0873d1fbba6a0ac0a4",
        "sid": 1651722722,
        "size": 802,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python comment contains a URL",
            "id": "micro-behaviors/communications/url/reference::python-comment-url-reference",
            "spans": [
              [
                439,
                9
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Overall entropy at most 5.0",
            "id": "metadata/file/entropy::overall-entropy-at-most-five"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "File uses a Python artifact extension",
            "id": "metadata/file/extension/identity::py"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source, stub, or bytecode extension",
            "id": "metadata/file/extension/identity::python-artifact-extension"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source file extension (.py only)",
            "id": "metadata/file/extension/identity::python-source-extension"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Short plain script basename token",
            "id": "metadata/file/extension/token-shape::bare-alphanumeric-script-basename"
          },
          {
            "conf": 0.65,
            "crit": 2,
            "desc": "Python file under 120 lines",
            "id": "metadata/file/line::python-under-120-lines"
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "Python package __init__.py file",
            "id": "metadata/file/size::init-py-file"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                178,
                0
              ]
            ],
            "uses": [
              15,
              16,
              17,
              18,
              19
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python shebang line (unversioned)",
            "id": "metadata/lang/shebang::python",
            "spans": [
              [
                0,
                0
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "High comment-to-code ratio",
            "id": "metadata/lang/source/comment::high-comment-to-code-ratio"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Apache Software Foundation license header",
            "id": "metadata/package/license::apache-asf-source-header",
            "spans": [
              [
                27,
                0
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "Reference to an executable under /usr/bin",
            "id": "micro-behaviors/fs/path/binary::usr-bin-executable-path",
            "spans": [
              [
                2,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-access verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-access-verb-token",
            "spans": [
              [
                414,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Directive or message vocabulary token",
            "id": "metadata/lang/natural/vocabulary/content-word::directive-or-message-word-token",
            "spans": [
              [
                137,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                39,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                765,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                178,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                161,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                168,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Shallow agent skill bundle script file",
            "id": "metadata/package/agent-skill::agent-skill-bundle-script-file"
          }
        ],
        "type": "python"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "#!/usr/bin/env python\n\n#\n# Licensed to the Apache Software Foundation (ASF) under one or more\n# contributor license agreements.  See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"License\"); you may not use this file except in compliance with\n# the License.  You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n"
          }
        ],
        "depth": 1,
        "facts": {
          "metrics": {
            "ast": {
              "call_count": 0,
              "max_depth": 1,
              "node_count": 17
            },
            "binary": {
              "peak_region_bytes": 802,
              "peak_region_entropy": 4.83
            },
            "comments": {
              "chars": 769,
              "count": 16,
              "empty": 3,
              "high_entropy": 2,
              "lines": 13,
              "to_code_ratio": 3.25,
              "url_count": 1
            },
            "file": {
              "entropy": 4.83,
              "size": 802
            },
            "text": {
              "avg_line_length": 46.18,
              "char_entropy": 4.83,
              "digit_ratio": 0.01,
              "empty_line_ratio": 0.06,
              "last_line_length": 32,
              "line_length_stddev": 29.03,
              "lines": 17,
              "max_line_length": 74,
              "max_whitespace_run": 2,
              "space_count": 115,
              "suspicious_comment_ratio": 0.13,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.1,
              "unique_chars": 58,
              "whitespace_ratio": 0.16
            }
          }
        },
        "id": 3,
        "mol": "H(Cm)",
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/client/__init__.py",
        "pid": 0,
        "risk": 3,
        "sha": "0bd9078c8025db64841b27a85cadcbe105b406cc938f1b0873d1fbba6a0ac0a4",
        "sid": 1651722722,
        "size": 802,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python comment contains a URL",
            "id": "micro-behaviors/communications/url/reference::python-comment-url-reference",
            "spans": [
              [
                439,
                9
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Overall entropy at most 5.0",
            "id": "metadata/file/entropy::overall-entropy-at-most-five"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "File uses a Python artifact extension",
            "id": "metadata/file/extension/identity::py"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source, stub, or bytecode extension",
            "id": "metadata/file/extension/identity::python-artifact-extension"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source file extension (.py only)",
            "id": "metadata/file/extension/identity::python-source-extension"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Short plain script basename token",
            "id": "metadata/file/extension/token-shape::bare-alphanumeric-script-basename"
          },
          {
            "conf": 0.65,
            "crit": 2,
            "desc": "Python file under 120 lines",
            "id": "metadata/file/line::python-under-120-lines"
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "Python package __init__.py file",
            "id": "metadata/file/size::init-py-file"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                178,
                0
              ]
            ],
            "uses": [
              15,
              16,
              17,
              18,
              19
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python shebang line (unversioned)",
            "id": "metadata/lang/shebang::python",
            "spans": [
              [
                0,
                0
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "High comment-to-code ratio",
            "id": "metadata/lang/source/comment::high-comment-to-code-ratio"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Apache Software Foundation license header",
            "id": "metadata/package/license::apache-asf-source-header",
            "spans": [
              [
                27,
                0
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "Reference to an executable under /usr/bin",
            "id": "micro-behaviors/fs/path/binary::usr-bin-executable-path",
            "spans": [
              [
                2,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-access verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-access-verb-token",
            "spans": [
              [
                414,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Directive or message vocabulary token",
            "id": "metadata/lang/natural/vocabulary/content-word::directive-or-message-word-token",
            "spans": [
              [
                137,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                39,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                765,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                178,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                161,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                168,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Shallow agent skill bundle script file",
            "id": "metadata/package/agent-skill::agent-skill-bundle-script-file"
          }
        ],
        "type": "python"
      },
      {
        "analysis_gaps": [
          "flow-graph-limited",
          "flow-field-unavailable",
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "#!/usr/bin/env python\n\n#\n# Licensed to the Apache Software Foundation (ASF) under one or more\n# contributor license agreements.  See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under"
          },
          {
            "col": 66,
            "line": 8,
            "ln": 375,
            "s": " with\n# the License.  You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under "
          },
          {
            "col": 19,
            "line": 16,
            "ln": 717,
            "s": "for the specific language governing permissions and\n# limitations under the License.\n\n\nimport json\nimport logging\nimport os\nfrom apache_ranger.exceptions                 import RangerServiceException\nfrom apache_ranger.model.ranger_base          import RangerBase\nfrom apache_ranger.model.ranger_policy        import RangerPolicy\nfrom apache_ranger.model.ranger_role          import RangerRole\nfrom apache_ranger.model.ranger_security_zone import RangerSecurityZone\nfrom apache_ranger.model.ranger_service       import RangerService\nfrom apache_ranger.model.ranger_service_def   import RangerServiceDef\nfrom apache_ranger.model.ranger_service_tags  import RangerServiceTags\nfrom apache_ranger.utils                      import *\nfrom requests                                 import Session\nfrom requests                                 import Response\n\nLOG = logging.getLogger(__name__)\n\n\nclass RangerClient:\n    def __init__(self, url, auth):\n        self.client_http = RangerCl"
          },
          {
            "col": 56,
            "line": 208,
            "ln": 8852,
            "s": "e):\n        if params is None:\n            params = {}\n\n        params['serviceName'] = serviceName\n\n        resp = self.client_http.call_api(RangerClient.CREATE_ROLE, params, role)\n\n        return type_coerce(resp,"
          },
          {
            "col": 24,
            "line": 262,
            "ln": 11163,
            "s": "rce(resp, RESTResponse)\n\n\n    # Admin APIs\n    def import_service_tags(self, serviceName, svcTags):\n "
          },
          {
            "col": 32,
            "line": 315,
            "ln": 13302,
            "s": " API(URI_SERVICEDEF, HttpMethod.POST, HTTPStatus.OK)\n    UPDATE_SERVICEDEF_BY_ID   = API(URI_SERVICE"
          },
          {
            "col": 38,
            "line": 318,
            "ln": 13572,
            "s": "RI_SERVICEDEF_BY_ID, HttpMethod.DELETE, HTTPStatus.NO_CONTENT)\n    DELETE_SERVICEDEF_BY_NAME = API(URI"
          },
          {
            "col": 68,
            "line": 368,
            "ln": 17516,
            "s": "ELETE, HTTPStatus.NO_CONTENT)\n\n\nclass Message(RangerBase):\n    def __init__(self, attrs=None):\n        if attr"
          },
          {
            "col": 11,
            "line": 379,
            "ln": 17756,
            "s": "lf.rbKey     = attrs.get('rbKey')\n        self.message   = attrs.get('message')\n        self.objectId  = attrs.get('objectId')\n        self.fieldName = attrs.get('fieldName')\n\n\nclass RESTResponse(RangerBase"
          },
          {
            "col": 64,
            "line": 412,
            "ln": 18803,
            "s": "t-type': api.produces } }\n\n        if query_params:\n            params['params'] = query_params\n\n        if request_data:\n            params['data'] = json.dumps(request_data)\n\n        path = os.path.join(self.url, api.path)\n\n        if LOG.isEnabledFor(logging.DEBUG):\n            LOG.debug(\"-------"
          },
          {
            "col": 1,
            "line": 430,
            "ln": 19357,
            "s": "        if api.method == HttpMethod.GET:\n            response = self.session.get(path, **params)\n        elif api.method == HttpMethod.POST:\n            response = self.session.post(path, **params)\n        elif api.method == HttpMethod.PUT:\n            response = self.session.put(path, **params)\n        elif"
          },
          {
            "col": 5,
            "line": 437,
            "ln": 19704,
            "s": "        response = self.session.delete(path, **params)\n\n        if LOG.isEnabledFor(logging.DEBUG):\n  "
          },
          {
            "col": 5,
            "line": 446,
            "ln": 20023,
            "s": "            if response.status_code == HTTPStatus.NO_CONTENT or response.content is None:\n                    ret = None\n                else:\n                    if LOG.isEnabledFor(logging.DEBUG):\n         "
          },
          {
            "col": 32,
            "line": 450,
            "ln": 20253,
            "s": "ug(\"\u003c== __call_api(%s, %s, %s), result=%s\", vars(api), params, request_data, response)\n\n                        LOG.debug(response.json())\n\n                    ret = response.json()\n            except Exception as e:\n                print(e)\n\n                LOG.exception(\"Exception occurred while parsing response with msg: %s\", e)\n\n                raise RangerServiceException(api, response)\n        elif response.status_code == HTTPStatus.SERVICE_UNAVAILABLE:\n            LOG.error(\"Ranger admin unavailable. HTTP Status: %s\", HTTPStatus.SERVICE_UNAVAILABLE)\n"
          },
          {
            "col": 14,
            "line": 482,
            "ln": 21296,
            "s": "E_USER  = \"service/xusers/secure/users/{name}\"\n    URI_DELETE_GROUP = \"service/xusers/secure/groups/{name}\"\n\n    # APIs\n    DELETE_USER  = API(URI_DELETE_USER, HttpMethod.DELETE, HTTPStatus.NO_CONTENT)\n    DELETE_GROUP = API(URI"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "__init__",
              1630
            ],
            [
              "create_service_def",
              1817
            ],
            [
              "update_service_def_by_id",
              2014
            ],
            [
              "update_service_def",
              2273
            ],
            [
              "delete_service_def_by_id",
              2534
            ],
            [
              "delete_service_def",
              2718
            ],
            [
              "get_service_def_by_id",
              2904
            ],
            [
              "get_service_def",
              3120
            ],
            [
              "find_service_defs",
              3338
            ],
            [
              "create_service",
              3542
            ],
            [
              "get_service_by_id",
              3723
            ],
            [
              "get_service",
              3923
            ],
            [
              "update_service_by_id",
              4125
            ],
            [
              "update_service",
              4370
            ],
            [
              "delete_service_by_id",
              4617
            ],
            [
              "delete_service",
              4767
            ],
            [
              "find_services",
              4919
            ],
            [
              "create_policy",
              5112
            ],
            [
              "get_policy_by_id",
              5296
            ],
            [
              "get_policy",
              5491
            ],
            [
              "get_policies_in_service",
              5734
            ],
            [
              "update_policy_by_id",
              5984
            ],
            [
              "update_policy",
              6214
            ],
            [
              "apply_policy",
              6492
            ],
            [
              "delete_policy_by_id",
              6674
            ],
            [
              "delete_policy",
              6820
            ],
            [
              "find_policies",
              7003
            ],
            [
              "create_security_zone",
              7201
            ],
            [
              "update_security_zone_by_id",
              7400
            ],
            [
              "update_security_zone",
              7649
            ],
            [
              "delete_security_zone_by_id",
              7900
            ],
            [
              "delete_security_zone",
              8047
            ],
            [
              "get_security_zone_by_id",
              8196
            ],
            [
              "get_security_zone",
              8398
            ],
            [
              "find_security_zones",
              8602
            ],
            [
              "create_role",
              8801
            ],
            [
              "update_role",
              9085
            ],
            [
              "delete_role_by_id",
              9303
            ],
            [
              "delete_role",
              9441
            ],
            [
              "get_role_by_id",
              9658
            ],
            [
              "get_role",
              9843
            ],
            [
              "get_all_role_names",
              10107
            ],
            [
              "get_user_roles",
              10351
            ],
            [
              "find_roles",
              10565
            ],
            [
              "grant_role",
              10730
            ],
            [
              "revoke_role",
              10960
            ],
            [
              "import_service_tags",
              11210
            ],
            [
              "get_service_tags",
              11402
            ],
            [
              "delete_policy_deltas",
              11617
            ],
            [
              "__init__",
              17579
            ],
            [
              "__init__",
              17969
            ],
            [
              "type_coerce_attrs",
              18330
            ],
            [
              "__init__",
              18515
            ],
            [
              "call_api",
              18655
            ],
            [
              "__init__",
              21120
            ],
            [
              "delete_user",
              21586
            ],
            [
              "delete_group",
              21813
            ]
          ],
          "imp": [
            [
              "",
              "logging.getLogger"
            ],
            [
              "",
              "RangerClientHttp"
            ],
            [
              "",
              "logging.getLogger.setLevel"
            ],
            [
              "",
              "logging.getLogger"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.UPDATE_SERVICEDEF_BY_ID.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.UPDATE_SERVICEDEF_BY_NAME.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.DELETE_SERVICEDEF_BY_ID.format_path"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.DELETE_SERVICEDEF_BY_NAME.format_path"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.GET_SERVICEDEF_BY_ID.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.GET_SERVICEDEF_BY_NAME.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.GET_SERVICE_BY_ID.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.GET_SERVICE_BY_NAME.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.UPDATE_SERVICE_BY_ID.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.UPDATE_SERVICE_BY_NAME.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.DELETE_SERVICE_BY_ID.format_path"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.DELETE_SERVICE_BY_NAME.format_path"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.GET_POLICY_BY_ID.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.GET_POLICY_BY_NAME.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.GET_POLICIES_IN_SERVICE.format_path"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.UPDATE_POLICY_BY_ID.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.UPDATE_POLICY_BY_NAME.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.DELETE_POLICY_BY_ID.format_path"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.UPDATE_ZONE_BY_ID.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.UPDATE_ZONE_BY_NAME.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.DELETE_ZONE_BY_ID.format_path"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.DELETE_ZONE_BY_NAME.format_path"
            ],
            [
              "",
              "self.client_http.call_api"
            ],
            [
              "",
              "RangerClient.GET_ZONE_BY_ID.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "RangerClient.GET_ZONE_BY_NAME.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "RangerClient.UPDATE_ROLE_BY_ID.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "RangerClient.DELETE_ROLE_BY_ID.format_path"
            ],
            [
              "",
              "RangerClient.DELETE_ROLE_BY_NAME.format_path"
            ],
            [
              "",
              "RangerClient.GET_ROLE_BY_ID.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "RangerClient.GET_ROLE_BY_NAME.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "RangerClient.GET_ALL_ROLE_NAMES.format_path"
            ],
            [
              "",
              "RangerClient.GET_USER_ROLES.format_path"
            ],
            [
              "",
              "list"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "RangerClient.GRANT_ROLE.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "RangerClient.REVOKE_ROLE.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "RangerClient.IMPORT_SERVICE_TAGS.format_path"
            ],
            [
              "",
              "RangerClient.GET_SERVICE_TAGS.format_path"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "RangerBase.__init__"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "RangerBase.__init__"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "non_null"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "super.type_coerce_attrs"
            ],
            [
              "",
              "super"
            ],
            [
              "",
              "type_coerce_dict"
            ],
            [
              "",
              "Session"
            ],
            [
              "",
              "json.dumps"
            ],
            [
              "",
              "os.path.join"
            ],
            [
              "",
              "LOG.isEnabledFor"
            ],
            [
              "",
              "LOG.debug"
            ],
            [
              "",
              "LOG.debug"
            ],
            [
              "",
              "LOG.debug"
            ],
            [
              "",
              "LOG.debug"
            ],
            [
              "",
              "self.session.get"
            ],
            [
              "",
              "self.session.post"
            ],
            [
              "",
              "self.session.put"
            ],
            [
              "",
              "self.session.delete"
            ],
            [
              "",
              "LOG.isEnabledFor"
            ],
            [
              "",
              "LOG.debug"
            ],
            [
              "",
              "LOG.isEnabledFor"
            ],
            [
              "",
              "LOG.debug"
            ],
            [
              "",
              "vars"
            ],
            [
              "",
              "LOG.debug"
            ],
            [
              "",
              "response.json"
            ],
            [
              "",
              "response.json"
            ],
            [
              "",
              "print"
            ],
            [
              "",
              "LOG.exception"
            ],
            [
              "",
              "RangerServiceException"
            ],
            [
              "",
              "LOG.error"
            ],
            [
              "",
              "LOG.error"
            ],
            [
              "",
              "RangerServiceException"
            ],
            [
              "",
              "RangerClientHttp"
            ],
            [
              "",
              "logging.getLogger.setLevel"
            ],
            [
              "",
              "logging.getLogger"
            ],
            [
              "",
              "RangerClientPrivate.DELETE_USER.format_path"
            ],
            [
              "",
              "RangerClientPrivate.DELETE_GROUP.format_path"
            ],
            [
              "apache_ranger.model.ranger_base",
              "RangerBase"
            ],
            [
              "apache_ranger.model.ranger_policy",
              "RangerPolicy"
            ],
            [
              "apache_ranger.model.ranger_role",
              "RangerRole"
            ],
            [
              "apache_ranger.model.ranger_security_zone",
              "RangerSecurityZone"
            ],
            [
              "apache_ranger.model.ranger_service",
              "RangerService"
            ],
            [
              "apache_ranger.model.ranger_service_def",
              "RangerServiceDef"
            ],
            [
              "apache_ranger.exceptions",
              "RangerServiceException"
            ],
            [
              "apache_ranger.model.ranger_service_tags",
              "RangerServiceTags"
            ],
            [
              "requests",
              "Response"
            ],
            [
              "requests",
              "Session"
            ],
            [
              "",
              "apache_ranger.exceptions"
            ],
            [
              "",
              "apache_ranger.model.ranger_base"
            ],
            [
              "",
              "apache_ranger.model.ranger_policy"
            ],
            [
              "",
              "apache_ranger.model.ranger_role"
            ],
            [
              "",
              "apache_ranger.model.ranger_security_zone"
            ],
            [
              "",
              "apache_ranger.model.ranger_service"
            ],
            [
              "",
              "apache_ranger.model.ranger_service_def"
            ],
            [
              "",
              "apache_ranger.model.ranger_service_tags"
            ],
            [
              "",
              "apache_ranger.utils"
            ],
            [
              "",
              "json"
            ],
            [
              "",
              "logging"
            ],
            [
              "",
              "os"
            ],
            [
              "",
              "requests"
            ]
          ],
          "mbr": [
            "HTTPStatus.NOT_FOUND",
            "HTTPStatus.NO_CONTENT",
            "HTTPStatus.OK",
            "HTTPStatus.SERVICE_UNAVAILABLE",
            "HttpMethod.DELETE",
            "HttpMethod.GET",
            "HttpMethod.POST",
            "HttpMethod.PUT",
            "LOG.debug",
            "LOG.error",
            "LOG.exception",
            "LOG.isEnabledFor",
            "RangerBase.__init__",
            "RangerClient.APPLY_POLICY",
            "RangerClient.CREATE_POLICY",
            "RangerClient.CREATE_ROLE",
            "RangerClient.CREATE_SERVICE",
            "RangerClient.CREATE_SERVICEDEF",
            "RangerClient.CREATE_ZONE",
            "RangerClient.DELETE_POLICY_BY_ID",
            "RangerClient.DELETE_POLICY_BY_ID.format_path",
            "RangerClient.DELETE_POLICY_BY_NAME",
            "RangerClient.DELETE_POLICY_DELTAS",
            "RangerClient.DELETE_ROLE_BY_ID",
            "RangerClient.DELETE_ROLE_BY_ID.format_path",
            "RangerClient.DELETE_ROLE_BY_NAME",
            "RangerClient.DELETE_ROLE_BY_NAME.format_path",
            "RangerClient.DELETE_SERVICEDEF_BY_ID",
            "RangerClient.DELETE_SERVICEDEF_BY_ID.format_path",
            "RangerClient.DELETE_SERVICEDEF_BY_NAME",
            "RangerClient.DELETE_SERVICEDEF_BY_NAME.format_path",
            "RangerClient.DELETE_SERVICE_BY_ID",
            "RangerClient.DELETE_SERVICE_BY_ID.format_path",
            "RangerClient.DELETE_SERVICE_BY_NAME",
            "RangerClient.DELETE_SERVICE_BY_NAME.format_path",
            "RangerClient.DELETE_ZONE_BY_ID",
            "RangerClient.DELETE_ZONE_BY_ID.format_path",
            "RangerClient.DELETE_ZONE_BY_NAME",
            "RangerClient.DELETE_ZONE_BY_NAME.format_path",
            "RangerClient.FIND_POLICIES",
            "RangerClient.FIND_ROLES",
            "RangerClient.FIND_SERVICEDEFS",
            "RangerClient.FIND_SERVICES",
            "RangerClient.FIND_ZONES",
            "RangerClient.GET_ALL_ROLE_NAMES",
            "RangerClient.GET_ALL_ROLE_NAMES.format_path",
            "RangerClient.GET_POLICIES_IN_SERVICE",
            "RangerClient.GET_POLICIES_IN_SERVICE.format_path",
            "RangerClient.GET_POLICY_BY_ID",
            "RangerClient.GET_POLICY_BY_ID.format_path",
            "RangerClient.GET_POLICY_BY_NAME",
            "RangerClient.GET_POLICY_BY_NAME.format_path",
            "RangerClient.GET_ROLE_BY_ID",
            "RangerClient.GET_ROLE_BY_ID.format_path",
            "RangerClient.GET_ROLE_BY_NAME",
            "RangerClient.GET_ROLE_BY_NAME.format_path",
            "RangerClient.GET_SERVICEDEF_BY_ID",
            "RangerClient.GET_SERVICEDEF_BY_ID.format_path",
            "RangerClient.GET_SERVICEDEF_BY_NAME",
            "RangerClient.GET_SERVICEDEF_BY_NAME.format_path",
            "RangerClient.GET_SERVICE_BY_ID",
            "RangerClient.GET_SERVICE_BY_ID.format_path",
            "RangerClient.GET_SERVICE_BY_NAME",
            "RangerClient.GET_SERVICE_BY_NAME.format_path",
            "RangerClient.GET_SERVICE_TAGS",
            "RangerClient.GET_SERVICE_TAGS.format_path",
            "RangerClient.GET_USER_ROLES",
            "RangerClient.GET_USER_ROLES.format_path",
            "RangerClient.GET_ZONE_BY_ID",
            "RangerClient.GET_ZONE_BY_ID.format_path",
            "RangerClient.GET_ZONE_BY_NAME",
            "RangerClient.GET_ZONE_BY_NAME.format_path",
            "RangerClient.GRANT_ROLE",
            "RangerClient.GRANT_ROLE.format_path",
            "RangerClient.IMPORT_SERVICE_TAGS",
            "RangerClient.IMPORT_SERVICE_TAGS.format_path",
            "RangerClient.REVOKE_ROLE",
            "RangerClient.REVOKE_ROLE.format_path",
            "RangerClient.UPDATE_POLICY_BY_ID",
            "RangerClient.UPDATE_POLICY_BY_ID.format_path",
            "RangerClient.UPDATE_POLICY_BY_NAME",
            "RangerClient.UPDATE_POLICY_BY_NAME.format_path",
            "RangerClient.UPDATE_ROLE_BY_ID",
            "RangerClient.UPDATE_ROLE_BY_ID.format_path",
            "RangerClient.UPDATE_SERVICEDEF_BY_ID",
            "RangerClient.UPDATE_SERVICEDEF_BY_ID.format_path",
            "RangerClient.UPDATE_SERVICEDEF_BY_NAME",
            "RangerClient.UPDATE_SERVICEDEF_BY_NAME.format_path",
            "RangerClient.UPDATE_SERVICE_BY_ID",
            "RangerClient.UPDATE_SERVICE_BY_ID.format_path",
            "RangerClient.UPDATE_SERVICE_BY_NAME",
            "RangerClient.UPDATE_SERVICE_BY_NAME.format_path",
            "RangerClient.UPDATE_ZONE_BY_ID",
            "RangerClient.UPDATE_ZONE_BY_ID.format_path",
            "RangerClient.UPDATE_ZONE_BY_NAME",
            "RangerClient.UPDATE_ZONE_BY_NAME.format_path",
            "RangerClientPrivate.DELETE_GROUP",
            "RangerClientPrivate.DELETE_GROUP.format_path",
            "RangerClientPrivate.DELETE_USER",
            "RangerClientPrivate.DELETE_USER.format_path",
            "api.consumes",
            "api.expected_status",
            "api.method",
            "api.path",
            "api.produces",
            "attrs.get",
            "json.dumps",
            "logging.DEBUG",
            "logging.WARNING",
            "logging.getLogger",
            "logging.getLogger.setLevel",
            "os.path",
            "os.path.join",
            "params.data",
            "params.params",
            "params.serviceName",
            "response.content",
            "response.json",
            "response.status_code",
            "self.client_http",
            "self.client_http.call_api",
            "self.fieldName",
            "self.httpStatusCode",
            "self.message",
            "self.messageList",
            "self.msgDesc",
            "self.name",
            "self.objectId",
            "self.rbKey",
            "self.session",
            "self.session.auth",
            "self.session.delete",
            "self.session.get",
            "self.session.post",
            "self.session.put",
            "self.statusCode",
            "self.url",
            "super.type_coerce_attrs"
          ],
          "metrics": {
            "ast": {
              "call_count": 221,
              "max_concat_chain": 2,
              "max_depth": 20,
              "max_member_depth": 3,
              "member_count": 138,
              "node_count": 5481,
              "op.add": 24,
              "op.lor": 1,
              "op_density.add": 0,
              "op_density.lor": 0
            },
            "binary": {
              "peak_region_bytes": 17943,
              "peak_region_entropy": 5.03
            },
            "binds": {
              "count": 149
            },
            "comments": {
              "chars": 877,
              "count": 26,
              "empty": 3,
              "high_entropy": 2,
              "lines": 23,
              "to_code_ratio": 0.05,
              "url_count": 1
            },
            "file": {
              "entropy": 5.09,
              "size": 22039
            },
            "functions": {
              "avg_length_lines": 4.86,
              "avg_name_length": 15.4,
              "avg_param_name_length": 6.71,
              "avg_params": 2.74,
              "code_ratio": 0.56,
              "count": 58,
              "density": 11.56,
              "high_entropy_names": 14,
              "length_stddev": 7.95,
              "max_length_lines": 63,
              "max_params": 4,
              "min_length_lines": 2
            },
            "identifiers": {
              "all_lowercase_ratio": 0.46,
              "all_uppercase_ratio": 0.35,
              "avg_entropy": 2.95,
              "avg_length": 12.55,
              "count": 1446,
              "double_underscore_count": 2,
              "high_entropy_count": 41,
              "high_entropy_ratio": 0.16,
              "length_stddev": 5.85,
              "max_length": 26,
              "min_length": 1,
              "reuse_ratio": 0.18,
              "sequential_names": 1,
              "single_char_count": 1,
              "single_char_ratio": 0,
              "underscore_prefix_count": 2,
              "unique": 254
            },
            "imports": {
              "count": 23,
              "stdlib_count": 3,
              "stdlib_ratio": 0.13,
              "third_party_count": 20,
              "third_party_ratio": 0.87
            },
            "source": {
              "class_count": 5,
              "function_count": 53
            },
            "strings": {
              "avg_entropy": 2.44,
              "avg_length": 10.17,
              "bytes": 1108,
              "count": 109,
              "entropy_stddev": 0.85,
              "max_length": 54,
              "path_count": 24
            },
            "text": {
              "ascii_art_lines": 1,
              "avg_line_length": 43.7,
              "char_entropy": 5.09,
              "digit_ratio": 0,
              "empty_line_ratio": 0.31,
              "identifier_density": 2.93,
              "identifiers_to_functions_ratio": 4.46,
              "import_density": 4.67,
              "imports_to_functions_ratio": 0.4,
              "last_line_length": 158,
              "line_length_stddev": 38.95,
              "lines": 493,
              "max_line_length": 166,
              "max_whitespace_run": 33,
              "normalized_function_count": 2.57,
              "normalized_import_count": 1.04,
              "normalized_string_count": 4.91,
              "normalized_unique_identifiers": 28.39,
              "repeated_char_sequences": 71,
              "space_count": 3993,
              "string_density": 0.22,
              "strings_to_functions_ratio": 1.91,
              "suspicious_comment_ratio": 0.08,
              "suspicious_identifier_ratio": 0,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.08,
              "unique_chars": 75,
              "whitespace_ratio": 0.2
            }
          },
          "tgt": [
            "API",
            "LOG.debug",
            "LOG.error",
            "LOG.exception",
            "LOG.isEnabledFor",
            "RangerBase.__init__",
            "RangerClient.DELETE_POLICY_BY_ID.format_path",
            "RangerClient.DELETE_ROLE_BY_ID.format_path",
            "RangerClient.DELETE_ROLE_BY_NAME.format_path",
            "RangerClient.DELETE_SERVICEDEF_BY_ID.format_path",
            "RangerClient.DELETE_SERVICEDEF_BY_NAME.format_path",
            "RangerClient.DELETE_SERVICE_BY_ID.format_path",
            "RangerClient.DELETE_SERVICE_BY_NAME.format_path",
            "RangerClient.DELETE_ZONE_BY_ID.format_path",
            "RangerClient.DELETE_ZONE_BY_NAME.format_path",
            "RangerClient.GET_ALL_ROLE_NAMES.format_path",
            "RangerClient.GET_POLICIES_IN_SERVICE.format_path",
            "RangerClient.GET_POLICY_BY_ID.format_path",
            "RangerClient.GET_POLICY_BY_NAME.format_path",
            "RangerClient.GET_ROLE_BY_ID.format_path",
            "RangerClient.GET_ROLE_BY_NAME.format_path",
            "RangerClient.GET_SERVICEDEF_BY_ID.format_path",
            "RangerClient.GET_SERVICEDEF_BY_NAME.format_path",
            "RangerClient.GET_SERVICE_BY_ID.format_path",
            "RangerClient.GET_SERVICE_BY_NAME.format_path",
            "RangerClient.GET_SERVICE_TAGS.format_path",
            "RangerClient.GET_USER_ROLES.format_path",
            "RangerClient.GET_ZONE_BY_ID.format_path",
            "RangerClient.GET_ZONE_BY_NAME.format_path",
            "RangerClient.GRANT_ROLE.format_path",
            "RangerClient.IMPORT_SERVICE_TAGS.format_path",
            "RangerClient.REVOKE_ROLE.format_path",
            "RangerClient.UPDATE_POLICY_BY_ID.format_path",
            "RangerClient.UPDATE_POLICY_BY_NAME.format_path",
            "RangerClient.UPDATE_ROLE_BY_ID.format_path",
            "RangerClient.UPDATE_SERVICEDEF_BY_ID.format_path",
            "RangerClient.UPDATE_SERVICEDEF_BY_NAME.format_path",
            "RangerClient.UPDATE_SERVICE_BY_ID.format_path",
            "RangerClient.UPDATE_SERVICE_BY_NAME.format_path",
            "RangerClient.UPDATE_ZONE_BY_ID.format_path",
            "RangerClient.UPDATE_ZONE_BY_NAME.format_path",
            "RangerClientHttp",
            "RangerClientPrivate.DELETE_GROUP.format_path",
            "RangerClientPrivate.DELETE_USER.format_path",
            "RangerServiceException",
            "Session",
            "attrs.get",
            "json.dumps",
            "list",
            "logging.getLogger",
            "logging.getLogger.setLevel",
            "non_null",
            "os.path.join",
            "print",
            "response.json",
            "self.client_http.call_api",
            "self.session.delete",
            "self.session.get",
            "self.session.post",
            "self.session.put",
            "super",
            "super.type_coerce_attrs",
            "type_coerce",
            "type_coerce_dict",
            "type_coerce_list",
            "vars"
          ]
        },
        "id": 4,
        "mol": "H₂(Cm₆Db₄)Md₂(In₄Pt)",
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/client/ranger_client.py",
        "pid": 0,
        "risk": 9,
        "sha": "a34d22b643a4222c0676e78dabc8243133b3324ca19e4c080c59db3dac2633d5",
        "sid": 10770049907,
        "size": 22039,
        "traits": [
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports os",
            "id": "metadata/import/python/os::os",
            "spans": [
              [
                838,
                2
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports Response from requests",
            "id": "metadata/import/python/requests/response::response",
            "spans": [
              [
                1560,
                8
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports Session from requests",
            "id": "metadata/import/python/requests/session::session",
            "spans": [
              [
                1499,
                7
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports requests",
            "id": "metadata/import/python/requests::requests",
            "spans": [
              [
                1451,
                8
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Session-named object request method call",
            "id": "metadata/lang/source/syntax/call/member::python-session-method-call",
            "spans": [
              [
                19421,
                16
              ],
              [
                19521,
                17
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Session method call with an HTTP client import",
            "id": "micro-behaviors/communications/http/client/library::python-session-method-call",
            "spans": [
              [
                1451,
                8
              ],
              [
                1499,
                7
              ],
              [
                1560,
                8
              ],
              [
                19421,
                16
              ],
              [
                19521,
                17
              ]
            ],
            "uses": [
              1,
              2,
              3,
              4
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python HTTP client and response-body access coexist",
            "id": "micro-behaviors/communications/http/client/response-body::python-client-response-body-cooccurrence",
            "spans": [
              [
                1451,
                8
              ],
              [
                1499,
                7
              ],
              [
                1560,
                8
              ],
              [
                20087,
                8
              ],
              [
                20096,
                7
              ]
            ],
            "uses": [
              1,
              2,
              3,
              7
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Python response body member access",
            "id": "micro-behaviors/communications/http/client/response-body::python-response-body-member-reference",
            "spans": [
              [
                20087,
                8
              ],
              [
                20096,
                7
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Calls POST on session-named receiver",
            "id": "micro-behaviors/communications/http/post::session-post-call",
            "mbc": "C0002",
            "spans": [
              [
                19521,
                17
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Loop tests HTTP response status code",
            "id": "micro-behaviors/communications/http/response::http-loop-status-code-check",
            "spans": [
              [
                20546,
                138
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python comment contains a URL",
            "id": "micro-behaviors/communications/url/reference::python-comment-url-reference",
            "spans": [
              [
                439,
                9
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "group collection URL path segment",
            "id": "micro-behaviors/communications/url/resource-path/identity::group-collection-path-token",
            "spans": [
              [
                21387,
                9
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python message-key lookup",
            "id": "micro-behaviors/data/collection/map::mapping-get-message-key",
            "spans": [
              [
                17820,
                14
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Calls a JSON body reader method",
            "id": "micro-behaviors/data/parse/json::python-json-body-method-call",
            "spans": [
              [
                20375,
                13
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Mutates params dictionary or map entries",
            "id": "micro-behaviors/data/property/write::mutated-params-map-write",
            "spans": [
              [
                8916,
                23
              ],
              [
                18867,
                18
              ],
              [
                18937,
                16
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Serializes data with Python json.dumps()",
            "id": "micro-behaviors/data/serialize/json::json-dumps-call",
            "spans": [
              [
                18954,
                10
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Script peak-entropy region mass at least 1KB",
            "id": "metadata/file/entropy::script-peak-entropy-region-mass-at-least-1k"
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "JSON file extension",
            "id": "metadata/file/extension/identity::json-extension",
            "spans": [
              [
                20383,
                0
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "File uses a Python artifact extension",
            "id": "metadata/file/extension/identity::py"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source, stub, or bytecode extension",
            "id": "metadata/file/extension/identity::python-artifact-extension"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source file extension (.py only)",
            "id": "metadata/file/extension/identity::python-source-extension"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Short plain script basename token",
            "id": "metadata/file/extension/token-shape::bare-alphanumeric-script-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "File has 30 or more lines",
            "id": "metadata/file/line::file-has-30-plus-lines"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerServiceException from apache_ranger.exceptions",
            "id": "metadata/import/python/apache_ranger/exceptions/rangerserviceexception::rangerserviceexception",
            "spans": [
              [
                894,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.exceptions",
            "id": "metadata/import/python/apache_ranger/exceptions::apache_ranger/exceptions",
            "spans": [
              [
                846,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerBase from apache_ranger.model.ranger_base",
            "id": "metadata/import/python/apache_ranger/model/ranger_base/rangerbase::rangerbase",
            "spans": [
              [
                970,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_base",
            "id": "metadata/import/python/apache_ranger/model/ranger_base::apache_ranger/model/ranger_base",
            "spans": [
              [
                922,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerPolicy from apache_ranger.model.ranger_policy",
            "id": "metadata/import/python/apache_ranger/model/ranger_policy/rangerpolicy::rangerpolicy",
            "spans": [
              [
                1034,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_policy",
            "id": "metadata/import/python/apache_ranger/model/ranger_policy::apache_ranger/model/ranger_policy",
            "spans": [
              [
                986,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerRole from apache_ranger.model.ranger_role",
            "id": "metadata/import/python/apache_ranger/model/ranger_role/rangerrole::rangerrole",
            "spans": [
              [
                1100,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_role",
            "id": "metadata/import/python/apache_ranger/model/ranger_role::apache_ranger/model/ranger_role",
            "spans": [
              [
                1052,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerSecurityZone from apache_ranger.model.ranger_security_zone",
            "id": "metadata/import/python/apache_ranger/model/ranger_security_zone/rangersecurityzone::rangersecurityzone",
            "spans": [
              [
                1164,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_security_zone",
            "id": "metadata/import/python/apache_ranger/model/ranger_security_zone::apache_ranger/model/ranger_security_zone",
            "spans": [
              [
                1116,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerService from apache_ranger.model.ranger_service",
            "id": "metadata/import/python/apache_ranger/model/ranger_service/rangerservice::rangerservice",
            "spans": [
              [
                1236,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_service",
            "id": "metadata/import/python/apache_ranger/model/ranger_service::apache_ranger/model/ranger_service",
            "spans": [
              [
                1188,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerServiceDef from apache_ranger.model.ranger_service_def",
            "id": "metadata/import/python/apache_ranger/model/ranger_service_def/rangerservicedef::rangerservicedef",
            "spans": [
              [
                1303,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_service_def",
            "id": "metadata/import/python/apache_ranger/model/ranger_service_def::apache_ranger/model/ranger_service_def",
            "spans": [
              [
                1255,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RangerServiceTags from apache_ranger.model.ranger_service_tags",
            "id": "metadata/import/python/apache_ranger/model/ranger_service_tags/rangerservicetags::rangerservicetags",
            "spans": [
              [
                1373,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_service_tags",
            "id": "metadata/import/python/apache_ranger/model/ranger_service_tags::apache_ranger/model/ranger_service_tags",
            "spans": [
              [
                1325,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.utils",
            "id": "metadata/import/python/apache_ranger/utils::apache_ranger/utils",
            "spans": [
              [
                1396,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports json",
            "id": "metadata/import/python/json::json",
            "spans": [
              [
                811,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports logging",
            "id": "metadata/import/python/logging::logging",
            "spans": [
              [
                823,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                178,
                0
              ]
            ],
            "uses": [
              56,
              57,
              58,
              59,
              60
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python shebang line (unversioned)",
            "id": "metadata/lang/shebang::python",
            "spans": [
              [
                0,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "File has 50 or more functions",
            "id": "metadata/lang/source/function::many-functions-50-generic"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Apache Software Foundation license header",
            "id": "metadata/package/license::apache-asf-source-header",
            "spans": [
              [
                27,
                0
              ]
            ]
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "except keyword",
            "id": "micro-behaviors/data/control-flow/error-handling/catch::except-keyword-dup",
            "mbc": "C0027",
            "spans": [
              [
                20447,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Calls a path join or combine API",
            "id": "micro-behaviors/fs/path-ops::source-path-builder-call",
            "spans": [
              [
                18995,
                0
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "Reference to an executable under /usr/bin",
            "id": "micro-behaviors/fs/path/binary::usr-bin-executable-path",
            "spans": [
              [
                2,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Top-level Python import statement line",
            "id": "micro-behaviors/process/interpreter/python::module-import-statement",
            "spans": [
              [
                816,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "Python import-from statement",
            "id": "metadata/import/module::python-import-from-statement",
            "spans": [
              [
                1111,
                0
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 1,
            "desc": "Python imports os module",
            "id": "metadata/import/module::python-import-os",
            "spans": [
              [
                838,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-access verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-access-verb-token",
            "spans": [
              [
                20486,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-transfer verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-transfer-verb-token",
            "spans": [
              [
                19534,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Directive or message vocabulary token",
            "id": "metadata/lang/natural/vocabulary/content-word::directive-or-message-word-token",
            "spans": [
              [
                137,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "English edit-action verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::english-edit-verb-token",
            "spans": [
              [
                19736,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                39,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                765,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                178,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                161,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                168,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 1,
            "desc": "Python class declared with a base class",
            "id": "metadata/lang/source/declaration::class-with-base",
            "spans": [
              [
                17548,
                0
              ]
            ]
          },
          {
            "conf": 0.4,
            "crit": 1,
            "desc": "Result name with field or assignment separator",
            "id": "metadata/lang/source/shape::result-field-or-assignment-syntax",
            "spans": [
              [
                20285,
                0
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "Python parses HTTP response body as JSON",
            "id": "micro-behaviors/communications/http/client/response-body::python-response-json-call",
            "spans": [
              [
                20375,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "User-home path prefix",
            "id": "micro-behaviors/fs/path/personal::source-user-home-path",
            "spans": [
              [
                21328,
                0
              ]
            ]
          },
          {
            "conf": 0.86,
            "crit": 1,
            "desc": "Source references a privileged account",
            "id": "micro-behaviors/os/privilege/check::source-privileged-account-reference",
            "spans": [
              [
                11195,
                0
              ]
            ]
          }
        ],
        "type": "python"
      },
      {
        "analysis_gaps": [
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "#!/usr/bin/env python\n\n#\n# Licensed to the Apache Software Foundation (ASF) under one or more\n# contributor license agreements.  See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"License\"); you may not use this file except in compliance with\n# the License.  You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\nclass RangerServiceException(Exception):\n    \"\"\"Exception raised for errors in API calls.\n\n    Attributes:\n        api      -- api endpoint which caused the error\n        response -- response from the server\n    \"\"\"\n\n    def __init__(self, api, response):\n        self.method          = api.method.name\n        self.path            = api.path\n        self.expected_status = api.expected_status\n        self.statusCode      = -1\n        self.msgDesc         = None\n        self.messageList     = None\n\n        print(response)\n\n        if api is not None and response is not None:\n            respJson = response.json()\n\n            self.statusCode  = response.status_code\n            self.msgDesc     = respJson['msgDesc']     if respJson is not None and 'msgDesc'     in respJson else None\n            self.messageList = respJson['messageList'] if respJson is not None and 'messageList' in respJson else None\n\n        Exception.__init__(self, \"{} {} failed: expected_status={}, status={}, message={}\".format(self.method, self.path, self.expected_status, self.statusCode, self.msgDesc))\n"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "__init__",
              1025
            ]
          ],
          "imp": [
            [
              "",
              "print"
            ],
            [
              "",
              "response.json"
            ],
            [
              "",
              "Exception.__init__"
            ]
          ],
          "mbr": [
            "Exception.__init__",
            "api.expected_status",
            "api.method",
            "api.method.name",
            "api.path",
            "respJson.messageList",
            "respJson.msgDesc",
            "response.json",
            "response.status_code",
            "self.expected_status",
            "self.messageList",
            "self.method",
            "self.msgDesc",
            "self.path",
            "self.statusCode"
          ],
          "metrics": {
            "ast": {
              "call_count": 4,
              "max_depth": 13,
              "max_member_depth": 3,
              "member_count": 15,
              "node_count": 268,
              "op.land": 3,
              "op.sub": 1,
              "op_density.land": 0.01,
              "op_density.sub": 0
            },
            "binary": {
              "peak_region_bytes": 1024,
              "peak_region_entropy": 4.76
            },
            "binds": {
              "count": 10
            },
            "comments": {
              "chars": 769,
              "count": 16,
              "empty": 3,
              "high_entropy": 2,
              "lines": 13,
              "to_code_ratio": 0.41,
              "url_count": 1
            },
            "file": {
              "entropy": 4.64,
              "size": 1890
            },
            "functions": {
              "avg_length_lines": 18,
              "avg_name_length": 8,
              "avg_param_name_length": 5,
              "avg_params": 3,
              "code_ratio": 0.4,
              "count": 2,
              "density": 2.22,
              "max_length_lines": 18,
              "max_params": 3,
              "min_length_lines": 18
            },
            "identifiers": {
              "all_lowercase_ratio": 0.67,
              "avg_entropy": 2.53,
              "avg_length": 8.06,
              "count": 60,
              "double_underscore_count": 1,
              "high_entropy_count": 1,
              "high_entropy_ratio": 0.06,
              "length_stddev": 4.56,
              "max_length": 22,
              "min_length": 3,
              "reuse_ratio": 0.3,
              "underscore_prefix_count": 1,
              "unique": 18
            },
            "source": {
              "class_count": 1,
              "function_count": 1
            },
            "strings": {
              "avg_entropy": 3.11,
              "avg_length": 42.5,
              "bytes": 255,
              "count": 6,
              "entropy_stddev": 0.62,
              "max_length": 164,
              "sql": 1
            },
            "text": {
              "avg_line_length": 41,
              "char_entropy": 4.64,
              "digit_ratio": 0,
              "empty_line_ratio": 0.2,
              "identifier_density": 1.33,
              "identifiers_to_functions_ratio": 18,
              "last_line_length": 175,
              "line_length_stddev": 36.8,
              "lines": 45,
              "max_line_length": 175,
              "max_whitespace_run": 12,
              "normalized_function_count": 0.15,
              "normalized_string_count": 0.89,
              "normalized_unique_identifiers": 3.28,
              "repeated_char_sequences": 6,
              "space_count": 405,
              "string_density": 0.13,
              "strings_to_functions_ratio": 6,
              "suspicious_comment_ratio": 0.13,
              "suspicious_string_ratio": 0.17,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.1,
              "unique_chars": 69,
              "whitespace_ratio": 0.24
            }
          },
          "tgt": [
            "Exception.__init__",
            "print",
            "response.json"
          ]
        },
        "id": 5,
        "mol": "H₂(CmDb)",
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/exceptions.py",
        "pid": 0,
        "risk": 4,
        "sha": "5e4f5ed864b1e4611ab0db8d83558c7dd662dcf9fc653485f8e1a2d782ede0a1",
        "sid": 10770049904,
        "size": 1890,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python comment contains a URL",
            "id": "micro-behaviors/communications/url/reference::python-comment-url-reference",
            "spans": [
              [
                439,
                9
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Calls a JSON body reader method",
            "id": "micro-behaviors/data/parse/json::python-json-body-method-call",
            "spans": [
              [
                1406,
                13
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Overall entropy at most 5.0",
            "id": "metadata/file/entropy::overall-entropy-at-most-five"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Script peak-entropy region mass at least 1KB",
            "id": "metadata/file/entropy::script-peak-entropy-region-mass-at-least-1k"
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "JSON file extension",
            "id": "metadata/file/extension/identity::json-extension",
            "spans": [
              [
                1414,
                0
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "File uses a Python artifact extension",
            "id": "metadata/file/extension/identity::py"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source, stub, or bytecode extension",
            "id": "metadata/file/extension/identity::python-artifact-extension"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source file extension (.py only)",
            "id": "metadata/file/extension/identity::python-source-extension"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Short plain script basename token",
            "id": "metadata/file/extension/token-shape::bare-alphanumeric-script-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "File has 30 or more lines",
            "id": "metadata/file/line::file-has-30-plus-lines"
          },
          {
            "conf": 0.65,
            "crit": 2,
            "desc": "Python file under 120 lines",
            "id": "metadata/file/line::python-under-120-lines"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                178,
                0
              ]
            ],
            "uses": [
              20,
              21,
              22,
              23,
              24
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python shebang line (unversioned)",
            "id": "metadata/lang/shebang::python",
            "spans": [
              [
                0,
                0
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "High comment-to-code ratio",
            "id": "metadata/lang/source/comment::high-comment-to-code-ratio"
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "Source contains for-loop syntax",
            "id": "metadata/lang/source/syntax/control-flow::for-loop-content",
            "spans": [
              [
                868,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Apache Software Foundation license header",
            "id": "metadata/package/license::apache-asf-source-header",
            "spans": [
              [
                27,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "For/foreach loop over a collection",
            "id": "micro-behaviors/data/control-flow/loop/collection::record-loop-header",
            "spans": [
              [
                869,
                0
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "Reference to an executable under /usr/bin",
            "id": "micro-behaviors/fs/path/binary::usr-bin-executable-path",
            "spans": [
              [
                2,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-access verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-access-verb-token",
            "spans": [
              [
                1313,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Directive or message vocabulary token",
            "id": "metadata/lang/natural/vocabulary/content-word::directive-or-message-word-token",
            "spans": [
              [
                137,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                39,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                765,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                178,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                161,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                168,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 1,
            "desc": "Python class declared with a base class",
            "id": "metadata/lang/source/declaration::class-with-base",
            "spans": [
              [
                804,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Shallow agent skill bundle script file",
            "id": "metadata/package/agent-skill::agent-skill-bundle-script-file"
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "Python parses HTTP response body as JSON",
            "id": "micro-behaviors/communications/http/client/response-body::python-response-json-call",
            "spans": [
              [
                1406,
                0
              ]
            ]
          }
        ],
        "type": "python"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "#!/usr/bin/env python\n\n#\n# Licensed to the Apache Software Foundation (ASF) under one or more\n# contributor license agreements.  See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under the Apache License, Version 2.0\n# (the \"License\"); you may not use this file except in compliance with\n# the License.  You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n"
          }
        ],
        "depth": 1,
        "facts": {
          "metrics": {
            "ast": {
              "call_count": 0,
              "max_depth": 1,
              "node_count": 17
            },
            "binary": {
              "peak_region_bytes": 802,
              "peak_region_entropy": 4.83
            },
            "comments": {
              "chars": 769,
              "count": 16,
              "empty": 3,
              "high_entropy": 2,
              "lines": 13,
              "to_code_ratio": 3.25,
              "url_count": 1
            },
            "file": {
              "entropy": 4.83,
              "size": 802
            },
            "text": {
              "avg_line_length": 46.18,
              "char_entropy": 4.83,
              "digit_ratio": 0.01,
              "empty_line_ratio": 0.06,
              "last_line_length": 32,
              "line_length_stddev": 29.03,
              "lines": 17,
              "max_line_length": 74,
              "max_whitespace_run": 2,
              "space_count": 115,
              "suspicious_comment_ratio": 0.13,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.1,
              "unique_chars": 58,
              "whitespace_ratio": 0.16
            }
          }
        },
        "id": 6,
        "mol": "H(Cm)",
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/model/__init__.py",
        "pid": 0,
        "risk": 3,
        "sha": "0bd9078c8025db64841b27a85cadcbe105b406cc938f1b0873d1fbba6a0ac0a4",
        "sid": 1651722722,
        "size": 802,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python comment contains a URL",
            "id": "micro-behaviors/communications/url/reference::python-comment-url-reference",
            "spans": [
              [
                439,
                9
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Overall entropy at most 5.0",
            "id": "metadata/file/entropy::overall-entropy-at-most-five"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "File uses a Python artifact extension",
            "id": "metadata/file/extension/identity::py"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source, stub, or bytecode extension",
            "id": "metadata/file/extension/identity::python-artifact-extension"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source file extension (.py only)",
            "id": "metadata/file/extension/identity::python-source-extension"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Short plain script basename token",
            "id": "metadata/file/extension/token-shape::bare-alphanumeric-script-basename"
          },
          {
            "conf": 0.65,
            "crit": 2,
            "desc": "Python file under 120 lines",
            "id": "metadata/file/line::python-under-120-lines"
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "Python package __init__.py file",
            "id": "metadata/file/size::init-py-file"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                178,
                0
              ]
            ],
            "uses": [
              15,
              16,
              17,
              18,
              19
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python shebang line (unversioned)",
            "id": "metadata/lang/shebang::python",
            "spans": [
              [
                0,
                0
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "High comment-to-code ratio",
            "id": "metadata/lang/source/comment::high-comment-to-code-ratio"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Apache Software Foundation license header",
            "id": "metadata/package/license::apache-asf-source-header",
            "spans": [
              [
                27,
                0
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "Reference to an executable under /usr/bin",
            "id": "micro-behaviors/fs/path/binary::usr-bin-executable-path",
            "spans": [
              [
                2,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-access verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-access-verb-token",
            "spans": [
              [
                414,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Directive or message vocabulary token",
            "id": "metadata/lang/natural/vocabulary/content-word::directive-or-message-word-token",
            "spans": [
              [
                137,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                39,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                765,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                178,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                161,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                168,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Shallow agent skill bundle script file",
            "id": "metadata/package/agent-skill::agent-skill-bundle-script-file"
          }
        ],
        "type": "python"
      },
      {
        "depth": 1,
        "id": 7,
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/model/grant_revoke_role_request.py",
        "pid": 0,
        "risk": 0,
        "sha": "3a3b485cb4a6602fb6d72eca6c034d1136aafa5e9dcd528ca1cbc27be4c60b1c",
        "sid": 1651724336,
        "size": 1739,
        "type": "python"
      },
      {
        "depth": 1,
        "id": 8,
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/model/ranger_base.py",
        "pid": 0,
        "risk": 0,
        "sha": "8a7cae89758e5285212497a9439f5b00518fafa3524b7836f2901c22da938825",
        "sid": 10770049905,
        "size": 2049,
        "type": "python"
      },
      {
        "analysis_gaps": [
          "flow-graph-limited",
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "#!/usr/bin/env python\n\n#\n# Licensed to the Apache Software Foundation (ASF) under one or more\n# contributor license agreements.  See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under"
          },
          {
            "col": 66,
            "line": 8,
            "ln": 375,
            "s": " with\n# the License.  You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under "
          },
          {
            "col": 19,
            "line": 16,
            "ln": 717,
            "s": "for the specific language governing permissions and\n# limitations under the License.\n\n\nfrom apache_ranger.model.ranger_base import *\nfrom apache_ranger.utils             import *\n\n\nclass RangerPolicy(RangerBaseModelObject):\n    POLICY_TYPE_ACCESS    = 0\n    POLICY"
          },
          {
            "col": 42,
            "line": 41,
            "ln": 1575,
            "s": ".get('isAuditEnabled')\n        self.resources            = attrs.get('resources')\n        self.policyItems          = attrs.get('policyItems')\n        self.denyPolicyItems      = attrs.get('denyPolicyItems')\n "
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "__init__",
              1036
            ],
            [
              "type_coerce_attrs",
              2501
            ],
            [
              "__init__",
              3402
            ],
            [
              "__init__",
              3761
            ],
            [
              "__init__",
              4009
            ],
            [
              "type_coerce_attrs",
              4460
            ],
            [
              "__init__",
              4684
            ],
            [
              "type_coerce_attrs",
              4873
            ],
            [
              "__init__",
              5115
            ],
            [
              "type_coerce_attrs",
              5306
            ],
            [
              "__init__",
              5543
            ],
            [
              "__init__",
              5856
            ],
            [
              "__init__",
              6141
            ],
            [
              "__init__",
              6483
            ]
          ],
          "imp": [
            [
              "",
              "RangerBaseModelObject.__init__"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "non_null"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "super.type_coerce_attrs"
            ],
            [
              "",
              "super"
            ],
            [
              "",
              "type_coerce_dict"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "RangerBase.__init__"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "non_null"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "non_null"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "RangerBase.__init__"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "RangerBase.__init__"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "non_null"
            ],
            [
              "",
              "attrs.get"
            ],
            [
              "",
              "super.type_coerce_attrs"
            ],
            [
              "",
              "super"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "RangerPolicyItem.__init__"
            ],
            [
              "",
              "super.type_coerce_attrs"
            ],
            [
              "",
              "super"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "RangerPolicyItem.__init__"
            ],
            [
              "",
              "super.type_coerce_attrs"
            ],
            [
              "",
              "super"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "RangerBase.__init__"
            ],
            [
              "",
              "RangerBase.__init__"
            ],
            [
              "",
              "non_null"
            ],
            [
              "",
              "RangerBase.__init__"
            ],
            [
              "",
              "RangerBase.__init__"
            ],
            [
              "",
              "apache_ranger.model.ranger_base"
            ],
            [
              "",
              "apache_ranger.utils"
            ]
          ],
          "mbr": [
            "RangerBase.__init__",
            "RangerBaseModelObject.__init__",
            "RangerPolicyItem.__init__",
            "attrs.get",
            "self.accesses",
            "self.allowExceptions",
            "self.conditionExpr",
            "self.conditions",
            "self.dataMaskInfo",
            "self.dataMaskPolicyItems",
            "self.dataMaskType",
            "self.delegateAdmin",
            "self.denyExceptions",
            "self.denyPolicyItems",
            "self.description",
            "self.endTime",
            "self.filterExpr",
            "self.groups",
            "self.isAllowed",
            "self.isAuditEnabled",
            "self.isDenyAllElse",
            "self.isExcludes",
            "self.isRecursive",
            "self.name",
            "self.options",
            "self.policyItems",
            "self.policyLabels",
            "self.policyPriority",
            "self.policyType",
            "self.resourceSignature",
            "self.resources",
            "self.roles",
            "self.rowFilterInfo",
            "self.rowFilterPolicyItems",
            "self.service",
            "self.serviceType",
            "self.startTime",
            "self.timeZone",
            "self.type",
            "self.users",
            "self.validitySchedules",
            "self.valueExpr",
            "self.values",
            "self.zoneName",
            "super.type_coerce_attrs"
          ],
          "metrics": {
            "ast": {
              "call_count": 77,
              "max_depth": 12,
              "max_member_depth": 2,
              "member_count": 45,
              "node_count": 1702
            },
            "binary": {
              "peak_region_bytes": 2048,
              "peak_region_entropy": 4.98
            },
            "binds": {
              "count": 67
            },
            "comments": {
              "chars": 769,
              "count": 16,
              "empty": 3,
              "high_entropy": 2,
              "lines": 13,
              "to_code_ratio": 0.08,
              "url_count": 1
            },
            "file": {
              "entropy": 4.62,
              "size": 6657
            },
            "functions": {
              "avg_length_lines": 9,
              "avg_name_length": 10.57,
              "avg_param_name_length": 4.42,
              "avg_params": 1.71,
              "code_ratio": 0.68,
              "count": 12,
              "density": 7.57,
              "length_stddev": 5.52,
              "max_length_lines": 27,
              "max_params": 2,
              "min_length_lines": 4
            },
            "identifiers": {
              "all_lowercase_ratio": 0.38,
              "all_uppercase_ratio": 0.04,
              "avg_entropy": 3.05,
              "avg_length": 12.58,
              "count": 385,
              "double_underscore_count": 1,
              "high_entropy_count": 20,
              "high_entropy_ratio": 0.29,
              "length_stddev": 6.21,
              "max_length": 29,
              "min_length": 3,
              "reuse_ratio": 0.18,
              "underscore_prefix_count": 1,
              "unique": 69
            },
            "imports": {
              "count": 2,
              "third_party_count": 2,
              "third_party_ratio": 1
            },
            "source": {
              "class_count": 10,
              "function_count": 2
            },
            "strings": {
              "avg_entropy": 2.94,
              "avg_length": 10.42,
              "base64_candidates": 1,
              "bytes": 448,
              "count": 43,
              "entropy_stddev": 0.51,
              "max_length": 20
            },
            "text": {
              "avg_line_length": 34.98,
              "char_entropy": 4.62,
              "digit_ratio": 0,
              "empty_line_ratio": 0.28,
              "encoded_string_ratio": 0.02,
              "identifier_density": 2.08,
              "identifiers_to_functions_ratio": 4.93,
              "import_density": 1.08,
              "imports_to_functions_ratio": 0.14,
              "last_line_length": 49,
              "line_length_stddev": 28.23,
              "lines": 185,
              "max_line_length": 106,
              "max_whitespace_run": 17,
              "normalized_function_count": 1.03,
              "normalized_import_count": 0.15,
              "normalized_string_count": 3.16,
              "normalized_unique_identifiers": 9.16,
              "repeated_char_sequences": 23,
              "space_count": 1431,
              "string_density": 0.23,
              "strings_to_functions_ratio": 3.07,
              "suspicious_comment_ratio": 0.13,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.09,
              "unique_chars": 70,
              "whitespace_ratio": 0.24
            }
          },
          "tgt": [
            "RangerBase.__init__",
            "RangerBaseModelObject.__init__",
            "RangerPolicyItem.__init__",
            "attrs.get",
            "non_null",
            "super",
            "super.type_coerce_attrs",
            "type_coerce",
            "type_coerce_dict",
            "type_coerce_list"
          ]
        },
        "id": 9,
        "mol": "H₂(CmDb)",
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/model/ranger_policy.py",
        "pid": 0,
        "risk": 4,
        "sha": "24c0dfca8fc0af2444e1edd00b61f5bf9abfc7e4779b1649d72620fe419f002b",
        "sid": 10770049897,
        "size": 6657,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python comment contains a URL",
            "id": "micro-behaviors/communications/url/reference::python-comment-url-reference",
            "spans": [
              [
                439,
                9
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Python mapping reads an assets key",
            "id": "micro-behaviors/data/collection/map::mapping-get-assets-key",
            "spans": [
              [
                1639,
                17
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Overall entropy at most 5.0",
            "id": "metadata/file/entropy::overall-entropy-at-most-five"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Script peak-entropy region mass at least 1KB",
            "id": "metadata/file/entropy::script-peak-entropy-region-mass-at-least-1k"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "File uses a Python artifact extension",
            "id": "metadata/file/extension/identity::py"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source, stub, or bytecode extension",
            "id": "metadata/file/extension/identity::python-artifact-extension"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source file extension (.py only)",
            "id": "metadata/file/extension/identity::python-source-extension"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Short plain script basename token",
            "id": "metadata/file/extension/token-shape::bare-alphanumeric-script-basename"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "File has 30 or more lines",
            "id": "metadata/file/line::file-has-30-plus-lines"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.model.ranger_base",
            "id": "metadata/import/python/apache_ranger/model/ranger_base::apache_ranger/model/ranger_base",
            "spans": [
              [
                809,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports apache_ranger.utils",
            "id": "metadata/import/python/apache_ranger/utils::apache_ranger/utils",
            "spans": [
              [
                855,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                178,
                0
              ]
            ],
            "uses": [
              17,
              18,
              19,
              20,
              21
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python shebang line (unversioned)",
            "id": "metadata/lang/shebang::python",
            "spans": [
              [
                0,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Apache Software Foundation license header",
            "id": "metadata/package/license::apache-asf-source-header",
            "spans": [
              [
                27,
                0
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "Reference to an executable under /usr/bin",
            "id": "micro-behaviors/fs/path/binary::usr-bin-executable-path",
            "spans": [
              [
                2,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-access verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-access-verb-token",
            "spans": [
              [
                414,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Directive or message vocabulary token",
            "id": "metadata/lang/natural/vocabulary/content-word::directive-or-message-word-token",
            "spans": [
              [
                137,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                39,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                765,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                178,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                161,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                168,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 1,
            "desc": "Python class declared with a base class",
            "id": "metadata/lang/source/declaration::class-with-base",
            "spans": [
              [
                898,
                0
              ]
            ]
          }
        ],
        "type": "python"
      },
      {
        "depth": 1,
        "id": 10,
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/model/ranger_role.py",
        "pid": 0,
        "risk": 0,
        "sha": "24b2012b0e6dd74b02bc210ce3fc13d97edc745bbe37874fba42cde93297695c",
        "sid": 1651723501,
        "size": 1723,
        "type": "python"
      },
      {
        "depth": 1,
        "id": 11,
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/model/ranger_security_zone.py",
        "pid": 0,
        "risk": 0,
        "sha": "3e2dafbc682d97cbf1cbd1924cd650bddab1fcee6e291ad119186e988c8372a7",
        "sid": 10770049899,
        "size": 1738,
        "type": "python"
      },
      {
        "depth": 1,
        "id": 12,
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/model/ranger_service.py",
        "pid": 0,
        "risk": 0,
        "sha": "02e0ff079386c9219b90c6b57b6d3a8303f1b08f19122c97b7dbb413ee69d36c",
        "sid": 10770049888,
        "size": 1613,
        "type": "python"
      },
      {
        "depth": 1,
        "id": 13,
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/model/ranger_service_def.py",
        "pid": 0,
        "risk": 0,
        "sha": "54d66bb0e89c9f1fb825efa743d3a309c00c50212687856528e584effaa5d95d",
        "sid": 10770049902,
        "size": 9766,
        "type": "python"
      },
      {
        "depth": 1,
        "id": 14,
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/model/ranger_service_resource.py",
        "pid": 0,
        "risk": 0,
        "sha": "48b7928833e0c98d01eb3864ce8ef49926d0b5c96a5bb4fb68dcadcb5de97d2e",
        "sid": 1651724837,
        "size": 1833,
        "type": "python"
      },
      {
        "depth": 1,
        "id": 15,
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/model/ranger_service_tags.py",
        "pid": 0,
        "risk": 0,
        "sha": "c95dd1d0ad1e01f01c501f658040a190b908db7769334207bbb665b85d71ba6e",
        "sid": 1651728890,
        "size": 2395,
        "type": "python"
      },
      {
        "depth": 1,
        "id": 16,
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/model/ranger_tag.py",
        "pid": 0,
        "risk": 0,
        "sha": "5842559eb506df80a126e95c5efebd1078f282c302b421fdc9a4361176be7ba7",
        "sid": 1651725348,
        "size": 1548,
        "type": "python"
      },
      {
        "depth": 1,
        "id": 17,
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/model/ranger_tagdef.py",
        "pid": 0,
        "risk": 0,
        "sha": "16c609f7e55b78b5e496505a934ddf27d9aab89b4c7157a0b6d2be20311d2adb",
        "sid": 1651723057,
        "size": 1567,
        "type": "python"
      },
      {
        "analysis_gaps": [
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "#!/usr/bin/env python\n\n#\n# Licensed to the Apache Software Foundation (ASF) under one or more\n# contributor license agreements.  See the NOTICE file distributed with\n# this work for additional information regarding copyright ownership.\n# The ASF licenses this file to You under"
          },
          {
            "col": 66,
            "line": 8,
            "ln": 375,
            "s": " with\n# the License.  You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under "
          },
          {
            "col": 19,
            "line": 16,
            "ln": 717,
            "s": "for the specific language governing permissions and\n# limitations under the License.\n\nimport enum\n\nAPPLICATION_JSON         = 'application/json'\n\n\ndef non_null(obj, defValue):\n    return obj if"
          },
          {
            "col": 7,
            "line": 40,
            "ln": 1204,
            "s": " isinstance(obj, list):\n        ret = []\n        for entry in obj:\n            ret.append(type_coerce(entry, objType))\n    else:\n        ret = None\n\n    retur"
          },
          {
            "col": 83,
            "line": 79,
            "ln": 2233,
            "s": "self.consumes, self.produces)\n\n\nclass HttpMethod(enum.Enum):\n    GET    = \"GET\"\n    PUT    = \"PUT\"\n    POST   = \"POST\"\n    DELETE = \"DELETE\"\n\n\nclass HTTPStatus:\n    OK                    = 200\n    NO_CONTENT            = 204\n    NOT_FOUND             = 404\n    INTERNAL_SERVER_ERROR = 500\n    SERVICE_UNAVAILABLE   = 503\n"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "non_null",
              864
            ],
            [
              "type_coerce",
              942
            ],
            [
              "type_coerce_list",
              1162
            ],
            [
              "type_coerce_dict",
              1369
            ],
            [
              "type_coerce_dict_list",
              1576
            ],
            [
              "__init__",
              1809
            ],
            [
              "format_path",
              2120
            ]
          ],
          "imp": [
            [
              "",
              "isinstance"
            ],
            [
              "",
              "isinstance"
            ],
            [
              "",
              "objType"
            ],
            [
              "",
              "ret.type_coerce_attrs"
            ],
            [
              "",
              "isinstance"
            ],
            [
              "",
              "ret.append"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "isinstance"
            ],
            [
              "",
              "obj.items"
            ],
            [
              "",
              "type_coerce"
            ],
            [
              "",
              "isinstance"
            ],
            [
              "",
              "obj.items"
            ],
            [
              "",
              "type_coerce_list"
            ],
            [
              "",
              "API"
            ],
            [
              "",
              "self.path.format"
            ],
            [
              "",
              "enum"
            ]
          ],
          "mbr": [
            "enum.Enum",
            "obj.items",
            "ret.append",
            "ret.type_coerce_attrs",
            "self.consumes",
            "self.expected_status",
            "self.method",
            "self.path",
            "self.path.format",
            "self.produces"
          ],
          "metrics": {
            "ast": {
              "call_count": 15,
              "max_depth": 12,
              "max_member_depth": 3,
              "member_count": 10,
              "node_count": 536
            },
            "binary": {
              "peak_region_bytes": 1530,
              "peak_region_entropy": 4.9
            },
            "binds": {
              "count": 24
            },
            "comments": {
              "chars": 769,
              "count": 16,
              "empty": 3,
              "high_entropy": 2,
              "lines": 13,
              "to_code_ratio": 0.16,
              "url_count": 1
            },
            "file": {
              "entropy": 4.77,
              "size": 2554
            },
            "functions": {
              "avg_length_lines": 6.86,
              "avg_name_length": 13,
              "avg_param_name_length": 5.89,
              "avg_params": 2.57,
              "code_ratio": 0.51,
              "count": 10,
              "density": 7.45,
              "length_stddev": 3.36,
              "max_length_lines": 11,
              "max_params": 6,
              "min_length_lines": 2
            },
            "identifiers": {
              "all_lowercase_ratio": 0.63,
              "all_uppercase_ratio": 0.26,
              "avg_entropy": 2.32,
              "avg_length": 8.05,
              "count": 132,
              "double_underscore_count": 1,
              "length_stddev": 5.34,
              "max_length": 21,
              "min_length": 1,
              "reuse_ratio": 0.33,
              "sequential_names": 2,
              "single_char_count": 2,
              "single_char_ratio": 0.05,
              "underscore_prefix_count": 1,
              "unique": 43
            },
            "imports": {
              "count": 1,
              "stdlib_count": 1,
              "stdlib_ratio": 1
            },
            "source": {
              "class_count": 3,
              "function_count": 7
            },
            "strings": {
              "avg_entropy": 2.07,
              "avg_length": 6.4,
              "bytes": 32,
              "count": 5,
              "entropy_stddev": 0.67,
              "max_length": 16
            },
            "text": {
              "avg_line_length": 26.17,
              "char_entropy": 4.77,
              "digit_ratio": 0.01,
              "empty_line_ratio": 0.22,
              "identifier_density": 1.4,
              "identifiers_to_functions_ratio": 6.14,
              "import_density": 1.06,
              "imports_to_functions_ratio": 0.14,
              "last_line_length": 31,
              "line_length_stddev": 24.37,
              "lines": 94,
              "max_line_length": 111,
              "max_whitespace_run": 20,
              "normalized_function_count": 0.72,
              "normalized_import_count": 0.1,
              "normalized_string_count": 0.52,
              "normalized_unique_identifiers": 6.56,
              "repeated_char_sequences": 8,
              "space_count": 612,
              "string_density": 0.05,
              "strings_to_functions_ratio": 0.71,
              "suspicious_comment_ratio": 0.13,
              "suspicious_identifier_ratio": 0.05,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.08,
              "unique_chars": 74,
              "whitespace_ratio": 0.28
            }
          },
          "tgt": [
            "API",
            "isinstance",
            "obj.items",
            "objType",
            "ret.append",
            "ret.type_coerce_attrs",
            "self.path.format",
            "type_coerce",
            "type_coerce_list"
          ]
        },
        "id": 18,
        "mol": "H₂(Cm₃Db)",
        "path": "apache_ranger-0.0.6-py3-none-any.whl!!apache_ranger/utils.py",
        "pid": 0,
        "risk": 5,
        "sha": "0fa1e150584c5550df1df5ba7ce4b60b94bdd6560b43539add6fe7ecefba772b",
        "sid": 10770049894,
        "size": 2554,
        "traits": [
          {
            "conf": 0.84,
            "crit": 3,
            "desc": "Source HTTP POST method literal",
            "id": "micro-behaviors/communications/http/post::source-post-method-literal",
            "mbc": "C0002",
            "spans": [
              [
                2346,
                4
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Quoted HTTP POST method token",
            "id": "micro-behaviors/communications/http/request/reference::quoted-post-token",
            "spans": [
              [
                2345,
                6
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python comment contains a URL",
            "id": "micro-behaviors/communications/url/reference::python-comment-url-reference",
            "spans": [
              [
                439,
                9
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Assigns variable to 257-999 numeric bound",
            "id": "micro-behaviors/data/string/assembly::variable-bound-257-to-999",
            "spans": [
              [
                2462,
                27
              ],
              [
                2494,
                27
              ],
              [
                2526,
                27
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Overall entropy at most 5.0",
            "id": "metadata/file/entropy::overall-entropy-at-most-five"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Script peak-entropy region mass at least 1KB",
            "id": "metadata/file/entropy::script-peak-entropy-region-mass-at-least-1k"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "File uses a Python artifact extension",
            "id": "metadata/file/extension/identity::py"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source, stub, or bytecode extension",
            "id": "metadata/file/extension/identity::python-artifact-extension"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python source file extension (.py only)",
            "id": "metadata/file/extension/identity::python-source-extension"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "File has 30 or more lines",
            "id": "metadata/file/line::file-has-30-plus-lines"
          },
          {
            "conf": 0.65,
            "crit": 2,
            "desc": "Python file under 120 lines",
            "id": "metadata/file/line::python-under-120-lines"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports enum",
            "id": "metadata/import/python/enum::enum",
            "spans": [
              [
                810,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                178,
                0
              ]
            ],
            "uses": [
              23,
              24,
              25,
              26,
              27
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python shebang line (unversioned)",
            "id": "metadata/lang/shebang::python",
            "spans": [
              [
                0,
                0
              ]
            ]
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "Source contains for-loop syntax",
            "id": "metadata/lang/source/syntax/control-flow::for-loop-content",
            "spans": [
              [
                1252,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Apache Software Foundation license header",
            "id": "metadata/package/license::apache-asf-source-header",
            "spans": [
              [
                27,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "For/foreach loop over a collection",
            "id": "micro-behaviors/data/control-flow/loop/collection::record-loop-header",
            "spans": [
              [
                1253,
                0
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 2,
            "desc": "Reference to an executable under /usr/bin",
            "id": "micro-behaviors/fs/path/binary::usr-bin-executable-path",
            "spans": [
              [
                2,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Top-level Python import statement line",
            "id": "micro-behaviors/process/interpreter/python::module-import-statement",
            "spans": [
              [
                803,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-access verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-access-verb-token",
            "spans": [
              [
                414,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-transfer verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-transfer-verb-token",
            "spans": [
              [
                2336,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Directive or message vocabulary token",
            "id": "metadata/lang/natural/vocabulary/content-word::directive-or-message-word-token",
            "spans": [
              [
                137,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "English edit-action verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::english-edit-verb-token",
            "spans": [
              [
                2356,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                39,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                765,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                178,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                161,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                168,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 1,
            "desc": "Python class declared with a base class",
            "id": "metadata/lang/source/declaration::class-with-base",
            "spans": [
              [
                2265,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Uppercase GET string literal",
            "id": "metadata/lang/source/literal/string/label::uppercase-get-literal",
            "spans": [
              [
                2308,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Uppercase PUT string literal",
            "id": "metadata/lang/source/literal/string/label::uppercase-put-literal",
            "spans": [
              [
                2327,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Shallow agent skill bundle script file",
            "id": "metadata/package/agent-skill::agent-skill-bundle-script-file"
          }
        ],
        "type": "python"
      }
    ],
    "v": 8
  }
}