<commit_before># -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models

class Migration(DataMigration):

    def forwards(self, orm):
        page_content_type, created = orm['contenttypes.contenttype'].objects.get_or_create(
            model='page', app_label='wagtailcore', defaults={'name': 'page'})

        root = orm['wagtailcore.page'].objects.create(
            title="Root",
            slug='root',
            content_type=page_content_type,
            path='0001',
            depth=1,
            numchild=1,
            url_path='/',
        )

        homepage = orm['wagtailcore.page'].objects.create(
            title="Welcome to your new Verdant site!",
            slug='home',
            content_type=page_content_type,
            path='00010001',
            depth=2,
            numchild=0,
            url_path='/home/',
        )

        orm['wagtailcore.site'].objects.create(
            hostname='localhost', root_page=homepage, is_default_site=True)

        editors_group = orm['auth.group'].objects.create(name='Editors')
        moderators_group = orm['auth.group'].objects.create(name='Moderators')

        orm['wagtailcore.grouppagepermission'].objects.create(
            group=moderators_group, page=root, permission_type='add')
        orm['wagtailcore.grouppagepermission'].objects.create(
            group=moderators_group, page=root, permission_type='edit')
        orm['wagtailcore.grouppagepermission'].objects.create(
            group=moderators_group, page=root, permission_type='publish')

        orm['wagtailcore.grouppagepermission'].objects.create(
            group=editors_group, page=root, permission_type='add')
        orm['wagtailcore.grouppagepermission'].objects.create(<commit_msg>Verdant -> Wagtail on initial page title<commit_after># -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models

class Migration(DataMigration):

    def forwards(self, orm):
        page_content_type, created = orm['contenttypes.contenttype'].objects.get_or_create(
            model='page', app_label='wagtailcore', defaults={'name': 'page'})

        root = orm['wagtailcore.page'].objects.create(
            title="Root",
            slug='root',
            content_type=page_content_type,
            path='0001',
            depth=1,
            numchild=1,
            url_path='/',
        )

        homepage = orm['wagtailcore.page'].objects.create(
            title="Welcome to your new Wagtail site!",
            slug='home',
            content_type=page_content_type,
            path='00010001',
            depth=2,
            numchild=0,
            url_path='/home/',
        )

        orm['wagtailcore.site'].objects.create(
            hostname='localhost', root_page=homepage, is_default_site=True)

        editors_group = orm['auth.group'].objects.create(name='Editors')
        moderators_group = orm['auth.group'].objects.create(name='Moderators')

        orm['wagtailcore.grouppagepermission'].objects.create(
            group=moderators_group, page=root, permission_type='add')
        orm['wagtailcore.grouppagepermission'].objects.create(
            group=moderators_group, page=root, permission_type='edit')
        orm['wagtailcore.grouppagepermission'].objects.create(
            group=moderators_group, page=root, permission_type='publish')

        orm['wagtailcore.grouppagepermission'].objects.create(
            group=editors_group, page=root, permission_type='add')
        orm['wagtailcore.grouppagepermission'].objects.create(
{'fraction_non_alphanumeric': 0.12469895638212469, 'fraction_numerical': 0.009633395772009633, 'mean_word_length': 2.783400809716599, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5211792', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1085, 'n_words': 166}