<commit_before># -*- coding: utf-8 -*-
from __future__ import absolute_import
import os

from invoke import task, run

from website import settings

HERE = os.path.dirname(os.path.abspath(__file__))
WHEELHOUSE_PATH = os.environ.get('WHEELHOUSE')


@task()
def manage(cmd_str):
    """Take command string for manage commands

    :param cmd_str: ex. runserver, migrate, "crontab add"
    """
    manage_cmd = os.path.join(HERE, '..', 'manage.py')
    env = 'DJANGO_SETTINGS_MODULE="admin.base.settings"'
    cmd = '{} python {} {}'.format(env, manage_cmd, cmd_str)
    run(cmd, echo=True, pty=True)


@task()
def assets(dev=False, watch=False):
    """Install and build static assets for admin.
<commit_msg>Clean up<commit_after># -*- coding: utf-8 -*-
from __future__ import absolute_import
import os

from invoke import task, run

from website import settings

HERE = os.path.dirname(os.path.abspath(__file__))
WHEELHOUSE_PATH = os.environ.get('WHEELHOUSE')


@task()
def manage(cmd_str):
    """Take command string for manage commands

    :param cmd_str: ex. runserver, migrate, "migrate module"
    """
    manage_cmd = os.path.join(HERE, '..', 'manage.py')
    env = 'DJANGO_SETTINGS_MODULE="admin.base.settings"'
    cmd = '{} python {} {}'.format(env, manage_cmd, cmd_str)
    run(cmd, echo=True, pty=True)


@task()
def assets(dev=False, watch=False):
    """Install and build static assets for admin.

{'fraction_non_alphanumeric': 0.14609929078014183, 'fraction_numerical': 0.0014184397163120568, 'mean_word_length': 4.225925925925926, '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': '7269050', 'n_tokens_mistral': 491, 'n_tokens_neox': 485, 'n_words': 125}