<commit_before>import os
from flask import Flask
from flask.ext import restful
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__, instance_relative_config=True, instance_path=os.environ['WANDER_PATH'])

try:
    app.config.from_pyfile('config.py')
except Exception:
    app.config.from_pyfile('config.cfg')

api = restful.Api(app)
db = SQLAlchemy(app)

# start background tasks
import wander.worker
wander.worker.start()

# init routing
import views


<commit_msg>load config from env var too<commit_after>import os
from flask import Flask
from flask.ext import restful
from flask.ext.sqlalchemy import SQLAlchemy

app = Flask(__name__, instance_relative_config=True, instance_path=os.environ['WANDER_PATH'])

app.config.from_pyfile('config.py', silent=True)
app.config.from_pyfile('config.cfg', silent=True)
app.config.from_envvar('WANDER_CONFIG')

api = restful.Api(app)
db = SQLAlchemy(app)

# start background tasks
import wander.worker
wander.worker.start()

# init routing
import views



{'fraction_non_alphanumeric': 0.10297029702970296, 'fraction_numerical': 0.0, 'mean_word_length': 6.119718309859155, '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': '7424579', 'n_tokens_mistral': 349, 'n_tokens_neox': 331, 'n_words': 79}