{"nodes": [{"id": "$graphify-root$_led_simulator_stubs_simlink_web_py", "label": "_simlink_web.py", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L1"}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_u8", "label": "_u8()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L40", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_connected", "label": "connected()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L46", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_real_sleep", "label": "real_sleep()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L53", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_recv_nowait", "label": "recv_nowait()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L63", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_recv", "label": "recv()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L73", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_pending", "label": "pending()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L87", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_send_tx", "label": "send_tx()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L91", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_send_pixels", "label": "_send_pixels()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L98", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_push_pixels", "label": "push_pixels()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L105", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_start_new_thread", "label": "start_new_thread()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L124", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_run_jobs", "label": "_run_jobs()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L135", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_check_flash", "label": "_check_flash()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L153", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_on_feed", "label": "on_feed()", "file_type": "code", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L172", "_callable": true}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_rationale_1", "label": "Link between one simulated led-driver (Pyodide, in a web worker) and the page\u2026", "file_type": "rationale", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L1"}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_rationale_54", "label": "Replacement for ``time.sleep``. Skipped inside deferred jobs (see defer).", "file_type": "rationale", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L54"}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_rationale_106", "label": "``buf``: list of (r, g, b). Sent at most ``LED_SIM_FPS`` times a second.", "file_type": "rationale", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L106"}, {"id": "$graphify-root$_led_simulator_stubs_simlink_web_rationale_125", "label": "``_thread.start_new_thread`` stand-in: there are no threads in Pyodide. led-\u2026", "file_type": "rationale", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L125"}], "edges": [{"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "os", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L19", "weight": 1.0, "_python_import_module": "os", "_python_import_bindings": [["os", "os"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "random", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L20", "weight": 1.0, "_python_import_module": "random", "_python_import_bindings": [["random", "random"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "time", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L21", "weight": 1.0, "_python_import_module": "time", "_python_import_bindings": [["time", "time"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "js", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L23", "weight": 1.0, "_python_import_module": "js", "_python_import_bindings": [["js", "js"]], "_python_import_module_binding": true}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_u8", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L40", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_connected", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L46", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_real_sleep", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L53", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_recv_nowait", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L63", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_recv", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L73", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_pending", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L87", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_send_tx", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L91", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_send_pixels", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L98", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_push_pixels", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L105", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_start_new_thread", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L124", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_run_jobs", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L135", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_check_flash", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L153", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_py", "target": "$graphify-root$_led_simulator_stubs_simlink_web_on_feed", "relation": "contains", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L172", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_recv", "target": "$graphify-root$_led_simulator_stubs_simlink_web_recv_nowait", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L74", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_recv", "target": "$graphify-root$_led_simulator_stubs_simlink_web_real_sleep", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L79", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_send_tx", "target": "$graphify-root$_led_simulator_stubs_simlink_web_u8", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L92", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_send_pixels", "target": "$graphify-root$_led_simulator_stubs_simlink_web_u8", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L102", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_push_pixels", "target": "$graphify-root$_led_simulator_stubs_simlink_web_send_pixels", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L118", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_on_feed", "target": "$graphify-root$_led_simulator_stubs_simlink_web_send_pixels", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L175", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_on_feed", "target": "$graphify-root$_led_simulator_stubs_simlink_web_run_jobs", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L176", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_on_feed", "target": "$graphify-root$_led_simulator_stubs_simlink_web_check_flash", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L177", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_rationale_1", "target": "$graphify-root$_led_simulator_stubs_simlink_web_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L1", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_rationale_54", "target": "$graphify-root$_led_simulator_stubs_simlink_web_real_sleep", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L54", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_rationale_106", "target": "$graphify-root$_led_simulator_stubs_simlink_web_push_pixels", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L106", "weight": 1.0}, {"source": "$graphify-root$_led_simulator_stubs_simlink_web_rationale_125", "target": "$graphify-root$_led_simulator_stubs_simlink_web_start_new_thread", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L125", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_u8", "callee": "new", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L41", "receiver": null, "_python_receiver_shadowed": true, "_python_call_site": [1250, 1278]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_u8", "callee": "assign", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L42", "receiver": "arr", "_python_receiver_shadowed": true, "_python_receiver_factory": [1250, 1278], "_python_call_site": [1283, 1299]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_real_sleep", "callee": "simSleep", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L57", "receiver": "js", "_python_receiver_shadowed": true, "_python_call_site": [1591, 1627]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_recv_nowait", "callee": "simRecv", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L64", "receiver": "js", "_python_receiver_shadowed": true, "_python_call_site": [1740, 1752]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_recv_nowait", "callee": "to_bytes", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L67", "receiver": "frame", "_python_receiver_shadowed": true, "_python_receiver_factory": [1740, 1752], "_python_call_site": [1820, 1836]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_recv", "callee": "monotonic", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L77", "receiver": "time", "_python_receiver_shadowed": true, "_python_call_site": [2110, 2126]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_recv", "callee": "monotonic", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L83", "receiver": "time", "_python_receiver_shadowed": true, "_python_call_site": [2319, 2335]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_pending", "callee": "simPending", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L88", "receiver": "js", "_python_receiver_shadowed": true, "_python_call_site": [2413, 2428]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_send_tx", "callee": "simTx", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L92", "receiver": "js", "_python_receiver_shadowed": true, "_python_call_site": [2467, 2513]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_send_pixels", "callee": "monotonic", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L101", "receiver": "time", "_python_receiver_shadowed": true, "_python_call_site": [2691, 2707]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_send_pixels", "callee": "simPixels", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L102", "receiver": "js", "_python_receiver_shadowed": true, "_python_call_site": [2712, 2738]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_send_pixels", "callee": "_pixels", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L102"}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_push_pixels", "callee": "bytearray", "is_member_call": false, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L108", "receiver": null, "_python_call_site": [2891, 2914]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_push_pixels", "callee": "monotonic", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L117", "receiver": "time", "_python_receiver_shadowed": true, "_python_call_site": [3090, 3106]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_start_new_thread", "callee": "append", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L131", "receiver": "_jobs", "_python_receiver_shadowed": true, "_python_call_site": [3593, 3684]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_start_new_thread", "callee": "monotonic", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L131", "receiver": "time", "_python_receiver_shadowed": true, "_python_call_site": [3607, 3623]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_start_new_thread", "callee": "uniform", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L131", "receiver": "random", "_python_receiver_shadowed": true, "_python_call_site": [3626, 3651]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_start_new_thread", "callee": "_jobs", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L132"}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_run_jobs", "callee": "remove", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L143", "receiver": "_jobs", "_python_receiver_shadowed": true, "_python_call_site": [3882, 3897]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_run_jobs", "callee": "j[1]", "is_member_call": false, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L146", "receiver": null, "_python_call_site": [3946, 3965]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_run_jobs", "callee": "e", "is_member_call": false, "indirect": true, "context": "argument", "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L148"}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_check_flash", "callee": "read", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L161", "receiver": "f", "_python_receiver_shadowed": true, "_python_call_site": [4336, 4344]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_check_flash", "callee": "simFlash", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L169", "receiver": "js", "_python_receiver_shadowed": true, "_python_call_site": [4571, 4594]}, {"caller_nid": "$graphify-root$_led_simulator_stubs_simlink_web_on_feed", "callee": "monotonic", "is_member_call": true, "source_file": "led-simulator/stubs/_simlink_web.py", "source_location": "L173", "receiver": "time", "_python_receiver_shadowed": true, "_python_call_site": [4622, 4638]}]}