<commit_before>#!/usr/bin/python

# Copyright 2016-2017 <NAME>
#
# This file is part of Facade, and is made available under the terms of the GNU
# General Public License version 2.
# SPDX-License-Identifier:        GPL-2.0
#
# Create all tables, and initialize the settings table with default values.

import sys
import os.path
import MySQLdb
import getpass
import imp
import bcrypt

try:
    imp.find_module('db')
    from db import db,cursor
except:
    sys.exit("Can't find db.py. Have you created it?")

#### Settings table ####

def create_settings(reset=0):

# Create and populate the default settings table.

	# default settings
	start_date = "2000-01-01";
	repo_directory = "/opt/facade/git-trees/";

	if reset:
		clear = "DROP TABLE IF EXISTS settings"

		cursor.execute(clear)<commit_msg>Moved start date to much later, 2000 was probably too much data<commit_after>#!/usr/bin/python

# Copyright 2016-2017 <NAME>
#
# This file is part of Facade, and is made available under the terms of the GNU
# General Public License version 2.
# SPDX-License-Identifier:        GPL-2.0
#
# Create all tables, and initialize the settings table with default values.

import sys
import os.path
import MySQLdb
import getpass
import imp
import bcrypt

try:
    imp.find_module('db')
    from db import db,cursor
except:
    sys.exit("Can't find db.py. Have you created it?")

#### Settings table ####

def create_settings(reset=0):

# Create and populate the default settings table.

	# default settings
	start_date = "2014-01-01";
	repo_directory = "/opt/facade/git-trees/";

	if reset:
		clear = "DROP TABLE IF EXISTS settings"

		cursor.execute(clear)
{'fraction_non_alphanumeric': 0.10024301336573511, 'fraction_numerical': 0.026731470230862697, 'mean_word_length': 3.8727810650887573, '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': '5857315', 'n_tokens_mistral': 556, 'n_tokens_neox': 502, 'n_words': 190}