1 line
6.9 KiB
JSON
1 line
6.9 KiB
JSON
{"nodes": [{"id": "backend_venv_lib_python3_12_site_packages_websockets_utils_py", "label": "utils.py", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L1"}, {"id": "utils_generate_key", "label": "generate_key()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L17"}, {"id": "utils_accept_key", "label": "accept_key()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L26"}, {"id": "utils_apply_mask", "label": "apply_mask()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L38"}, {"id": "utils_rationale_18", "label": "Generate a random key for the Sec-WebSocket-Key header.", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L18"}, {"id": "utils_rationale_27", "label": "Compute the value of the Sec-WebSocket-Accept header. Args: key: Va", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L27"}, {"id": "utils_rationale_39", "label": "Apply masking to the data of a WebSocket message. Args: data: Data", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L39"}], "edges": [{"source": "backend_venv_lib_python3_12_site_packages_websockets_utils_py", "target": "base64", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L3", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_websockets_utils_py", "target": "hashlib", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L4", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_websockets_utils_py", "target": "secrets", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_websockets_utils_py", "target": "sys", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L6", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_websockets_utils_py", "target": "backend_venv_lib_python3_12_site_packages_websockets_typing_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L8", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_websockets_utils_py", "target": "utils_generate_key", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L17", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_websockets_utils_py", "target": "utils_accept_key", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L26", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_websockets_utils_py", "target": "utils_apply_mask", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L38", "weight": 1.0}, {"source": "utils_rationale_18", "target": "utils_generate_key", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L18", "weight": 1.0}, {"source": "utils_rationale_27", "target": "utils_accept_key", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L27", "weight": 1.0}, {"source": "utils_rationale_39", "target": "utils_apply_mask", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L39", "weight": 1.0}], "raw_calls": [{"caller_nid": "utils_generate_key", "callee": "token_bytes", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L22"}, {"caller_nid": "utils_generate_key", "callee": "decode", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L23"}, {"caller_nid": "utils_generate_key", "callee": "b64encode", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L23"}, {"caller_nid": "utils_accept_key", "callee": "digest", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L34"}, {"caller_nid": "utils_accept_key", "callee": "sha1", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L34"}, {"caller_nid": "utils_accept_key", "callee": "encode", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L34"}, {"caller_nid": "utils_accept_key", "callee": "decode", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L35"}, {"caller_nid": "utils_accept_key", "callee": "b64encode", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L35"}, {"caller_nid": "utils_apply_mask", "callee": "len", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L47"}, {"caller_nid": "utils_apply_mask", "callee": "ValueError", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L48"}, {"caller_nid": "utils_apply_mask", "callee": "from_bytes", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L50"}, {"caller_nid": "utils_apply_mask", "callee": "len", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L51"}, {"caller_nid": "utils_apply_mask", "callee": "len", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L51"}, {"caller_nid": "utils_apply_mask", "callee": "from_bytes", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L52"}, {"caller_nid": "utils_apply_mask", "callee": "to_bytes", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L53"}, {"caller_nid": "utils_apply_mask", "callee": "len", "source_file": "backend/venv/lib/python3.12/site-packages/websockets/utils.py", "source_location": "L53"}]} |