<commit_before>"""
Symfony 2 deployment

"""
from __future__ import with_statement

# Add install directory to the beginning of the include path
import sys
import os

if os.path.exists("app/config/deployment/custom.py"):
    sys.path[:0] = ["app/config/deployment"]

sys.path[:0] = ["vendor/hgg/sfdeploy/bin"]

from fabric.api import *
from fabric.contrib.files import *
from fabric.contrib.console import confirm
from fabric.colors import red, green
from datetime import date, timedelta
import time
import config
import git
import pear
import shell
import tools

try:
    import custom
except ImportError:
    print(red('Cannot import custom. Any custom fabric task will not be available.'))

def load_config():
    """
    Load the yaml configuration file into the env dictionary.
    This depends on the deployment_target being set and should typically get
    called from either dev() or prod().
    """
    env.update(config.load_yaml_config('app/config/deployment/config.yml',
               env.deployment_target))

@task
def dev():
    """
    Set the target to be the development environment and load the configuration
    for that environment.
    """
    env.deployment_target = 'dev'
    load_config()<commit_msg>Add missing import<commit_after>"""
Symfony 2 deployment

"""
from __future__ import with_statement

# Add install directory to the beginning of the include path
import sys
import os

if os.path.exists("app/config/deployment/custom.py"):
    sys.path[:0] = ["app/config/deployment"]

sys.path[:0] = ["vendor/hgg/sfdeploy/bin"]

from fabric.api import *
from fabric.contrib.files import *
from fabric.contrib.console import confirm
from fabric.colors import red, green
from datetime import date, timedelta
from operator import itemgetter
import time
import config
import git
import pear
import shell
import tools

try:
    import custom
except ImportError:
    print(red('Cannot import custom. Any custom fabric task will not be available.'))

def load_config():
    """
    Load the yaml configuration file into the env dictionary.
    This depends on the deployment_target being set and should typically get
    called from either dev() or prod().
    """
    env.update(config.load_yaml_config('app/config/deployment/config.yml',
               env.deployment_target))

@task
def dev():
    """
    Set the target to be the development environment and load the configuration
    for that environment.
    """
    env.deployment_target = 'dev'
    load_config()
{'fraction_non_alphanumeric': 0.08845999195818255, 'fraction_numerical': 0.0024125452352231603, 'mean_word_length': 3.868884540117417, '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': '1593903', 'n_tokens_mistral': 684, 'n_tokens_neox': 675, 'n_words': 259}