1 line
12 KiB
JSON
1 line
12 KiB
JSON
{"nodes": [{"id": "$graphify-root$_scripts_ai_scheduler", "label": "ai-scheduler", "file_type": "code", "source_file": "scripts/ai-scheduler", "source_location": "L1"}, {"id": "$graphify-root$_scripts_ai_scheduler_read_tsv", "label": "read_tsv()", "file_type": "code", "source_file": "scripts/ai-scheduler", "source_location": "L17", "_callable": true}, {"id": "path", "label": "Path", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/scripts/ai-scheduler"}, {"id": "$graphify-root$_scripts_ai_scheduler_as_bool", "label": "as_bool()", "file_type": "code", "source_file": "scripts/ai-scheduler", "source_location": "L22", "_callable": true}, {"id": "$graphify-root$_scripts_ai_scheduler_score_node", "label": "score_node()", "file_type": "code", "source_file": "scripts/ai-scheduler", "source_location": "L26", "_callable": true}, {"id": "$graphify-root$_scripts_ai_scheduler_recommend", "label": "recommend()", "file_type": "code", "source_file": "scripts/ai-scheduler", "source_location": "L64", "_callable": true}, {"id": "$graphify-root$_scripts_ai_scheduler_simulate", "label": "simulate()", "file_type": "code", "source_file": "scripts/ai-scheduler", "source_location": "L100", "_callable": true}, {"id": "$graphify-root$_scripts_ai_scheduler_main", "label": "main()", "file_type": "code", "source_file": "scripts/ai-scheduler", "source_location": "L109", "_callable": true}, {"id": "$graphify-root$_scripts_ai_scheduler_rationale_2", "label": "Simulate placement for AI-ish homelab workloads.", "file_type": "rationale", "source_file": "scripts/ai-scheduler", "source_location": "L2"}], "edges": [{"source": "$graphify-root$_scripts_ai_scheduler", "target": "argparse", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L6", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler", "target": "csv", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L7", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler", "target": "pathlib", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L8", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler", "target": "$graphify-root$_scripts_ai_scheduler_read_tsv", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L17", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler_read_tsv", "target": "path", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L17", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler", "target": "$graphify-root$_scripts_ai_scheduler_as_bool", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L22", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler", "target": "$graphify-root$_scripts_ai_scheduler_score_node", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L26", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler", "target": "$graphify-root$_scripts_ai_scheduler_recommend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L64", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler", "target": "$graphify-root$_scripts_ai_scheduler_simulate", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L100", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler", "target": "$graphify-root$_scripts_ai_scheduler_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L109", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler_score_node", "target": "$graphify-root$_scripts_ai_scheduler_as_bool", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L45", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler_recommend", "target": "$graphify-root$_scripts_ai_scheduler_read_tsv", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L65", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler_recommend", "target": "$graphify-root$_scripts_ai_scheduler_score_node", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L76", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler_simulate", "target": "$graphify-root$_scripts_ai_scheduler_read_tsv", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L102", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler_simulate", "target": "$graphify-root$_scripts_ai_scheduler_recommend", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L104", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler_main", "target": "$graphify-root$_scripts_ai_scheduler_simulate", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L117", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler_main", "target": "$graphify-root$_scripts_ai_scheduler_recommend", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L119", "weight": 1.0}, {"source": "$graphify-root$_scripts_ai_scheduler_rationale_2", "target": "$graphify-root$_scripts_ai_scheduler", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "scripts/ai-scheduler", "source_location": "L2", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_scripts_ai_scheduler_read_tsv", "callee": "open", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L18", "receiver": "path"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_read_tsv", "callee": "DictReader", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L19", "receiver": "csv"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_read_tsv", "callee": "handle", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "scripts/ai-scheduler", "source_location": "L19"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_as_bool", "callee": "lower", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L23", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_as_bool", "callee": "strip", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L23", "receiver": "value"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_score_node", "callee": "append", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L36", "receiver": "blockers"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_score_node", "callee": "append", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L38", "receiver": "reasons"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_score_node", "callee": "append", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L41", "receiver": "blockers"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_score_node", "callee": "append", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L43", "receiver": "reasons"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_score_node", "callee": "append", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L46", "receiver": "blockers"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_score_node", "callee": "append", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L48", "receiver": "reasons"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_score_node", "callee": "append", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L52", "receiver": "reasons"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_score_node", "callee": "append", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L54", "receiver": "reasons"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_score_node", "callee": "append", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L57", "receiver": "reasons"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_score_node", "callee": "append", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L60", "receiver": "reasons"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_recommend", "callee": "WORKLOADS_FILE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "scripts/ai-scheduler", "source_location": "L65"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_recommend", "callee": "NODES_FILE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "scripts/ai-scheduler", "source_location": "L66"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_recommend", "callee": "append", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L77", "receiver": "rows"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_recommend", "callee": "sort", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L78", "receiver": "rows"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_recommend", "callee": "join", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L88", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_recommend", "callee": "join", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L89", "receiver": null}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_simulate", "callee": "WORKLOADS_FILE", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "scripts/ai-scheduler", "source_location": "L102"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_main", "callee": "ArgumentParser", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L110", "receiver": "argparse"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_main", "callee": "__doc__", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "scripts/ai-scheduler", "source_location": "L110"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_main", "callee": "add_subparsers", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L111", "receiver": "parser"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_main", "callee": "add_parser", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L112", "receiver": "subparsers"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_main", "callee": "add_parser", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L113", "receiver": "subparsers"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_main", "callee": "add_argument", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L114", "receiver": "rec"}, {"caller_nid": "$graphify-root$_scripts_ai_scheduler_main", "callee": "parse_args", "is_member_call": true, "source_file": "scripts/ai-scheduler", "source_location": "L115", "receiver": "parser"}]} |