<commit_before>from django.contrib.auth.models import Group

# Woo yeah named constant!
COORDINATOR_GROUP_NAME = 'Coordinators'

def get_coordinators():
    # Django will try to execute this file before syncdb has been run for the
    # first time, i.e. before the database has been set up. That means this
    # needs to be a function, not merely a statement like
    # coordinators = Group.objects.get(name=COORDINATOR_GROUP_NAME), because
    # that query will fail as Group won't exist yet.
    # The actual Coordinators group is established by a migration, so it is
    # guaranteed to exist at runtime.
    return Group.objects.get_or_create(name=COORDINATOR_GROUP_NAME)<commit_msg>Wrap get_coordinators auth.models Group call in a try block to avoid circular bootstrapping dependency issue that cropped up during Django 1.9 upgrade.<commit_after>from django.contrib.auth.models import Group

# Woo yeah named constant!
COORDINATOR_GROUP_NAME = 'Coordinators'

def get_coordinators():
    # Django will try to execute this file before syncdb has been run for the
    # first time, i.e. before the database has been set up. That means this
    # needs to be a function, not merely a statement like
    # coordinators = Group.objects.get(name=COORDINATOR_GROUP_NAME), because
    # that query will fail as Group won't exist yet.
    # The actual Coordinators group is established by a migration, so it is
    # guaranteed to exist at runtime.
    try:
        return Group.objects.get(name=COORDINATOR_GROUP_NAME)
    except:
        pass
{'fraction_non_alphanumeric': 0.05771725032425422, 'fraction_numerical': 0.0012970168612191958, 'mean_word_length': 3.852201257861635, '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': '1423509', 'n_tokens_mistral': 434, 'n_tokens_neox': 428, 'n_words': 183}