<commit_before>#!/usr/bin/python
activate_this = '/var/www/isthisacat/isthisacat/isthisacat/venv/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))

import os
import sys
head, tail = os.path.split(os.path.abspath(__file__))
sys.path.insert(0, head)
from isthisacat import app as application<commit_msg>The database needs to be initialised in the WSGI<commit_after>#!/usr/bin/python
activate_this = '/var/www/isthisacat/isthisacat/isthisacat/venv/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))

import os
import sys
head, tail = os.path.split(os.path.abspath(__file__))
sys.path.insert(0, head)
from isthisacat import app as application
from isthisacat import init_db
init_db()
{'fraction_non_alphanumeric': 0.11506849315068493, 'fraction_numerical': 0.0027397260273972603, 'mean_word_length': 6.776595744680851, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4069095', 'n_tokens_mistral': 265, 'n_tokens_neox': 261, 'n_words': 52}