1 line
6.2 KiB
JSON
1 line
6.2 KiB
JSON
{"nodes": [{"id": "backend_image_processing_py", "label": "image_processing.py", "file_type": "code", "source_file": "backend/image_processing.py", "source_location": "L1"}, {"id": "image_processing_get_unique_filename", "label": "get_unique_filename()", "file_type": "code", "source_file": "backend/image_processing.py", "source_location": "L19"}, {"id": "image_processing_save_image", "label": "save_image()", "file_type": "code", "source_file": "backend/image_processing.py", "source_location": "L70"}, {"id": "image_processing_rationale_1", "label": "Image processing utilities for photo uploads, cropping, and storage. Implements", "file_type": "rationale", "source_file": "backend/image_processing.py", "source_location": "L1"}, {"id": "image_processing_rationale_24", "label": "Generate a unique filename for an image. Args: filename: Base filen", "file_type": "rationale", "source_file": "backend/image_processing.py", "source_location": "L24"}, {"id": "image_processing_rationale_77", "label": "Save image to disk with optional cropping. This function: - Calls get_u", "file_type": "rationale", "source_file": "backend/image_processing.py", "source_location": "L77"}, {"id": "image_processing_rationale_102", "label": "# TODO: Implement actual image processing with PIL/OpenCV", "file_type": "rationale", "source_file": "backend/image_processing.py", "source_location": "L102"}], "edges": [{"source": "backend_image_processing_py", "target": "pathlib", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/image_processing.py", "source_location": "L8", "weight": 1.0}, {"source": "backend_image_processing_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/image_processing.py", "source_location": "L9", "weight": 1.0}, {"source": "backend_image_processing_py", "target": "hashlib", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/image_processing.py", "source_location": "L10", "weight": 1.0}, {"source": "backend_image_processing_py", "target": "os", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/image_processing.py", "source_location": "L11", "weight": 1.0}, {"source": "backend_image_processing_py", "target": "image_processing_get_unique_filename", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/image_processing.py", "source_location": "L19", "weight": 1.0}, {"source": "backend_image_processing_py", "target": "image_processing_save_image", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/image_processing.py", "source_location": "L70", "weight": 1.0}, {"source": "image_processing_save_image", "target": "image_processing_get_unique_filename", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/image_processing.py", "source_location": "L96", "weight": 1.0}, {"source": "image_processing_rationale_1", "target": "backend_image_processing_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/image_processing.py", "source_location": "L1", "weight": 1.0}, {"source": "image_processing_rationale_24", "target": "image_processing_get_unique_filename", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/image_processing.py", "source_location": "L24", "weight": 1.0}, {"source": "image_processing_rationale_77", "target": "image_processing_save_image", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/image_processing.py", "source_location": "L77", "weight": 1.0}, {"source": "image_processing_rationale_102", "target": "backend_image_processing_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/image_processing.py", "source_location": "L102", "weight": 1.0}], "raw_calls": [{"caller_nid": "image_processing_get_unique_filename", "callee": "mkdir", "source_file": "backend/image_processing.py", "source_location": "L37"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "strip", "source_file": "backend/image_processing.py", "source_location": "L40"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "join", "source_file": "backend/image_processing.py", "source_location": "L40"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "isalnum", "source_file": "backend/image_processing.py", "source_location": "L40"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "exists", "source_file": "backend/image_processing.py", "source_location": "L54"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "str", "source_file": "backend/image_processing.py", "source_location": "L55"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "relative_to", "source_file": "backend/image_processing.py", "source_location": "L55"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "hexdigest", "source_file": "backend/image_processing.py", "source_location": "L58"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "md5", "source_file": "backend/image_processing.py", "source_location": "L58"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "encode", "source_file": "backend/image_processing.py", "source_location": "L58"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "str", "source_file": "backend/image_processing.py", "source_location": "L58"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "urandom", "source_file": "backend/image_processing.py", "source_location": "L58"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "str", "source_file": "backend/image_processing.py", "source_location": "L67"}, {"caller_nid": "image_processing_get_unique_filename", "callee": "relative_to", "source_file": "backend/image_processing.py", "source_location": "L67"}, {"caller_nid": "image_processing_save_image", "callee": "mkdir", "source_file": "backend/image_processing.py", "source_location": "L100"}, {"caller_nid": "image_processing_save_image", "callee": "open", "source_file": "backend/image_processing.py", "source_location": "L110"}, {"caller_nid": "image_processing_save_image", "callee": "write", "source_file": "backend/image_processing.py", "source_location": "L111"}]} |