Profile.with_prof: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/profile.bend as Profile Lines 229-233 of cswap-bend-cli@0.1.0.0/profile.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/profile.bend&start_line=229&end_line=233 import Base import cswap-bend-cli@0.1.0.0/daemon/config.bend as Cfg # The autoswitch settings with the profile's keys laid over them. def with_prof(+c: Cfg.Cfg, +p: Prof) -> Cfg.Cfg: match c p: case Cfg.Cfg{th, iv, cd, hy, st, ia, ut, ms} Prof{n, algo, pth, pms, pcd, piv}: Cfg.Cfg{over_thr(pth, th), over_secs(piv, iv, 15, 3600), over_secs(pcd, cd, 0, 86400), hy, strat_of(algo, st), ia, ut, Cfg.over_models(pms, ms)} Uses (6): https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&name=Cfg https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/config.bend&name=over_models https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/profile.bend&name=Prof https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/profile.bend&name=over_secs https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/profile.bend&name=over_thr https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/profile.bend&name=strat_of