<commit_before>import os
from flask import Flask, render_template
from flask_pymongo import PyMongo
from flask_restful import Api
from flask_basicauth import BasicAuth
app = Flask(__name__)
app.config.from_object(os.environ['APP_SETTINGS'])
# print("Environment is {}".format(os.environ['APP_SETTINGS']))

mongo = PyMongo(app)

# Local module import
from app.gui.api import ModelInfo, DemandCreator, RunModel, RunDefault, api, CompileModel, AvailableModels, AvailableModelDefs

# Get array of available models.


def get_choices():
    guidir = os.path.abspath(os.path.dirname(__file__))
    build_dir = os.path.abspath(os.path.join(os.path.dirname(guidir),
                                             'build'))
    assert os.path.basename(build_dir) == 'build', "Incorrect base directory"<commit_msg>debug code<commit_after>import os
from flask import Flask, render_template
from flask_pymongo import PyMongo
from flask_restful import Api
from flask_basicauth import BasicAuth
app = Flask(__name__)
app.config.from_object(os.environ['APP_SETTINGS'])
# print("Environment is {}".format(os.environ['APP_SETTINGS']))
print("Current dir %s" % os.getcwd())
print("CONTENTS:\t %s" % os.listdir())
mongo = PyMongo(app)

# Local module import
from app.gui.api import ModelInfo, DemandCreator, RunModel, RunDefault, api, CompileModel, AvailableModels, AvailableModelDefs

# Get array of available models.


def get_choices():
    guidir = os.path.abspath(os.path.dirname(__file__))
    build_dir = os.path.abspath(os.path.join(os.path.dirname(guidir),
                                             'build'))
    assert os.path.basename(build_dir) == 'build', "Incorrect base directory"
{'fraction_non_alphanumeric': 0.11329755515802027, 'fraction_numerical': 0.0, 'mean_word_length': 4.43042071197411, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5782306', 'n_tokens_mistral': 525, 'n_tokens_neox': 523, 'n_words': 125}