<commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
from django.contrib.auth.models import Group 


def forwards_func(apps, schema_editor):
    group = Group.objects.create(name="tada_admin")
    group = Group.objects.create(name="tada_deo")
    group = Group.objects.create(name="tada_dee")
    # We get the model from the versioned app registry;
    # if we directly import it, it'll be the wrong version
    # Country = apps.get_model("myapp", "Country")
    # db_alias = schema_editor.connection.alias
    # Country.objects.using(db_alias).bulk_create([
    #     Country(name="USA", code="us"),
    #     Country(name="France", code="fr"),
    # ])

def reverse_func(apps, schema_editor):
    Group.objects.get(name="tada_admin").delete()
    Group.objects.get(name="tada_deo").delete()
    Group.objects.get(name="tada_dee").delete()<commit_msg>Adds all the permissions to the tada_admin group<commit_after># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
from django.contrib.auth.models import Group , Permission


def forwards_func(apps, schema_editor):
    group = Group.objects.create(name="tada_admin")
    permissions = Permission.objects.all()
    for permission in permissions:
        group.permissions.add(permission)
    group = Group.objects.create(name="tada_deo")
    group = Group.objects.create(name="tada_dee")
        
    # We get the model from the versioned app registry;
    # if we directly import it, it'll be the wrong version
    # Country = apps.get_model("myapp", "Country")
    # db_alias = schema_editor.connection.alias
    # Country.objects.using(db_alias).bulk_create([
    #     Country(name="USA", code="us"),
    #     Country(name="France", code="fr"),
    # ])

def reverse_func(apps, schema_editor):
    Group.objects.get(name="tada_admin").delete()
    Group.objects.get(name="tada_deo").delete()
    Group.objects.get(name="tada_dee").delete()
{'fraction_non_alphanumeric': 0.13208453410182516, 'fraction_numerical': 0.0009606147934678194, 'mean_word_length': 4.155940594059406, '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': '1200666', 'n_tokens_mistral': 651, 'n_tokens_neox': 636, 'n_words': 142}