<commit_before>from __future__ import unicode_literals

from django.db import models

class Exposure(models.Model):
    exposure_id = models.AutoField(primary_key=True)
    prop1 = models.IntegerField(default=0)
    prop2 = models.FloatField(default=0.0)

class Spectrograph(models.Model):
    spectrograph_id = models.AutoField(primary_key=True)
    prop1 = models.IntegerField(default=0)
    prop2 = models.FloatField(default=0.0)

class CCD(models.Model):
    ccd_id = models.AutoField(primary_key=True)
    exposure_id = models.ForeignKey(Exposure, on_delete=models.CASCADE)
    spectrograph_id = models.ForeignKey(Spectrograph, on_delete=models.CASCADE)
    arm = models.CharField(max_length=200)
    prop1 = models.IntegerField(default=0)
    prop2 = models.FloatField(default=0.0)

class Spectra(models.Model):
    spectra_id = models.AutoField(primary_key=True)
    ccd_id = models.ForeignKey(CCD, on_delete=models.CASCADE)
    counts = models.IntegerField(default=0)
    sn_ratio = models.FloatField(default=0.0)
    prop1 = models.FloatField(default=0.0)
    prop2 = models.FloatField(default=0.0)

class Fiber(models.Model):
    fiber_id = models.AutoField(primary_key=True)
    spectrograph_id = models.ForeignKey(Spectrograph, on_delete=models.CASCADE)
    prop1 = models.IntegerField(default=0)
    prop2 = models.FloatField(default=0.0)<commit_msg>removed _id on foreignkeys<commit_after>from __future__ import unicode_literals

from django.db import models

class Exposure(models.Model):
    exposure_id = models.AutoField(primary_key=True)
    prop1 = models.IntegerField(default=0)
    prop2 = models.FloatField(default=0.0)

class Spectrograph(models.Model):
    spectrograph_id = models.AutoField(primary_key=True)
    prop1 = models.IntegerField(default=0)
    prop2 = models.FloatField(default=0.0)

class CCD(models.Model):
    ccd_id = models.AutoField(primary_key=True)
    exposure = models.ForeignKey(Exposure, on_delete=models.CASCADE)
    spectrograph = models.ForeignKey(Spectrograph, on_delete=models.CASCADE)
    arm = models.CharField(max_length=200)
    prop1 = models.IntegerField(default=0)
    prop2 = models.FloatField(default=0.0)

class Spectra(models.Model):
    spectra_id = models.AutoField(primary_key=True)
    ccd = models.ForeignKey(CCD, on_delete=models.CASCADE)
    counts = models.IntegerField(default=0)
    sn_ratio = models.FloatField(default=0.0)
    prop1 = models.FloatField(default=0.0)
    prop2 = models.FloatField(default=0.0)

class Fiber(models.Model):
    fiber_id = models.AutoField(primary_key=True)
    spectrograph = models.ForeignKey(Spectrograph, on_delete=models.CASCADE)
    prop1 = models.IntegerField(default=0)
    prop2 = models.FloatField(default=0.0)
{'fraction_non_alphanumeric': 0.10927759442610928, 'fraction_numerical': 0.02346901356802347, 'mean_word_length': 5.1441441441441444, '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': '5287873', 'n_tokens_mistral': 948, 'n_tokens_neox': 925, 'n_words': 134}