<commit_before>#!/usr/bin/env python
from __future__ import (
    absolute_import, division, print_function, with_statement,
    unicode_literals)

import os.path as p
import itertools as it

from subprocess import call
from operator import itemgetter

from pprint import pprint
from flask import current_app as app
from flask.ext.script import Manager
from tabutils.fntools import chunk

from app import create_app, db, utils, models
from app.models import BaseMixin


manager = Manager(create_app)
manager.add_option('-m', '--mode', default='Development')
manager.main = manager.run

_basedir = p.dirname(__file__)


@manager.command
def check():
    """Check staged changes for lint errors"""
    call(p.join(_basedir, 'bin', 'check-stage'), shell=True)


@manager.command
def lint():
    """Check style with flake8"""
    call('flake8')


@manager.command
def pipme():
    """Install requirements.txt"""
    call('sudo pip install -r requirements.txt', shell=True)

<commit_msg>Fix lint error<commit_after>#!/usr/bin/env python
from __future__ import (
    absolute_import, division, print_function, with_statement,
    unicode_literals)

import os.path as p
import itertools as it

from subprocess import call
from operator import itemgetter

from pprint import pprint
from flask import current_app as app
from flask.ext.script import Manager
from tabutils.fntools import chunk

from app import create_app, db, utils
from app.models import BaseMixin


manager = Manager(create_app)
manager.add_option('-m', '--mode', default='Development')
manager.main = manager.run

_basedir = p.dirname(__file__)


@manager.command
def check():
    """Check staged changes for lint errors"""
    call(p.join(_basedir, 'bin', 'check-stage'), shell=True)


@manager.command
def lint():
    """Check style with flake8"""
    call('flake8')


@manager.command
def pipme():
    """Install requirements.txt"""
    call('sudo pip install -r requirements.txt', shell=True)


{'fraction_non_alphanumeric': 0.10884006131834441, 'fraction_numerical': 0.002043944813490036, 'mean_word_length': 4.758823529411765, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5464698', 'n_tokens_mistral': 612, 'n_tokens_neox': 586, 'n_words': 193}