<commit_before>from fabric.api import local
import os,sys

def manage():
    # command = raw_input("Enter manage command:")
    local('./src/manage.py %s'%sys.argv[2])

def untrack():
    local('git add -A')

def migrate():
    local('heroku maintenance:on')
    local('heroku run python src/manage.py makemigrations')
    local('heroku run python src/manage.py migrate')
    local('heroku maintenance:off')


def git():
    local('git pull origin master')

def heroku():
    local('heroku maintenance:on')
    local('git push -f heroku master')
    local('heroku maintenance:off')

def deploy():
    local('git add .')
    print "Enter the git commit comment: "
    comment = raw_input()
    local(' git commit -m "%s"'%comment)
    local('git push origin master')
    local('heroku maintenance:on')
    local('git push heroku master')
    local('heroku maintenance:off')

def runserver():
    local('python src/manage.py runserver 0.0.0.0:8000')

def dump():
    from os.path import join,dirname,exists
    import environ
    env = environ.Env()

    # Ideally move env file should be outside the git repo
    # i.e. BASE_DIR.parent.parent
    env_file = join(dirname('src/movie_task/settings/'), 'local.env')
    if exists(env_file):
        environ.Env.read_env(str(env_file))<commit_msg>fabfile was updated<commit_after>from fabric.api import local
import os,sys

def manage():
    # command = raw_input("Enter manage command:")
    local('./src/manage.py %s'%sys.argv[2])

def untrack():
    local('git add -A')

def migrate():
    local('heroku maintenance:on')
    local('heroku run python src/manage.py makemigrations')
    local('heroku run python src/manage.py migrate')
    local('heroku maintenance:off')


def git():
    local('git pull origin master')

def heroku():
    local('heroku maintenance:on')
    local('git push -f heroku master')
    local('heroku maintenance:off')

def deploy():
    local('git add .')
    print "Enter the git commit comment: "
    comment = raw_input()
    local(' git commit -m "%s"'%comment)
    local('git push origin master')
    local('heroku maintenance:on')
    local('git push heroku master')
    local('heroku maintenance:off')

def runserver():
    local('python src/manage.py runserver 0.0.0.0:8000')

def dump():
    from os.path import join,dirname,exists
    import environ
    env = environ.Env()

    # Ideally move env file should be outside the git repo
    # i.e. BASE_DIR.parent.parent
    env_file = join(dirname('src/mdb/settings/'), 'local.env')
    if exists(env_file):
        environ.Env.read_env(str(env_file))
{'fraction_non_alphanumeric': 0.1385985288424313, 'fraction_numerical': 0.006968641114982578, 'mean_word_length': 3.5896980461811725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3766456', 'n_tokens_mistral': 836, 'n_tokens_neox': 808, 'n_words': 231}