def toggles_dict(username=None, domain=None):
    return {t.slug: True for t in all_toggles() if (t.enabled(username) or
                                                    t.enabled(domain))}
Constructor.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/toggles.py/toggles_dict--crossover with--dataset/ETHPy150Open flaviogrossi/sockjs-cyclone/sockjs/cyclone/stats.py/MovingAverage.__init__