<commit_before># -*- coding: utf-8 -*-

from django.db import models
from django.utils.translation import ugettext_lazy as _

from webtopay.signals import payment_was_successful, payment_was_flagged

class WebToPayResponse(models.Model):
    # Non-webtopay params

    def __unicode__(self):
        return "%s %.2f" % (self.currency, self.amount / 100)

    query = models.TextField(blank=True)
    ipaddress = models.IPAddressField(blank=True)
    flag = models.BooleanField(blank=True, default=False)<commit_msg>__unicode__ should work with sloppy DB as well<commit_after># -*- coding: utf-8 -*-

from django.db import models
from django.utils.translation import ugettext_lazy as _

from webtopay.signals import payment_was_successful, payment_was_flagged

class WebToPayResponse(models.Model):
    # Non-webtopay params

    def __unicode__(self):
        amount = self.amount / 100 if self.amount else 0
        return "%s %.2f" % (self.currency, amount)

    query = models.TextField(blank=True)
    ipaddress = models.IPAddressField(blank=True)
    flag = models.BooleanField(blank=True, default=False)
{'fraction_non_alphanumeric': 0.10099188458070334, 'fraction_numerical': 0.009918845807033363, 'mean_word_length': 4.186915887850467, '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': '7347856', 'n_tokens_mistral': 353, 'n_tokens_neox': 338, 'n_words': 84}