<commit_before>from __future__ import absolute_import
from __future__ import unicode_literals
from calendar import monthrange
from datetime import datetime
from corehq.apps.reports.models import ReportNotification
from corehq.util.soft_assert import soft_assert
from six.moves import range


_soft_assert = soft_assert(exponential_backoff=False)


def get_scheduled_report_ids(period, as_of=None):
    as_of = as_of or datetime.utcnow()
    assert period in ('daily', 'weekly', 'monthly'), period

    def _keys(period, as_of):
        minute = guess_reporting_minute(as_of)
        if minute == 0:
            # for legacy purposes, on the hour also include reports that didn't have a minute set
            minutes = (None, minute)
        else:<commit_msg>email to support team<commit_after>from __future__ import absolute_import
from __future__ import unicode_literals
from calendar import monthrange
from datetime import datetime
from corehq.apps.reports.models import ReportNotification
from corehq.util.soft_assert import soft_assert
from six.moves import range


_soft_assert = soft_assert(
    to='{}<EMAIL>('support<EMAIL>', 'dim<EMAIL>'),
    exponential_backoff=False,
)


def get_scheduled_report_ids(period, as_of=None):
    as_of = as_of or datetime.utcnow()
    assert period in ('daily', 'weekly', 'monthly'), period

    def _keys(period, as_of):
        minute = guess_reporting_minute(as_of)
        if minute == 0:
            # for legacy purposes, on the hour also include reports that didn't have a minute set
            minutes = (None, minute)
        else:
{'fraction_non_alphanumeric': 0.0763888888888889, 'fraction_numerical': 0.0012626262626262627, 'mean_word_length': 4.080128205128205, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2468415', 'n_tokens_mistral': 472, 'n_tokens_neox': 454, 'n_words': 147}