<commit_before>from fabric.api import *
from fabric.operations import local
from fabric.contrib.console import confirm
from time import localtime
import calendar
import fabric
import os

"""
Restarting is annoying because supervisord requires root to run start/stop :/
Everything else uses the unprivileged indabom user
"""

indabom_servers = {
    '172.16.31.10': {'type': ['prod', 'all', ]},
}


def help():
    print "usage: fab [dev|prod][:user] [deploy|restart|test|test_failfast|reqs_install|pip_install|migrate]"


def prod(user='indabom'):
    env.hosts = [
        '{0}@{1}'.format(
            user,
            h) for h in indabom_servers if 'prod' in indabom_servers[h]['type']]


def all():
    env.hosts = ['root@{0}'.format(
        h) for h in indabom_servers if 'all' in indabom_servers[h]['type']]


def update_time():
    run('ntpdate pool.ntp.org')<commit_msg>update server<commit_after>from fabric.api import *
from fabric.operations import local
from fabric.contrib.console import confirm
from time import localtime
import calendar
import fabric
import os

"""
Restarting is annoying because supervisord requires root to run start/stop :/
Everything else uses the unprivileged indabom user
"""

indabom_servers = {
    '172.16.58.3': {'type': ['prod', 'all', ]},
}


def help():
    print "usage: fab [dev|prod][:user] [deploy|restart|test|test_failfast|reqs_install|pip_install|migrate]"


def prod(user='indabom'):
    env.hosts = [
        '{0}@{1}'.format(
            user,
            h) for h in indabom_servers if 'prod' in indabom_servers[h]['type']]


def all():
    env.hosts = ['root@{0}'.format(
        h) for h in indabom_servers if 'all' in indabom_servers[h]['type']]


def update_time():
    run('ntpdate pool.ntp.org')
{'fraction_non_alphanumeric': 0.13757816941444, 'fraction_numerical': 0.013075611142694713, 'mean_word_length': 3.9717514124293785, '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': '5025499', 'n_tokens_mistral': 609, 'n_tokens_neox': 593, 'n_words': 162}