<commit_before>from django.db.models import signals
from django.utils.translation import ugettext_noop as _
from spiff.notification_loader import notification

def create_notice_types(app, created_models, verbosity, **kwargs):
  notification.NoticeType.create(
    'invoice_ready',
    _('Invoice Ready'),
    _('An invoice has been added to your account')
  )

  notification.NoticeType.create(
    'payment_received',
    _('Payment Received'),
    _('A payment has been received and posted to your account')
  )

signals.post_syncdb.connect(create_notice_types, sender=notification)<commit_msg>Add a card_failed notification<commit_after>from django.db.models import signals
from django.utils.translation import ugettext_noop as _
from spiff.notification_loader import notification

def create_notice_types(app, created_models, verbosity, **kwargs):
  notification.NoticeType.create(
    'invoice_ready',
    _('Invoice Ready'),
    _('An invoice has been posted to your account')
  )

  notification.NoticeType.create(
    'card_failed',
    _('Card Charge Unsuccessful'),
    _('An attempt was made to charge your card, but it failed')
  )

  notification.NoticeType.create(
    'payment_received',
    _('Payment Received'),
    _('A payment has been received and posted to your account')
  )

signals.post_syncdb.connect(create_notice_types, sender=notification)
{'fraction_non_alphanumeric': 0.09130752373995617, 'fraction_numerical': 0.0, 'mean_word_length': 5.008771929824562, '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': '5269480', 'n_tokens_mistral': 402, 'n_tokens_neox': 386, 'n_words': 110}