{"nodes": [{"id": "home_kubuntu_documents_naaudios_rename_by_date_py", "label": "rename_by_date.py", "file_type": "code", "source_file": "rename_by_date.py", "source_location": "L1"}, {"id": "naaudios_rename_by_date_normalize", "label": "_normalize()", "file_type": "code", "source_file": "rename_by_date.py", "source_location": "L103"}, {"id": "naaudios_rename_by_date_parse_day", "label": "_parse_day()", "file_type": "code", "source_file": "rename_by_date.py", "source_location": "L109"}, {"id": "naaudios_rename_by_date_extract_date_from_text", "label": "extract_date_from_text()", "file_type": "code", "source_file": "rename_by_date.py", "source_location": "L128"}, {"id": "naaudios_rename_by_date_load_whisper_model", "label": "load_whisper_model()", "file_type": "code", "source_file": "rename_by_date.py", "source_location": "L154"}, {"id": "naaudios_rename_by_date_transcribe_audio", "label": "transcribe_audio()", "file_type": "code", "source_file": "rename_by_date.py", "source_location": "L176"}, {"id": "path", "label": "Path", "file_type": "code", "source_file": "rename_by_date.py", "source_location": "L176"}, {"id": "naaudios_rename_by_date_trim_with_ffmpeg", "label": "_trim_with_ffmpeg()", "file_type": "code", "source_file": "rename_by_date.py", "source_location": "L188"}, {"id": "naaudios_rename_by_date_trim_audio", "label": "trim_audio()", "file_type": "code", "source_file": "rename_by_date.py", "source_location": "L205"}, {"id": "naaudios_rename_by_date_unique_target_path", "label": "unique_target_path()", "file_type": "code", "source_file": "rename_by_date.py", "source_location": "L219"}, {"id": "naaudios_rename_by_date_process_file", "label": "process_file()", "file_type": "code", "source_file": "rename_by_date.py", "source_location": "L239"}, {"id": "naaudios_rename_by_date_main", "label": "main()", "file_type": "code", "source_file": "rename_by_date.py", "source_location": "L285"}, {"id": "naaudios_rename_by_date_rationale_104", "label": "Lowercase and strip accents for fuzzy matching.", "file_type": "rationale", "source_file": "rename_by_date.py", "source_location": "L104"}, {"id": "naaudios_rename_by_date_rationale_110", "label": "Convert a day token (digit or Spanish word) to an integer 1-31.", "file_type": "rationale", "source_file": "rename_by_date.py", "source_location": "L110"}, {"id": "naaudios_rename_by_date_rationale_129", "label": "Find a spoken Spanish date like \"doce de febrero\" or \"12 de febrero de 2024\".", "file_type": "rationale", "source_file": "rename_by_date.py", "source_location": "L129"}, {"id": "naaudios_rename_by_date_rationale_155", "label": "Load faster-whisper if available, otherwise fall back to openai-whisper.", "file_type": "rationale", "source_file": "rename_by_date.py", "source_location": "L155"}, {"id": "naaudios_rename_by_date_rationale_177", "label": "Transcribe *audio_path* in Spanish and return the full text.", "file_type": "rationale", "source_file": "rename_by_date.py", "source_location": "L177"}, {"id": "naaudios_rename_by_date_rationale_189", "label": "Trim via ffmpeg CLI (no pydub/audioop needed).", "file_type": "rationale", "source_file": "rename_by_date.py", "source_location": "L189"}, {"id": "naaudios_rename_by_date_rationale_206", "label": "Extract the first *seconds* of *src* into *dst* using pydub or ffmpeg.", "file_type": "rationale", "source_file": "rename_by_date.py", "source_location": "L206"}, {"id": "naaudios_rename_by_date_rationale_220", "label": "Return a non-colliding path for *base_name* in *directory*.      Appends _2, _3,", "file_type": "rationale", "source_file": "rename_by_date.py", "source_location": "L220"}, {"id": "naaudios_rename_by_date_rationale_244", "label": "Trim, transcribe, extract date, and rename a single MP3.", "file_type": "rationale", "source_file": "rename_by_date.py", "source_location": "L244"}], "edges": [{"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "argparse", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L20", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "re", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L21", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "subprocess", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L22", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "sys", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L23", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "tempfile", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L24", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "unicodedata", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L25", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L26", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "naaudios_rename_by_date_normalize", "relation": "contains", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L103", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "naaudios_rename_by_date_parse_day", "relation": "contains", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L109", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "naaudios_rename_by_date_extract_date_from_text", "relation": "contains", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L128", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "naaudios_rename_by_date_load_whisper_model", "relation": "contains", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L154", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "naaudios_rename_by_date_transcribe_audio", "relation": "contains", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L176", "weight": 1.0}, {"source": "naaudios_rename_by_date_transcribe_audio", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L176", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "naaudios_rename_by_date_trim_with_ffmpeg", "relation": "contains", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L188", "weight": 1.0}, {"source": "naaudios_rename_by_date_trim_with_ffmpeg", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L188", "weight": 1.0}, {"source": "naaudios_rename_by_date_trim_with_ffmpeg", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L188", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "naaudios_rename_by_date_trim_audio", "relation": "contains", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L205", "weight": 1.0}, {"source": "naaudios_rename_by_date_trim_audio", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L205", "weight": 1.0}, {"source": "naaudios_rename_by_date_trim_audio", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L205", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "naaudios_rename_by_date_unique_target_path", "relation": "contains", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L219", "weight": 1.0}, {"source": "naaudios_rename_by_date_unique_target_path", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L219", "weight": 1.0}, {"source": "naaudios_rename_by_date_unique_target_path", "target": "path", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L219", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "naaudios_rename_by_date_process_file", "relation": "contains", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L239", "weight": 1.0}, {"source": "naaudios_rename_by_date_process_file", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L239", "weight": 1.0}, {"source": "home_kubuntu_documents_naaudios_rename_by_date_py", "target": "naaudios_rename_by_date_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L285", "weight": 1.0}, {"source": "naaudios_rename_by_date_parse_day", "target": "naaudios_rename_by_date_normalize", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L116", "weight": 1.0}, {"source": "naaudios_rename_by_date_extract_date_from_text", "target": "naaudios_rename_by_date_normalize", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L137", "weight": 1.0}, {"source": "naaudios_rename_by_date_extract_date_from_text", "target": "naaudios_rename_by_date_parse_day", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L145", "weight": 1.0}, {"source": "naaudios_rename_by_date_trim_audio", "target": "naaudios_rename_by_date_trim_with_ffmpeg", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L216", "weight": 1.0}, {"source": "naaudios_rename_by_date_unique_target_path", "target": "path", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L229", "weight": 1.0}, {"source": "naaudios_rename_by_date_process_file", "target": "path", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L251", "weight": 1.0}, {"source": "naaudios_rename_by_date_process_file", "target": "naaudios_rename_by_date_trim_audio", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L253", "weight": 1.0}, {"source": "naaudios_rename_by_date_process_file", "target": "naaudios_rename_by_date_transcribe_audio", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L256", "weight": 1.0}, {"source": "naaudios_rename_by_date_process_file", "target": "naaudios_rename_by_date_extract_date_from_text", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L260", "weight": 1.0}, {"source": "naaudios_rename_by_date_process_file", "target": "naaudios_rename_by_date_unique_target_path", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L271", "weight": 1.0}, {"source": "naaudios_rename_by_date_main", "target": "naaudios_rename_by_date_load_whisper_model", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L321", "weight": 1.0}, {"source": "naaudios_rename_by_date_main", "target": "naaudios_rename_by_date_process_file", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L325", "weight": 1.0}, {"source": "naaudios_rename_by_date_rationale_104", "target": "naaudios_rename_by_date_normalize", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L104", "weight": 1.0}, {"source": "naaudios_rename_by_date_rationale_110", "target": "naaudios_rename_by_date_parse_day", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L110", "weight": 1.0}, {"source": "naaudios_rename_by_date_rationale_129", "target": "naaudios_rename_by_date_extract_date_from_text", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L129", "weight": 1.0}, {"source": "naaudios_rename_by_date_rationale_155", "target": "naaudios_rename_by_date_load_whisper_model", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L155", "weight": 1.0}, {"source": "naaudios_rename_by_date_rationale_177", "target": "naaudios_rename_by_date_transcribe_audio", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L177", "weight": 1.0}, {"source": "naaudios_rename_by_date_rationale_189", "target": "naaudios_rename_by_date_trim_with_ffmpeg", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L189", "weight": 1.0}, {"source": "naaudios_rename_by_date_rationale_206", "target": "naaudios_rename_by_date_trim_audio", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L206", "weight": 1.0}, {"source": "naaudios_rename_by_date_rationale_220", "target": "naaudios_rename_by_date_unique_target_path", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L220", "weight": 1.0}, {"source": "naaudios_rename_by_date_rationale_244", "target": "naaudios_rename_by_date_process_file", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "rename_by_date.py", "source_location": "L244", "weight": 1.0}], "raw_calls": [{"caller_nid": "naaudios_rename_by_date_normalize", "callee": "normalize", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L105"}, {"caller_nid": "naaudios_rename_by_date_normalize", "callee": "lower", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L105"}, {"caller_nid": "naaudios_rename_by_date_normalize", "callee": "join", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L106"}, {"caller_nid": "naaudios_rename_by_date_normalize", "callee": "category", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L106"}, {"caller_nid": "naaudios_rename_by_date_parse_day", "callee": "strip", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L111"}, {"caller_nid": "naaudios_rename_by_date_parse_day", "callee": "isdigit", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L112"}, {"caller_nid": "naaudios_rename_by_date_parse_day", "callee": "items", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L121"}, {"caller_nid": "naaudios_rename_by_date_extract_date_from_text", "callee": "finditer", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L139"}, {"caller_nid": "naaudios_rename_by_date_extract_date_from_text", "callee": "group", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L140"}, {"caller_nid": "naaudios_rename_by_date_extract_date_from_text", "callee": "get", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L141"}, {"caller_nid": "naaudios_rename_by_date_extract_date_from_text", "callee": "group", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L145"}, {"caller_nid": "naaudios_rename_by_date_load_whisper_model", "callee": "WhisperModel", "is_member_call": false, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L160"}, {"caller_nid": "naaudios_rename_by_date_load_whisper_model", "callee": "load_model", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L168"}, {"caller_nid": "naaudios_rename_by_date_load_whisper_model", "callee": "SystemExit", "is_member_call": false, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L170"}, {"caller_nid": "naaudios_rename_by_date_transcribe_audio", "callee": "transcribe", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L181"}, {"caller_nid": "naaudios_rename_by_date_transcribe_audio", "callee": "strip", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L182"}, {"caller_nid": "naaudios_rename_by_date_transcribe_audio", "callee": "join", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L182"}, {"caller_nid": "naaudios_rename_by_date_transcribe_audio", "callee": "strip", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L182"}, {"caller_nid": "naaudios_rename_by_date_transcribe_audio", "callee": "transcribe", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L184"}, {"caller_nid": "naaudios_rename_by_date_transcribe_audio", "callee": "strip", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L185"}, {"caller_nid": "naaudios_rename_by_date_transcribe_audio", "callee": "get", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L185"}, {"caller_nid": "naaudios_rename_by_date_trim_with_ffmpeg", "callee": "run", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L190"}, {"caller_nid": "naaudios_rename_by_date_trim_with_ffmpeg", "callee": "RuntimeError", "is_member_call": false, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L202"}, {"caller_nid": "naaudios_rename_by_date_trim_with_ffmpeg", "callee": "strip", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L202"}, {"caller_nid": "naaudios_rename_by_date_trim_audio", "callee": "from_mp3", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L210"}, {"caller_nid": "naaudios_rename_by_date_trim_audio", "callee": "export", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L212"}, {"caller_nid": "naaudios_rename_by_date_unique_target_path", "callee": "exists", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L226"}, {"caller_nid": "naaudios_rename_by_date_unique_target_path", "callee": "exists", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L234"}, {"caller_nid": "naaudios_rename_by_date_process_file", "callee": "NamedTemporaryFile", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L250"}, {"caller_nid": "naaudios_rename_by_date_process_file", "callee": "rename", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L278"}, {"caller_nid": "naaudios_rename_by_date_process_file", "callee": "exists", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L281"}, {"caller_nid": "naaudios_rename_by_date_process_file", "callee": "unlink", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L282"}, {"caller_nid": "naaudios_rename_by_date_main", "callee": "ArgumentParser", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L286"}, {"caller_nid": "naaudios_rename_by_date_main", "callee": "add_argument", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L289"}, {"caller_nid": "naaudios_rename_by_date_main", "callee": "add_argument", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L294"}, {"caller_nid": "naaudios_rename_by_date_main", "callee": "parse_args", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L299"}, {"caller_nid": "naaudios_rename_by_date_main", "callee": "cwd", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L301"}, {"caller_nid": "naaudios_rename_by_date_main", "callee": "glob", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L302"}, {"caller_nid": "naaudios_rename_by_date_main", "callee": "match", "is_member_call": true, "source_file": "/home/kubuntu/Documents/NAaudios/rename_by_date.py", "source_location": "L308"}]}