<commit_before>"""
Minecraft site models
"""

from django.contrib.auth import models as auth_models
from django.db import models as django_models

class Mod(django_models.Model):
	"""
	A Minecraft modification.
	"""

	name    = django_models.CharField(max_length = 256, unique = True)
	url     = django_models.URLField()
	version = django_models.CharField(max_length = 64)

	created_by     = django_models.ForeignKey(auth_models.User, related_name = 'mod_created_by')
	created_on     = django_models.DateTimeField(auto_now = True)
	last_edited_by = django_models.ForeignKey(auth_models.User)
	last_edited_on = django_models.DateTimeField(null = True)

class Modpack(django_models.Model):
	"""
	A modpack is a collection of mods.
	"""

	name = django_models.CharField(max_length = 256, unique = True)
	url  = django_models.URLField()

	created_by     = django_models.ForeignKey(auth_models.User, related_name = 'modpack_created_by')
	created_on     = django_models.DateTimeField(auto_now = True)
	last_edited_by = django_models.ForeignKey(auth_models.User)
	last_edited_on = django_models.DateTimeField(null = True)

class ModpackMod(django_models.Model):
	"""
	A mod in a modpack
	"""

	mod     = django_models.ForeignKey(Mod)
	modpack = django_models.ForeignKey(Modpack)

	created_by     = django_models.ForeignKey(auth_models.User, related_name = 'modpack_mod_created_by')
	created_on     = django_models.DateTimeField(auto_now = True)
	last_edited_by = django_models.ForeignKey(auth_models.User)
	last_edited_on = django_models.DateTimeField(null = True)

class Link(django_models.Model):
	"""
	A link that should be displayed in the nav bar
	"""

	name = django_models.CharField(max_length = 256, unique = True)
	url  = django_models.URLField()
<commit_msg>Make the last_edited_on and created_on fields work properly<commit_after>"""
Minecraft site models
"""

from django.contrib.auth import models as auth_models
from django.db import models as django_models

class Mod(django_models.Model):
	"""
	A Minecraft modification.
	"""

	name    = django_models.CharField(max_length = 256, unique = True)
	url     = django_models.URLField()
	version = django_models.CharField(max_length = 64)

	created_by     = django_models.ForeignKey(auth_models.User, related_name = 'mod_created_by')
	created_on     = django_models.DateTimeField(auto_now_add = True)
	last_edited_by = django_models.ForeignKey(auth_models.User, null = True)
	last_edited_on = django_models.DateTimeField(auto_now = True, null = True)

class Modpack(django_models.Model):
	"""
	A modpack is a collection of mods.
	"""

	name = django_models.CharField(max_length = 256, unique = True)
	url  = django_models.URLField()

	created_by     = django_models.ForeignKey(auth_models.User, related_name = 'modpack_created_by')
	created_on     = django_models.DateTimeField(auto_now_add = True)
	last_edited_by = django_models.ForeignKey(auth_models.User, null = True)
	last_edited_on = django_models.DateTimeField(auto_now = True, null = True)

class ModpackMod(django_models.Model):
	"""
	A mod in a modpack
	"""

	mod     = django_models.ForeignKey(Mod)
	modpack = django_models.ForeignKey(Modpack)

	created_by     = django_models.ForeignKey(auth_models.User, related_name = 'modpack_mod_created_by')
	created_on     = django_models.DateTimeField(auto_now_add = True)
	last_edited_by = django_models.ForeignKey(auth_models.User, null = True)
	last_edited_on = django_models.DateTimeField(auto_now = True, null = True)

class Link(django_models.Model):
	"""
	A link that should be displayed in the nav bar
	"""

	name = django_models.CharField(max_length = 256, unique = True)
	url  = django_models.URLField()

{'fraction_non_alphanumeric': 0.09700272479564033, 'fraction_numerical': 0.005994550408719346, 'mean_word_length': 5.3293103448275865, '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': '7185349', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1201, 'n_words': 245}