<commit_before>from __future__ import division
import os
import tempfile
import Image
from django.core.files import File
from django.db import models
from gallery.managers import GalleryManager

class Gallery(models.Model):    
    name = models.CharField(max_length=100)
    slug = models.SlugField(unique=True)
    description = models.TextField(null=True, blank=True)
    parentGallery = models.ForeignKey('self', null=True, blank=True)
    published = models.BooleanField(default=False)
    date_created = models.DateTimeField(auto_now_add=True)
    date_modified = models.DateTimeField(auto_now=True)
    
    objects = GalleryManager()
    verbose_name_plural = "galleries"
    ordering = ('date_created',)
    def __unicode__(self):
        return self.name
    
    @models.permalink
    def get_absolute_url(self):
        return ("gallery_detail", (), {"gallery": self.slug})
    
    def picture_count(self):
        """Returns the number of pictures in the gallery."""
        return Picture.objects.filter(gallery=self).count()
    picture_count.short_description = 'Number of Pictures'
        

class Picture(models.Model):
    THUMBNAIL_SIZE = 75
    VIEWABLE_SIZE = 400
    IMAGE_TYPE = 'JPEG'

    name = models.CharField(max_length=100)<commit_msg>Fixed verbose name of Gallery.<commit_after>from __future__ import division
import os
import tempfile
import Image
from django.core.files import File
from django.db import models
from gallery.managers import GalleryManager

class Gallery(models.Model):    
    name = models.CharField(max_length=100)
    slug = models.SlugField(unique=True)
    description = models.TextField(null=True, blank=True)
    parentGallery = models.ForeignKey('self', null=True, blank=True)
    published = models.BooleanField(default=False)
    date_created = models.DateTimeField(auto_now_add=True)
    date_modified = models.DateTimeField(auto_now=True)
    
    objects = GalleryManager()
    
    class Meta:
        verbose_name_plural = "galleries"
        ordering = ('date_created',)
    
    def __unicode__(self):
        return self.name
    
    @models.permalink
    def get_absolute_url(self):
        return ("gallery_detail", (), {"gallery": self.slug})
    
    def picture_count(self):
        """Returns the number of pictures in the gallery."""
        return Picture.objects.filter(gallery=self).count()
    picture_count.short_description = 'Number of Pictures'
        

class Picture(models.Model):
    THUMBNAIL_SIZE = 75
    VIEWABLE_SIZE = 400
    IMAGE_TYPE = 'JPEG'

    name = models.CharField(max_length=100)
{'fraction_non_alphanumeric': 0.09671179883945841, 'fraction_numerical': 0.00851063829787234, 'mean_word_length': 3.7018181818181817, 'pattern_counts': {'":': 2, '<': 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': '1952857', 'n_tokens_mistral': 785, 'n_tokens_neox': 746, 'n_words': 173}