<commit_before># MIT License
# Copyright (c) 2017 MassChallenge, Inc.
import swapper
from django.apps import AppConfig
from django.contrib.auth import get_user_model

from accelerator.apps import AcceleratorConfig


def add_get_profile_to_user_class():
    User = get_user_model()
    BaseProfile = swapper.load_model(AcceleratorConfig.name, 'BaseProfile')
    User.add_to_class('get_profile',
                      lambda user: BaseProfile.objects.get(
                          email=user.email))


class AcceleratorAbstractConfig(AppConfig):
    name = 'accelerator_abstract'

    def ready(self):
        add_get_profile_to_user_class()<commit_msg>remove call to `add_get_profile_to_user_class` from abstract app.<commit_after># MIT License
# Copyright (c) 2017 MassChallenge, Inc.
import swapper
from django.apps import AppConfig
from django.contrib.auth import get_user_model

from accelerator.apps import AcceleratorConfig


def add_get_profile_to_user_class():
    User = get_user_model()
    BaseProfile = swapper.load_model(AcceleratorConfig.name, 'BaseProfile')
    User.add_to_class('get_profile',
                      lambda user: BaseProfile.objects.get(
                          email=user.email))


class AcceleratorAbstractConfig(AppConfig):
    name = 'accelerator_abstract'
{'fraction_non_alphanumeric': 0.07727975270479134, 'fraction_numerical': 0.0061823802163833074, 'mean_word_length': 3.8684210526315788, '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': '4011314', 'n_tokens_mistral': 393, 'n_tokens_neox': 371, 'n_words': 84}