<commit_before># -*- coding: utf-8 -*-
from os.path import abspath, join

from flask import Flask, render_template, request, g, abort
from flask.ext.babel import Babel
from flask.ext.assets import Environment, Bundle

import config


app = Flask(__name__)
app.config.from_object(config)
assets = Environment(app)
babel = Babel(app)

assets.config['libsass_includes'] = [app.config['BOWER_PATH'], ]

style = Bundle('css/style.scss',
               filters='libsass',
               output='css/style.css',
               depends='css/*/*.scss')
assets.register('localstyle', style)

purecss = Bundle('bower_components/pure/base-min.css',
                 'bower_components/pure/buttons-core-min.css',
                 'bower_components/pure/buttons-min.css',
                 'bower_components/pure/forms-min.css',
                 filters='cssmin',
                 output='css/pure.css')
assets.register('purecss', purecss)

@app.before_request
def before():
    if request.view_args and 'lang' in request.view_args:
        if request.view_args['lang'] not in app.config['LANGUAGES']:<commit_msg>minify the local CSS style<commit_after># -*- coding: utf-8 -*-
from os.path import abspath, join

from flask import Flask, render_template, request, g, abort
from flask.ext.babel import Babel
from flask.ext.assets import Environment, Bundle

import config


app = Flask(__name__)
app.config.from_object(config)
assets = Environment(app)
babel = Babel(app)

assets.config['libsass_includes'] = [app.config['BOWER_PATH'], ]

style = Bundle('css/style.scss',
               filters='libsass, cssmin',
               output='css/style.css',
               depends='css/*/*.scss')
assets.register('localstyle', style)

purecss = Bundle('bower_components/pure/base-min.css',
                 'bower_components/pure/buttons-core-min.css',
                 'bower_components/pure/buttons-min.css',
                 'bower_components/pure/forms-min.css',
                 filters='cssmin',
                 output='css/pure.css')
assets.register('purecss', purecss)

@app.before_request
def before():
    if request.view_args and 'lang' in request.view_args:
        if request.view_args['lang'] not in app.config['LANGUAGES']:
{'fraction_non_alphanumeric': 0.13576905728461885, 'fraction_numerical': 0.0009021199819576004, 'mean_word_length': 3.0474452554744524, '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': '4068756', 'n_tokens_mistral': 705, 'n_tokens_neox': 668, 'n_words': 136}