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


class Migration(SchemaMigration):

    def forwards(self, orm):
        "Write your forwards methods here."
        # param for meta keys
        orm['xpcore.coreparam'].objects.get_or_create(mode='META_TYPE', name='META_APP', value='META_APP', paramType='String')
        orm['xpcore.coreparam'].objects.get_or_create(mode='META_TYPE', name='META_SERVICE', value='META_SERVICE', paramType='String')
        data = orm['xpcore.coreparam'].objects.get_or_create(mode='META_TYPE', name='META_WF', value='META_WF', paramType='String')
        meta_wf = data[1]<commit_msg>Fix and no_dry_run since we have a data migration<commit_after># -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    no_dry_run = True

    def forwards(self, orm):
        "Write your forwards methods here."
        # param for meta keys
        orm['xpcore.coreparam'].objects.get_or_create(mode='META_TYPE', name='META_APP', value='META_APP', paramType='String')
        orm['xpcore.coreparam'].objects.get_or_create(mode='META_TYPE', name='META_SERVICE', value='META_SERVICE', paramType='String')
        data = orm['xpcore.coreparam'].objects.get_or_create(mode='META_TYPE', name='META_WF', value='META_WF', paramType='String')
        meta_wf = data[0]
{'fraction_non_alphanumeric': 0.1374916163648558, 'fraction_numerical': 0.004024144869215292, 'mean_word_length': 4.673003802281369, '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': '667174', 'n_tokens_mistral': 482, 'n_tokens_neox': 476, 'n_words': 101}