Files
tfm_ainventory/graphify-out/cache/6a8be62545da35c7ecbdfe08c13aa8817e9da71b54be9a912e2b32c1fe99cfa2.json

1 line
21 KiB
JSON

{"nodes": [{"id": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "label": "cache.py", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L1"}, {"id": "cache_is_from_cache", "label": "is_from_cache()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L24"}, {"id": "cache_suppressed_cache_errors", "label": "suppressed_cache_errors()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L29"}, {"id": "cache_safefilecache", "label": "SafeFileCache", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L39"}, {"id": "separatebodybasecache", "label": "SeparateBodyBaseCache", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "cache_safefilecache_init", "label": ".__init__()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L57"}, {"id": "cache_safefilecache_get_cache_path", "label": "._get_cache_path()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L62"}, {"id": "cache_safefilecache_get", "label": ".get()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L70"}, {"id": "cache_safefilecache_write_to_file", "label": "._write_to_file()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L80"}, {"id": "cache_safefilecache_write", "label": "._write()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L93"}, {"id": "cache_safefilecache_write_from_io", "label": "._write_from_io()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L96"}, {"id": "cache_safefilecache_set", "label": ".set()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L99"}, {"id": "cache_safefilecache_delete", "label": ".delete()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L105"}, {"id": "cache_safefilecache_get_body", "label": ".get_body()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L112"}, {"id": "cache_safefilecache_set_body", "label": ".set_body()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L121"}, {"id": "cache_safefilecache_set_body_from_io", "label": ".set_body_from_io()", "file_type": "code", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L125"}, {"id": "cache_rationale_1", "label": "HTTP cache implementation.", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L1"}, {"id": "cache_rationale_30", "label": "If we can't access the cache then we can just skip caching and process reque", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L30"}, {"id": "cache_rationale_40", "label": "A file based cache which is safe to use even when the target directory may n", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L40"}, {"id": "cache_rationale_81", "label": "Common file writing logic with proper permissions and atomic replacement.", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L81"}, {"id": "cache_rationale_126", "label": "Set the body of the cache entry from a file object.", "file_type": "rationale", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L126"}], "edges": [{"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "os", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "shutil", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L6", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "collections_abc", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L7", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "contextlib", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L8", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L9", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L10", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "pip_vendor_cachecontrol_cache", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L12", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "pip_vendor_cachecontrol_caches", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L13", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "pip_vendor_requests_models", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L14", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "pip_internal_utils_filesystem", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L16", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "pip_internal_utils_misc", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L21", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "cache_is_from_cache", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L24", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "cache_suppressed_cache_errors", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L29", "weight": 1.0}, {"source": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "target": "cache_safefilecache", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L39", "weight": 1.0}, {"source": "cache_safefilecache", "target": "separatebodybasecache", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L39", "weight": 1.0}, {"source": "cache_safefilecache", "target": "cache_safefilecache_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L57", "weight": 1.0}, {"source": "cache_safefilecache", "target": "cache_safefilecache_get_cache_path", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L62", "weight": 1.0}, {"source": "cache_safefilecache", "target": "cache_safefilecache_get", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L70", "weight": 1.0}, {"source": "cache_safefilecache", "target": "cache_safefilecache_write_to_file", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L80", "weight": 1.0}, {"source": "cache_safefilecache", "target": "cache_safefilecache_write", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L93", "weight": 1.0}, {"source": "cache_safefilecache", "target": "cache_safefilecache_write_from_io", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L96", "weight": 1.0}, {"source": "cache_safefilecache", "target": "cache_safefilecache_set", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L99", "weight": 1.0}, {"source": "cache_safefilecache", "target": "cache_safefilecache_delete", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L105", "weight": 1.0}, {"source": "cache_safefilecache", "target": "cache_safefilecache_get_body", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L112", "weight": 1.0}, {"source": "cache_safefilecache", "target": "cache_safefilecache_set_body", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L121", "weight": 1.0}, {"source": "cache_safefilecache", "target": "cache_safefilecache_set_body_from_io", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L125", "weight": 1.0}, {"source": "cache_safefilecache_get", "target": "cache_safefilecache_get_cache_path", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L72", "weight": 1.0}, {"source": "cache_safefilecache_get", "target": "cache_suppressed_cache_errors", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L76", "weight": 1.0}, {"source": "cache_safefilecache_write_to_file", "target": "cache_suppressed_cache_errors", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L82", "weight": 1.0}, {"source": "cache_safefilecache_write", "target": "cache_safefilecache_write_to_file", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L94", "weight": 1.0}, {"source": "cache_safefilecache_write_from_io", "target": "cache_safefilecache_write_to_file", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L97", "weight": 1.0}, {"source": "cache_safefilecache_set", "target": "cache_safefilecache_get_cache_path", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L102", "weight": 1.0}, {"source": "cache_safefilecache_set", "target": "cache_safefilecache_write", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L103", "weight": 1.0}, {"source": "cache_safefilecache_delete", "target": "cache_safefilecache_get_cache_path", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L106", "weight": 1.0}, {"source": "cache_safefilecache_delete", "target": "cache_suppressed_cache_errors", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L107", "weight": 1.0}, {"source": "cache_safefilecache_get_body", "target": "cache_safefilecache_get_cache_path", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L114", "weight": 1.0}, {"source": "cache_safefilecache_get_body", "target": "cache_suppressed_cache_errors", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L118", "weight": 1.0}, {"source": "cache_safefilecache_set_body", "target": "cache_safefilecache_get_cache_path", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L122", "weight": 1.0}, {"source": "cache_safefilecache_set_body", "target": "cache_safefilecache_write", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L123", "weight": 1.0}, {"source": "cache_safefilecache_set_body_from_io", "target": "cache_safefilecache_get_cache_path", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L127", "weight": 1.0}, {"source": "cache_safefilecache_set_body_from_io", "target": "cache_safefilecache_write_from_io", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L128", "weight": 1.0}, {"source": "cache_rationale_1", "target": "backend_venv_lib_python3_12_site_packages_pip_internal_network_cache_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L1", "weight": 1.0}, {"source": "cache_rationale_30", "target": "cache_suppressed_cache_errors", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L30", "weight": 1.0}, {"source": "cache_rationale_40", "target": "cache_safefilecache", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L40", "weight": 1.0}, {"source": "cache_rationale_81", "target": "cache_safefilecache_write_to_file", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L81", "weight": 1.0}, {"source": "cache_rationale_126", "target": "cache_safefilecache_set_body_from_io", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L126", "weight": 1.0}], "raw_calls": [{"caller_nid": "cache_is_from_cache", "callee": "getattr", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L25"}, {"caller_nid": "cache_safefilecache_init", "callee": "super", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L59"}, {"caller_nid": "cache_safefilecache_get_cache_path", "callee": "encode", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L66"}, {"caller_nid": "cache_safefilecache_get_cache_path", "callee": "list", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L67"}, {"caller_nid": "cache_safefilecache_get_cache_path", "callee": "join", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L68"}, {"caller_nid": "cache_safefilecache_get", "callee": "exists", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L74"}, {"caller_nid": "cache_safefilecache_get", "callee": "exists", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L74"}, {"caller_nid": "cache_safefilecache_get", "callee": "open", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L77"}, {"caller_nid": "cache_safefilecache_get", "callee": "read", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L78"}, {"caller_nid": "cache_safefilecache_write_to_file", "callee": "ensure_dir", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L83"}, {"caller_nid": "cache_safefilecache_write_to_file", "callee": "dirname", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L83"}, {"caller_nid": "cache_safefilecache_write_to_file", "callee": "adjacent_tmp_file", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L85"}, {"caller_nid": "cache_safefilecache_write_to_file", "callee": "writer_func", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L86"}, {"caller_nid": "cache_safefilecache_write_to_file", "callee": "copy_directory_permissions", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L89"}, {"caller_nid": "cache_safefilecache_write_to_file", "callee": "replace", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L91"}, {"caller_nid": "cache_safefilecache_write", "callee": "write", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L94"}, {"caller_nid": "cache_safefilecache_write_from_io", "callee": "copyfileobj", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L97"}, {"caller_nid": "cache_safefilecache_delete", "callee": "remove", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L108"}, {"caller_nid": "cache_safefilecache_delete", "callee": "remove", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L110"}, {"caller_nid": "cache_safefilecache_get_body", "callee": "exists", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L116"}, {"caller_nid": "cache_safefilecache_get_body", "callee": "exists", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L116"}, {"caller_nid": "cache_safefilecache_get_body", "callee": "open", "source_file": "backend/venv/lib/python3.12/site-packages/pip/_internal/network/cache.py", "source_location": "L119"}]}