{
  "ml": {
    "analyzed_at": "2026-11-19T17:38:49Z",
    "files": [
      {
        "lvl": -1,
        "prob": 0.074322045,
        "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,
    "mods": [
      {
        "cls": 0
      }
    ],
    "prob": 0.074322045,
    "v": "7",
    "version": "v20.20"
  },
  "path": "nice_go-1.0.3-py3-none-any.whl",
  "raw": {
    "files": [
      {
        "depth": 0,
        "facts": {
          "metrics": {
            "archive": {
              "compressed_size": 16619,
              "compression.method_counts.deflate": 14,
              "compression.ratio": 0.24,
              "crc_collision_count": 0,
              "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": 14,
              "format.regular_count": 14,
              "hidden_file_count": 0,
              "homoglyph_filename_count": 0,
              "local_header_signature_count": 14,
              "max_filename_length": 40,
              "member_count": 14,
              "misplaced_executable_count": 0,
              "nested_archive_count": 0,
              "noise_file_count": 0,
              "path_traversal_count": 0,
              "rtlo_filename_count": 0,
              "script_count": 9,
              "security.encrypted_count": 0,
              "security.setgid_count": 0,
              "security.setuid_count": 0,
              "security.sticky_count": 0,
              "security.symlink_count": 0,
              "security.world_writable_count": 0,
              "symlink_escape_count": 0,
              "timing.mtime_dominant_count": 14,
              "timing.mtime_dominant_ratio": 1,
              "timing.mtime_spread_seconds": 0,
              "timing.mtime_unique_count": 1,
              "timing.mtime_unique_ratio": 0.07,
              "timing.sentinel_mtime_count": 0,
              "uncompressed_size": 69497,
              "unicode_filename_count": 0,
              "zip_bomb_ratio": 5.76
            },
            "binary": {
              "peak_region_bytes": 17408,
              "peak_region_entropy": 7.84
            },
            "consistency": {
              "metadata_identity_mismatch": 0,
              "self_dependency": 0
            },
            "file": {
              "entropy": 7.92,
              "size": 18411
            },
            "whl": {
              "native_extension_count": 0
            }
          }
        },
        "id": 0,
        "ident": {
          "name": {
            "value": "nice_go",
            "source": "whl.distribution",
            "verified": false
          },
          "trust": "unsigned",
          "emails": [
            "34712694+IceBotYT@users.noreply.github.com"
          ],
          "authors": [
            {
              "name": "IceBotYT",
              "role": "author",
              "email": "34712694+IceBotYT@users.noreply.github.com",
              "source": "whl.authors"
            }
          ],
          "version": {
            "value": "1.0.3",
            "source": "whl.version",
            "verified": false
          },
          "description": {
            "value": "Control various Nice access control products",
            "source": "whl.description",
            "verified": false
          }
        },
        "mol": "O(Ca)H₆(Cm₁₀Db₁₂FOs₂PoTi)Md₅(In₅NePa₆Pt₄)",
        "path": "nice_go-1.0.3-py3-none-any.whl",
        "risk": 28,
        "sha": "1b466e3ae1ee8190da382b48fef0c5dd84022c042a1d6da6bf2697ee5f555899",
        "size": 18411,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Archive contains at least ten members",
            "id": "metadata/archive/layout::archive-at-least-10-members"
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "Small .py/.pyw file without import/def tokens",
            "from": [
              {
                "file": 7
              }
            ],
            "id": "metadata/file/size::small-no-imports"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Imports Python base64 module",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/import/builtin::python-base64-import"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports aiohttp",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/import/python/aiohttp::aiohttp"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports base64",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/import/python/base64::base64"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports boto3",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/boto3::boto3"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports botocore",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/botocore::botocore"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Source has 6+ code-like string candidates",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/lang/source/literal/embedded-source::embedded-code-candidates-6"
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Python asyncio library reference",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/lang/source/naming/interface/runtime::asyncio-reference"
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "References the client_id token",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/lang/source/naming/setting::client-id-token"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Quoted timeout setting-name token",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/lang/source/naming/setting::timeout-setting-name-token"
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "Python source contains .listen call text",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/lang/source/syntax/call/member::python-listen-call-text"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Quoted data field precedes string delimiter",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/lang/source/syntax/key-value::quoted-data-string-field"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares Markdown package description",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/description/presence::pkginfo-markdown-description"
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Package metadata references Shields badge URLs",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/documentation/package-metadata::pkginfo-body-has-badges"
          },
          {
            "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": "Python 3.14 classifier",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/files/wheel-sdist::python-314-classifier"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares Python package license file",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/license::pkginfo-license-file"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares supported Python versions",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/runtime::pkginfo-requires-python"
          },
          {
            "atk": "T1071.001",
            "conf": 0.5,
            "crit": 3,
            "desc": "Authorization header-name literal",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "micro-behaviors/communications/http/authorization-header::auth-header",
            "mbc": "C0002"
          },
          {
            "atk": "T1071.001",
            "conf": 0.88,
            "crit": 3,
            "desc": "Defines an HTTP Authorization header mapping",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "micro-behaviors/communications/http/authorization-header::authorization-header-map-entry",
            "mbc": "C0002"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Imports the aiohttp Python HTTP client",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/communications/http/client/library::aiohttp-import"
          },
          {
            "conf": 0.93,
            "crit": 3,
            "desc": "Camel-case OAuth identity token field",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/device-code::id-token-camel-field"
          },
          {
            "conf": 0.93,
            "crit": 3,
            "desc": "Camel-case OAuth refresh token field",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/device-code::refresh-token-camel-field"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References HTTP Content-Type application/json",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "micro-behaviors/communications/http/header/content-type::json-header"
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "JSON Content-Type mapping in Python source",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "micro-behaviors/communications/http/header/content-type::python-json-content-type"
          },
          {
            "conf": 0.82,
            "crit": 3,
            "desc": "HTTP POST supplies a body argument",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "micro-behaviors/communications/http/request/body/construction::http-post-with-body-argument"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Post method receives a JSON argument",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "micro-behaviors/communications/http/request/json::python-post-json-method"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Creates a boto3 client, resource or session",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/communications/http/services/aws::python-boto3-client-construction"
          },
          {
            "conf": 0.93,
            "crit": 3,
            "desc": "Reads a refresh_token member value",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/token-auth::member-refresh-token-access"
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "refresh_token field reference",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/communications/http/token-auth::refresh-token"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Refresh token field in source",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/token-auth::refresh-token-field-source"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Snake-case OAuth refresh_token field assign",
            "from": [
              {
                "file": 3
              }
            ],
            "id": "micro-behaviors/communications/http/token-auth::refresh-token-snake-assign"
          },
          {
            "conf": 0.93,
            "crit": 3,
            "desc": "OAuth token object member",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/communications/http/token-auth::token-object-field"
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "HTTP URL string literal",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "micro-behaviors/communications/url/scheme::http-url-literal"
          },
          {
            "atk": "T1071.001",
            "conf": 0.9,
            "crit": 3,
            "desc": "aiohttp WebSocket client connection",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/communications/websocket/library::aiohttp-websocket-connect",
            "mbc": "C0002"
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "WebSocket class reference",
            "from": [
              {
                "file": 7
              }
            ],
            "id": "micro-behaviors/communications/websocket/library::websocket-class-reference"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Reads code/command/script/payload mapping key",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/collection/map::mapping-get-code-command-script-payload-key"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python message-key lookup",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/collection/map::mapping-get-message-key"
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Handles HTTP, URL or connection errors",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/control-flow/error-handling/catch::network-error-handler",
            "mbc": "C0027"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Encodes data with Python base64.b64encode()",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/encode/base64/primitive::b64encode-call"
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Encodes serialized JSON text as bytes",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/encode/charset::python-json-string-encode"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Base64 encoding near JSON serialization",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/encode/serialized-json::base64-json-encoding-proximity"
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Base64-encodes serialized JSON",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/encode/serialized-json::python-json-base64-encoding"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "JSON command or task field key",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "micro-behaviors/data/format/json::json-command-field"
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Replaces data with a redaction marker",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/manipulation::replacement-redaction-marker"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Assigns a string replace result",
            "from": [
              {
                "file": 8
              }
            ],
            "id": "micro-behaviors/data/manipulation::string-replace-result-assignment"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Parses JSON data with Python",
            "from": [
              {
                "file": 8
              }
            ],
            "id": "micro-behaviors/data/parse/json::json-loads-call"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Calls a JSON body reader method",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "micro-behaviors/data/parse/json::python-json-body-method-call"
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Python JSON loads and dumps",
            "from": [
              {
                "file": 6,
                "line": 48,
                "off": 2487
              },
              {
                "file": 8,
                "line": 24,
                "off": 543
              },
              {
                "file": 9,
                "line": 65,
                "off": 1891
              },
              {
                "file": 10,
                "line": 630,
                "off": 21103
              }
            ],
            "id": "micro-behaviors/data/parse/json::python-json-parse-and-serialize",
            "uses": [
              47,
              51
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "JSON object payload field fragment",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "micro-behaviors/data/serialize/envelope::json-payload-field"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Serializes data with Python json.dumps()",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "micro-behaviors/data/serialize/json::json-dumps-call"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "JSON-like host or hostname field",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "micro-behaviors/data/serialize/schema-system::host-field-key"
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Bracketed redacted replacement marker",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/string/redact::bracketed-redacted-marker"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "REDACTED replacement marker",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/string/redact::redacted-replacement-marker"
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Python opens a named variable",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/fs/path/traversal::python-opens-joined-path"
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "OAuth refresh-token environment variable",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/os/env/secret-name::refresh-token-env-name"
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Generic \"Authentication failed\" message",
            "from": [
              {
                "file": 7
              }
            ],
            "id": "micro-behaviors/os/message/error::authentication-failed"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls base64.b64encode in Python or script",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/os/sysinfo/profile::python-b64encode-text"
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Synchronizes threads on POSIX barrier",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "micro-behaviors/process/thread/runtime::posix-barrier-sync"
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "Calls a function named sleep in Python",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/time/sleep/interval::python-sleep-call"
          },
          {
            "atk": "T1528,T1550",
            "conf": 0.94,
            "crit": 3,
            "desc": "Python JSON request carries refresh token",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "objectives/credential-access/cloud/token/oauth::python-refresh-token-json-request-field"
          },
          {
            "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": 4
              }
            ],
            "id": "metadata/file/entropy::script-peak-entropy-region-mass-at-least-1k"
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "JSON file extension",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/file/extension/identity::json-extension"
          },
          {
            "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": 3
              }
            ],
            "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.9,
            "crit": 2,
            "desc": "Very long line",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "metadata/file/line::single-long-line"
          },
          {
            "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 get_session from aiobotocore.session",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/aiobotocore/session/get_session::get_session"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports aiobotocore.session",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/aiobotocore/session::aiobotocore/session"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports asyncio",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/import/python/asyncio::asyncio"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports contextlib",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/contextlib::contextlib"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports dataclass from dataclasses",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/import/python/dataclasses/dataclass::dataclass"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports dataclasses",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/import/python/dataclasses::dataclasses"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports datetime from datetime",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/import/python/datetime/datetime::datetime"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports datetime",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/import/python/datetime::datetime"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports inspect",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/inspect::inspect"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports json",
            "from": [
              {
                "file": 6
              }
            ],
            "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.95,
            "crit": 2,
            "desc": "imports AuthenticationTokens from nice_go._authentication_tokens",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/nice_go/_authentication_tokens/authenticationtokens::authenticationtokens"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._authentication_tokens",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/nice_go/_authentication_tokens::nice_go/_authentication_tokens"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports AwsCognitoAuthenticator from nice_go._aws_cognito_authenticator",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/nice_go/_aws_cognito_authenticator/awscognitoauthenticator::awscognitoauthenticator"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._aws_cognito_authenticator",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/nice_go/_aws_cognito_authenticator::nice_go/_aws_cognito_authenticator"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Barrier from nice_go._barrier",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/_barrier/barrier::barrier"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports BarrierState from nice_go._barrier",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/_barrier/barrierstate::barrierstate"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ConnectionState from nice_go._barrier",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/_barrier/connectionstate::connectionstate"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._barrier",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/_barrier::nice_go/_barrier"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports BARRIER_STATUS from nice_go._const",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/_const/barrier_status::barrier_status"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ENDPOINTS_URL from nice_go._const",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/nice_go/_const/endpoints_url::endpoints_url"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports REQUEST_TEMPLATES from nice_go._const",
            "from": [
              {
                "file": 8
              }
            ],
            "id": "metadata/import/python/nice_go/_const/request_templates::request_templates"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._const",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/_const::nice_go/_const"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ApiError from nice_go._exceptions",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/_exceptions/apierror::apierror"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports AuthFailedError from nice_go._exceptions",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/_exceptions/authfailederror::authfailederror"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports NiceGOError from nice_go._exceptions",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/_exceptions/nicegoerror::nicegoerror"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports NoAuthError from nice_go._exceptions",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/_exceptions/noautherror::noautherror"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ReconnectWebSocketError from nice_go._exceptions",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/import/python/nice_go/_exceptions/reconnectwebsocketerror::reconnectwebsocketerror"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports WebSocketError from nice_go._exceptions",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/_exceptions/websocketerror::websocketerror"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._exceptions",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/_exceptions::nice_go/_exceptions"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports find_unauthorized_error from nice_go._util",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/import/python/nice_go/_util/find_unauthorized_error::find_unauthorized_error"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports get_request_template from nice_go._util",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/import/python/nice_go/_util/get_request_template::get_request_template"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._util",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/import/python/nice_go/_util::nice_go/_util"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports WebSocketClient from nice_go._ws_client",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/nice_go/_ws_client/websocketclient::websocketclient"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._ws_client",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/nice_go/_ws_client::nice_go/_ws_client"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports NiceGOApi from nice_go.nice_go_api",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/nice_go_api/nicegoapi::nicegoapi"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go.nice_go_api",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/python/nice_go/nice_go_api::nice_go/nice_go_api"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports AWSSRP from pycognito",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/pycognito/awssrp::awssrp"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports pycognito",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/import/python/pycognito::pycognito"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports before_sleep_log from tenacity",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/tenacity/before_sleep_log::before_sleep_log"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports retry from tenacity",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/tenacity/retry::retry"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports retry_base from tenacity",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/tenacity/retry_base::retry_base"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports retry_if_exception_type from tenacity",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/tenacity/retry_if_exception_type::retry_if_exception_type"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RetryCallState from tenacity",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/tenacity/retrycallstate::retrycallstate"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports wait_random_exponential from tenacity",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/tenacity/wait_random_exponential::wait_random_exponential"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports tenacity",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/tenacity::tenacity"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Any from typing",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/import/python/typing/any::any"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Callable from typing",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/import/python/typing/callable::callable"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Coroutine from typing",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/typing/coroutine::coroutine"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports NamedTuple from typing",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/import/python/typing/namedtuple::namedtuple"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports TYPE_CHECKING from typing",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/import/python/typing/type_checking::type_checking"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports TypeVar from typing",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/import/python/typing/typevar::typevar"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports typing",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/import/python/typing::typing"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports uuid",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/import/python/uuid::uuid"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports yarl",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/import/python/yarl::yarl"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "uses": [
              179,
              180,
              181,
              182,
              183,
              184
            ]
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "Five or fewer comment lines in file",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "metadata/lang/source/comment::few-comment-lines"
          },
          {
            "conf": 0.99,
            "crit": 2,
            "desc": "Python declares a local open name",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/lang/source/naming/declaration::python-local-open-name-binding"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Replace-named member call syntax",
            "from": [
              {
                "file": 8
              }
            ],
            "id": "metadata/lang/source/syntax/call/invocation::replace-member-call-syntax"
          },
          {
            "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.8,
            "crit": 2,
            "desc": "Python doctest prompt",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/package/documentation/docstring::python-doctest-prompt"
          },
          {
            "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": [
              138,
              141,
              156,
              157
            ]
          },
          {
            "conf": 0.94,
            "crit": 2,
            "desc": "PyPI package declares license information",
            "from": [
              {
                "file": 1,
                "line": 6,
                "off": 118
              }
            ],
            "id": "metadata/package/ecosystem::pypi-license-metadata",
            "uses": [
              17,
              141
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "PyPI package declares comprehensive metadata",
            "from": [
              {
                "file": 1,
                "line": 3,
                "off": 36
              }
            ],
            "id": "metadata/package/ecosystem::pypi-rich-metadata",
            "uses": [
              13,
              141,
              142,
              143,
              145
            ]
          },
          {
            "conf": 0.94,
            "crit": 2,
            "desc": "PyPI package declares Python and dependencies",
            "from": [
              {
                "file": 1,
                "line": 9,
                "off": 214
              }
            ],
            "id": "metadata/package/ecosystem::pypi-runtime-metadata",
            "uses": [
              15,
              18,
              141
            ]
          },
          {
            "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.9,
            "crit": 2,
            "desc": "Wheel has no start.sh launcher member",
            "id": "metadata/package/files/included::wheel-lacks-start-shell"
          },
          {
            "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.6,
            "crit": 2,
            "desc": "Copyright notice",
            "from": [],
            "id": "metadata/package/license::copyright-word"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "MIT license permission grant sentence",
            "from": [],
            "id": "metadata/package/license::mit-license-grant-text"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "MIT License named in text",
            "from": [],
            "id": "metadata/package/license::mit-license-text"
          },
          {
            "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": "Permission or access term",
            "from": [],
            "id": "metadata/permission/prose::permission-permission-term-english"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Contains an HTTPS URL prefix",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "micro-behaviors/communications/http/message::https-prefix"
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "except keyword",
            "from": [
              {
                "file": 9
              }
            ],
            "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.3,
            "crit": 2,
            "desc": "While-loop control flow",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "micro-behaviors/data/control-flow/loop/conditional::while-loop"
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python unconditional while-loop header",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "micro-behaviors/data/control-flow/loop/unconditional::python-unconditional-while-header"
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Module scope assigns a call result",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "micro-behaviors/data/control-flow/module-exec::python-module-level-call-assignment"
          },
          {
            "conf": 0.94,
            "crit": 2,
            "desc": "Python return None statement",
            "from": [
              {
                "file": 8
              }
            ],
            "id": "micro-behaviors/data/control-flow/return::python-return-none"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Reads result through dot or arrow access",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/property/access::result-dot-member-read"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Python open() expression reference",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "micro-behaviors/fs/file/open/unspecified::python-open-reference"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Top-level Python import statement line",
            "from": [
              {
                "file": 4
              }
            ],
            "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.8,
            "crit": 1,
            "desc": "Python import-from statement",
            "from": [
              {
                "file": 2
              }
            ],
            "id": "metadata/import/module::python-import-from-statement"
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "Bare automatically-generated provenance phrase",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/lang/generated::automatically-generated-text"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Natural-language command word",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/lang/natural/vocabulary/content-word::command-word-token"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Control-action verb followed by alphabetic text",
            "from": [
              {
                "file": 5
              }
            ],
            "id": "metadata/lang/natural/vocabulary/content-word::control-action-prose-fragment"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-access verb token",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "metadata/lang/natural/vocabulary/content-word::data-access-verb-token"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-transfer verb token",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/lang/natural/vocabulary/content-word::data-transfer-verb-token"
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Directive or message vocabulary token",
            "from": [
              {
                "file": 9
              }
            ],
            "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": 5
              }
            ],
            "id": "metadata/lang/natural/vocabulary/content-word::english-edit-verb-token"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "Secret-data term token",
            "from": [
              {
                "file": 7
              }
            ],
            "id": "metadata/lang/natural/vocabulary/content-word::secret-data-term-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": 3
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"that\"",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-3"
          },
          {
            "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": 3
              }
            ],
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6"
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "from": [
              {
                "file": 4
              }
            ],
            "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": 7
              }
            ],
            "id": "metadata/lang/source/declaration::class-with-base"
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "String contains a host field",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "metadata/lang/source/literal/string/property::literal-host-field"
          },
          {
            "conf": 0.4,
            "crit": 1,
            "desc": "Result name with field or assignment separator",
            "from": [
              {
                "file": 9
              }
            ],
            "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.8,
            "crit": 1,
            "desc": "Text reads as test-code declarations",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/testing/terminology::test-code-declaration-text"
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "Package version has non-zero major",
            "from": [
              {
                "file": 1
              }
            ],
            "id": "metadata/package/versioning/scheme::package-version-nonzero-major"
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "Python parses HTTP response body as JSON",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "micro-behaviors/communications/http/client/response-body::python-response-json-call"
          },
          {
            "conf": 0.94,
            "crit": 1,
            "desc": "WordPress install.php user_name form field",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "micro-behaviors/communications/http/request/params::wordpress-install-username-param"
          },
          {
            "conf": 0.4,
            "crit": 1,
            "desc": "Public cloud provider name (AWS)",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/communications/http/services/cloud::repeated-public-cloud-provider-name--aws"
          },
          {
            "conf": 0.65,
            "crit": 1,
            "desc": "Token-named field assignment (weak auth signal)",
            "from": [
              {
                "file": 10
              }
            ],
            "id": "micro-behaviors/communications/http/token-auth::token-field-assignment"
          },
          {
            "conf": 0.45,
            "crit": 1,
            "desc": "PASSWORD credential label",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/data/format/credentials::password-upper"
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "JSON \"data\" field key",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "micro-behaviors/data/format/json::json-data-field"
          },
          {
            "conf": 0.45,
            "crit": 1,
            "desc": "Contains the standalone word token",
            "from": [
              {
                "file": 4
              }
            ],
            "id": "micro-behaviors/data/parse/vocabulary::token-word"
          },
          {
            "conf": 0.94,
            "crit": 1,
            "desc": "Copies token between structured fields",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/property/assign::token-field-to-field-assignment",
            "mbc": "C0002"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "JSON-like object command field",
            "from": [
              {
                "file": 6
              }
            ],
            "id": "micro-behaviors/data/serialize/schema-object::command-field-key"
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "JSON-like object result field",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/data/serialize/schema-object::result-field-key"
          },
          {
            "conf": 0.82,
            "crit": 1,
            "desc": "CLI item subcommand token",
            "from": [
              {
                "file": 9
              }
            ],
            "id": "micro-behaviors/process/argument/subcommand::cli-verb-item"
          }
        ],
        "type": "whl"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "Metadata-Version: 2.4\nName: nice-go\nVersion: 1.0.3\nSummary: Control various Nice access control products\nLicense: MIT\nLicense-File: LICENSE\nAuthor: IceBotYT\nAuthor-email: 34712694+IceBotYT@users.noreply.github.com\nRequires-Python: \u003e=3.9.1,\u003c4.0\nClassifier: Development Status :: 4 - Beta\nClassifier: Intended Audience :: Developers\nClassifier: License :: OSI Approved :: M"
          },
          {
            "col": 39,
            "line": 18,
            "ln": 660,
            "s": "thon :: 3.12\nClassifier: Programming Language :: Python :: 3.13\nClassifier: Programming Language :: Python :: 3.14\nClassifier: Programming Language :: Python :: 3.9\nClassifier: Topic :: Software Development :: Libraries :: Python Modules\nClassifier: Typing :: Typed\nRequires-Dist: aiobotocore (\u003e=2.13.1,\u003c4.0.0)\nRequires-Dist: aiohttp (\u003e=3.9.5)\nRequires-Dist: pycognito (\u003e=2024.5.1)\nRequires-Dist: tenacity (\u003e=8.5.0)\nRequires-Dist: yarl (\u003e"
          },
          {
            "col": 56,
            "line": 30,
            "ln": 1224,
            "s": "go\nProject-URL: Repository, https://github.com/IceBotYT/nice-go\nDescription-Content-Type: text/markdown\n\n# Nice G.O.\n\n[![PyPI](https://img.shields.io/pypi/v/nice-go?style=flat-square)](https://pypi.python.org/pypi/nice-go/)\n[![PyPI - Python Version](https://img.shields.io/pypi"
          },
          {
            "col": 6,
            "line": 76,
            "ln": 2717,
            "s": "y shell\n```\n\n### Testing\n\n```sh\npytest\n```\n\n### Documentation\n\nThe documentation is automatically generated from the content of the [docs directory](https://github.com/Ice"
          }
        ],
        "depth": 1,
        "facts": {
          "metrics": {
            "binary": {
              "peak_region_bytes": 4096,
              "peak_region_entropy": 5.21
            },
            "consistency": {
              "metadata_identity_mismatch": 0,
              "self_dependency": 0
            },
            "file": {
              "entropy": 5.17,
              "size": 4330
            }
          }
        },
        "id": 1,
        "mol": "Md(Pa₆)",
        "path": "nice_go-1.0.3-py3-none-any.whl!!nice_go-1.0.3.dist-info/METADATA",
        "pid": 0,
        "refs": [
          {
            "kind": "dependency",
            "off": 941,
            "to": "pkg:pypi/aiobotocore?version_requirement=%3E%3D2.13.1%2C%3C4.0.0"
          },
          {
            "kind": "dependency",
            "off": 986,
            "to": "pkg:pypi/aiohttp?version_requirement=%3E%3D3.9.5"
          },
          {
            "kind": "dependency",
            "off": 1019,
            "to": "pkg:pypi/pycognito?version_requirement=%3E%3D2024.5.1"
          },
          {
            "kind": "dependency",
            "off": 1057,
            "to": "pkg:pypi/tenacity?version_requirement=%3E%3D8.5.0"
          },
          {
            "kind": "dependency",
            "off": 1091,
            "to": "pkg:pypi/yarl?version_requirement=%3E%3D1.9.4"
          }
        ],
        "risk": 6,
        "sha": "e42d1ae5ad927d90eb6f38e1ae2a6e49e21bd02fdec7a14bbf3e24887de959f5",
        "sid": 10769519274,
        "size": 4330,
        "supp": [
          {
            "by": [
              {
                "id": "value"
              }
            ],
            "crit": "notable",
            "id": "metadata/package/description/presence::pkginfo-no-summary",
            "kind": "unless"
          }
        ],
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares Markdown package description",
            "id": "metadata/package/description/presence::pkginfo-markdown-description",
            "spans": [
              [
                1288,
                40
              ]
            ]
          },
          {
            "conf": 0.7,
            "crit": 3,
            "desc": "Package metadata references Shields badge URLs",
            "id": "metadata/package/documentation/package-metadata::pkginfo-body-has-badges",
            "spans": [
              [
                1359,
                14
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares Python runtime dependencies",
            "id": "metadata/package/ecosystem::pkginfo-requires-dist",
            "spans": [
              [
                926,
                44
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python 3.14 classifier",
            "id": "metadata/package/files/wheel-sdist::python-314-classifier",
            "spans": [
              [
                724,
                50
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares Python package license file",
            "id": "metadata/package/license::pkginfo-license-file",
            "spans": [
              [
                118,
                21
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Declares supported Python versions",
            "id": "metadata/package/runtime::pkginfo-requires-python",
            "spans": [
              [
                214,
                29
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Declares Python package summary",
            "id": "metadata/package/description/presence::pkginfo-summary-field",
            "spans": [
              [
                51,
                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": [
              [
                36,
                0
              ]
            ],
            "uses": [
              6,
              8,
              13,
              14
            ]
          },
          {
            "conf": 0.94,
            "crit": 2,
            "desc": "PyPI package declares license information",
            "id": "metadata/package/ecosystem::pypi-license-metadata",
            "spans": [
              [
                118,
                0
              ]
            ],
            "uses": [
              4,
              8
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "PyPI package declares comprehensive metadata",
            "id": "metadata/package/ecosystem::pypi-rich-metadata",
            "spans": [
              [
                36,
                0
              ]
            ],
            "uses": [
              0,
              8,
              9,
              10,
              12
            ]
          },
          {
            "conf": 0.94,
            "crit": 2,
            "desc": "PyPI package declares Python and dependencies",
            "id": "metadata/package/ecosystem::pypi-runtime-metadata",
            "spans": [
              [
                214,
                0
              ]
            ],
            "uses": [
              2,
              5,
              8
            ]
          },
          {
            "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": [
              [
                36,
                0
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "Bare automatically-generated provenance phrase",
            "id": "metadata/lang/generated::automatically-generated-text",
            "spans": [
              [
                2801,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "Text reads as test-code declarations",
            "id": "metadata/package/testing/terminology::test-code-declaration-text",
            "spans": [
              [
                2749,
                0
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "Package version has non-zero major",
            "id": "metadata/package/versioning/scheme::package-version-nonzero-major"
          }
        ],
        "type": "pkg_info"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "\"\"\"The Nice G.O. API client for Python.\n\nTo start, see the [`NiceGOApi`][nice_go.NiceGOApi] class.\"\"\"\n\nfrom nice_go._barrier import Barrier, BarrierState, ConnectionState\nfrom nice_go._const import BARRIER_STATUS\nfrom nice_go._exceptions import (\n    ApiError,\n    AuthFailedError,\n    NiceGOError,\n    NoAuthError,\n    WebSocketError,\n)\nfrom nice_go.nice_go_api import NiceGOApi\n\n__all__ = [\n    \"BARRIER_STATUS\",\n    \"Barrier\",\n    \"NiceGOApi\",\n    \"ApiError\",\n    \"AuthFailedError\",\n    \"NiceGOError\",\n    \"WebSocketError\",\n    \"NoAuthError\",\n    \"BarrierState\",\n    \"ConnectionState\",\n]\n"
          }
        ],
        "depth": 1,
        "facts": {
          "imp": [
            [
              "nice_go._exceptions",
              "ApiError"
            ],
            [
              "nice_go._exceptions",
              "AuthFailedError"
            ],
            [
              "nice_go._const",
              "BARRIER_STATUS"
            ],
            [
              "nice_go._barrier",
              "Barrier"
            ],
            [
              "nice_go._barrier",
              "BarrierState"
            ],
            [
              "nice_go._barrier",
              "ConnectionState"
            ],
            [
              "nice_go.nice_go_api",
              "NiceGOApi"
            ],
            [
              "nice_go._exceptions",
              "NiceGOError"
            ],
            [
              "nice_go._exceptions",
              "NoAuthError"
            ],
            [
              "nice_go._exceptions",
              "WebSocketError"
            ],
            [
              "",
              "nice_go._barrier"
            ],
            [
              "",
              "nice_go._const"
            ],
            [
              "",
              "nice_go._exceptions"
            ],
            [
              "",
              "nice_go.nice_go_api"
            ]
          ],
          "metrics": {
            "ast": {
              "call_count": 0,
              "max_array_length": 10,
              "max_depth": 5,
              "node_count": 120
            },
            "binary": {
              "peak_region_bytes": 591,
              "peak_region_entropy": 4.74
            },
            "binds": {
              "count": 1
            },
            "file": {
              "entropy": 4.74,
              "size": 591
            },
            "identifiers": {
              "all_lowercase_ratio": 0.38,
              "all_uppercase_ratio": 0.06,
              "avg_entropy": 2.78,
              "avg_length": 10.38,
              "count": 19,
              "double_underscore_count": 1,
              "high_entropy_count": 1,
              "high_entropy_ratio": 0.06,
              "length_stddev": 2.96,
              "max_length": 15,
              "min_length": 6,
              "reuse_ratio": 0.84,
              "underscore_prefix_count": 4,
              "unique": 16
            },
            "imports": {
              "count": 14,
              "third_party_count": 14,
              "third_party_ratio": 1
            },
            "strings": {
              "avg_entropy": 3.04,
              "avg_length": 19.18,
              "bytes": 211,
              "count": 11,
              "entropy_stddev": 0.61,
              "max_length": 95,
              "shell": 1
            },
            "text": {
              "avg_line_length": 20.89,
              "char_entropy": 4.74,
              "empty_line_ratio": 0.11,
              "identifier_density": 0.7,
              "import_density": 51.85,
              "last_line_length": 1,
              "line_length_stddev": 16.53,
              "lines": 27,
              "max_line_length": 67,
              "max_whitespace_run": 1,
              "normalized_import_count": 2.69,
              "normalized_string_count": 2.12,
              "normalized_unique_identifiers": 3.36,
              "space_count": 87,
              "string_density": 0.41,
              "suspicious_string_ratio": 0.09,
              "top_char": 114,
              "top_char_null": 0,
              "top_char_ratio": 0.09,
              "unique_chars": 48,
              "whitespace_ratio": 0.19
            }
          }
        },
        "id": 2,
        "mol": "H(Po)",
        "path": "nice_go-1.0.3-py3-none-any.whl!!nice_go/__init__.py",
        "pid": 0,
        "risk": 2,
        "sha": "c3e2646082821650f9b33d129ac5889807d2acebd65f4c222196caa6ed0d191c",
        "sid": 10769519270,
        "size": 591,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Synchronizes threads on POSIX barrier",
            "id": "micro-behaviors/process/thread/runtime::posix-barrier-sync",
            "spans": [
              [
                132,
                7
              ]
            ]
          },
          {
            "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.95,
            "crit": 2,
            "desc": "imports Barrier from nice_go._barrier",
            "id": "metadata/import/python/nice_go/_barrier/barrier::barrier",
            "spans": [
              [
                132,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports BarrierState from nice_go._barrier",
            "id": "metadata/import/python/nice_go/_barrier/barrierstate::barrierstate",
            "spans": [
              [
                141,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ConnectionState from nice_go._barrier",
            "id": "metadata/import/python/nice_go/_barrier/connectionstate::connectionstate",
            "spans": [
              [
                155,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._barrier",
            "id": "metadata/import/python/nice_go/_barrier::nice_go/_barrier",
            "spans": [
              [
                108,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports BARRIER_STATUS from nice_go._const",
            "id": "metadata/import/python/nice_go/_const/barrier_status::barrier_status",
            "spans": [
              [
                198,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._const",
            "id": "metadata/import/python/nice_go/_const::nice_go/_const",
            "spans": [
              [
                176,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ApiError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/apierror::apierror",
            "spans": [
              [
                251,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports AuthFailedError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/authfailederror::authfailederror",
            "spans": [
              [
                265,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports NiceGOError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/nicegoerror::nicegoerror",
            "spans": [
              [
                286,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports NoAuthError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/noautherror::noautherror",
            "spans": [
              [
                303,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports WebSocketError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/websocketerror::websocketerror",
            "spans": [
              [
                320,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions::nice_go/_exceptions",
            "spans": [
              [
                218,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports NiceGOApi from nice_go.nice_go_api",
            "id": "metadata/import/python/nice_go/nice_go_api/nicegoapi::nicegoapi",
            "spans": [
              [
                370,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go.nice_go_api",
            "id": "metadata/import/python/nice_go/nice_go_api::nice_go/nice_go_api",
            "spans": [
              [
                343,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                3,
                0
              ]
            ],
            "uses": [
              24,
              25
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "Python import-from statement",
            "id": "metadata/import/module::python-import-from-statement",
            "spans": [
              [
                103,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                3,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                28,
                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": "\"\"\"Holds the tokens retrieved from authentication.\"\"\"\n\nfrom __future__ import annotations\n\n\nclass AuthenticationTokens:\n    \"\"\"\n    A class to handle authentication tokens.\n\n    Initializes an AuthenticationTokens object with the provided data dictionary. It\n    extracts the 'IdToken' and 'RefreshToken' if available, storing them as attributes.\n\n    Args:\n        data (dict[str, str]): A dictionary containing authentication tokens.\n\n    Attributes:\n        id_token (str): The IdToken retrieved from authentication.\n        refresh_token (str | None): The RefreshToken retrieved from authentication. If\n            no RefreshToken is available, it is set to None.\n\n    \"\"\"\n\n    def __init__(self, data: dict[str, str]) -\u003e None:\n        \"\"\"Initialize the AuthenticationTokens object.\"\"\"\n        self.id_token = data[\"IdToken\"]\n        self.refresh_token: str | None = None\n        try:\n            self.refresh_token = data[\"RefreshToken\"]\n        except KeyError:\n            self.refresh_token = None\n"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "__init__",
              682
            ]
          ],
          "mbr": [
            "data.IdToken",
            "data.RefreshToken",
            "self.id_token",
            "self.refresh_token"
          ],
          "metrics": {
            "ast": {
              "call_count": 0,
              "max_depth": 11,
              "max_member_depth": 2,
              "member_count": 4,
              "node_count": 115,
              "op.bor": 1,
              "op_density.bor": 0.01
            },
            "binary": {
              "peak_region_bytes": 1006,
              "peak_region_entropy": 4.43
            },
            "binds": {
              "count": 4
            },
            "file": {
              "entropy": 4.43,
              "size": 1006
            },
            "functions": {
              "avg_length_lines": 8,
              "avg_name_length": 8,
              "avg_param_name_length": 4,
              "avg_params": 2,
              "code_ratio": 0.27,
              "count": 2,
              "density": 3.33,
              "max_length_lines": 8,
              "max_params": 2,
              "min_length_lines": 8
            },
            "identifiers": {
              "all_lowercase_ratio": 0.8,
              "avg_entropy": 2.34,
              "avg_length": 8.3,
              "count": 20,
              "double_underscore_count": 1,
              "high_entropy_count": 1,
              "high_entropy_ratio": 0.1,
              "length_stddev": 5,
              "max_length": 20,
              "min_length": 3,
              "reuse_ratio": 0.5,
              "underscore_prefix_count": 1,
              "unique": 10
            },
            "source": {
              "class_count": 1,
              "function_count": 1
            },
            "strings": {
              "avg_entropy": 3.66,
              "avg_length": 131,
              "bytes": 655,
              "count": 5,
              "embedded_code_candidates": 1,
              "entropy_stddev": 0.57,
              "max_length": 546,
              "sql": 1
            },
            "text": {
              "avg_line_length": 32.53,
              "char_entropy": 4.43,
              "empty_line_ratio": 0.27,
              "identifier_density": 0.67,
              "identifiers_to_functions_ratio": 10,
              "last_line_length": 37,
              "line_length_stddev": 29.26,
              "lines": 30,
              "max_line_length": 87,
              "max_whitespace_run": 1,
              "normalized_function_count": 0.18,
              "normalized_string_count": 0.91,
              "normalized_unique_identifiers": 2.04,
              "repeated_char_sequences": 3,
              "space_count": 216,
              "string_density": 0.17,
              "strings_to_functions_ratio": 5,
              "suspicious_string_ratio": 0.4,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.09,
              "unique_chars": 49,
              "whitespace_ratio": 0.24
            }
          }
        },
        "id": 3,
        "mol": "H(Cm₂)",
        "path": "nice_go-1.0.3-py3-none-any.whl!!nice_go/_authentication_tokens.py",
        "pid": 0,
        "risk": 2,
        "sha": "29815527fc9d89702cbcb1cd89fe762089887b32123b5c82a68d970fe05adf2e",
        "sid": 10769519267,
        "size": 1006,
        "traits": [
          {
            "conf": 0.93,
            "crit": 3,
            "desc": "Camel-case OAuth identity token field",
            "id": "micro-behaviors/communications/http/device-code::id-token-camel-field",
            "spans": [
              [
                818,
                11
              ]
            ]
          },
          {
            "conf": 0.93,
            "crit": 3,
            "desc": "Camel-case OAuth refresh token field",
            "id": "micro-behaviors/communications/http/device-code::refresh-token-camel-field",
            "spans": [
              [
                926,
                16
              ]
            ]
          },
          {
            "conf": 0.93,
            "crit": 3,
            "desc": "Reads a refresh_token member value",
            "id": "micro-behaviors/communications/http/token-auth::member-refresh-token-access",
            "spans": [
              [
                842,
                14
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Refresh token field in source",
            "id": "micro-behaviors/communications/http/token-auth::refresh-token-field-source",
            "spans": [
              [
                926,
                16
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Snake-case OAuth refresh_token field assign",
            "id": "micro-behaviors/communications/http/token-auth::refresh-token-snake-assign",
            "spans": [
              [
                843,
                14
              ]
            ]
          },
          {
            "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.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": [
              [
                221,
                0
              ]
            ],
            "uses": [
              14,
              15,
              16
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "Python import-from statement",
            "id": "metadata/import/module::python-import-from-statement",
            "spans": [
              [
                55,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                9,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                286,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                221,
                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-query-incomplete"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "\"\"\"AWS Cognito authentication and identity management.\n\nThis module provides a class to handle AWS Cognito authentication and identity\nmanagement.\n\nInfo:\n  "
          },
          {
            "col": 16,
            "line": 7,
            "ln": 169,
            "s": "need to use this module directly. It is used by the `nice_go_api`\n    module to authenticate with AWS Cognito.\n\"\"\"\n\nimport logging\n\nimport boto3\nfrom aiobotocore.session import get_session\nfrom pycognito import AWSSRP  # type: ignore[import-untyped]\n\nfrom nice_go._authentication_tokens import AuthenticationTokens\n\n_LOGGER = logging.getLogger(__name__)\n\n\nclass AwsCognitoAuthenticator:\n    \"\"\"Handles AWS Cogn"
          },
          {
            "col": 3,
            "line": 29,
            "ln": 828,
            "s": "  Args:\n        region_name (str): The AWS region name.\n        client_id (str): The AWS Cognito client ID.\n        pool_id (str): The AWS Cognito pool ID.\n        identity_pool_id (str): The AWS Cogni"
          },
          {
            "col": 10,
            "line": 54,
            "ln": 1706,
            "s": "elf.pool_id = pool_id\n        self.session = get_session()\n\n    def refresh_token(self, refresh_token: str) -\u003e AuthenticationTokens:\n        \"\"\"Regenerates the token by providing a refresh token.\n\n        Args:\n            refresh"
          },
          {
            "col": 15,
            "line": 66,
            "ln": 2056,
            "s": "R.debug(\"Refreshing token\")\n        cognito_identity_provider = boto3.client(\"cognito-idp\", self.region_name)\n        resp = cognito_identity_provider.initiate_auth(\n            AuthFlow=\"REFRESH_TOKEN_AUTH\",\n            AuthParameters={\n                \"REFRESH_TOKEN\": refresh_token,\n            },\n            ClientId=self.client_id,\n        )\n        _LOGGER.debug(\"Token refreshed\")\n        return Authenti"
          },
          {
            "col": 1,
            "line": 113,
            "ln": 3679,
            "s": "        )\n\n        # Respond to PASSWORD_VERIFIER\n        resp = cognito_identity_provider.respond_to_auth_challe"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "__init__",
              1367
            ],
            [
              "refresh_token",
              1770
            ],
            [
              "get_new_token",
              2516
            ]
          ],
          "imp": [
            [
              "",
              "logging.getLogger"
            ],
            [
              "",
              "get_session"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "boto3.client"
            ],
            [
              "",
              "cognito_identity_provider.initiate_auth"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "AuthenticationTokens"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "boto3.client"
            ],
            [
              "",
              "AWSSRP"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "aws_srp.get_auth_params"
            ],
            [
              "",
              "cognito_identity_provider.initiate_auth"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "aws_srp.process_challenge"
            ],
            [
              "",
              "cognito_identity_provider.respond_to_auth_challenge"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "AuthenticationTokens"
            ],
            [
              "pycognito",
              "AWSSRP"
            ],
            [
              "nice_go._authentication_tokens",
              "AuthenticationTokens"
            ],
            [
              "",
              "aiobotocore.session"
            ],
            [
              "",
              "boto3"
            ],
            [
              "aiobotocore.session",
              "get_session"
            ],
            [
              "",
              "logging"
            ],
            [
              "",
              "nice_go._authentication_tokens"
            ],
            [
              "",
              "pycognito"
            ]
          ],
          "mbr": [
            "_LOGGER.debug",
            "aws_srp.get_auth_params",
            "aws_srp.process_challenge",
            "boto3.client",
            "cognito_identity_provider.initiate_auth",
            "cognito_identity_provider.respond_to_auth_challenge",
            "logging.getLogger",
            "resp.AuthenticationResult",
            "resp.ChallengeParameters",
            "self.client_id",
            "self.identity_pool_id",
            "self.pool_id",
            "self.region_name",
            "self.session"
          ],
          "metrics": {
            "ast": {
              "call_count": 18,
              "max_depth": 13,
              "max_member_depth": 2,
              "member_count": 14,
              "node_count": 537
            },
            "binary": {
              "peak_region_bytes": 4050,
              "peak_region_entropy": 4.58
            },
            "binds": {
              "count": 14
            },
            "comments": {
              "chars": 88,
              "count": 3,
              "lines": 3,
              "to_code_ratio": 0.02
            },
            "file": {
              "entropy": 4.55,
              "size": 4050
            },
            "functions": {
              "avg_length_lines": 26.67,
              "avg_name_length": 11.33,
              "avg_param_name_length": 8.4,
              "avg_params": 3.33,
              "code_ratio": 0.65,
              "count": 4,
              "density": 2.42,
              "length_stddev": 14.66,
              "max_length_lines": 47,
              "max_params": 5,
              "min_length_lines": 13
            },
            "identifiers": {
              "all_lowercase_ratio": 0.73,
              "all_uppercase_ratio": 0.05,
              "avg_entropy": 2.79,
              "avg_length": 11.2,
              "count": 127,
              "double_underscore_count": 2,
              "has_digit_ratio": 0.02,
              "high_entropy_count": 4,
              "high_entropy_ratio": 0.1,
              "length_stddev": 5.81,
              "max_length": 25,
              "min_length": 3,
              "numeric_suffix_count": 1,
              "reuse_ratio": 0.32,
              "underscore_prefix_count": 4,
              "unique": 41
            },
            "imports": {
              "count": 8,
              "stdlib_count": 1,
              "stdlib_ratio": 0.13,
              "third_party_count": 7,
              "third_party_ratio": 0.88
            },
            "source": {
              "class_count": 1,
              "function_count": 3
            },
            "strings": {
              "avg_entropy": 3.51,
              "avg_length": 89.55,
              "base64_candidates": 2,
              "bytes": 1791,
              "count": 20,
              "embedded_code_candidates": 2,
              "entropy_stddev": 0.41,
              "max_length": 795,
              "shell": 1,
              "sql": 1
            },
            "text": {
              "avg_line_length": 31.66,
              "char_entropy": 4.55,
              "digit_ratio": 0,
              "empty_line_ratio": 0.2,
              "encoded_string_ratio": 0.1,
              "identifier_density": 1.02,
              "identifiers_to_functions_ratio": 13.67,
              "import_density": 6.45,
              "imports_to_functions_ratio": 2.67,
              "last_line_length": 65,
              "line_length_stddev": 24.59,
              "lines": 124,
              "max_line_length": 82,
              "max_whitespace_run": 2,
              "normalized_function_count": 0.27,
              "normalized_import_count": 0.72,
              "normalized_string_count": 1.8,
              "normalized_unique_identifiers": 5.9,
              "repeated_char_sequences": 23,
              "space_count": 981,
              "string_density": 0.16,
              "strings_to_functions_ratio": 6.67,
              "suspicious_string_ratio": 0.2,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.07,
              "unique_chars": 63,
              "whitespace_ratio": 0.27
            }
          },
          "tgt": [
            "AWSSRP",
            "AuthenticationTokens",
            "_LOGGER.debug",
            "aws_srp.get_auth_params",
            "aws_srp.process_challenge",
            "boto3.client",
            "cognito_identity_provider.initiate_auth",
            "cognito_identity_provider.respond_to_auth_challenge",
            "get_session",
            "logging.getLogger"
          ]
        },
        "id": 4,
        "mol": "O(Ca)H₂(Cm₂Os)Md₂(InPt)",
        "path": "nice_go-1.0.3-py3-none-any.whl!!nice_go/_aws_cognito_authenticator.py",
        "pid": 0,
        "risk": 6,
        "sha": "0af476fc209e36ea0131c31e6ab9945288af772eb95e78aa7c0acad9f96c15d2",
        "sid": 10769519264,
        "size": 4050,
        "traits": [
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports boto3",
            "id": "metadata/import/python/boto3::boto3",
            "spans": [
              [
                308,
                5
              ]
            ]
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "References the client_id token",
            "id": "metadata/lang/source/naming/setting::client-id-token",
            "spans": [
              [
                892,
                9
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Creates a boto3 client, resource or session",
            "id": "micro-behaviors/communications/http/services/aws::python-boto3-client-construction",
            "spans": [
              [
                2120,
                12
              ]
            ]
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "refresh_token field reference",
            "id": "micro-behaviors/communications/http/token-auth::refresh-token",
            "spans": [
              [
                1770,
                13
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Refresh token field in source",
            "id": "micro-behaviors/communications/http/token-auth::refresh-token-field-source",
            "spans": [
              [
                2310,
                16
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Snake-case OAuth refresh_token field assign",
            "id": "micro-behaviors/communications/http/token-auth::refresh-token-snake-assign",
            "spans": [
              [
                1794,
                14
              ]
            ]
          },
          {
            "conf": 0.93,
            "crit": 3,
            "desc": "OAuth token object member",
            "id": "micro-behaviors/communications/http/token-auth::token-object-field",
            "spans": [
              [
                2310,
                16
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "OAuth refresh-token environment variable",
            "id": "micro-behaviors/os/env/secret-name::refresh-token-env-name",
            "spans": [
              [
                2311,
                13
              ]
            ]
          },
          {
            "atk": "T1528,T1550",
            "conf": 0.94,
            "crit": 3,
            "desc": "Python JSON request carries refresh token",
            "id": "objectives/credential-access/cloud/token/oauth::python-refresh-token-json-request-field",
            "spans": [
              [
                2310,
                30
              ]
            ]
          },
          {
            "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 get_session from aiobotocore.session",
            "id": "metadata/import/python/aiobotocore/session/get_session::get_session",
            "spans": [
              [
                346,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports aiobotocore.session",
            "id": "metadata/import/python/aiobotocore/session::aiobotocore/session",
            "spans": [
              [
                319,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports logging",
            "id": "metadata/import/python/logging::logging",
            "spans": [
              [
                292,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports AuthenticationTokens from nice_go._authentication_tokens",
            "id": "metadata/import/python/nice_go/_authentication_tokens/authenticationtokens::authenticationtokens",
            "spans": [
              [
                463,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._authentication_tokens",
            "id": "metadata/import/python/nice_go/_authentication_tokens::nice_go/_authentication_tokens",
            "spans": [
              [
                425,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports AWSSRP from pycognito",
            "id": "metadata/import/python/pycognito/awssrp::awssrp",
            "spans": [
              [
                380,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports pycognito",
            "id": "metadata/import/python/pycognito::pycognito",
            "spans": [
              [
                363,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                30,
                0
              ]
            ],
            "uses": [
              27,
              28,
              29,
              30
            ]
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "Five or fewer comment lines in file",
            "id": "metadata/lang/source/comment::few-comment-lines"
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Top-level Python import statement line",
            "id": "micro-behaviors/process/interpreter/python::module-import-statement",
            "spans": [
              [
                301,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "Python import-from statement",
            "id": "metadata/import/module::python-import-from-statement",
            "spans": [
              [
                420,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                217,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                30,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                262,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                56,
                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.4,
            "crit": 1,
            "desc": "Public cloud provider name (AWS)",
            "id": "micro-behaviors/communications/http/services/cloud::repeated-public-cloud-provider-name--aws",
            "spans": [
              [
                3,
                0
              ]
            ]
          },
          {
            "conf": 0.45,
            "crit": 1,
            "desc": "PASSWORD credential label",
            "id": "micro-behaviors/data/format/credentials::password-upper",
            "spans": [
              [
                3711,
                0
              ]
            ]
          },
          {
            "conf": 0.45,
            "crit": 1,
            "desc": "Contains the standalone word token",
            "id": "micro-behaviors/data/parse/vocabulary::token-word",
            "spans": [
              [
                1866,
                0
              ]
            ]
          }
        ],
        "type": "python"
      },
      {
        "analysis_gaps": [
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 32,
            "line": 1,
            "ln": 31,
            "s": "iable-declarations\n\"\"\"Module containing classes for barriers.\n\nThis module contains classes for barriers and their states. The Barrier class\nprovides methods to interact with the barrier, such as opening and closing it,\nand turning the light on and off.\n\nClasses:\n    Co"
          },
          {
            "col": 31,
            "line": 11,
            "ln": 445,
            "s": "ier.\n\"\"\"\n\n# ruff: noqa: SLF001\n\nfrom __future__ import annotations\n\nfrom dataclasses import dataclass\nfrom typing import TYPE_CHECKING, Any\n\nif TYPE_CHECKING:\n    # This is a forward reference to avoid circular imports\n    from datetime import datetime\n\n    from nice_go.nice_go_api import NiceGOApi\n\n\n@dataclass\nclass ConnectionState:\n    \"\"\"Class representing the connection state of a barrier"
          },
          {
            "col": 32,
            "line": 34,
            "ln": 971,
            "s": "ime): The timestamp of the last update.\n    \"\"\"\n\n    connected: bool\n    updatedTimestamp: datetime  #"
          },
          {
            "col": 16,
            "line": 73,
            "ln": 2107,
            "s": "pen the barrier.\n        close: Close the barrier.\n        light_on: Turn on the light of the barrier.\n"
          },
          {
            "col": 26,
            "line": 83,
            "ln": 2409,
            "s": "str]]\n    state: BarrierState\n    api: NiceGOApi\n\n    async def open(self) -\u003e bool:\n        \"\"\"Open the barrier.\n\n        Returns:\n            A boolean indicating whether the command was successful.\n        \"\"\"\n        return await self.api.open_"
          },
          {
            "col": 62,
            "line": 129,
            "ln": 3646,
            "s": "not found.\n        \"\"\"\n        attr = next((attr for attr in self.attr if attr[\"key\"] == key), None)\n        if attr is None:\n            msg = f\"Attribute w"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "open",
              2463
            ],
            [
              "close",
              2678
            ],
            [
              "light_on",
              2896
            ],
            [
              "light_off",
              3127
            ],
            [
              "get_attr",
              3361
            ],
            [
              "vacation_mode_on",
              3895
            ],
            [
              "vacation_mode_off",
              4044
            ]
          ],
          "imp": [
            [
              "",
              "self.api.open_barrier"
            ],
            [
              "",
              "self.api.close_barrier"
            ],
            [
              "",
              "self.api.light_on"
            ],
            [
              "",
              "self.api.light_off"
            ],
            [
              "",
              "next"
            ],
            [
              "",
              "KeyError"
            ],
            [
              "",
              "self.api.vacation_mode_on"
            ],
            [
              "",
              "self.api.vacation_mode_off"
            ],
            [
              "typing",
              "Any"
            ],
            [
              "nice_go.nice_go_api",
              "NiceGOApi"
            ],
            [
              "typing",
              "TYPE_CHECKING"
            ],
            [
              "dataclasses",
              "dataclass"
            ],
            [
              "",
              "dataclasses"
            ],
            [
              "",
              "datetime"
            ],
            [
              "datetime",
              "datetime"
            ],
            [
              "",
              "nice_go.nice_go_api"
            ],
            [
              "",
              "typing"
            ]
          ],
          "mbr": [
            "attr.key",
            "attr.value",
            "self.api",
            "self.api.close_barrier",
            "self.api.light_off",
            "self.api.light_on",
            "self.api.open_barrier",
            "self.api.vacation_mode_off",
            "self.api.vacation_mode_on",
            "self.attr",
            "self.id"
          ],
          "metrics": {
            "ast": {
              "call_count": 8,
              "max_depth": 15,
              "max_member_depth": 3,
              "member_count": 11,
              "node_count": 523,
              "op.bor": 1,
              "op_density.bor": 0
            },
            "binary": {
              "peak_region_bytes": 4191,
              "peak_region_entropy": 4.57
            },
            "binds": {
              "count": 2
            },
            "comments": {
              "chars": 165,
              "count": 7,
              "lines": 7,
              "to_code_ratio": 0.05
            },
            "file": {
              "entropy": 4.44,
              "size": 4191
            },
            "functions": {
              "avg_length_lines": 7.29,
              "avg_name_length": 9.57,
              "avg_param_name_length": 3.88,
              "avg_params": 1.14,
              "code_ratio": 0.36,
              "count": 10,
              "density": 4.9,
              "length_stddev": 4.33,
              "max_length_lines": 17,
              "max_params": 2,
              "min_length_lines": 3
            },
            "identifiers": {
              "all_lowercase_ratio": 0.75,
              "all_uppercase_ratio": 0.02,
              "avg_entropy": 2.43,
              "avg_length": 8.02,
              "count": 114,
              "length_stddev": 4.13,
              "max_length": 17,
              "min_length": 2,
              "reuse_ratio": 0.39,
              "unique": 44
            },
            "imports": {
              "count": 9,
              "stdlib_count": 4,
              "stdlib_ratio": 0.44,
              "third_party_count": 5,
              "third_party_ratio": 0.56
            },
            "source": {
              "class_count": 3,
              "function_count": 7
            },
            "strings": {
              "avg_entropy": 3.66,
              "avg_length": 176.93,
              "bytes": 2477,
              "count": 14,
              "embedded_code_candidates": 3,
              "entropy_stddev": 0.73,
              "max_length": 612
            },
            "text": {
              "avg_line_length": 28.31,
              "char_entropy": 4.44,
              "digit_ratio": 0.01,
              "empty_line_ratio": 0.24,
              "identifier_density": 0.8,
              "identifiers_to_functions_ratio": 6.29,
              "import_density": 6.29,
              "imports_to_functions_ratio": 1.29,
              "last_line_length": 49,
              "line_length_stddev": 23.94,
              "lines": 143,
              "max_line_length": 86,
              "max_whitespace_run": 2,
              "normalized_function_count": 0.59,
              "normalized_import_count": 0.75,
              "normalized_string_count": 1.17,
              "normalized_unique_identifiers": 6.15,
              "repeated_char_sequences": 9,
              "space_count": 1015,
              "string_density": 0.1,
              "strings_to_functions_ratio": 2,
              "suspicious_string_ratio": 0.21,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.08,
              "unique_chars": 67,
              "whitespace_ratio": 0.28
            }
          },
          "tgt": [
            "KeyError",
            "next",
            "self.api.close_barrier",
            "self.api.light_off",
            "self.api.light_on",
            "self.api.open_barrier",
            "self.api.vacation_mode_off",
            "self.api.vacation_mode_on"
          ]
        },
        "id": 5,
        "mol": "H(F)",
        "path": "nice_go-1.0.3-py3-none-any.whl!!nice_go/_barrier.py",
        "pid": 0,
        "risk": 3,
        "sha": "1eebb0c468032de14cfe0fd46a6802188e2072a1beead0c9325e0e920d58356b",
        "sid": 10769519266,
        "size": 4191,
        "traits": [
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Python opens a named variable",
            "id": "micro-behaviors/fs/path/traversal::python-opens-joined-path",
            "spans": [
              [
                2473,
                10
              ]
            ]
          },
          {
            "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 dataclass from dataclasses",
            "id": "metadata/import/python/dataclasses/dataclass::dataclass",
            "spans": [
              [
                537,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports dataclasses",
            "id": "metadata/import/python/dataclasses::dataclasses",
            "spans": [
              [
                518,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports datetime from datetime",
            "id": "metadata/import/python/datetime/datetime::datetime",
            "spans": [
              [
                689,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports datetime",
            "id": "metadata/import/python/datetime::datetime",
            "spans": [
              [
                673,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports NiceGOApi from nice_go.nice_go_api",
            "id": "metadata/import/python/nice_go/nice_go_api/nicegoapi::nicegoapi",
            "spans": [
              [
                735,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go.nice_go_api",
            "id": "metadata/import/python/nice_go/nice_go_api::nice_go/nice_go_api",
            "spans": [
              [
                708,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Any from typing",
            "id": "metadata/import/python/typing/any::any",
            "spans": [
              [
                581,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports TYPE_CHECKING from typing",
            "id": "metadata/import/python/typing/type_checking::type_checking",
            "spans": [
              [
                566,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports typing",
            "id": "metadata/import/python/typing::typing",
            "spans": [
              [
                552,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                79,
                0
              ]
            ],
            "uses": [
              26,
              27,
              28,
              29,
              30
            ]
          },
          {
            "conf": 0.99,
            "crit": 2,
            "desc": "Python declares a local open name",
            "id": "metadata/lang/source/naming/declaration::python-local-open-name-binding",
            "spans": [
              [
                2473,
                0
              ]
            ]
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "Source contains for-loop syntax",
            "id": "metadata/lang/source/syntax/control-flow::for-loop-content",
            "spans": [
              [
                3694,
                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": [
              [
                3695,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Python open() expression reference",
            "id": "micro-behaviors/fs/file/open/unspecified::python-open-reference",
            "spans": [
              [
                2473,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "Python import-from statement",
            "id": "metadata/import/module::python-import-from-statement",
            "spans": [
              [
                477,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Natural-language command word",
            "id": "metadata/lang/natural/vocabulary/content-word::command-word-token",
            "spans": [
              [
                2584,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Control-action verb followed by alphabetic text",
            "id": "metadata/lang/natural/vocabulary/content-word::control-action-prose-fragment",
            "spans": [
              [
                2139,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "English edit-action verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::english-edit-verb-token",
            "spans": [
              [
                1003,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                154,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                136,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                79,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                201,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                94,
                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"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "\"\"\"Constants for Nice G.O. API.\"\"\"\n\nimport json\n\nENDPOINTS_URL = \"https://prod.api.nortek-smartcontrol.com/endpoints\"\nBARRIER_STATUS = [\"STATIONARY\", \"OPENING\", \"CLOSING\"]\nREQUEST_TEMPLATES = {\n    \"get_all_barriers\": {\n        \"operationName\":"
          },
          {
            "col": 38,
            "line": 9,
            "ln": 257,
            "s": "All\",\n        \"variables\": {\"nextToken\": None},\n        \"query\": \"query devicesListAll($nextToken: String) {\\n  devicesListAll(nextToken: $nextToken) {\\n    devices {\\n      ...deviceFields\\n      __typename\\n    }\\n    nextToken\\n    __typename\\n  }\\n}\\n\\nfragment deviceFields on Device {\\n  id\\n  type\\n  controlLevel\\n  attr {\\n    key\\n    value\\n    __typename\\n  }\\n  state {\\n    ...deviceStateFields\\n    __typename\\n  }\\n  groupIds\\n  __typename\\n}\\n\\nfragment deviceStateFields on DeviceState {\\n  deviceId\\n  desired\\n  reported\\n  timestamp\\n  version\\n  connectionState {\\n    connected\\n    updatedTimestamp\\n    __typename\\n  }\\n  version\\n"
          },
          {
            "col": 11,
            "line": 15,
            "ln": 1029,
            "s": "ariables\": {\n            \"deviceId\": \"$barrier_id\",\n            \"payload\": {\"target\": \"B\", \"action\": 1},\n        },\n        \"query\": \"mutation devicesControl($deviceId: ID!, $payload: ControlPayload!) {\\n  devicesControl(deviceI"
          },
          {
            "col": 6,
            "line": 25,
            "ln": 1451,
            "s": "       \"payload\": {\"target\": \"B\", \"action\": 0},\n        },\n        \"query\": \"mutation devicesControl($deviceI"
          },
          {
            "col": 1,
            "line": 46,
            "ln": 2423,
            "s": "        \"id\": \"$uuid\",\n        \"payload\": {\n            \"data\": json.dumps(\n                {\n                    \"query\": \"subscription devicesStatesUpdateFeed($receiver: ID!) {\\n  devicesStatesUpdateF"
          },
          {
            "col": 16,
            "line": 52,
            "ln": 3064,
            "s": " },\n            ),\n            \"extensions\": {\n                \"authorization\": {\n                    \"Authorization\": \"$id_token\",\n                    \"host\": \"$host\",\n                    \"x-amz-user-agent\": \"aws-amplify/2.0.8 js\",\n                },\n            },\n        },\n        \""
          }
        ],
        "depth": 1,
        "facts": {
          "imp": [
            [
              "",
              "json.dumps"
            ],
            [
              "",
              "json.dumps"
            ],
            [
              "",
              "json"
            ]
          ],
          "mbr": [
            "json.dumps"
          ],
          "metrics": {
            "ast": {
              "call_count": 2,
              "max_array_length": 3,
              "max_depth": 16,
              "max_member_depth": 2,
              "member_count": 1,
              "node_count": 988
            },
            "binary": {
              "peak_region_bytes": 3072,
              "peak_region_entropy": 4.82
            },
            "binds": {
              "count": 3
            },
            "comments": {
              "chars": 99,
              "count": 9,
              "lines": 9,
              "to_code_ratio": 0.1
            },
            "file": {
              "entropy": 4.51,
              "size": 5135
            },
            "identifiers": {
              "all_lowercase_ratio": 0.4,
              "all_uppercase_ratio": 0.6,
              "avg_entropy": 2.83,
              "avg_length": 10.6,
              "count": 8,
              "high_entropy_count": 1,
              "high_entropy_ratio": 0.2,
              "length_stddev": 5.16,
              "max_length": 17,
              "min_length": 4,
              "reuse_ratio": 0.63,
              "unique": 5
            },
            "imports": {
              "count": 1,
              "stdlib_count": 1,
              "stdlib_ratio": 1
            },
            "strings": {
              "avg_entropy": 2.75,
              "avg_length": 25.4,
              "bytes": 3175,
              "count": 125,
              "entropy_stddev": 0.9,
              "max_length": 565,
              "url_count": 1
            },
            "text": {
              "avg_line_length": 49.34,
              "char_entropy": 4.51,
              "digit_ratio": 0.01,
              "empty_line_ratio": 0.02,
              "identifier_density": 0.08,
              "import_density": 0.98,
              "last_line_length": 1,
              "line_length_stddev": 89.47,
              "lines": 102,
              "lines_over_200": 3,
              "lines_over_500": 1,
              "max_line_length": 641,
              "max_whitespace_run": 6,
              "normalized_import_count": 0.1,
              "normalized_string_count": 12.38,
              "normalized_unique_identifiers": 0.75,
              "repeated_char_sequences": 40,
              "space_count": 1420,
              "string_density": 1.23,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.07,
              "unique_chars": 74,
              "whitespace_ratio": 0.3
            }
          },
          "tgt": [
            "json.dumps"
          ]
        },
        "id": 6,
        "mol": "H₂(Cm₂Db₄)",
        "path": "nice_go-1.0.3-py3-none-any.whl!!nice_go/_const.py",
        "pid": 0,
        "risk": 5,
        "sha": "c3ffcd799b2ff5772181c28ea965318f81e4dc8badc78e49b4f35a0db32dd891",
        "sid": 10769519271,
        "size": 5135,
        "traits": [
          {
            "atk": "T1071.001",
            "conf": 0.5,
            "crit": 3,
            "desc": "Authorization header-name literal",
            "id": "micro-behaviors/communications/http/authorization-header::auth-header",
            "mbc": "C0002",
            "spans": [
              [
                3128,
                13
              ],
              [
                3167,
                13
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.88,
            "crit": 3,
            "desc": "Defines an HTTP Authorization header mapping",
            "id": "micro-behaviors/communications/http/authorization-header::authorization-header-map-entry",
            "mbc": "C0002",
            "spans": [
              [
                3166,
                16
              ]
            ]
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "HTTP URL string literal",
            "id": "micro-behaviors/communications/url/scheme::http-url-literal",
            "spans": [
              [
                66,
                50
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "JSON command or task field key",
            "id": "micro-behaviors/data/format/json::json-command-field",
            "spans": [
              [
                1118,
                11
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "JSON object payload field fragment",
            "id": "micro-behaviors/data/serialize/envelope::json-payload-field",
            "spans": [
              [
                1093,
                10
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Serializes data with Python json.dumps()",
            "id": "micro-behaviors/data/serialize/json::json-dumps-call",
            "spans": [
              [
                2487,
                10
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "JSON-like host or hostname field",
            "id": "micro-behaviors/data/serialize/schema-system::host-field-key",
            "spans": [
              [
                3216,
                7
              ]
            ]
          },
          {
            "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.65,
            "crit": 2,
            "desc": "Python file under 120 lines",
            "id": "metadata/file/line::python-under-120-lines"
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Very long line",
            "id": "metadata/file/line::single-long-line",
            "spans": [
              [
                305,
                641
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports json",
            "id": "metadata/import/python/json::json",
            "spans": [
              [
                43,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Contains an HTTPS URL prefix",
            "id": "micro-behaviors/communications/http/message::https-prefix",
            "spans": [
              [
                66,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Top-level Python import statement line",
            "id": "micro-behaviors/process/interpreter/python::module-import-statement",
            "spans": [
              [
                36,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                13,
                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": "JSON \"data\" field key",
            "id": "micro-behaviors/data/format/json::json-data-field",
            "spans": [
              [
                2479,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "JSON-like object command field",
            "id": "micro-behaviors/data/serialize/schema-object::command-field-key",
            "spans": [
              [
                1118,
                0
              ]
            ]
          }
        ],
        "type": "python"
      },
      {
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "\"\"\"Exceptions for Nice G.O. API.\"\"\"\n\n\nclass NiceGOError(Exception):\n    \"\"\"Base exception for Nice G.O. API.\"\"\"\n\n\nclass NoAuthError(NiceGOError):\n    \"\"\"Not authenticated exception.\"\"\"\n\n\nclass ApiError(NiceGOError):\n    \"\"\"API error.\"\"\"\n\n\nclass AuthFailedError(NiceGOError):\n    \"\"\"Authentication failed. Check your credentials.\"\"\"\n\n\nclass WebSocketError(NiceGOError):\n    \"\"\"WebSocket error.\"\"\"\n\n\nclass ReconnectWebSocketError(WebSocketError):\n    \"\"\"Reconnect WebSocket error.\"\"\"\n"
          }
        ],
        "depth": 1,
        "facts": {
          "metrics": {
            "ast": {
              "call_count": 0,
              "max_depth": 5,
              "node_count": 90
            },
            "binary": {
              "peak_region_bytes": 482,
              "peak_region_entropy": 4.62
            },
            "file": {
              "entropy": 4.62,
              "size": 482
            },
            "functions": {
              "count": 6
            },
            "identifiers": {
              "avg_entropy": 3.09,
              "avg_length": 13,
              "count": 12,
              "high_entropy_count": 1,
              "high_entropy_ratio": 0.14,
              "length_stddev": 4.69,
              "max_length": 23,
              "min_length": 8,
              "reuse_ratio": 0.58,
              "unique": 7
            },
            "source": {
              "class_count": 6
            },
            "strings": {
              "avg_entropy": 3.67,
              "avg_length": 26.86,
              "bytes": 188,
              "count": 7,
              "entropy_stddev": 0.47,
              "max_length": 46
            },
            "text": {
              "avg_line_length": 18.28,
              "char_entropy": 4.62,
              "empty_line_ratio": 0.48,
              "identifier_density": 0.48,
              "last_line_length": 36,
              "line_length_stddev": 18.71,
              "lines": 25,
              "max_line_length": 56,
              "max_whitespace_run": 1,
              "normalized_string_count": 1.4,
              "normalized_unique_identifiers": 1.51,
              "space_count": 49,
              "string_density": 0.28,
              "top_char": 114,
              "top_char_null": 0,
              "top_char_ratio": 0.1,
              "unique_chars": 39,
              "whitespace_ratio": 0.15
            }
          }
        },
        "id": 7,
        "mol": "Md",
        "path": "nice_go-1.0.3-py3-none-any.whl!!nice_go/_exceptions.py",
        "pid": 0,
        "risk": 3,
        "sha": "3ba670b82236645dc2669097db5970c5e52152619da86b60edda90e774764191",
        "sid": 10769519268,
        "size": 482,
        "traits": [
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "Small .py/.pyw file without import/def tokens",
            "id": "metadata/file/size::small-no-imports"
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "WebSocket class reference",
            "id": "micro-behaviors/communications/websocket/library::websocket-class-reference",
            "spans": [
              [
                334,
                15
              ]
            ]
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Generic \"Authentication failed\" message",
            "id": "micro-behaviors/os/message/error::authentication-failed",
            "spans": [
              [
                282,
                21
              ]
            ]
          },
          {
            "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.9,
            "crit": 1,
            "desc": "Secret-data term token",
            "id": "metadata/lang/natural/vocabulary/content-word::secret-data-term-token",
            "spans": [
              [
                316,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                14,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 1,
            "desc": "Python class declared with a base class",
            "id": "metadata/lang/source/declaration::class-with-base",
            "spans": [
              [
                38,
                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-query-incomplete"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "\"\"\"Utilities for the nice_go package.\"\"\"\n\nfrom __future__ import annotations\n\nimport json\nfrom typing import Any\n\nfrom nice_go._const import REQUEST_TEMPLATES\n\n\nasync def get_request_template(\n    request_name: str,\n    arguments: dict[str, str] | None,\n) -\u003e Any:\n    \"\"\"Get a request template with optional arguments.\n\n    Args:\n        request_name: The name of the request template.\n        arguments: Optional arguments to replace in the template.\n\n    Returns:\n        The request template with optional arguments.\n    \"\"\"\n    template = json.dumps(REQUEST_TEMPLATES[request_name])\n    if arguments:\n        for key, value in arguments.items():\n            template = template.replace(f\"${key}\", value)\n    return json.loads(template)\n\n\ndef find_unauthorized_error(\n    errors: list[dict[str, Any]],\n) -\u003e dict[str, Any] | None:\n    \"\"\"Find the first error indicating an expired/invalid ID token, if any.\n\n    Args:\n        errors: A list of GraphQL-style error dictionaries.\n\n    Returns:\n        The first error with `errorType` set to `UnauthorizedException`, or\n            `None` if no such error is present.\n    \"\"\"\n    for error in errors:\n        if error.get(\"errorType\") == \"UnauthorizedException\":\n            return error\n    return None\n"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "get_request_template",
              161
            ],
            [
              "find_unauthorized_error",
              742
            ]
          ],
          "imp": [
            [
              "",
              "json.dumps"
            ],
            [
              "",
              "arguments.items"
            ],
            [
              "",
              "template.replace"
            ],
            [
              "",
              "json.loads"
            ],
            [
              "",
              "error.get"
            ],
            [
              "typing",
              "Any"
            ],
            [
              "nice_go._const",
              "REQUEST_TEMPLATES"
            ],
            [
              "",
              "json"
            ],
            [
              "",
              "nice_go._const"
            ],
            [
              "",
              "typing"
            ]
          ],
          "mbr": [
            "arguments.items",
            "error.get",
            "json.dumps",
            "json.loads",
            "template.replace"
          ],
          "metrics": {
            "ast": {
              "call_count": 5,
              "max_depth": 13,
              "max_member_depth": 2,
              "member_count": 5,
              "node_count": 233
            },
            "binary": {
              "peak_region_bytes": 1024,
              "peak_region_entropy": 4.68
            },
            "binds": {
              "count": 2
            },
            "file": {
              "entropy": 4.62,
              "size": 1254
            },
            "functions": {
              "avg_length_lines": 17,
              "avg_name_length": 21.5,
              "avg_param_name_length": 9,
              "avg_params": 1.5,
              "code_ratio": 0.74,
              "count": 2,
              "density": 4.35,
              "high_entropy_names": 1,
              "length_stddev": 1,
              "max_length_lines": 18,
              "max_params": 2,
              "min_length_lines": 16
            },
            "identifiers": {
              "all_lowercase_ratio": 0.92,
              "all_uppercase_ratio": 0.04,
              "avg_entropy": 2.36,
              "avg_length": 7.54,
              "count": 47,
              "high_entropy_count": 1,
              "high_entropy_ratio": 0.04,
              "length_stddev": 5.31,
              "max_length": 23,
              "min_length": 3,
              "reuse_ratio": 0.51,
              "underscore_prefix_count": 1,
              "unique": 24
            },
            "imports": {
              "count": 5,
              "stdlib_count": 2,
              "stdlib_ratio": 0.4,
              "third_party_count": 3,
              "third_party_ratio": 0.6
            },
            "source": {
              "function_count": 2
            },
            "strings": {
              "avg_entropy": 3.52,
              "avg_length": 100.83,
              "bytes": 605,
              "count": 6,
              "entropy_stddev": 0.73,
              "max_length": 282,
              "shell": 1
            },
            "text": {
              "avg_line_length": 26.26,
              "char_entropy": 4.62,
              "empty_line_ratio": 0.24,
              "identifier_density": 1.02,
              "identifiers_to_functions_ratio": 12,
              "import_density": 10.87,
              "imports_to_functions_ratio": 2.5,
              "last_line_length": 15,
              "line_length_stddev": 23.05,
              "lines": 46,
              "max_line_length": 75,
              "max_whitespace_run": 1,
              "normalized_function_count": 0.29,
              "normalized_import_count": 0.74,
              "normalized_string_count": 0.88,
              "normalized_unique_identifiers": 4.35,
              "repeated_char_sequences": 3,
              "space_count": 260,
              "string_density": 0.13,
              "strings_to_functions_ratio": 3,
              "suspicious_string_ratio": 0.17,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.08,
              "unique_chars": 61,
              "whitespace_ratio": 0.24
            }
          },
          "tgt": [
            "arguments.items",
            "error.get",
            "json.dumps",
            "json.loads",
            "template.replace"
          ]
        },
        "id": 8,
        "mol": "H(Db₃)",
        "path": "nice_go-1.0.3-py3-none-any.whl!!nice_go/_util.py",
        "pid": 0,
        "risk": 5,
        "sha": "c80c0866663359877fd44eebf88b8a346bc731fca4a113ff9bd77e1aa55cf520",
        "sid": 10769519273,
        "size": 1254,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Assigns a string replace result",
            "id": "micro-behaviors/data/manipulation::string-replace-result-assignment",
            "spans": [
              [
                661,
                29
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Parses JSON data with Python",
            "id": "micro-behaviors/data/parse/json::json-loads-call",
            "spans": [
              [
                719,
                10
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Python JSON loads and dumps",
            "id": "micro-behaviors/data/parse/json::python-json-parse-and-serialize",
            "spans": [
              [
                543,
                10
              ],
              [
                719,
                10
              ]
            ],
            "uses": [
              1,
              3
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Serializes data with Python json.dumps()",
            "id": "micro-behaviors/data/serialize/json::json-dumps-call",
            "spans": [
              [
                543,
                10
              ]
            ]
          },
          {
            "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 json",
            "id": "metadata/import/python/json::json",
            "spans": [
              [
                85,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports REQUEST_TEMPLATES from nice_go._const",
            "id": "metadata/import/python/nice_go/_const/request_templates::request_templates",
            "spans": [
              [
                141,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._const",
            "id": "metadata/import/python/nice_go/_const::nice_go/_const",
            "spans": [
              [
                119,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Any from typing",
            "id": "metadata/import/python/typing/any::any",
            "spans": [
              [
                109,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports typing",
            "id": "metadata/import/python/typing::typing",
            "spans": [
              [
                95,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                13,
                0
              ]
            ],
            "uses": [
              24,
              25,
              26
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Replace-named member call syntax",
            "id": "metadata/lang/source/syntax/call/invocation::replace-member-call-syntax",
            "spans": [
              [
                681,
                0
              ]
            ]
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "Source contains for-loop syntax",
            "id": "metadata/lang/source/syntax/control-flow::for-loop-content",
            "spans": [
              [
                1129,
                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": [
              [
                1130,
                0
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 2,
            "desc": "Python return None statement",
            "id": "micro-behaviors/data/control-flow/return::python-return-none",
            "spans": [
              [
                1242,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Top-level Python import statement line",
            "id": "micro-behaviors/process/interpreter/python::module-import-statement",
            "spans": [
              [
                78,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "Python import-from statement",
            "id": "metadata/import/module::python-import-from-statement",
            "spans": [
              [
                114,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "English edit-action verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::english-edit-verb-token",
            "spans": [
              [
                427,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                17,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                13,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                294,
                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.45,
            "crit": 1,
            "desc": "Contains the standalone word token",
            "id": "micro-behaviors/data/parse/vocabulary::token-word",
            "spans": [
              [
                894,
                0
              ]
            ]
          }
        ],
        "type": "python"
      },
      {
        "analysis_gaps": [
          "flow-graph-limited",
          "flow-call-unavailable",
          "flow-field-unavailable",
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 1,
            "line": 1,
            "ln": 0,
            "s": "\"\"\"This module contains the WebSocketClient class, which is used to interact with the\nWebSocket server.\n\nClasses:\n    WebSocketClient: A class that represents a WebSocket client.\n\"\"\"\n\nfrom __future__ import annotations\n\nimport asyncio\nimport base64\nimport json\nimport logging\nimport uuid\nfrom typing import TYPE_CHECKING, Any, Callable, NamedTuple\n\nimport aiohttp\n\nfrom nice_go._exceptions import AuthFailedError, ReconnectWebSocketError, WebSocketError\nfrom nice_go._util import find_unauthorized_error, get_request_template\n\nif TYPE_CHECKING:\n    import yarl\n\n_LOGGER = logging.getLogger(__name__)\n\n\nclass EventListener(NamedTuple):\n    \"\"\"A class representing an event listener.\"\"\"\n\n"
          },
          {
            "col": 43,
            "line": 31,
            "ln": 728,
            "s": "bool] | None\n    event: str\n    result: Callable[[dict[str, Any]], Any] | None\n    future: asyncio.Future[Any]\n\n\nclass WebSocketClient:\n    \"\"\"A class that represents a WebSocket client.\n\n    Attributes:\n        ws (aiohttp.ClientWebSocketResponse | None):"
          },
          {
            "col": 5,
            "line": 53,
            "ln": 1528,
            "s": "    self._timeout_task: asyncio.Task[None] | None = None\n\n    def _redact_message(self, message: str | dict[str, Any]) -\u003e Any:\n        \"\"\"Redact sensitive info"
          },
          {
            "col": 6,
            "line": 63,
            "ln": 1827,
            "s": "   \"\"\"\n        if isinstance(message, dict):\n            return json.loads(json.dumps(message).replace(self.id_token, \"\u003cREDACTED\u003e\"))\n        return message.replace(self.id_token, \"\u003cREDACTED\u003e\")\n\n    async def _watch_keepalive(self) -\u003e None:\n        \"\"\"A task that handles the timeout for the WebSocket connection.\n\n        Raises:\n            WebSocketError: If the WebSocket connect"
          },
          {
            "col": 40,
            "line": 75,
            "ln": 2321,
            "s": " is closed\"\n            raise WebSocketError(msg)\n        await asyncio.sleep(self._timeout / 1000)\n        _LOGGER.debug(\"WebSocket keepalive timeout reached, reconnecting\")\n        await self._reconnect("
          },
          {
            "col": 26,
            "line": 109,
            "ln": 3489,
            "s": " dispatch function.\n            host: The host URL.\n\n        Raises:\n            ValueError: If host "
          },
          {
            "col": 7,
            "line": 124,
            "ln": 3972,
            "s": "  self._endpoint = endpoint\n\n        raw_header = {\n            \"Authorization\": id_token,\n            \"host\": host,\n        }\n        # Base64 encode the header\n        header = base64.b64encode(json.dumps(raw_header).encode()).decode()\n        # Construct the URL\n        url = endpoint.with_query({\"header\": header, \"payload\": \"e30=\"})\n\n        # URL contains sensitive information, so we don't want to log it\n        _LOGGER.debug(\"Connecting to WebSocket"
          },
          {
            "col": 39,
            "line": 138,
            "ln": 4496,
            "s": "ocol\": \"graphql-ws\"}\n        self.ws = await self.client_session.ws_connect(url, headers=headers)\n\n        await self.init()\n\n    async def init(self) -\u003e None:\n        \"\"\"Initialize the WebSocket connecti"
          },
          {
            "col": 44,
            "line": 147,
            "ln": 4764,
            "s": "ion was rejected because the ID token\n                has expired.\n            WebSocketError: If the"
          },
          {
            "col": 47,
            "line": 154,
            "ln": 5110,
            "s": "connection\")\n        await self.send({\"type\": \"connection_init\"})\n        try:\n            _LOGGER.d"
          },
          {
            "col": 13,
            "line": 161,
            "ln": 5413,
            "s": "if data[\"type\"] == \"connection_error\":\n                errors = data.get(\"payload\", {}).get(\"errors\", [])\n                if unauthorized := find_unauthorized_error(errors):\n                    raise AuthFailedError(\n                        unauthorized.get(\"message\", \"Token has expired\"),\n                    )\n            if data[\"type\"] != \"connection_ack\":\n                msg = f'Expected "
          },
          {
            "col": 26,
            "line": 169,
            "ln": 5878,
            "s": "SocketError(\n                    msg,\n                )\n        except asyncio.TimeoutError as e:\n            msg = \"Connection to the websocket server timed out\"\n            raise WebSocketError(msg) from e\n        _LO"
          },
          {
            "col": 68,
            "line": 175,
            "ln": 6153,
            "s": "n established\")\n\n        self._timeout = data.get(\"payload\", {}).get(\"timeout\", 300000)\n        self._timeout_task = asyncio.create_task(self._watch_keepalive())\n        self._dispatch(f\"{self.api_type}_conn"
          },
          {
            "col": 45,
            "line": 181,
            "ln": 6419,
            "s": "[str, Any]) -\u003e None:\n        \"\"\"Send a message to the WebSocket server.\n\n        Args:\n            m"
          },
          {
            "col": 15,
            "line": 200,
            "ln": 7054,
            "s": "close(self) -\u003e None:\n        \"\"\"Close the WebSocket connection.\n\n        Raises:\n            WebSocketE"
          },
          {
            "col": 5,
            "line": 209,
            "ln": 7332,
            "s": "    # Unsubscribe from all subscriptions\n        for subscription_id in self._subscriptions:\n            _LOGGER.debug(\"Unsubscribing from subscription %s\", subscriptio"
          },
          {
            "col": 47,
            "line": 212,
            "ln": 7552,
            "s": "n_id)\n        if self._timeout_task is not None and not self._timeout_task.done():\n            _LOGGER.debug(\"Cancelling keepalive task\")\n         "
          },
          {
            "col": 27,
            "line": 220,
            "ln": 7897,
            "s": "bug(\"Keepalive task was cancelled\")\n            except Exception:\n                _LOGGER.exception(\"Exception occurred while cancelling keepalive task\")\n      "
          },
          {
            "col": 14,
            "line": 228,
            "ln": 8236,
            "s": "ll the WebSocket connection for messages.\n\n        Raises:\n            WebSocketError: If the WebSocket "
          },
          {
            "col": 11,
            "line": 284,
            "ln": 10187,
            "s": "\"\n        if message[\"type\"] == \"data\":\n            if self.api_type == \"events\" and message[\"payload\"]"
          },
          {
            "col": 73,
            "line": 286,
            "ln": 10299,
            "s": "\"eventsFeed\"][\n                \"item\"\n            ][\"eventId\"] == (\"event-error-barrier-obstructed\")"
          },
          {
            "col": 11,
            "line": 348,
            "ln": 12573,
            "s": "          parsed_message\n                    if entry.result is None\n                    else entry.result(parsed_message)\n                )\n               "
          },
          {
            "col": 44,
            "line": 355,
            "ln": 12835,
            "s": "urred, no longer waiting\", entry.event)\n\n        for index in reversed(removed):\n            del self._dispatch_listeners[index]\n\n    def wait_for(\n        se"
          },
          {
            "col": 34,
            "line": 363,
            "ln": 13050,
            "s": "[str, Any]], bool] | None = None,\n        result: Callable[[dict[str, Any]], Any] | None = None,\n    ) -\u003e asyncio"
          },
          {
            "col": 30,
            "line": 369,
            "ln": 13260,
            "s": "to wait for.\n            predicate: A predicate function.\n            result: A result function.\n\n        Returns:\n            A future that resolves when the event occurs."
          },
          {
            "col": 35,
            "line": 401,
            "ln": 14381,
            "s": "eiver,\n                \"uuid\": subscription_id,\n                \"id_token\": self.id_token,\n                \"host\": self.host,\n            },\n        )\n        _LOGGER.debug(\n            \"Subscribing to r"
          },
          {
            "col": 1,
            "line": 445,
            "ln": 15717,
            "s": "            self._subscriptions.remove(subscription_id)\n        except ValueError:\n            _LOGGER"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "__init__",
              1166
            ],
            [
              "_redact_message",
              1590
            ],
            [
              "_watch_keepalive",
              2025
            ],
            [
              "_reconnect",
              2533
            ],
            [
              "connect",
              3026
            ],
            [
              "init",
              4626
            ],
            [
              "send",
              6379
            ],
            [
              "close",
              7044
            ],
            [
              "poll",
              8193
            ],
            [
              "load_message",
              9387
            ],
            [
              "dispatch_message",
              9918
            ],
            [
              "received_message",
              11279
            ],
            [
              "wait_for",
              12969
            ],
            [
              "subscribe",
              13752
            ],
            [
              "_predicate",
              14724
            ],
            [
              "unsubscribe",
              15435
            ],
            [
              "closed",
              16285
            ]
          ],
          "imp": [
            [
              "",
              "logging.getLogger"
            ],
            [
              "",
              "isinstance"
            ],
            [
              "",
              "json.loads"
            ],
            [
              "",
              "json.dumps.replace"
            ],
            [
              "",
              "json.dumps"
            ],
            [
              "",
              "message.replace"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "asyncio.sleep"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._reconnect"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self.close"
            ],
            [
              "",
              "ValueError"
            ],
            [
              "",
              "base64.b64encode.decode"
            ],
            [
              "",
              "base64.b64encode"
            ],
            [
              "",
              "json.dumps.encode"
            ],
            [
              "",
              "json.dumps"
            ],
            [
              "",
              "endpoint.with_query"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self.client_session.ws_connect"
            ],
            [
              "",
              "self.init"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self.send"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self.ws.receive"
            ],
            [
              "",
              "json.loads"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "data.get.get"
            ],
            [
              "",
              "data.get"
            ],
            [
              "",
              "find_unauthorized_error"
            ],
            [
              "",
              "AuthFailedError"
            ],
            [
              "",
              "unauthorized.get"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "data.get.get"
            ],
            [
              "",
              "data.get"
            ],
            [
              "",
              "asyncio.create_task"
            ],
            [
              "",
              "self._watch_keepalive"
            ],
            [
              "",
              "self._dispatch"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "self._redact_message"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "isinstance"
            ],
            [
              "",
              "self.ws.send_json"
            ],
            [
              "",
              "self.ws.send_str"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self.unsubscribe"
            ],
            [
              "",
              "self._timeout_task.done"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._timeout_task.cancel"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.exception"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self.ws.close"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "self.ws.receive"
            ],
            [
              "",
              "self.received_message"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "self._timeout_task.done"
            ],
            [
              "",
              "self._timeout_task.cancel"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "json.loads"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "self._dispatch"
            ],
            [
              "",
              "self._dispatch"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._timeout_task.done"
            ],
            [
              "",
              "self._timeout_task.cancel"
            ],
            [
              "",
              "asyncio.create_task"
            ],
            [
              "",
              "self._watch_keepalive"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self.load_message"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self.dispatch_message"
            ],
            [
              "",
              "enumerate"
            ],
            [
              "",
              "future.cancelled"
            ],
            [
              "",
              "removed.append"
            ],
            [
              "",
              "entry.predicate"
            ],
            [
              "",
              "future.set_exception"
            ],
            [
              "",
              "removed.append"
            ],
            [
              "",
              "entry.result"
            ],
            [
              "",
              "future.set_result"
            ],
            [
              "",
              "removed.append"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "reversed"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "asyncio.Future"
            ],
            [
              "",
              "self._dispatch_listeners.append"
            ],
            [
              "",
              "EventListener"
            ],
            [
              "",
              "str"
            ],
            [
              "",
              "uuid.uuid4"
            ],
            [
              "",
              "get_request_template"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self.send"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "asyncio.wait_for"
            ],
            [
              "",
              "self.wait_for"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._subscriptions.append"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._subscriptions.remove"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "get_request_template"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self.send"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "typing",
              "Any"
            ],
            [
              "nice_go._exceptions",
              "AuthFailedError"
            ],
            [
              "typing",
              "Callable"
            ],
            [
              "typing",
              "NamedTuple"
            ],
            [
              "nice_go._exceptions",
              "ReconnectWebSocketError"
            ],
            [
              "typing",
              "TYPE_CHECKING"
            ],
            [
              "nice_go._exceptions",
              "WebSocketError"
            ],
            [
              "",
              "aiohttp"
            ],
            [
              "",
              "asyncio"
            ],
            [
              "",
              "base64"
            ],
            [
              "nice_go._util",
              "find_unauthorized_error"
            ],
            [
              "nice_go._util",
              "get_request_template"
            ],
            [
              "",
              "json"
            ],
            [
              "",
              "logging"
            ],
            [
              "",
              "nice_go._exceptions"
            ],
            [
              "",
              "nice_go._util"
            ],
            [
              "",
              "typing"
            ],
            [
              "",
              "uuid"
            ],
            [
              "",
              "yarl"
            ]
          ],
          "mbr": [
            "_LOGGER.debug",
            "_LOGGER.exception",
            "aiohttp.ClientSession",
            "aiohttp.ClientWebSocketResponse",
            "aiohttp.WSMsgType",
            "aiohttp.WSMsgType.CLOSE",
            "aiohttp.WSMsgType.CLOSED",
            "aiohttp.WSMsgType.CLOSING",
            "aiohttp.WSMsgType.ERROR",
            "aiohttp.WSMsgType.TEXT",
            "asyncio.CancelledError",
            "asyncio.Future",
            "asyncio.Task",
            "asyncio.TimeoutError",
            "asyncio.create_task",
            "asyncio.sleep",
            "asyncio.wait_for",
            "base64.b64encode",
            "base64.b64encode.decode",
            "data.get",
            "data.get.get",
            "data.type",
            "endpoint.with_query",
            "entry.event",
            "entry.future",
            "entry.predicate",
            "entry.result",
            "future.cancelled",
            "future.set_exception",
            "future.set_result",
            "json.JSONDecodeError",
            "json.dumps",
            "json.dumps.encode",
            "json.dumps.replace",
            "json.loads",
            "logging.getLogger",
            "message.data",
            "message.id",
            "message.payload",
            "message.payload.data",
            "message.payload.data.eventsFeed",
            "message.payload.data.eventsFeed.item",
            "message.payload.data.eventsFeed.item.eventId",
            "message.replace",
            "message.type",
            "msg.data",
            "msg.type",
            "parsed_message.type",
            "removed.append",
            "self._dispatch",
            "self._dispatch_listeners",
            "self._dispatch_listeners.append",
            "self._endpoint",
            "self._reconnect",
            "self._redact_message",
            "self._subscriptions",
            "self._subscriptions.append",
            "self._subscriptions.remove",
            "self._timeout",
            "self._timeout_task",
            "self._timeout_task.cancel",
            "self._timeout_task.done",
            "self._watch_keepalive",
            "self.api_type",
            "self.client_session",
            "self.client_session.ws_connect",
            "self.close",
            "self.dispatch_message",
            "self.host",
            "self.id_token",
            "self.init",
            "self.load_message",
            "self.received_message",
            "self.reconnecting",
            "self.send",
            "self.unsubscribe",
            "self.wait_for",
            "self.ws",
            "self.ws.close",
            "self.ws.closed",
            "self.ws.receive",
            "self.ws.send_json",
            "self.ws.send_str",
            "unauthorized.get",
            "uuid.uuid4",
            "yarl.URL"
          ],
          "metrics": {
            "ast": {
              "call_count": 116,
              "max_array_length": 3,
              "max_depth": 17,
              "max_member_depth": 6,
              "member_count": 86,
              "node_count": 3428,
              "op.bor": 6,
              "op.div": 1,
              "op.land": 5,
              "op.lor": 6,
              "op_density.bor": 0,
              "op_density.div": 0,
              "op_density.land": 0,
              "op_density.lor": 0
            },
            "binary": {
              "peak_region_bytes": 5120,
              "peak_region_entropy": 4.88
            },
            "binds": {
              "count": 52
            },
            "comments": {
              "chars": 298,
              "count": 10,
              "lines": 10,
              "to_code_ratio": 0.02
            },
            "file": {
              "entropy": 4.42,
              "size": 16529
            },
            "functions": {
              "avg_length_lines": 24,
              "avg_name_length": 9.47,
              "avg_nesting_depth": 0.06,
              "avg_param_name_length": 6.03,
              "avg_params": 1.94,
              "code_ratio": 0.87,
              "count": 19,
              "density": 3.67,
              "length_stddev": 14.33,
              "max_length_lines": 50,
              "max_nesting_depth": 1,
              "max_params": 6,
              "min_length_lines": 6,
              "nested": 1
            },
            "identifiers": {
              "all_lowercase_ratio": 0.77,
              "all_uppercase_ratio": 0.06,
              "avg_entropy": 2.52,
              "avg_length": 8.42,
              "count": 678,
              "double_underscore_count": 2,
              "has_digit_ratio": 0.02,
              "high_entropy_count": 4,
              "high_entropy_ratio": 0.03,
              "length_stddev": 4.4,
              "max_length": 23,
              "min_length": 1,
              "numeric_suffix_count": 2,
              "reuse_ratio": 0.2,
              "sequential_names": 1,
              "single_char_count": 1,
              "single_char_ratio": 0.01,
              "underscore_prefix_count": 15,
              "unique": 133
            },
            "imports": {
              "count": 19,
              "stdlib_count": 6,
              "stdlib_ratio": 0.32,
              "third_party_count": 13,
              "third_party_ratio": 0.68
            },
            "source": {
              "class_count": 2,
              "function_count": 17
            },
            "strings": {
              "avg_entropy": 3.09,
              "avg_length": 46.64,
              "bytes": 5644,
              "count": 121,
              "embedded_code_candidates": 3,
              "entropy_stddev": 0.86,
              "max_length": 445,
              "sql": 1
            },
            "text": {
              "avg_line_length": 34.7,
              "char_entropy": 4.42,
              "digit_ratio": 0,
              "empty_line_ratio": 0.16,
              "identifier_density": 1.46,
              "identifiers_to_functions_ratio": 7.82,
              "import_density": 4.1,
              "imports_to_functions_ratio": 1.12,
              "last_line_length": 58,
              "line_length_stddev": 24.81,
              "lines": 463,
              "max_line_length": 88,
              "max_whitespace_run": 2,
              "normalized_function_count": 0.79,
              "normalized_import_count": 0.88,
              "normalized_string_count": 5.62,
              "normalized_unique_identifiers": 15.02,
              "repeated_char_sequences": 171,
              "space_count": 4816,
              "string_density": 0.26,
              "strings_to_functions_ratio": 7.12,
              "suspicious_identifier_ratio": 0.01,
              "suspicious_string_ratio": 0.03,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.08,
              "unique_chars": 79,
              "whitespace_ratio": 0.32
            }
          },
          "tgt": [
            "AuthFailedError",
            "EventListener",
            "ValueError",
            "WebSocketError",
            "_LOGGER.debug",
            "_LOGGER.exception",
            "asyncio.Future",
            "asyncio.create_task",
            "asyncio.sleep",
            "asyncio.wait_for",
            "base64.b64encode",
            "base64.b64encode.decode",
            "data.get",
            "data.get.get",
            "endpoint.with_query",
            "entry.predicate",
            "entry.result",
            "enumerate",
            "find_unauthorized_error",
            "future.cancelled",
            "future.set_exception",
            "future.set_result",
            "get_request_template",
            "isinstance",
            "json.dumps",
            "json.dumps.encode",
            "json.dumps.replace",
            "json.loads",
            "logging.getLogger",
            "message.replace",
            "removed.append",
            "reversed",
            "self._dispatch",
            "self._dispatch_listeners.append",
            "self._reconnect",
            "self._redact_message",
            "self._subscriptions.append",
            "self._subscriptions.remove",
            "self._timeout_task.cancel",
            "self._timeout_task.done",
            "self._watch_keepalive",
            "self.client_session.ws_connect",
            "self.close",
            "self.dispatch_message",
            "self.init",
            "self.load_message",
            "self.received_message",
            "self.send",
            "self.unsubscribe",
            "self.wait_for",
            "self.ws.close",
            "self.ws.receive",
            "self.ws.send_json",
            "self.ws.send_str",
            "str",
            "unauthorized.get",
            "uuid.uuid4"
          ]
        },
        "id": 9,
        "mol": "H₄(Cm₄Db₁₁OsTi)Md₂(In₃Pt₂)",
        "path": "nice_go-1.0.3-py3-none-any.whl!!nice_go/_ws_client.py",
        "pid": 0,
        "risk": 14,
        "sha": "c7e421dacdc876bcecd5703a57d0a5941db40a6eb0e6721799a695e806bbf8b2",
        "sid": 10769519272,
        "size": 16529,
        "traits": [
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Imports Python base64 module",
            "id": "metadata/import/builtin::python-base64-import",
            "spans": [
              [
                242,
                6
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports aiohttp",
            "id": "metadata/import/python/aiohttp::aiohttp",
            "spans": [
              [
                356,
                7
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports base64",
            "id": "metadata/import/python/base64::base64",
            "spans": [
              [
                242,
                6
              ]
            ]
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Python asyncio library reference",
            "id": "metadata/lang/source/naming/interface/runtime::asyncio-reference",
            "spans": [
              [
                227,
                7
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Quoted timeout setting-name token",
            "id": "metadata/lang/source/naming/setting::timeout-setting-name-token",
            "spans": [
              [
                6217,
                15
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Quoted data field precedes string delimiter",
            "id": "metadata/lang/source/syntax/key-value::quoted-data-string-field",
            "spans": [
              [
                4291,
                12
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.5,
            "crit": 3,
            "desc": "Authorization header-name literal",
            "id": "micro-behaviors/communications/http/authorization-header::auth-header",
            "mbc": "C0002",
            "spans": [
              [
                4037,
                13
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.88,
            "crit": 3,
            "desc": "Defines an HTTP Authorization header mapping",
            "id": "micro-behaviors/communications/http/authorization-header::authorization-header-map-entry",
            "mbc": "C0002",
            "spans": [
              [
                4036,
                16
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Imports the aiohttp Python HTTP client",
            "id": "micro-behaviors/communications/http/client/library::aiohttp-import",
            "spans": [
              [
                356,
                7
              ]
            ]
          },
          {
            "conf": 0.93,
            "crit": 3,
            "desc": "OAuth token object member",
            "id": "micro-behaviors/communications/http/token-auth::token-object-field",
            "spans": [
              [
                14445,
                11
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.9,
            "crit": 3,
            "desc": "aiohttp WebSocket client connection",
            "id": "micro-behaviors/communications/websocket/library::aiohttp-websocket-connect",
            "mbc": "C0002",
            "spans": [
              [
                4560,
                12
              ]
            ]
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "WebSocket class reference",
            "id": "micro-behaviors/communications/websocket/library::websocket-class-reference",
            "spans": [
              [
                841,
                15
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 3,
            "desc": "Reads code/command/script/payload mapping key",
            "id": "micro-behaviors/data/collection/map::mapping-get-code-command-script-payload-key",
            "spans": [
              [
                5477,
                8
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Python message-key lookup",
            "id": "micro-behaviors/data/collection/map::mapping-get-message-key",
            "spans": [
              [
                5666,
                14
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "Handles HTTP, URL or connection errors",
            "id": "micro-behaviors/data/control-flow/error-handling/catch::network-error-handler",
            "mbc": "C0027",
            "spans": [
              [
                5942,
                27
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Encodes data with Python base64.b64encode()",
            "id": "micro-behaviors/data/encode/base64/primitive::b64encode-call",
            "spans": [
              [
                4151,
                16
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "Encodes serialized JSON text as bytes",
            "id": "micro-behaviors/data/encode/charset::python-json-string-encode",
            "spans": [
              [
                4168,
                17
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Base64 encoding near JSON serialization",
            "id": "micro-behaviors/data/encode/serialized-json::base64-json-encoding-proximity",
            "spans": [
              [
                4158,
                20
              ]
            ]
          },
          {
            "conf": 0.97,
            "crit": 3,
            "desc": "Base64-encodes serialized JSON",
            "id": "micro-behaviors/data/encode/serialized-json::python-json-base64-encoding",
            "spans": [
              [
                4151,
                16
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Replaces data with a redaction marker",
            "id": "micro-behaviors/data/manipulation::replacement-redaction-marker",
            "spans": [
              [
                1922,
                31
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Parses JSON data with Python",
            "id": "micro-behaviors/data/parse/json::json-loads-call",
            "spans": [
              [
                1891,
                10
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Python JSON loads and dumps",
            "id": "micro-behaviors/data/parse/json::python-json-parse-and-serialize",
            "spans": [
              [
                1891,
                10
              ],
              [
                1902,
                10
              ]
            ],
            "uses": [
              20,
              23
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "JSON object payload field fragment",
            "id": "micro-behaviors/data/serialize/envelope::json-payload-field",
            "spans": [
              [
                4291,
                10
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Serializes data with Python json.dumps()",
            "id": "micro-behaviors/data/serialize/json::json-dumps-call",
            "spans": [
              [
                1902,
                10
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "JSON-like host or hostname field",
            "id": "micro-behaviors/data/serialize/schema-system::host-field-key",
            "spans": [
              [
                4075,
                7
              ]
            ]
          },
          {
            "conf": 0.92,
            "crit": 3,
            "desc": "Bracketed redacted replacement marker",
            "id": "micro-behaviors/data/string/redact::bracketed-redacted-marker",
            "spans": [
              [
                1946,
                10
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "REDACTED replacement marker",
            "id": "micro-behaviors/data/string/redact::redacted-replacement-marker",
            "spans": [
              [
                1947,
                8
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Calls base64.b64encode in Python or script",
            "id": "micro-behaviors/os/sysinfo/profile::python-b64encode-text",
            "spans": [
              [
                4151,
                16
              ]
            ]
          },
          {
            "conf": 0.65,
            "crit": 3,
            "desc": "Calls a function named sleep in Python",
            "id": "micro-behaviors/time/sleep/interval::python-sleep-call",
            "spans": [
              [
                2385,
                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": 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 asyncio",
            "id": "metadata/import/python/asyncio::asyncio",
            "spans": [
              [
                227,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports json",
            "id": "metadata/import/python/json::json",
            "spans": [
              [
                256,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports logging",
            "id": "metadata/import/python/logging::logging",
            "spans": [
              [
                268,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports AuthFailedError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/authfailederror::authfailederror",
            "spans": [
              [
                397,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ReconnectWebSocketError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/reconnectwebsocketerror::reconnectwebsocketerror",
            "spans": [
              [
                414,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports WebSocketError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/websocketerror::websocketerror",
            "spans": [
              [
                439,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions::nice_go/_exceptions",
            "spans": [
              [
                370,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports find_unauthorized_error from nice_go._util",
            "id": "metadata/import/python/nice_go/_util/find_unauthorized_error::find_unauthorized_error",
            "spans": [
              [
                480,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports get_request_template from nice_go._util",
            "id": "metadata/import/python/nice_go/_util/get_request_template::get_request_template",
            "spans": [
              [
                505,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._util",
            "id": "metadata/import/python/nice_go/_util::nice_go/_util",
            "spans": [
              [
                459,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Any from typing",
            "id": "metadata/import/python/typing/any::any",
            "spans": [
              [
                322,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Callable from typing",
            "id": "metadata/import/python/typing/callable::callable",
            "spans": [
              [
                327,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports NamedTuple from typing",
            "id": "metadata/import/python/typing/namedtuple::namedtuple",
            "spans": [
              [
                337,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports TYPE_CHECKING from typing",
            "id": "metadata/import/python/typing/type_checking::type_checking",
            "spans": [
              [
                307,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports typing",
            "id": "metadata/import/python/typing::typing",
            "spans": [
              [
                293,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports uuid",
            "id": "metadata/import/python/uuid::uuid",
            "spans": [
              [
                283,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports yarl",
            "id": "metadata/import/python/yarl::yarl",
            "spans": [
              [
                556,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                2110,
                0
              ]
            ],
            "uses": [
              65,
              66,
              67,
              68,
              69,
              70
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Replace-named member call syntax",
            "id": "metadata/lang/source/syntax/call/invocation::replace-member-call-syntax",
            "spans": [
              [
                1921,
                0
              ]
            ]
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "Source contains for-loop syntax",
            "id": "metadata/lang/source/syntax/control-flow::for-loop-content",
            "spans": [
              [
                7380,
                0
              ]
            ]
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "except keyword",
            "id": "micro-behaviors/data/control-flow/error-handling/catch::except-keyword-dup",
            "mbc": "C0027",
            "spans": [
              [
                7945,
                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": [
              [
                12884,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 2,
            "desc": "Reads result through dot or arrow access",
            "id": "micro-behaviors/data/property/access::result-dot-member-read",
            "spans": [
              [
                12621,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Top-level Python import statement line",
            "id": "micro-behaviors/process/interpreter/python::module-import-statement",
            "spans": [
              [
                276,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "Python import-from statement",
            "id": "metadata/import/module::python-import-from-statement",
            "spans": [
              [
                365,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Control-action verb followed by alphabetic text",
            "id": "metadata/lang/natural/vocabulary/content-word::control-action-prose-fragment",
            "spans": [
              [
                7086,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-transfer verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-transfer-verb-token",
            "spans": [
              [
                6451,
                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": [
              [
                8268,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "English edit-action verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::english-edit-verb-token",
            "spans": [
              [
                15749,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                24,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                7600,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"that\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-3",
            "spans": [
              [
                143,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                2110,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                77,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                3,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 1,
            "desc": "Python class declared with a base class",
            "id": "metadata/lang/source/declaration::class-with-base",
            "spans": [
              [
                602,
                0
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 1,
            "desc": "String contains a host field",
            "id": "metadata/lang/source/literal/string/property::literal-host-field",
            "spans": [
              [
                3521,
                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": [
              [
                760,
                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": "JSON \"data\" field key",
            "id": "micro-behaviors/data/format/json::json-data-field",
            "spans": [
              [
                10219,
                0
              ]
            ]
          },
          {
            "conf": 0.45,
            "crit": 1,
            "desc": "Contains the standalone word token",
            "id": "micro-behaviors/data/parse/vocabulary::token-word",
            "spans": [
              [
                4796,
                0
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 1,
            "desc": "Copies token between structured fields",
            "id": "micro-behaviors/data/property/assign::token-field-to-field-assignment",
            "mbc": "C0002",
            "spans": [
              [
                14445,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "JSON-like object result field",
            "id": "micro-behaviors/data/serialize/schema-object::result-field-key",
            "spans": [
              [
                13082,
                0
              ]
            ]
          },
          {
            "conf": 0.82,
            "crit": 1,
            "desc": "CLI item subcommand token",
            "id": "micro-behaviors/process/argument/subcommand::cli-verb-item",
            "spans": [
              [
                10331,
                0
              ]
            ]
          }
        ],
        "type": "python"
      },
      {
        "analysis_gaps": [
          "flow-graph-limited",
          "flow-field-unavailable",
          "flow-query-incomplete"
        ],
        "ctx": [
          {
            "col": 29,
            "line": 1,
            "ln": 28,
            "s": "e-character-names-variables\n\"\"\"Parses data from the Nice G.O. API.\n\nThis module provides a class to interact\nwith the Nice G.O. API. It allows the user\nto authenticate, connect to the WebSocket\nAPI, and interact with barriers.\n\nClasses:\n    NiceGOApi: A class to interact with the Nice G.O. API.\n\"\"\"\n\nfrom __future__ import annotations\n\nimport asyncio\nimport contextlib\nimport inspect\nimport json\nimport logging\nfrom typing import Any, Callable, Coroutine, TypeVar\n\nimport aiohttp\nimport botocore\nimport yarl\nfrom tenacity import (\n    RetryCallState,\n    before_sleep_log,\n    retry,\n    retry_base,\n    retry_if_exception_type,\n    wait_random_exponential,\n)\n\nfrom nice_go._aws_cognito_authenticator import AwsCognitoAuthenticator\nfrom nice_go._barrier import Barrier, BarrierState, ConnectionState\nfrom nice_go._const import ENDPOINTS_URL\nfrom nice_go._exceptions import (\n    ApiError,\n    AuthFailedError,\n    NoAuthError,\n    ReconnectWebSocketError,\n    WebSocketError,\n)\nfrom nice_go._util import find_unauthorized_error, get_request_template\nfrom nice_go._ws_client import WebSocketClient\n\nT = TypeVar(\"T\")\nCoro = Coroutine[Any, Any, T]\nCoroT = TypeVar(\"CoroT\", bound=Callable[..., Coro[Any]])\n\n_LOGGER = logging.getLogger(__name__)\n\n\nclass _RetryIfReconnect(retry_base):\n    \"\"\"Retries only if reconnect is set to True.\"\"\""
          },
          {
            "col": 7,
            "line": 69,
            "ln": 1736,
            "s": "  id_token (str | None): The ID token.\n\n    Functions:\n        event: Decorator to add an event listener.\n        authenticate_refresh: Authenticate u"
          },
          {
            "col": 34,
            "line": 77,
            "ln": 2096,
            "s": "from a receiver.\n        close: Close the connection.\n        get_all_barriers: Get all barriers.\n    \""
          },
          {
            "col": 5,
            "line": 85,
            "ln": 2327,
            "s": "    self._closing_task: asyncio.Task[None] | None = None\n        self._device_ws: WebSocketClient | "
          },
          {
            "col": 68,
            "line": 129,
            "ln": 4239,
            "s": "e subscription.\n                See `subscribe`.\n\n            \u003e\u003e\u003e @api.event\n            ... async def on_data(\n            ...     data: dict[str, Any] | None = "
          },
          {
            "col": 34,
            "line": 136,
            "ln": 4467,
            "s": "t None:\n            ...         print(data)\n        \"\"\"\n        self.listen(coro.__name__, coro)\n        return coro\n\n    def listen(self, event_name: str, coro: CoroT) -\u003e Callable[[], None]:\n        \"\"\"Add an event listener.\n\n        Args:\n            event_name (str):"
          },
          {
            "col": 12,
            "line": 147,
            "ln": 4772,
            "s": " coro (CoroT): The coroutine to run when the event is dispatched.\n\n        Returns:\n            A function to remove the event listener.\n\n        Examples:\n            You can use "
          },
          {
            "col": 39,
            "line": 182,
            "ln": 6133,
            "s": "None,\n    ) -\u003e None:\n        \"\"\"Run an event coroutine. For internal use only.\n\n        Args:\n            coro (Callable[..., Coroutine[Any, Any, Any]]): T"
          },
          {
            "col": 17,
            "line": 196,
            "ln": 6602,
            "s": "syncio.CancelledError:\n            pass\n        except Exception:\n            _LOGGER.exception(\"Error while handling event %s\", event_name)\n\n    def _schedule_"
          },
          {
            "col": 35,
            "line": 214,
            "ln": 7269,
            "s": "coro, event_name, data)\n        task = asyncio.create_task(wrapped, name=f\"NiceGO: {event_name}\")\n  "
          },
          {
            "col": 13,
            "line": 234,
            "ln": 7975,
            "s": "GER.debug(\"Dispatching event %s\", event)\n        for coro in coros:\n            self._schedule_event(coro, method, data)\n\n    async def authenticate_refresh(\n        self,\n        refresh_token: str,\n        session: aiohttp.ClientSession,\n    ) -\u003e None:\n        \"\"\"Authenticate using a previous obtained refresh token.\n\n "
          },
          {
            "col": 19,
            "line": 256,
            "ln": 8679,
            "s": "enticate(\n        self,\n        user_name: str,\n        password: str,\n        session: aiohttp.ClientSess"
          },
          {
            "col": 45,
            "line": 307,
            "ln": 10167,
            "s": "NDPOINTS_URL)\n            endpoints = await data.json()\n            self._endpoints = endpoints[\"endpoints\"]\n\n            if self._endpoints is None:"
          },
          {
            "col": 23,
            "line": 322,
            "ln": 10718,
            "s": "me and password:\n                token = await asyncio.to_thread(\n                    authenticator.get_"
          },
          {
            "col": 19,
            "line": 329,
            "ln": 10962,
            "s": "ken = await asyncio.to_thread(\n                    authenticator.refresh_token,\n                    refresh_token,\n                )\n\n            _LOGGER.debug(\"Authenticated\")\n\n            self.id_token = "
          },
          {
            "col": 8,
            "line": 358,
            "ln": 11935,
            "s": " if self._device_ws is None:\n            return\n        while True:\n            await self._device_ws.poll()\n\n    async def _poll_events_ws(self) -\u003e None:\n        "
          },
          {
            "col": 10,
            "line": 377,
            "ln": 12455,
            "s": " def _check_response_errors(self, response: dict[str, Any]) -\u003e None:\n        \"\"\"Checks a GraphQL response f"
          },
          {
            "col": 78,
            "line": 421,
            "ln": 14020,
            "s": "sed.\n            If you want to run this method in the background, you should run it in a\n            separate thread or process.\n\n        Args:\n  "
          },
          {
            "col": 24,
            "line": 481,
            "ln": 16227,
            "s": "ptions := [\n                    task.exception() for task in done if task.exception()\n                ]:\n                    for p in pending:\n                        p.cancel()\n                    # Make sure both WS are closed\n "
          },
          {
            "col": 3,
            "line": 602,
            "ln": 20097,
            "s": "      _LOGGER.debug(\"API URL: %s\", api_url)\n\n        headers = {\"Authorization\": self.id_token, \"Content-Type\": \"application/json\"}\n\n        response = await self._session.post(\n            api_url,\n            headers=headers,\n            json=await get_request_template(\"get_all_barriers\", None),\n        )\n        data = await response.json()\n\n        _LOGGER.debug(\"Got all barriers\")\n        _LOGGER.debug(\"Data: %s\", data)\n\n        await self._check_response_errors(data)\n\n        barriers = []\n\n        for device in data[\"data\"][\"devicesListAll\"][\"devices\"]:\n            if device[\"state\"][\"connectionState\"] is "
          },
          {
            "col": 40,
            "line": 628,
            "ln": 21039,
            "s": "e(\n                device[\"state\"][\"deviceId\"],\n                json.loads(device[\"state\"][\"reported\"]),\n                device[\"state\"][\"timestamp\"],\n                device[\"state\"][\"version\"],\n                connection_state,\n            )\n            barrier = Barrier(\n                device[\"id\"],\n                device[\"type\"],\n                device[\"controlLevel\"],\n                device[\""
          },
          {
            "col": 26,
            "line": 685,
            "ln": 22890,
            "s": "_response_errors(data)\n\n        result: bool = data[\"data\"][\"devicesControl\"]\n\n        return result\n\n "
          },
          {
            "col": 40,
            "line": 691,
            "ln": 23031,
            "s": "er_id: str) -\u003e bool:\n        \"\"\"Close a barrier.\n\n        Args:\n            barrier_id (str): The ID of"
          }
        ],
        "depth": 1,
        "facts": {
          "funcs": [
            [
              "__call__",
              1366
            ],
            [
              "__init__",
              2207
            ],
            [
              "on_device_connected",
              2936
            ],
            [
              "on_events_connected",
              3233
            ],
            [
              "event",
              3530
            ],
            [
              "listen",
              4589
            ],
            [
              "_run_event",
              5979
            ],
            [
              "_schedule_event",
              6748
            ],
            [
              "_dispatch",
              7480
            ],
            [
              "authenticate_refresh",
              8101
            ],
            [
              "authenticate",
              8665
            ],
            [
              "__authenticate",
              9323
            ],
            [
              "closed",
              11523
            ],
            [
              "_poll_device_ws",
              11649
            ],
            [
              "_poll_events_ws",
              12049
            ],
            [
              "_check_response_errors",
              12450
            ],
            [
              "connect",
              13501
            ],
            [
              "subscribe",
              17280
            ],
            [
              "unsubscribe",
              18134
            ],
            [
              "close",
              18859
            ],
            [
              "_close",
              19020
            ],
            [
              "get_all_barriers",
              19347
            ],
            [
              "open_barrier",
              21581
            ],
            [
              "close_barrier",
              22996
            ],
            [
              "light_on",
              24254
            ],
            [
              "light_off",
              25692
            ],
            [
              "vacation_mode_on",
              27137
            ],
            [
              "vacation_mode_off",
              28383
            ]
          ],
          "imp": [
            [
              "",
              "TypeVar"
            ],
            [
              "",
              "TypeVar"
            ],
            [
              "",
              "logging.getLogger"
            ],
            [
              "",
              "retry_state.kwargs.get"
            ],
            [
              "",
              "set"
            ],
            [
              "",
              "self.event"
            ],
            [
              "",
              "self.event"
            ],
            [
              "",
              "self._dispatch"
            ],
            [
              "",
              "self._dispatch"
            ],
            [
              "",
              "self.listen"
            ],
            [
              "",
              "inspect.iscoroutinefunction"
            ],
            [
              "",
              "TypeError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._events.setdefault.append"
            ],
            [
              "",
              "self._events.setdefault"
            ],
            [
              "",
              "coro"
            ],
            [
              "",
              "_LOGGER.exception"
            ],
            [
              "",
              "self._run_event"
            ],
            [
              "",
              "asyncio.create_task"
            ],
            [
              "",
              "self._event_tasks.add"
            ],
            [
              "",
              "task.add_done_callback"
            ],
            [
              "",
              "self._events.get"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._schedule_event"
            ],
            [
              "",
              "self.__authenticate"
            ],
            [
              "",
              "self.__authenticate"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "ValueError"
            ],
            [
              "",
              "self._session.get"
            ],
            [
              "",
              "data.json"
            ],
            [
              "",
              "ApiError"
            ],
            [
              "",
              "AwsCognitoAuthenticator"
            ],
            [
              "",
              "asyncio.to_thread"
            ],
            [
              "",
              "asyncio.to_thread"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.exception"
            ],
            [
              "",
              "self._device_ws.poll"
            ],
            [
              "",
              "self._events_ws.poll"
            ],
            [
              "",
              "response.get"
            ],
            [
              "",
              "find_unauthorized_error"
            ],
            [
              "",
              "AuthFailedError"
            ],
            [
              "",
              "ApiError"
            ],
            [
              "",
              "retry"
            ],
            [
              "",
              "wait_random_exponential"
            ],
            [
              "",
              "_RetryIfReconnect"
            ],
            [
              "",
              "retry_if_exception_type"
            ],
            [
              "",
              "before_sleep_log"
            ],
            [
              "",
              "ApiError"
            ],
            [
              "",
              "ValueError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "WebSocketClient"
            ],
            [
              "",
              "self._device_ws.connect"
            ],
            [
              "",
              "yarl.URL"
            ],
            [
              "",
              "yarl.URL"
            ],
            [
              "",
              "WebSocketClient"
            ],
            [
              "",
              "self._events_ws.connect"
            ],
            [
              "",
              "yarl.URL"
            ],
            [
              "",
              "yarl.URL"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "asyncio.create_task"
            ],
            [
              "",
              "self._poll_device_ws"
            ],
            [
              "",
              "asyncio.create_task"
            ],
            [
              "",
              "self._poll_events_ws"
            ],
            [
              "",
              "contextlib.suppress"
            ],
            [
              "",
              "asyncio.wait"
            ],
            [
              "",
              "contextlib.suppress"
            ],
            [
              "",
              "task.exception"
            ],
            [
              "",
              "task.exception"
            ],
            [
              "",
              "p.cancel"
            ],
            [
              "",
              "self._events_ws.close"
            ],
            [
              "",
              "self._device_ws.close"
            ],
            [
              "",
              "self._dispatch"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self.close"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._device_ws.subscribe"
            ],
            [
              "",
              "self._events_ws.subscribe"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "WebSocketError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._device_ws.unsubscribe"
            ],
            [
              "",
              "self._events_ws.unsubscribe"
            ],
            [
              "",
              "self._device_ws.close"
            ],
            [
              "",
              "self._events_ws.close"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "asyncio.create_task"
            ],
            [
              "",
              "_close"
            ],
            [
              "",
              "ValueError"
            ],
            [
              "",
              "ApiError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._session.post"
            ],
            [
              "",
              "get_request_template"
            ],
            [
              "",
              "response.json"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._check_response_errors"
            ],
            [
              "",
              "ConnectionState"
            ],
            [
              "",
              "BarrierState"
            ],
            [
              "",
              "json.loads"
            ],
            [
              "",
              "Barrier"
            ],
            [
              "",
              "barriers.append"
            ],
            [
              "",
              "ValueError"
            ],
            [
              "",
              "ApiError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._session.post"
            ],
            [
              "",
              "get_request_template"
            ],
            [
              "",
              "response.json"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._check_response_errors"
            ],
            [
              "",
              "ValueError"
            ],
            [
              "",
              "ApiError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._session.post"
            ],
            [
              "",
              "get_request_template"
            ],
            [
              "",
              "response.json"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._check_response_errors"
            ],
            [
              "",
              "ValueError"
            ],
            [
              "",
              "ApiError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._session.post"
            ],
            [
              "",
              "get_request_template"
            ],
            [
              "",
              "response.json"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._check_response_errors"
            ],
            [
              "",
              "ValueError"
            ],
            [
              "",
              "ApiError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._session.post"
            ],
            [
              "",
              "get_request_template"
            ],
            [
              "",
              "response.json"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._check_response_errors"
            ],
            [
              "",
              "ValueError"
            ],
            [
              "",
              "ApiError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._session.post"
            ],
            [
              "",
              "get_request_template"
            ],
            [
              "",
              "response.json"
            ],
            [
              "",
              "ValueError"
            ],
            [
              "",
              "ApiError"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "_LOGGER.debug"
            ],
            [
              "",
              "self._session.post"
            ],
            [
              "",
              "get_request_template"
            ],
            [
              "",
              "response.json"
            ],
            [
              "typing",
              "Any"
            ],
            [
              "nice_go._exceptions",
              "ApiError"
            ],
            [
              "nice_go._exceptions",
              "AuthFailedError"
            ],
            [
              "nice_go._aws_cognito_authenticator",
              "AwsCognitoAuthenticator"
            ],
            [
              "nice_go._barrier",
              "Barrier"
            ],
            [
              "nice_go._barrier",
              "BarrierState"
            ],
            [
              "typing",
              "Callable"
            ],
            [
              "nice_go._barrier",
              "ConnectionState"
            ],
            [
              "typing",
              "Coroutine"
            ],
            [
              "nice_go._const",
              "ENDPOINTS_URL"
            ],
            [
              "nice_go._exceptions",
              "NoAuthError"
            ],
            [
              "nice_go._exceptions",
              "ReconnectWebSocketError"
            ],
            [
              "tenacity",
              "RetryCallState"
            ],
            [
              "typing",
              "TypeVar"
            ],
            [
              "nice_go._ws_client",
              "WebSocketClient"
            ],
            [
              "nice_go._exceptions",
              "WebSocketError"
            ],
            [
              "",
              "aiohttp"
            ],
            [
              "",
              "asyncio"
            ],
            [
              "tenacity",
              "before_sleep_log"
            ],
            [
              "",
              "botocore"
            ],
            [
              "",
              "contextlib"
            ],
            [
              "nice_go._util",
              "find_unauthorized_error"
            ],
            [
              "nice_go._util",
              "get_request_template"
            ],
            [
              "",
              "inspect"
            ],
            [
              "",
              "json"
            ],
            [
              "",
              "logging"
            ],
            [
              "",
              "nice_go._aws_cognito_authenticator"
            ],
            [
              "",
              "nice_go._barrier"
            ],
            [
              "",
              "nice_go._const"
            ],
            [
              "",
              "nice_go._exceptions"
            ],
            [
              "",
              "nice_go._util"
            ],
            [
              "",
              "nice_go._ws_client"
            ],
            [
              "tenacity",
              "retry"
            ],
            [
              "tenacity",
              "retry_base"
            ],
            [
              "tenacity",
              "retry_if_exception_type"
            ],
            [
              "",
              "tenacity"
            ],
            [
              "",
              "typing"
            ],
            [
              "tenacity",
              "wait_random_exponential"
            ],
            [
              "",
              "yarl"
            ]
          ],
          "mbr": [
            "_LOGGER.debug",
            "_LOGGER.exception",
            "aiohttp.ClientError",
            "aiohttp.ClientSession",
            "asyncio.CancelledError",
            "asyncio.FIRST_EXCEPTION",
            "asyncio.Task",
            "asyncio.TimeoutError",
            "asyncio.create_task",
            "asyncio.to_thread",
            "asyncio.wait",
            "authenticator.get_new_token",
            "authenticator.refresh_token",
            "barriers.append",
            "botocore.exceptions",
            "botocore.exceptions.ClientError",
            "contextlib.suppress",
            "coro.__name__",
            "data.data",
            "data.data.devicesControl",
            "data.data.devicesListAll",
            "data.data.devicesListAll.devices",
            "data.json",
            "device.attr",
            "device.controlLevel",
            "device.id",
            "device.state",
            "device.state.connectionState",
            "device.state.connectionState.connected",
            "device.state.connectionState.updatedTimestamp",
            "device.state.deviceId",
            "device.state.reported",
            "device.state.timestamp",
            "device.state.version",
            "device.type",
            "e.response",
            "e.response.Error",
            "e.response.Error.Code",
            "endpoints.endpoints",
            "inspect.iscoroutinefunction",
            "json.loads",
            "kwargs.data",
            "logging.DEBUG",
            "logging.getLogger",
            "p.cancel",
            "response.get",
            "response.json",
            "retry_state.kwargs",
            "retry_state.kwargs.get",
            "self.__authenticate",
            "self._check_response_errors",
            "self._closing_task",
            "self._device_connected",
            "self._device_ws",
            "self._device_ws.close",
            "self._device_ws.connect",
            "self._device_ws.poll",
            "self._device_ws.subscribe",
            "self._device_ws.unsubscribe",
            "self._dispatch",
            "self._endpoints",
            "self._endpoints.Config",
            "self._endpoints.Config.ClientId",
            "self._endpoints.Config.IdentityPoolId",
            "self._endpoints.Config.Region",
            "self._endpoints.Config.UserPoolId",
            "self._endpoints.GraphQL",
            "self._endpoints.GraphQL.device",
            "self._endpoints.GraphQL.device.https",
            "self._endpoints.GraphQL.device.wss",
            "self._endpoints.GraphQL.events",
            "self._endpoints.GraphQL.events.https",
            "self._endpoints.GraphQL.events.wss",
            "self._event_tasks",
            "self._event_tasks.add",
            "self._event_tasks.discard",
            "self._events",
            "self._events.get",
            "self._events.setdefault",
            "self._events.setdefault.append",
            "self._events_connected",
            "self._events_ws",
            "self._events_ws.close",
            "self._events_ws.connect",
            "self._events_ws.poll",
            "self._events_ws.subscribe",
            "self._events_ws.unsubscribe",
            "self._poll_device_ws",
            "self._poll_events_ws",
            "self._reconnect",
            "self._run_event",
            "self._schedule_event",
            "self._session",
            "self._session.get",
            "self._session.post",
            "self.close",
            "self.closed",
            "self.event",
            "self.id_token",
            "self.listen",
            "self.on_device_connected",
            "self.on_events_connected",
            "task.add_done_callback",
            "task.exception",
            "token.id_token",
            "token.refresh_token",
            "yarl.URL",
            "yarl.URL.host"
          ],
          "metrics": {
            "ast": {
              "call_count": 157,
              "infinite_loop_count": 2,
              "max_array_length": 5,
              "max_depth": 20,
              "max_member_depth": 5,
              "member_count": 108,
              "node_count": 5372,
              "op.band": 1,
              "op.bor": 10,
              "op.land": 3,
              "op_density.band": 0,
              "op_density.bor": 0,
              "op_density.land": 0
            },
            "binary": {
              "peak_region_bytes": 17341,
              "peak_region_entropy": 4.73
            },
            "binds": {
              "count": 99
            },
            "comments": {
              "chars": 242,
              "count": 8,
              "lines": 8,
              "to_code_ratio": 0.01
            },
            "file": {
              "entropy": 4.36,
              "size": 29629
            },
            "functions": {
              "anonymous": 1,
              "avg_length_lines": 26.86,
              "avg_name_length": 11.86,
              "avg_nesting_depth": 0.07,
              "avg_param_name_length": 6.16,
              "avg_params": 2,
              "code_ratio": 0.87,
              "count": 30,
              "density": 3.25,
              "length_stddev": 21.98,
              "max_length_lines": 101,
              "max_nesting_depth": 1,
              "max_params": 4,
              "min_length_lines": 1,
              "nested": 2,
              "no_params_count": 2,
              "one_liners": 1,
              "over_100_lines": 1,
              "single_char_params": 1
            },
            "identifiers": {
              "all_lowercase_ratio": 0.8,
              "all_uppercase_ratio": 0.03,
              "avg_entropy": 2.59,
              "avg_length": 9.5,
              "count": 1030,
              "double_underscore_count": 3,
              "high_entropy_count": 7,
              "high_entropy_ratio": 0.04,
              "length_stddev": 5.03,
              "max_length": 26,
              "min_length": 1,
              "reuse_ratio": 0.17,
              "sequential_names": 3,
              "single_char_count": 3,
              "single_char_ratio": 0.02,
              "underscore_prefix_count": 29,
              "unique": 178
            },
            "imports": {
              "count": 39,
              "stdlib_count": 5,
              "stdlib_ratio": 0.13,
              "third_party_count": 34,
              "third_party_ratio": 0.87
            },
            "source": {
              "class_count": 2,
              "function_count": 28
            },
            "strings": {
              "avg_entropy": 3.04,
              "avg_length": 56.75,
              "base64_candidates": 1,
              "bytes": 11918,
              "count": 210,
              "email_count": 1,
              "embedded_code_candidates": 8,
              "entropy_stddev": 0.78,
              "max_length": 965,
              "shell": 4,
              "sql": 3
            },
            "text": {
              "anonymous_function_ratio": 0.03,
              "avg_line_length": 32.22,
              "char_entropy": 4.36,
              "digit_ratio": 0,
              "empty_line_ratio": 0.2,
              "encoded_string_ratio": 0,
              "identifier_density": 1.15,
              "identifiers_to_functions_ratio": 6.14,
              "import_density": 4.37,
              "imports_to_functions_ratio": 1.34,
              "last_line_length": 29,
              "line_length_stddev": 24.23,
              "lines": 892,
              "max_line_length": 88,
              "max_whitespace_run": 9,
              "normalized_function_count": 0.97,
              "normalized_import_count": 1.31,
              "normalized_string_count": 7.03,
              "normalized_unique_identifiers": 18.16,
              "repeated_char_sequences": 336,
              "space_count": 8970,
              "string_density": 0.24,
              "strings_to_functions_ratio": 7.24,
              "suspicious_identifier_ratio": 0.02,
              "suspicious_string_ratio": 0.07,
              "top_char": 101,
              "top_char_null": 0,
              "top_char_ratio": 0.07,
              "unique_chars": 78,
              "whitespace_ratio": 0.33
            }
          },
          "tgt": [
            "ApiError",
            "AuthFailedError",
            "AwsCognitoAuthenticator",
            "Barrier",
            "BarrierState",
            "ConnectionState",
            "TypeError",
            "TypeVar",
            "ValueError",
            "WebSocketClient",
            "WebSocketError",
            "_LOGGER.debug",
            "_LOGGER.exception",
            "_RetryIfReconnect",
            "_close",
            "asyncio.create_task",
            "asyncio.to_thread",
            "asyncio.wait",
            "barriers.append",
            "before_sleep_log",
            "contextlib.suppress",
            "coro",
            "data.json",
            "find_unauthorized_error",
            "get_request_template",
            "inspect.iscoroutinefunction",
            "json.loads",
            "logging.getLogger",
            "p.cancel",
            "response.get",
            "response.json",
            "retry",
            "retry_if_exception_type",
            "retry_state.kwargs.get",
            "self.__authenticate",
            "self._check_response_errors",
            "self._device_ws.close",
            "self._device_ws.connect",
            "self._device_ws.poll",
            "self._device_ws.subscribe",
            "self._device_ws.unsubscribe",
            "self._dispatch",
            "self._event_tasks.add",
            "self._events.get",
            "self._events.setdefault",
            "self._events.setdefault.append",
            "self._events_ws.close",
            "self._events_ws.connect",
            "self._events_ws.poll",
            "self._events_ws.subscribe",
            "self._events_ws.unsubscribe",
            "self._poll_device_ws",
            "self._poll_events_ws",
            "self._run_event",
            "self._schedule_event",
            "self._session.get",
            "self._session.post",
            "self.close",
            "self.event",
            "self.listen",
            "set",
            "task.add_done_callback",
            "task.exception",
            "wait_random_exponential",
            "yarl.URL"
          ]
        },
        "id": 10,
        "mol": "H₃(Cm₆DbPo)Md₂(In₂Pt₂)",
        "path": "nice_go-1.0.3-py3-none-any.whl!!nice_go/nice_go_api.py",
        "pid": 0,
        "risk": 6,
        "sha": "53d52e63cbdc183a25ca8f38c8514fb26d714f411bff1cc2bcd81c88e4724ee9",
        "sid": 10769519269,
        "size": 29629,
        "traits": [
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports aiohttp",
            "id": "metadata/import/python/aiohttp::aiohttp",
            "spans": [
              [
                501,
                7
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 3,
            "desc": "imports botocore",
            "id": "metadata/import/python/botocore::botocore",
            "spans": [
              [
                516,
                8
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 3,
            "desc": "Source has 6+ code-like string candidates",
            "id": "metadata/lang/source/literal/embedded-source::embedded-code-candidates-6"
          },
          {
            "conf": 0.5,
            "crit": 3,
            "desc": "Python asyncio library reference",
            "id": "metadata/lang/source/naming/interface/runtime::asyncio-reference",
            "spans": [
              [
                372,
                7
              ]
            ]
          },
          {
            "conf": 0.75,
            "crit": 3,
            "desc": "Python source contains .listen call text",
            "id": "metadata/lang/source/syntax/call/member::python-listen-call-text",
            "spans": [
              [
                4535,
                8
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.5,
            "crit": 3,
            "desc": "Authorization header-name literal",
            "id": "micro-behaviors/communications/http/authorization-header::auth-header",
            "mbc": "C0002",
            "spans": [
              [
                20162,
                13
              ]
            ]
          },
          {
            "atk": "T1071.001",
            "conf": 0.88,
            "crit": 3,
            "desc": "Defines an HTTP Authorization header mapping",
            "id": "micro-behaviors/communications/http/authorization-header::authorization-header-map-entry",
            "mbc": "C0002",
            "spans": [
              [
                20161,
                16
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Imports the aiohttp Python HTTP client",
            "id": "micro-behaviors/communications/http/client/library::aiohttp-import",
            "spans": [
              [
                501,
                7
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "References HTTP Content-Type application/json",
            "id": "micro-behaviors/communications/http/header/content-type::json-header",
            "spans": [
              [
                20194,
                32
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 3,
            "desc": "JSON Content-Type mapping in Python source",
            "id": "micro-behaviors/communications/http/header/content-type::python-json-content-type",
            "spans": [
              [
                20194,
                32
              ]
            ]
          },
          {
            "conf": 0.82,
            "crit": 3,
            "desc": "HTTP POST supplies a body argument",
            "id": "micro-behaviors/communications/http/request/body/construction::http-post-with-body-argument",
            "spans": [
              [
                20255,
                103
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Post method receives a JSON argument",
            "id": "micro-behaviors/communications/http/request/json::python-post-json-method",
            "spans": [
              [
                20269,
                4
              ],
              [
                20337,
                4
              ]
            ]
          },
          {
            "conf": 0.93,
            "crit": 3,
            "desc": "Reads a refresh_token member value",
            "id": "micro-behaviors/communications/http/token-auth::member-refresh-token-access",
            "spans": [
              [
                11026,
                14
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Snake-case OAuth refresh_token field assign",
            "id": "micro-behaviors/communications/http/token-auth::refresh-token-snake-assign",
            "spans": [
              [
                8155,
                14
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Parses JSON data with Python",
            "id": "micro-behaviors/data/parse/json::json-loads-call",
            "spans": [
              [
                21103,
                10
              ]
            ]
          },
          {
            "conf": 0.85,
            "crit": 3,
            "desc": "Calls a JSON body reader method",
            "id": "micro-behaviors/data/parse/json::python-json-body-method-call",
            "spans": [
              [
                20427,
                13
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 3,
            "desc": "Synchronizes threads on POSIX barrier",
            "id": "micro-behaviors/process/thread/runtime::posix-barrier-sync",
            "spans": [
              [
                21304,
                7
              ]
            ]
          },
          {
            "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": [
              [
                10215,
                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 asyncio",
            "id": "metadata/import/python/asyncio::asyncio",
            "spans": [
              [
                372,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports contextlib",
            "id": "metadata/import/python/contextlib::contextlib",
            "spans": [
              [
                387,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports inspect",
            "id": "metadata/import/python/inspect::inspect",
            "spans": [
              [
                405,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports json",
            "id": "metadata/import/python/json::json",
            "spans": [
              [
                420,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports logging",
            "id": "metadata/import/python/logging::logging",
            "spans": [
              [
                432,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports AwsCognitoAuthenticator from nice_go._aws_cognito_authenticator",
            "id": "metadata/import/python/nice_go/_aws_cognito_authenticator/awscognitoauthenticator::awscognitoauthenticator",
            "spans": [
              [
                737,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._aws_cognito_authenticator",
            "id": "metadata/import/python/nice_go/_aws_cognito_authenticator::nice_go/_aws_cognito_authenticator",
            "spans": [
              [
                695,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Barrier from nice_go._barrier",
            "id": "metadata/import/python/nice_go/_barrier/barrier::barrier",
            "spans": [
              [
                790,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports BarrierState from nice_go._barrier",
            "id": "metadata/import/python/nice_go/_barrier/barrierstate::barrierstate",
            "spans": [
              [
                799,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ConnectionState from nice_go._barrier",
            "id": "metadata/import/python/nice_go/_barrier/connectionstate::connectionstate",
            "spans": [
              [
                813,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._barrier",
            "id": "metadata/import/python/nice_go/_barrier::nice_go/_barrier",
            "spans": [
              [
                766,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ENDPOINTS_URL from nice_go._const",
            "id": "metadata/import/python/nice_go/_const/endpoints_url::endpoints_url",
            "spans": [
              [
                856,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._const",
            "id": "metadata/import/python/nice_go/_const::nice_go/_const",
            "spans": [
              [
                834,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ApiError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/apierror::apierror",
            "spans": [
              [
                908,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports AuthFailedError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/authfailederror::authfailederror",
            "spans": [
              [
                922,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports NoAuthError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/noautherror::noautherror",
            "spans": [
              [
                943,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports ReconnectWebSocketError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/reconnectwebsocketerror::reconnectwebsocketerror",
            "spans": [
              [
                960,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports WebSocketError from nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions/websocketerror::websocketerror",
            "spans": [
              [
                989,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._exceptions",
            "id": "metadata/import/python/nice_go/_exceptions::nice_go/_exceptions",
            "spans": [
              [
                875,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports find_unauthorized_error from nice_go._util",
            "id": "metadata/import/python/nice_go/_util/find_unauthorized_error::find_unauthorized_error",
            "spans": [
              [
                1033,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports get_request_template from nice_go._util",
            "id": "metadata/import/python/nice_go/_util/get_request_template::get_request_template",
            "spans": [
              [
                1058,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._util",
            "id": "metadata/import/python/nice_go/_util::nice_go/_util",
            "spans": [
              [
                1012,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports WebSocketClient from nice_go._ws_client",
            "id": "metadata/import/python/nice_go/_ws_client/websocketclient::websocketclient",
            "spans": [
              [
                1110,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports nice_go._ws_client",
            "id": "metadata/import/python/nice_go/_ws_client::nice_go/_ws_client",
            "spans": [
              [
                1084,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports before_sleep_log from tenacity",
            "id": "metadata/import/python/tenacity/before_sleep_log::before_sleep_log",
            "spans": [
              [
                584,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports retry from tenacity",
            "id": "metadata/import/python/tenacity/retry::retry",
            "spans": [
              [
                606,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports retry_base from tenacity",
            "id": "metadata/import/python/tenacity/retry_base::retry_base",
            "spans": [
              [
                617,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports retry_if_exception_type from tenacity",
            "id": "metadata/import/python/tenacity/retry_if_exception_type::retry_if_exception_type",
            "spans": [
              [
                633,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports RetryCallState from tenacity",
            "id": "metadata/import/python/tenacity/retrycallstate::retrycallstate",
            "spans": [
              [
                564,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports wait_random_exponential from tenacity",
            "id": "metadata/import/python/tenacity/wait_random_exponential::wait_random_exponential",
            "spans": [
              [
                662,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports tenacity",
            "id": "metadata/import/python/tenacity::tenacity",
            "spans": [
              [
                542,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Any from typing",
            "id": "metadata/import/python/typing/any::any",
            "spans": [
              [
                459,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Callable from typing",
            "id": "metadata/import/python/typing/callable::callable",
            "spans": [
              [
                464,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports Coroutine from typing",
            "id": "metadata/import/python/typing/coroutine::coroutine",
            "spans": [
              [
                474,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports TypeVar from typing",
            "id": "metadata/import/python/typing/typevar::typevar",
            "spans": [
              [
                485,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports typing",
            "id": "metadata/import/python/typing::typing",
            "spans": [
              [
                445,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "imports yarl",
            "id": "metadata/import/python/yarl::yarl",
            "spans": [
              [
                532,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Contains common English function words",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english",
            "spans": [
              [
                227,
                0
              ]
            ],
            "uses": [
              77,
              78,
              79,
              80,
              81
            ]
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "Source contains for-loop syntax",
            "id": "metadata/lang/source/syntax/control-flow::for-loop-content",
            "spans": [
              [
                8023,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Python doctest prompt",
            "id": "metadata/package/documentation/docstring::python-doctest-prompt",
            "spans": [
              [
                4287,
                0
              ]
            ]
          },
          {
            "conf": 0.5,
            "crit": 2,
            "desc": "except keyword",
            "id": "micro-behaviors/data/control-flow/error-handling/catch::except-keyword-dup",
            "mbc": "C0027",
            "spans": [
              [
                6650,
                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": [
              [
                20607,
                0
              ]
            ]
          },
          {
            "conf": 0.3,
            "crit": 2,
            "desc": "While-loop control flow",
            "id": "micro-behaviors/data/control-flow/loop/conditional::while-loop",
            "spans": [
              [
                11983,
                0
              ]
            ]
          },
          {
            "conf": 1.0,
            "crit": 2,
            "desc": "Python unconditional while-loop header",
            "id": "micro-behaviors/data/control-flow/loop/unconditional::python-unconditional-while-header",
            "spans": [
              [
                11991,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 2,
            "desc": "Module scope assigns a call result",
            "id": "micro-behaviors/data/control-flow/module-exec::python-module-level-call-assignment",
            "spans": [
              [
                1127,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 2,
            "desc": "Top-level Python import statement line",
            "id": "micro-behaviors/process/interpreter/python::module-import-statement",
            "spans": [
              [
                525,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "Python import-from statement",
            "id": "metadata/import/module::python-import-from-statement",
            "spans": [
              [
                761,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Control-action verb followed by alphabetic text",
            "id": "metadata/lang/natural/vocabulary/content-word::control-action-prose-fragment",
            "spans": [
              [
                14052,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-access verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-access-verb-token",
            "spans": [
              [
                4499,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "Data-transfer verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::data-transfer-verb-token",
            "spans": [
              [
                20269,
                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": [
              [
                2359,
                0
              ]
            ]
          },
          {
            "conf": 0.88,
            "crit": 1,
            "desc": "English edit-action verb token",
            "id": "metadata/lang/natural/vocabulary/content-word::english-edit-verb-token",
            "spans": [
              [
                4882,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"the\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-1",
            "spans": [
              [
                76,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"and\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-2",
            "spans": [
              [
                227,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"for\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-5",
            "spans": [
              [
                6189,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"with\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-6",
            "spans": [
              [
                137,
                0
              ]
            ]
          },
          {
            "conf": 0.8,
            "crit": 1,
            "desc": "English function-word token \"this\"",
            "id": "metadata/lang/natural/vocabulary/function-word::lang-english--atom-7",
            "spans": [
              [
                96,
                0
              ]
            ]
          },
          {
            "conf": 0.95,
            "crit": 1,
            "desc": "Python class declared with a base class",
            "id": "metadata/lang/source/declaration::class-with-base",
            "spans": [
              [
                1272,
                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": [
              [
                22922,
                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": [
              [
                10211,
                0
              ]
            ]
          },
          {
            "conf": 0.94,
            "crit": 1,
            "desc": "WordPress install.php user_name form field",
            "id": "micro-behaviors/communications/http/request/params::wordpress-install-username-param",
            "spans": [
              [
                8711,
                0
              ]
            ]
          },
          {
            "conf": 0.65,
            "crit": 1,
            "desc": "Token-named field assignment (weak auth signal)",
            "id": "micro-behaviors/communications/http/token-auth::token-field-assignment",
            "spans": [
              [
                10750,
                0
              ]
            ]
          },
          {
            "conf": 0.45,
            "crit": 1,
            "desc": "Contains the standalone word token",
            "id": "micro-behaviors/data/parse/vocabulary::token-word",
            "spans": [
              [
                1768,
                0
              ]
            ]
          },
          {
            "conf": 0.9,
            "crit": 1,
            "desc": "JSON-like object result field",
            "id": "micro-behaviors/data/serialize/schema-object::result-field-key",
            "spans": [
              [
                12487,
                0
              ]
            ]
          }
        ],
        "type": "python"
      }
    ],
    "v": 8
  }
}