<commit_before>import unittest
from interfaces.stagingInterface import StagingInterface
from dataactcore.models.jobModels import Status, Type
from dataactcore.models import errorModels
import requests
from interfaces.jobTrackerInterface import JobTrackerInterface
from interfaces.validationInterface import ValidationInterface
from interfaces.errorInterface import ErrorInterface
import os
import inspect
import time
from dataactcore.aws.s3UrlHandler import s3UrlHandler
from boto.s3.connection import S3Connection
from boto.s3.key import Key
from dataactcore.scripts.databaseSetup import runCommands
from dataactcore.scripts.createJobTables import createJobTables
from scripts.setupValidationDB import setupValidationDB
from dataactcore.scripts.clearErrors import clearErrors
from interfaces.interfaceHolder import InterfaceHolder
from dataactcore.scripts.clearJobs import clearJobs
from sqlalchemy.exc import InvalidRequestError
import json

class JobTests(unittest.TestCase):

    BASE_URL = "http://127.0.0.1:5000"
    #BASE_URL = "http://192.168.127.12:5000"
    JSON_HEADER = {"Content-Type": "application/json"}
    TABLE_POPULATED = False  # Gets set to true by the first test to populate the tables
    DROP_TABLES = False  # If true, staging tables are dropped after tests are run
    USE_THREADS = False
    INCLUDE_LONG_TESTS = False<commit_msg>Finished refactoring DB interfaces<commit_after>import unittest
from interfaces.stagingInterface import StagingInterface
from dataactcore.models.jobModels import Status, Type
from dataactcore.models import errorModels
import requests
import os
import inspect
import time
from dataactcore.aws.s3UrlHandler import s3UrlHandler
from boto.s3.connection import S3Connection
from boto.s3.key import Key
from dataactcore.scripts.databaseSetup import runCommands
from scripts.setupValidationDB import setupValidationDB
from dataactcore.scripts.clearErrors import clearErrors
from interfaces.interfaceHolder import InterfaceHolder
from dataactcore.scripts.clearJobs import clearJobs
from sqlalchemy.exc import InvalidRequestError
import json

class JobTests(unittest.TestCase):

    BASE_URL = "http://127.0.0.1:5000"
    #BASE_URL = "http://192.168.127.12:5000"
    JSON_HEADER = {"Content-Type": "application/json"}
    TABLE_POPULATED = False  # Gets set to true by the first test to populate the tables
    DROP_TABLES = False  # If true, staging tables are dropped after tests are run
    USE_THREADS = False
    INCLUDE_LONG_TESTS = False
{'fraction_non_alphanumeric': 0.05417335473515249, 'fraction_numerical': 0.024077046548956663, 'mean_word_length': 5.7560975609756095, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '3553740', 'n_tokens_mistral': 714, 'n_tokens_neox': 660, 'n_words': 218}