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

from django.db import migrations
from django.db import transaction


@transaction.atomic
def create_topics(apps, schema_editor):
    Topic = apps.get_model("cfp", "Topic")
    Conference = apps.get_model("cfp", "Conference")

    for conf in Conference.objects.exclude(programming_language=''):
        topic = Topic.objects.get_or_create(value=conf.programming_language)
        conf.topics.add(topic)


class Migration(migrations.Migration):
<commit_msg>I swear I'll get this right<commit_after># -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations
from django.db import transaction


@transaction.atomic
def create_topics(apps, schema_editor):
    Topic = apps.get_model("cfp", "Topic")
    Conference = apps.get_model("cfp", "Conference")

    for conf in Conference.objects.exclude(programming_language=''):
        topic, _ = Topic.objects.get_or_create(value=conf.programming_language)
        conf.topics.add(topic)


class Migration(migrations.Migration):

{'fraction_non_alphanumeric': 0.11386593204775022, 'fraction_numerical': 0.0018365472910927456, 'mean_word_length': 4.767195767195767, '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': '3093694', 'n_tokens_mistral': 336, 'n_tokens_neox': 324, 'n_words': 73}