<commit_before>from django.conf import settings
from django.utils.translation import ugettext_noop as _

def create_notice_types(sender, **kwargs):
    if "pinax.notifications" in settings.INSTALLED_APPS:
        from pinax.notifications.models import NoticeType
        NoticeType.create("valnet_join_task", _("Join Task"), _("a colleaque wants to help with this task"), default=0)
        NoticeType.create("valnet_help_wanted", _("Help Wanted"), _("a colleague requests help that fits your skills"), default=0)
        NoticeType.create("valnet_new_task", _("New Task"), _("a new task was posted that fits your skills"), default=0)
        NoticeType.create("valnet_new_todo", _("New Todo"), _("a new todo was posted that is assigned to you"), default=0)
        NoticeType.create("valnet_deleted_todo", _("Deleted Todo"), _("a todo that was assigned to you has been deleted"), default=0)
        NoticeType.create("valnet_distribution", _("New Distribution"), _("you have received a new income distribution"), default=0)
        NoticeType.create("valnet_payout_request", _("Payout Request"), _("you have received a new payout request"), default=0)
        NoticeType.create("work_membership_request", _("Freedom Coop Membership Request"), _("we have received a new membership request"), default=0)
        NoticeType.create("work_join_request", _("Project Join Request"), _("we have received a new join request"), default=0)
        NoticeType.create("work_new_account", _("Project New OCP Account"), _("a new OCP account details")) #, default=0)
        NoticeType.create("comment_membership_request", _("Comment in Freedom Coop Membership Request"), _("we have received a new comment in a membership request"), default=0)
        NoticeType.create("comment_join_request", _("Comment in Project Join Request"), _("we have received a new comment in a join request")) #, default=1)
        NoticeType.create("work_skill_suggestion", _("Skill suggestion"), _("we have received a new skill suggestion"), default=0)
        print "created valueaccounting notice types"
    else:
        print "Skipping creation of valueaccounting NoticeTypes as notification app not found"
<commit_msg>improve notifications defaults<commit_after>from django.conf import settings
from django.utils.translation import ugettext_noop as _

def create_notice_types(sender, **kwargs):
    if "pinax.notifications" in settings.INSTALLED_APPS:
        from pinax.notifications.models import NoticeType
        NoticeType.create("valnet_join_task", _("Join Task"), _("a colleaque wants to help with this task"), default=0)
        NoticeType.create("valnet_help_wanted", _("Help Wanted"), _("a colleague requests help that fits your skills"), default=0)
        NoticeType.create("valnet_new_task", _("New Task"), _("a new task was posted that fits your skills"), default=0)
        NoticeType.create("valnet_new_todo", _("New Todo"), _("a new todo was posted that is assigned to you"), default=0)
        NoticeType.create("valnet_deleted_todo", _("Deleted Todo"), _("a todo that was assigned to you has been deleted"), default=0)
        NoticeType.create("valnet_distribution", _("New Distribution"), _("you have received a new income distribution"), default=0)
        NoticeType.create("valnet_payout_request", _("Payout Request"), _("you have received a new payout request"), default=0)
        NoticeType.create("work_membership_request", _("Freedom Coop Membership Request"), _("we have received a new membership request"), default=0)
        NoticeType.create("work_join_request", _("Project Join Request"), _("we have received a new join request"), default=1)
        NoticeType.create("work_new_account", _("Project New OCP Account"), _("a new OCP account details"), default=1)
        NoticeType.create("comment_membership_request", _("Comment in Freedom Coop Membership Request"), _("we have received a new comment in a membership request"), default=0)
        NoticeType.create("comment_join_request", _("Comment in Project Join Request"), _("we have received a new comment in a join request"), default=1)
        NoticeType.create("work_skill_suggestion", _("Skill suggestion"), _("we have received a new skill suggestion"), default=0)
        print("created valueaccounting notice types")
    else:
        print("Skipping creation of valueaccounting NoticeTypes as notification app not found")

{'fraction_non_alphanumeric': 0.11351720993845453, 'fraction_numerical': 0.0059266013220879874, 'mean_word_length': 5.002735978112175, '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': '2125440', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1168, 'n_words': 412}