<commit_before>from django.db import models
from versatileimagefield.fields import VersatileImageField, PPOIField


class VersatileImageTestModel(models.Model):
    """A model for testing VersatileImageFields"""
    img_type = models.CharField(
        max_length=5,
        unique=True
    )
    image = VersatileImageField(
        upload_to='',
        ppoi_field='ppoi'
    )
    ppoi = PPOIField()<commit_msg>Setting 'upload_to' properly for django < 1.7<commit_after>from django.db import models
from versatileimagefield.fields import VersatileImageField, PPOIField


class VersatileImageTestModel(models.Model):
    """A model for testing VersatileImageFields"""
    img_type = models.CharField(
        max_length=5,
        unique=True
    )
    image = VersatileImageField(
        upload_to='/',
        ppoi_field='ppoi'
    )
    ppoi = PPOIField()
{'fraction_non_alphanumeric': 0.08943089430894309, 'fraction_numerical': 0.004645760743321719, 'mean_word_length': 3.466321243523316, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6091325', 'n_tokens_mistral': 267, 'n_tokens_neox': 257, 'n_words': 56}