<commit_before>from django.db import models
from classes.models import Bio
import datetime



class Post(models.Model):

	title = models.CharField(max_length=200)
	slug = models.SlugField(unique=True)
	STATUS_CHOICES = (
		('PUBLISHED', 'Published'),
		('HIDDEN', 'Hidden'),
		('DRAFT', 'Draft'),
		('REMOVED', 'Removed'),
	)
	status = models.CharField(max_length=9, choices=STATUS_CHOICES, default='CURRENT')
	featured = models.BooleanField(default=False)
	date = models.DateTimeField()

	department_label = models.CharField(max_length=128, blank=True)
	thumbnail = models.ImageField(upload_to='blog', blank=True, null=True)
	teaser = models.TextField(blank=True)
	main_text = models.TextField(blank=True)

	author = models.ManyToManyField(Bio, blank=True, null=True, related_name='author')
	tags = models.CharField(max_length=128, blank=True)
	allow_comments = models.BooleanField(default=False)

	class Meta:
		ordering = ['date']

	def __unicode__(self):
		return self.title

	@models.permalink
	def get_absolute_url(self):
		return ('post_view', [str(self.slug)])<commit_msg>Reverse order of posts in Pigeon admin<commit_after>from django.db import models
from classes.models import Bio
import datetime



class Post(models.Model):

	title = models.CharField(max_length=200)
	slug = models.SlugField(unique=True)
	STATUS_CHOICES = (
		('PUBLISHED', 'Published'),
		('HIDDEN', 'Hidden'),
		('DRAFT', 'Draft'),
		('REMOVED', 'Removed'),
	)
	status = models.CharField(max_length=9, choices=STATUS_CHOICES, default='CURRENT')
	featured = models.BooleanField(default=False)
	date = models.DateTimeField()

	department_label = models.CharField(max_length=128, blank=True)
	thumbnail = models.ImageField(upload_to='blog', blank=True, null=True)
	teaser = models.TextField(blank=True)
	main_text = models.TextField(blank=True)

	author = models.ManyToManyField(Bio, blank=True, null=True, related_name='author')
	tags = models.CharField(max_length=128, blank=True)
	allow_comments = models.BooleanField(default=False)

	class Meta:
		ordering = ['-date']

	def __unicode__(self):
		return self.title

	@models.permalink
	def get_absolute_url(self):
		return ('post_view', [str(self.slug)])
{'fraction_non_alphanumeric': 0.13860933211344922, 'fraction_numerical': 0.009149130832570906, 'mean_word_length': 6.489726027397261, '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': '2934860', 'n_tokens_mistral': 792, 'n_tokens_neox': 730, 'n_words': 141}