<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Create 3 users
# Create a cell and a droplet for melissi user

from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from django.core.files import File

from mlscommon.models import *
import tempfile


class Command(BaseCommand):
    help = "Populate database with test data"

    def handle(self, *args, **options):
        # clean database
        f = tempfile.NamedTemporaryFile()
        f.write('12345')
        f.seek(0)

        User.objects.all().delete()

        u = User.objects.create_user("melisi", "<EMAIL>", "123")
        u.first_name = u"Νίκος"
        u.last_name = u"Κούκος"
        u.save()

        u1 = User.objects.create_user("babis", "<EMAIL>", "123")
        u1.first_name = u"Μπάμπης"
        u1.last_name = u"Σουγιάς"
        u1.save()
<commit_msg>don't delete superuser<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Create 3 users
# Create a cell and a droplet for melissi user

from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from django.core.files import File

from mlscommon.models import *
import tempfile


class Command(BaseCommand):
    help = "Populate database with test data"

    def handle(self, *args, **options):
        # clean database
        f = tempfile.NamedTemporaryFile()
        f.write('12345')
        f.seek(0)

        User.objects.filter(is_superuser=False).delete()

        u = User.objects.create_user("melisi", "<EMAIL>", "123")
        u.first_name = u"Νίκος"
        u.last_name = u"Κούκος"
        u.save()

        u1 = User.objects.create_user("babis", "<EMAIL>", "<PASSWORD>")
        u1.first_name = u"Μπάμπης"
        u1.last_name = u"Σουγιάς"
        u1.save()

{'fraction_non_alphanumeric': 0.13089295618413754, 'fraction_numerical': 0.018302828618968387, 'mean_word_length': 2.7505197505197505, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '5098653', 'n_tokens_mistral': 642, 'n_tokens_neox': 613, 'n_words': 142}