<commit_before>from django.db import models
from evewspace.core.models import Type, Location
from Map.models import System
from django.contrib.auth.models import User

class Alliance(models.Model):
	"""Represents an alliance, data pulled from api"""
	id = models.BigIntegerField(primary_key=True)
	name = models.CharField(max_length=100)
	shortname = models.CharField(max_length=100)
	executor = models.ForeignKey('Corporation', related_name='+')

	def __unicode__(self):
		return self.name

class Corporation(models.Model):
	"""Represents a corporation, data pulled from api"""
	id = models.BigIntegerField(primary_key=True)
	name = models.CharField(max_length=100)
	ticker = models.CharField(max_length=100)
	alliance = models.ForeignKey(Alliance, null=True, blank=True, related_name='member_corps')
	member_count = models.IntegerField()

	def __unicode__(self):
		return self.name

class POS(models.Model):
	"""Represents a POS somewhere in space."""
	#This location should always reference a moon from mapDenormalize
	location = models.OneToOneField(Location, related_name="pos", primary_key=True)
	towertype = models.ForeignKey(Type, related_name="inspace")<commit_msg>Adding changes to POS model<commit_after>from django.db import models
from evewspace.core.models import Type, Location
from Map.models import System
from django.contrib.auth.models import User

class Alliance(models.Model):
	"""Represents an alliance, data pulled from api"""
	id = models.BigIntegerField(primary_key=True)
	name = models.CharField(max_length=100)
	shortname = models.CharField(max_length=100)
	executor = models.ForeignKey('Corporation', related_name='+')

	def __unicode__(self):
		return self.name

class Corporation(models.Model):
	"""Represents a corporation, data pulled from api"""
	id = models.BigIntegerField(primary_key=True)
	name = models.CharField(max_length=100)
	ticker = models.CharField(max_length=100)
	alliance = models.ForeignKey(Alliance, null=True, blank=True, related_name='member_corps')
	member_count = models.IntegerField()

	def __unicode__(self):
		return self.name

class POS(models.Model):
	"""Represents a POS somewhere in space."""
	#This location should always reference a moon from mapDenormalize
	#location = models.OneToOneField(Location, related_name="pos", primary_key=True)
	system = models.ForeignKey(System, related_name="poses")
	planet = models.IntegerField()
	moon   = models.IntegerField()
	towertype = models.ForeignKey(Type, related_name="inspace")
{'fraction_non_alphanumeric': 0.10985915492957747, 'fraction_numerical': 0.0096579476861167, 'mean_word_length': 6.744548286604362, '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': '6576693', 'n_tokens_mistral': 786, 'n_tokens_neox': 747, 'n_words': 188}