<commit_before>import os.path

PIE_TOLERANCE               = 0.075
PIE_DETAIL                  = 30
GRAPH_FUND_HISTORY_DETAIL   = 50

OVERVIEW_NUM_LAST   = 25
OVERVIEW_NUM_FUTURE = 10

START_YEAR  = 2014
START_MONTH = 9

LIST_CATEGORIES = ('funds', 'in', 'bills', 'food', 'general', 'holiday', 'social')

# common columns are added programmatically
LIST_DATA_FORM_SCHEMA = {
    'funds':    {
        'units':    ('float',   True),
    },
    'in':   {
    },
    'bills':    {
    },
    'food':    {
        'category': ('string',  True),
        'shop':     ('string',  True)
    },
    'general':    {
        'category': ('string',  True),
        'shop':     ('string',  True)
    },
    'holiday':    {
        'holiday':  ('string',  True),
        'shop':     ('string',  True)
    },
    'social':    {
        'society':  ('string',  True),
        'shop':     ('string',  True)
    }
}

IP_BAN_TIME     = 60
IP_BAN_TRIES    = 10
BASE_DIR        = os.path.dirname(os.path.realpath(__file__)) + "/.."
SERIAL_FILE     = BASE_DIR + "/resources/serial"

FUND_SALT       = 'a963anx2'

# error messages
E_NO_PARAMS     = "Not enough parameters given"
E_BAD_PARAMS    = "Invalid parameters given"
E_NO_FORM       = "Not enough form data given"
E_BAD_FORM      = "Invalid form data given"
E_NO_ITEM       = "Must supply an item (at least)"<commit_msg>Increase fund history detail to 100pts<commit_after>""" Global configuration variables """

import os.path

PIE_TOLERANCE = 0.075
PIE_DETAIL = 30
GRAPH_FUND_HISTORY_DETAIL = 100

OVERVIEW_NUM_LAST = 25
OVERVIEW_NUM_FUTURE = 10

START_YEAR = 2014
START_MONTH = 9

LIST_CATEGORIES = ('funds', 'in', 'bills', 'food', 'general', 'holiday', 'social')

# common columns are added programmatically
LIST_DATA_FORM_SCHEMA = {
    'funds':    {
        'units': ('float', True),
    },
    'in': {
    },
    'bills': {
    },
    'food': {
        'category': ('string', True),
        'shop': ('string', True)
    },
    'general': {
        'category': ('string', True),
        'shop': ('string', True)
    },
    'holiday': {
        'holiday': ('string', True),
        'shop': ('string', True)
    },
    'social': {
        'society': ('string', True),
        'shop': ('string', True)
    }
}

IP_BAN_TIME = 60
IP_BAN_TRIES = 10
BASE_DIR = os.path.dirname(os.path.realpath(__file__)) + "/.."
SERIAL_FILE = BASE_DIR + "/resources/serial"

FUND_SALT = 'a963anx2'

# error messages
E_NO_PARAMS = "Not enough parameters given"
E_BAD_PARAMS = "Invalid parameters given"
E_NO_FORM = "Not enough form data given"
E_BAD_FORM = "Invalid form data given"
E_NO_ITEM = "Must supply an item (at least)"

{'fraction_non_alphanumeric': 0.1543700340522134, 'fraction_numerical': 0.02043132803632236, 'mean_word_length': 2.6169630642954855, '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': '5123623', 'n_tokens_mistral': 1019, 'n_tokens_neox': 954, 'n_words': 216}