<commit_before>from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.conf import settings
from django.utils.encoding import python_2_unicode_compatible

import datetime


@python_2_unicode_compatible
class Album(models.Model):
    '''Represent an individual album of photos'''

    def __str__(self):
        return self.pk


@python_2_unicode_compatible
class Photo(models.Model):
    '''Represent an individual photo'''

    PUBLIC = 'pb'
    PRIVATE = 'pv'
    SHARED = 'sh'

    PUBLISHED_CHOICES = (
        (PUBLIC, 'public'),
        (PRIVATE, 'private'),
        (SHARED, 'shared')
        )

    profile = models.ForeignKey('profiles.ImagerProfile', related_name='photo')

    album = models.ManyToManyField(Album, related_name='photo', null=True, blank=True)

    photo = models.ImageField(blank=True, null=True)

    title = models.CharField(max_length=200, default='No Title')
    description = models.TextField(default='No Description')

    date_uploaded = models.DateField(auto_now_add=True)
    date_modified = models.DateField(auto_now=True)
    date_published = models.DateField(null=True)

    published = models.CharField(max_length=2, choices=PUBLISHED_CHOICES, default='pv')

    def __str__(self):
        return self.title<commit_msg>linting<commit_after>from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.conf import settings
from django.utils.encoding import python_2_unicode_compatible

import datetime


@python_2_unicode_compatible
class Album(models.Model):
    '''Represent an individual album of photos'''

    def __str__(self):
        return self.pk


@python_2_unicode_compatible
class Photo(models.Model):
    '''Represent an individual photo'''

    PUBLIC = 'pb'
    PRIVATE = 'pv'
    SHARED = 'sh'

    PUBLISHED_CHOICES = (
        (PUBLIC, 'public'),
        (PRIVATE, 'private'),
        (SHARED, 'shared')
    )

    profile = models.ForeignKey('profiles.ImagerProfile', related_name='photo')

    album = models.ManyToManyField(Album, related_name='photo',
                                   null=True, blank=True)

    photo = models.ImageField(blank=True, null=True)

    title = models.CharField(max_length=200, default='No Title')
    description = models.TextField(default='No Description')

    date_uploaded = models.DateField(auto_now_add=True)
    date_modified = models.DateField(auto_now=True)
    date_published = models.DateField(null=True)

    published = models.CharField(max_length=2,
                                 choices=PUBLISHED_CHOICES, default='pv')

    def __str__(self):
        return self.title
{'fraction_non_alphanumeric': 0.1054945054945055, 'fraction_numerical': 0.005128205128205128, 'mean_word_length': 3.733102253032929, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3688223', 'n_tokens_mistral': 851, 'n_tokens_neox': 788, 'n_words': 173}