<commit_before># -*- coding: utf-8 -*-
import datetime
from django.db import models


class DummyModel(models.Model):
    name = models.CharField(max_length=255)
    model2 = models.ForeignKey('DummyModel2')
    timefield = models.DateTimeField(default=datetime.datetime.now)


class DummyModel2(models.Model):
    name = models.CharField(max_length=255)


class SimpleModel(models.Model):
    name = models.CharField(max_length=50)
    email = models.EmailField(unique=True)


class M2MModel(models.Model):
    dummy_models = models.ManyToManyField(DummyModel2)
<commit_msg>on_delete action is now required for ForgienKeys<commit_after># -*- coding: utf-8 -*-
import datetime
from django.db import models


class DummyModel(models.Model):
    name = models.CharField(max_length=255)
    model2 = models.ForeignKey('DummyModel2', on_delete=models.CASCADE)
    timefield = models.DateTimeField(default=datetime.datetime.now)


class DummyModel2(models.Model):
    name = models.CharField(max_length=255)


class SimpleModel(models.Model):
    name = models.CharField(max_length=50)
    email = models.EmailField(unique=True)


class M2MModel(models.Model):
    dummy_models = models.ManyToManyField(DummyModel2)

{'fraction_non_alphanumeric': 0.11147811725846409, 'fraction_numerical': 0.023121387283236993, 'mean_word_length': 5.090452261306533, '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': '1649755', 'n_tokens_mistral': 403, 'n_tokens_neox': 383, 'n_words': 69}