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

os.environ['PMG_LAYER'] = 'frontend'

env = os.environ.get('FLASK_ENV', 'development')

app = Flask(__name__, static_folder="static")
app.config.from_pyfile('../config/%s/config.py' % env)

db = SQLAlchemy(app)

# setup logging
with open('config/%s/logging.yaml' % env) as f:
    import yaml
    logging.config.dictConfig(yaml.load(f))


# setup assets
from flask.ext.assets import Environment, Bundle
assets = Environment(app)
assets.url_expire = False
assets.debug      = app.debug
# source files
assets.load_path  = ['%s/static' % app.config.root_path]

assets.register('css',
    Bundle(
      'resources/css/*.css',
      'font-awesome-4.2.0/css/font-awesome.min.css',
      'chosen/chosen.min.css',
      output='app.%(version)s.css'))

assets.register('js', Bundle(<commit_msg>Attempt fix for static assets<commit_after>import logging
import logging.config
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
import os

os.environ['PMG_LAYER'] = 'frontend'

env = os.environ.get('FLASK_ENV', 'development')

app = Flask(__name__, static_folder="static")
app.config.from_pyfile('../config/%s/config.py' % env)

db = SQLAlchemy(app)

# setup logging
with open('config/%s/logging.yaml' % env) as f:
    import yaml
    logging.config.dictConfig(yaml.load(f))


# setup assets
from flask.ext.assets import Environment, Bundle
assets = Environment(app)
assets.url_expire = False
assets.url = app.static_url_path
assets.debug      = app.debug
# source files
assets.load_path  = ['%s/static' % app.config.root_path]

assets.register('css',
    Bundle(
      'resources/css/*.css',
      'font-awesome-4.2.0/css/font-awesome.min.css',
      'chosen/chosen.min.css',
      output='app.%(version)s.css'))

assets.register('js', Bundle(
{'fraction_non_alphanumeric': 0.14741883980840872, 'fraction_numerical': 0.0031931878658861094, 'mean_word_length': 4.251396648044692, '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': '6470378', 'n_tokens_mistral': 668, 'n_tokens_neox': 643, 'n_words': 129}