<commit_before><?php

if (!file_exists('deploy-config.php')) {
    exit('No SSH config file found');
}

$sshConfig = require 'deploy-config.php';

require 'recipe/composer.php';

server('prod', 'web461.webfaction.com', 22)
    ->user('zzdev')
    ->identityFile($sshConfig['public'], $sshConfig['private'], $sshConfig['passphrase'])
    ->stage('webfaction')
    ->env('branch', 'master')
    ->env('deploy_path', '/home/zzdev/webapps/exceptioneer_src');

task('deploy:vendors', function () {
    if (commandExist('composer')) {
        $composer = 'composer';
    } else {
        run("cd {{release_path}} && curl -sS https://getcomposer.org/installer | php55");
        $composer = 'php55 composer.phar';
    }

    run("cd {{release_path}} && {{env_vars}} $composer {{composer_options}}");

})->desc('Installing vendors');

set('repository', '<EMAIL>:psimone/exceptioneer.git');<commit_msg>no message<commit_after><?php

if (!file_exists('deploy-config.php')) {
    exit('No SSH config file found');
}

$sshConfig = require 'deploy-config.php';

require 'recipe/common.php';

set('shared_dirs', ['public/uploads']);
server('prod', 'web461.webfaction.com', 22)
    ->user('zzdev')
    ->identityFile($sshConfig['public'], $sshConfig['private'], $sshConfig['passphrase'])
    ->stage('webfaction')
    ->env('branch', 'master')
    ->env('deploy_path', '/home/zzdev/webapps/exceptioneer_src');

task('deploy:vendors', function () {
    if (commandExist('composer')) {
        $composer = 'composer';
    } else {
        run("cd {{release_path}} && curl -sS https://getcomposer.org/installer | php55");
        $composer = 'php55 composer.phar';
    }

    run("cd {{release_path}} && {{env_vars}} $composer {{composer_options}}");

})->desc('Installing vendors');


task('deploy', [
    'deploy:prepare',
    'deploy:release',
    'deploy:update_code',
    'deploy:shared',
    'deploy:vendors',
    'deploy:symlink',
    'cleanup',
])->desc('Deploy your project');
after('deploy', 'success');

set('repository', '<EMAIL>:psimone/exceptioneer.git');
{'fraction_non_alphanumeric': 0.21257922964407605, 'fraction_numerical': 0.008776206728425159, 'mean_word_length': 4.516129032258065, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 18, 'https://': 2, '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': '4168236', 'n_tokens_mistral': 729, 'n_tokens_neox': 688, 'n_words': 115}