<commit_before>from google.appengine.ext import db
from google.appengine.api.users import User
from freetalks import models
import datetime

def clear_type(obj_type):
    obj_list = obj_type.all()
    for obj in obj_list:
        obj.delete()

def put_list(obj_list):
    for obj in obj_list:
        obj.put()

def clear():
    clear_type(models.Talk)
    clear_type(models.Series)

def setup():
    test_user = User(email='<EMAIL>')

    series_list = []
    
    parent_pycon_series = models.Series(
        name='Parent PyCon',
        slug='python_slug',
        link='http://pycon.org/',
        created_user=test_user,
        updated_user=test_user,
    )
    parent_pycon_series.put()

    pycon_series = models.Series(
        name='PyCon',
        slug='python_slug',
        link='http://pycon.org/',
        created_user=test_user,
        updated_user=test_user,
        parent=parent_pycon_series,
    )

    series_list.append(parent_pycon_series)
    series_list.append(pycon_series)

    put_list(series_list)

    talks = []
<commit_msg>Modified series slugs<commit_after>from google.appengine.ext import db
from google.appengine.api.users import User
from freetalks import models
import datetime

def clear_type(obj_type):
    obj_list = obj_type.all()
    for obj in obj_list:
        obj.delete()

def put_list(obj_list):
    for obj in obj_list:
        obj.put()

def clear():
    clear_type(models.Talk)
    clear_type(models.Series)

def setup():
    test_user = User(email='<EMAIL>')

    series_list = []
    
    parent_pycon_series = models.Series(
        name='Parent PyCon',
        slug='parent-python-slug',
        link='http://pycon.org/',
        created_user=test_user,
        updated_user=test_user,
    )
    parent_pycon_series.put()

    pycon_series = models.Series(
        name='PyCon',
        slug='python-slug',
        link='http://pycon.org/',
        created_user=test_user,
        updated_user=test_user,
        parent=parent_pycon_series,
    )

    series_list.append(parent_pycon_series)
    series_list.append(pycon_series)

    put_list(series_list)

    talks = []

{'fraction_non_alphanumeric': 0.10954395862717442, 'fraction_numerical': 0.0, 'mean_word_length': 2.827338129496403, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3364079', 'n_tokens_mistral': 720, 'n_tokens_neox': 713, 'n_words': 122}