<commit_before>from django.db import models
from django.contrib.auth.models import User

class Location(models.Model):
	x = models.DecimalField(
		max_digits=10,
		decimal_places=5
	)
	y = models.DecimalField(
		max_digits=10,
		decimal_places=5
	)
	
	def __str__(self):
		return "x:" + str(self.x) + ", y:" + str(self.y)

class Suggestion(models.Model):
	time = models.DateTimeField(
		null=True,
		blank=True
	)
	location = models.ForeignKey(
		Location,
		null=True,
		blank=True
	)
	owner = models.ForeignKey(
		User,
		related_name='suggestion_owner'
	)
	users = models.ManyToManyField(User, through='SuggestionUser')
	activity = models.CharField(
		max_length=50,
		blank=True
	)
	
	def __str__(self):
		return str(self.owner) + ":" + str(self.activity) + " @ " + str(self.location) + ", " + str(self.time)

class SuggestionUser(models.Model):
	YES = 'Y'
	NO = 'N'
	MAYBE = 'M'
	NONE = 'O'
	RESPONSE_CHOICES = (
		(YES, 'Yes'),
		(NO, 'No'),
		(MAYBE, 'Maybe'),
		(NONE, 'No vote'),
	)
	
	response = models.CharField(
		max_length=1,
		choices=RESPONSE_CHOICES,
		default=NONE)
	user = models.ForeignKey(User)
	suggestion = models.ForeignKey(Suggestion)
	
	def __str__(self):
		return str(self.user) + ":" + str(self.suggestion)

class Event(models.Model):
	owner = models.ForeignKey(
		User,
		related_name='event_owner'
	)
	invites = models.ManyToManyField(User, through='Invite')
	description = models.TextField()
	location = models.ForeignKey(Location)
	start_time = models.DateTimeField()
	end_time = models.DateTimeField(
		null=True,
		blank=True
	)
	
	def __str__(self):
		return str(self.owner) + ":" + str(self.location) + "@" + str(self.start_time)


class Invite(models.Model):
	YES = 'Y'
	NO = 'N'
	MAYBE_YES = 'MY'<commit_msg>Add meta class to all models<commit_after>from django.db import models
from django.contrib.auth.models import User

class Location(models.Model):
	class Meta:
		app_label = "core"
	
	x = models.DecimalField(
		max_digits=10,
		decimal_places=5
	)
	y = models.DecimalField(
		max_digits=10,
		decimal_places=5
	)
	
	def __str__(self):
		return "x:" + str(self.x) + ", y:" + str(self.y)

class Suggestion(models.Model):
	class Meta:
		app_label = "core"
		
	time = models.DateTimeField(
		null=True,
		blank=True
	)
	location = models.ForeignKey(
		Location,
		null=True,
		blank=True
	)
	owner = models.ForeignKey(
		User,
		related_name='suggestion_owner'
	)
	users = models.ManyToManyField(User, through='SuggestionUser')
	activity = models.CharField(
		max_length=50,
		blank=True
	)
	
	def __str__(self):
		return str(self.owner) + ":" + str(self.activity) + " @ " + str(self.location) + ", " + str(self.time)

class SuggestionUser(models.Model):
	class Meta:
		app_label = "core"
		
	YES = 'Y'
	NO = 'N'
	MAYBE = 'M'
	NONE = 'O'
	RESPONSE_CHOICES = (
		(YES, 'Yes'),
		(NO, 'No'),
		(MAYBE, 'Maybe'),
		(NONE, 'No vote'),
	)
	
	response = models.CharField(
		max_length=1,
		choices=RESPONSE_CHOICES,
		default=NONE)
	user = models.ForeignKey(User)
	suggestion = models.ForeignKey(Suggestion)
	
	def __str__(self):
		return str(self.user) + ":" + str(self.suggestion)

class Event(models.Model):
	class Meta:
		app_label = "core"
		
	owner = models.ForeignKey(
		User,
		related_name='event_owner'
	)
	invites = models.ManyToManyField(User, through='Invite')
	description = models.TextField()
	location = models.ForeignKey(Location)
	start_time = models.DateTimeField()
	end_time = models.DateTimeField(
		null=True,
		blank=True
	)
	
	def __str__(self):
		return str(self.owner) + ":" + str(self.location) + "@" + str(self.start_time)


class Invite(models.Model):
	class Meta:
		app_label = "core"
		
	YES = 'Y'
	NO = 'N'
	MAYBE_YES = 'MY'
{'fraction_non_alphanumeric': 0.14846924952587376, 'fraction_numerical': 0.004876727174207532, 'mean_word_length': 4.214689265536723, 'pattern_counts': {'":': 6, '<': 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': '6467460', 'n_tokens_mistral': 1537, 'n_tokens_neox': 1411, 'n_words': 266}