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

from django.db import models
from django.contrib import admin
from django.contrib.auth.models import User
from imagekit.models import ImageSpec
from imagekit.processors import resize

class CalendarEvent(models.Model):
    user = models.ForeignKey(User, verbose_name=u'Käyttäjä')
    start = models.DateTimeField(u'Alku', help_text=u'Tapahtuman alkamisaika.')
    end = models.DateTimeField(u'Loppe', help_text=u'Tapahtuman loppumisaika.', blank=True)
    description = models.TextField(u'Kuvaus', help_text=u'Tapahtuman kuvaus.', blank=True)
    title = models.CharField(u'Otsikko', help_text=u'Lyhyt otsikko.', max_length=32)
    image_original = models.ImageField(u'Kuva', upload_to='calendar/images/', help_text=u"Kuva tapahtumalle.", blank=True)
    image_small = ImageSpec([resize.Fit(48, 48)], image_field='imagefile_original', format='PNG')
    EVENT_TYPES = (
        (0, u'Aikaraja'),<commit_msg>admin_calendar: Fix to work on the latest django-imagekit<commit_after># -*- coding: utf-8 -*-

from django.db import models
from django.contrib import admin
from django.contrib.auth.models import User
from imagekit.models import ImageSpecField
from imagekit.processors import ResizeToFill

class CalendarEvent(models.Model):
    user = models.ForeignKey(User, verbose_name=u'Käyttäjä')
    start = models.DateTimeField(u'Alku', help_text=u'Tapahtuman alkamisaika.')
    end = models.DateTimeField(u'Loppe', help_text=u'Tapahtuman loppumisaika.', blank=True)
    description = models.TextField(u'Kuvaus', help_text=u'Tapahtuman kuvaus.', blank=True)
    title = models.CharField(u'Otsikko', help_text=u'Lyhyt otsikko.', max_length=32)
    image_original = models.ImageField(u'Kuva', upload_to='calendar/images/', help_text=u"Kuva tapahtumalle.", blank=True)
    image_small = ImageSpecField([ResizeToFill(48, 48)], image_field='imagefile_original', format='PNG')
    EVENT_TYPES = (
        (0, u'Aikaraja'),
{'fraction_non_alphanumeric': 0.1284544524053224, 'fraction_numerical': 0.008188331627430911, 'mean_word_length': 5.788194444444445, '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': '6181464', 'n_tokens_mistral': 687, 'n_tokens_neox': 665, 'n_words': 128}