<commit_before>import ast
from alert import settings
from alert.stats import tally_stat
from alert.userHandling.models import UserProfile

from django.core.mail import send_mass_mail
from django.core.management.base import BaseCommand
from django.template import Context, loader
from optparse import make_option

import datetime
import logging
import sys


logger = logging.getLogger(__name__)


def list_option_callback(option, opt, value, parser):
    setattr(parser.values, option.dest, value.split(','))


class Command(BaseCommand):


    option_list = BaseCommand.option_list + (
        make_option(
            '--subscribers',
            help='Lookup the subscribers in the database and send the email to them.'
        ),
        make_option(<commit_msg>Now the simulate mode will work even if it's after the subscribers flag, sigh.<commit_after>import ast
from alert import settings
from alert.stats import tally_stat
from alert.userHandling.models import UserProfile

from django.core.mail import send_mass_mail
from django.core.management.base import BaseCommand
from django.template import Context, loader
from optparse import make_option

import datetime
import logging
import sys


logger = logging.getLogger(__name__)


def list_option_callback(option, opt, value, parser):
    setattr(parser.values, option.dest, value.split(','))


class Command(BaseCommand):


    option_list = BaseCommand.option_list + (
        make_option(
            '--subscribers',
            default=False,
            action='store_true',
            help='Lookup the subscribers in the database and send the email to them.'
        ),
        make_option(
{'fraction_non_alphanumeric': 0.07190332326283988, 'fraction_numerical': 0.0, 'mean_word_length': 3.7723342939481266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2494033', 'n_tokens_mistral': 446, 'n_tokens_neox': 424, 'n_words': 146}