<commit_before>import unipath
from fabric.api import *
from fabric.contrib import files

# Fab settings
env.hosts = ['ve.djangoproject.com']

# Deployment environment paths and settings and such.
env.deploy_base = unipath.Path('/home/www/djangoproject.com')
env.virtualenv = env.deploy_base
env.code_dir = env.deploy_base.child('src')
env.git_url = 'git://github.com/jacobian/djangoproject.com.git'

# FIXME: make a deploy branch in this repo to deploy against.
env.default_deploy_ref = 'origin/community_redux'

def deploy():
    """
    Full deploy: new code, update dependencies, migrate, and restart services.
    """
    deploy_code()
    update_dependencies()
    apache("restart")
    memcached("restart")

def quick_deploy():
    """
    Quick deploy: new code and an in-place reload.
    """
    deploy_code()
    apache("reload")

def apache(cmd):<commit_msg>Made the quick-deploy the "default" in the fabfile.<commit_after>import unipath
from fabric.api import *
from fabric.contrib import files

# Fab settings
env.hosts = ['ve.djangoproject.com']

# Deployment environment paths and settings and such.
env.deploy_base = unipath.Path('/home/www/djangoproject.com')
env.virtualenv = env.deploy_base
env.code_dir = env.deploy_base.child('src')
env.git_url = 'git://github.com/jacobian/djangoproject.com.git'

# FIXME: make a deploy branch in this repo to deploy against.
env.default_deploy_ref = 'origin/community_redux'

def full_deploy():
    """
    Full deploy: new code, update dependencies, migrate, and restart services.
    """
    deploy_code()
    update_dependencies()
    apache("restart")
    memcached("restart")

def deploy():
    """
    Quick deploy: new code and an in-place reload.
    """
    deploy_code()
    apache("reload")

def apache(cmd):
{'fraction_non_alphanumeric': 0.12169014084507042, 'fraction_numerical': 0.0, 'mean_word_length': 4.103448275862069, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6453537', 'n_tokens_mistral': 597, 'n_tokens_neox': 556, 'n_words': 148}