<commit_before>import peewee
from Models import *
from uuid import uuid4
import hashlib

def main():
    print "###########################"
    print "## Starting Server Setup ##"
    print "###########################"

    db = peewee.PostgresqlDatabase('postgres', host='db', user='postgres')

    print "Wiping database and creating tables..."
    tables = [
        User,
        AccessToken,
        Admin,
        RequestQue
        Regex
        ]
    db.drop_tables(tables, safe=True)
    db.create_tables(tables, safe=True)
    print "Finished creating tables!"


    print "Adding user jghibiki..."
    jghibiki = User.create(
           username = "jghibiki",
           password = "<PASSWORD>",
           firstName = "Jordan",
           lastName = "Goetze",
           email = "<EMAIL>",
           karma = 100000,
           strikes = 0,
        )
    if(jghibiki == None):
        raise "Failed to add user jghibiki"

    print "Making jghibiki an admin..."
    jghibiki_admin = Admin.create(user=jghibiki)
    if(jghibiki_admin == None):
        raise "Failed to make use jghibiki an admin"
    print "Success!"

    print "Adding user jpisabrony"
    jpisabrony = User.create(
           username = "jpisabrony",
           password = "<PASSWORD>",<commit_msg>Fix missing ,<commit_after>import peewee
from Models import *
from uuid import uuid4
import hashlib

def main():
    print "###########################"
    print "## Starting Server Setup ##"
    print "###########################"

    db = peewee.PostgresqlDatabase('postgres', host='db', user='postgres')

    print "Wiping database and creating tables..."
    tables = [
        User,
        AccessToken,
        Admin,
        RequestQue,
        Regex
        ]
    db.drop_tables(tables, safe=True)
    db.create_tables(tables, safe=True)
    print "Finished creating tables!"


    print "Adding user jghibiki..."
    jghibiki = User.create(
           username = "jghibiki",
           password = "<PASSWORD>",
           firstName = "Jordan",
           lastName = "Goetze",
           email = "<EMAIL>",
           karma = 100000,
           strikes = 0,
        )
    if(jghibiki == None):
        raise "Failed to add user jghibiki"

    print "Making jghibiki an admin..."
    jghibiki_admin = Admin.create(user=jghibiki)
    if(jghibiki_admin == None):
        raise "Failed to make use jghibiki an admin"
    print "Success!"

    print "Adding user jpisabrony"
    jpisabrony = User.create(
           username = "jpisabrony",
           password = "<PASSWORD>",
{'fraction_non_alphanumeric': 0.1475985942991019, 'fraction_numerical': 0.006247559547051933, 'mean_word_length': 2.288831835686778, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4353913', 'n_tokens_mistral': 798, 'n_tokens_neox': 765, 'n_words': 201}