<commit_before># -*- coding: UTF-8 -*-

from flask import Flask, render_template, g, request, session
from flask.ext.assets import Environment, Bundle
from webassets_iife import IIFE

from mgweb.flaskutils import logged_only, unlogged_only, redirect_for, title, \
    form2session, session2student

app = Flask(__name__)
app.config.from_pyfile('mgweb.cfg', silent=True)

# assets
assets = Environment(app)

js_filters = []
css_filters = []

if not app.config['DEBUG']:
    js_filters.concat([IIFE, 'closure_js'])
    css_filters.concat(['cssmin'])

# - JS
js = Bundle(
    # Bootstrap/Bootflat
    'js/vendor/jquery.js',
    'js/vendor/html5shiv.js',
    # 'js/vendor/icheck.min.js',
    'js/vendor/bootstrap.min.js',
    'js/vendor/angular.js',
    # Our JS
    'js/app.js',
    filters=js_filters,
    output='js/m2.js')
assets.register('js_all', js)

# - CSS
css = Bundle(
    # Bootstrap/Bootflat
    'css/bootstrap.min.css',
    'css/bootflat.min.css',<commit_msg>syntax fix<commit_after># -*- coding: UTF-8 -*-

from flask import Flask, render_template, g, request, session
from flask.ext.assets import Environment, Bundle
from webassets_iife import IIFE

from mgweb.flaskutils import logged_only, unlogged_only, redirect_for, title, \
    form2session, session2student

app = Flask(__name__)
app.config.from_pyfile('mgweb.cfg', silent=True)

# assets
assets = Environment(app)

js_filters = []
css_filters = []

if not app.config['DEBUG']:
    js_filters += [IIFE, 'closure_js']
    css_filters += ['cssmin']

# - JS
js = Bundle(
    # Bootstrap/Bootflat
    'js/vendor/jquery.js',
    'js/vendor/html5shiv.js',
    # 'js/vendor/icheck.min.js',
    'js/vendor/bootstrap.min.js',
    'js/vendor/angular.js',
    # Our JS
    'js/app.js',
    filters=js_filters,
    output='js/m2.js')
assets.register('js_all', js)

# - CSS
css = Bundle(
    # Bootstrap/Bootflat
    'css/bootstrap.min.css',
    'css/bootflat.min.css',
{'fraction_non_alphanumeric': 0.15064935064935064, 'fraction_numerical': 0.005194805194805195, 'mean_word_length': 3.674757281553398, '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': '6967708', 'n_tokens_mistral': 707, 'n_tokens_neox': 689, 'n_words': 134}