<commit_before><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Deploy extends CI_Controller {

	public function __construct() {
		parent::__construct();

	}

public function index() {

$LOCAL_ROOT='/var/www/digesis';
$LOCAL_REPO_NAME="digesis";
$LOCAL_REPO="{$LOCAL_ROOT}/{$LOCAL_REPO_NAME}";
$REMOTE_REPO="https://github.com/digesis2017/digesis.git";
$DESIRED_BRANCH="master";

if (file_exists($LOCAL_ROOT)){
	echo 'paso1';
	shell_exec("rm -rf {$LOCAL_REPO_NAME}");
}

if (file_exists($LOCAL_REPO)):
	echo 'paso2';
  echo shell_exec("cd {$LOCAL_REPO} && git pull");

else :  
  echo shell_exec("cd {$LOCAL_ROOT} && git clone {$REMOTE_REPO} {$LOCAL_REPO_NAME} && cd {$LOCAL_REPO} && git checkout {$DESIRED_BRANCH}");
echo 'paso3';
endif;

date_default_timezone_set('America/Lima');
die("done " . date('Y-m-d h:i:s a', time()) . "\n"  ) ;


}
}<commit_msg>cambios<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Deploy extends CI_Controller {

	public function __construct() {
		parent::__construct();

	}

public function index() {

$LOCAL_ROOT='/var/www/digesis';
$LOCAL_REPO_NAME="digesis";
$LOCAL_REPO="{$LOCAL_ROOT}/{$LOCAL_REPO_NAME}";
$REMOTE_REPO="https://github.com/digesis2017/digesis.git";
$DESIRED_BRANCH="master";

if (file_exists($LOCAL_ROOT)){
	echo 'paso1';
	shell_exec("rm -rf {$LOCAL_REPO_NAME}");
}

if (file_exists($LOCAL_REPO)):
	echo 'paso2';
  echo shell_exec("cd {$LOCAL_REPO} && git pull");

else :  
  echo shell_exec("cd {$LOCAL_ROOT} && git clone {$REMOTE_REPO} {$LOCAL_REPO_NAME} && cd {$LOCAL_REPO} && git checkout {$DESIRED_BRANCH}");
echo "cd {$LOCAL_ROOT} && git clone {$REMOTE_REPO} {$LOCAL_REPO_NAME} && cd {$LOCAL_REPO} && git checkout {$DESIRED_BRANCH}";
endif;

date_default_timezone_set('America/Lima');
die("done " . date('Y-m-d h:i:s a', time()) . "\n"  ) ;


}
}
{'fraction_non_alphanumeric': 0.18943436499466382, 'fraction_numerical': 0.006937033084311633, 'mean_word_length': 6.32421875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '649969', 'n_tokens_mistral': 749, 'n_tokens_neox': 715, 'n_words': 136}