<commit_before># -*- coding: utf-8 -*-
"""
Kardinalitaetsproblematik in Django
"""

from django.db import models


class Weather(models.Model):
    datum = models.DateField(max_length=32)
    stadt = models.CharField(max_length=32)
    anbieter = models.CharField(max_length=32)
    wetter = models.CharField(max_length=32)
    tagestemperatur = models.IntegerField(default=0)
    einheit = models.CharField(max_length=1)
    kondition = models.IntegerField(default=0)
    windgeschwindigkeit = models.IntegerField(default=1)
    windrichtung = models.CharField(max_length=2)

    def __str__(self):
        return str(self.datum) + ", " + self.stadt + ", " + self.anbieter

class Feedback(models.Model):
    kommentar = models.CharField(max_length=2000)
    bewertung = models.IntegerField(default=1)
    user = models.CharField(max_length=200)
    wetter = models.ForeignKey(Weather, related_name='feedback')
    commentdatum = models.DateTimeField(max_length=32)

    def __str__(self):
        return str(self.bewertung)

class City(models.Model):
    stadt = models.CharField(max_length=200)

    def __str__(self):
        return str(self.stadt)
<commit_msg>Updated for Mails!!!<commit_after># -*- coding: utf-8 -*-
"""
Kardinalitaetsproblematik in Django
"""

from django.db import models


class Weather(models.Model):
    datum = models.DateField(max_length=32)
    stadt = models.CharField(max_length=32)
    anbieter = models.CharField(max_length=32)
    wetter = models.CharField(max_length=32)
    tagestemperatur = models.IntegerField(default=0)
    einheit = models.CharField(max_length=1)
    kondition = models.IntegerField(default=0)
    windgeschwindigkeit = models.IntegerField(default=1)
    windrichtung = models.CharField(max_length=2)

    def __str__(self):
        return str(self.datum) + ", " + self.stadt + ", " + self.anbieter

class Feedback(models.Model):
    kommentar = models.CharField(max_length=2000)
    bewertung = models.IntegerField(default=1)
    user = models.CharField(max_length=200)
    mail = models.EmailField(max_length=75)
    wetter = models.ForeignKey(Weather, related_name='feedback')
    commentdatum = models.DateTimeField(max_length=32)

    def __str__(self):
        return str(self.bewertung)

class City(models.Model):
    stadt = models.CharField(max_length=200)

    def __str__(self):
        return str(self.stadt)

{'fraction_non_alphanumeric': 0.12021857923497267, 'fraction_numerical': 0.023539302227826818, 'mean_word_length': 4.253863134657837, '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': '7449850', 'n_tokens_mistral': 831, 'n_tokens_neox': 793, 'n_words': 126}