<commit_before><?php
/**
 * Deployer plugin for PHPCI
 * @see http://deployer.org
 *
 * @copyright
 * @license MIT
 * @license https://github.com/ket4yii/phpci-deployer-plugin/blob/master/LICENSE
 * @link https://github.com/ket4yii/phpci-deployer-plugin
 */

namespace ket4yii\PHPCI\Deployer\Plugin;

use PHPCI\Builder;
use PHPCI\Model\Build;

class Deployer implements \PHPCI\Plugin {

  protected $phpci; 
  protected $build;
  protected $config;
  protected $dep;
  protected $branch;
  
  /**
   * Standard Constructor
   *
   * $options['directory'] Output Directory. Default: %BUILDPATH%
   * $options['filename']  Phar Filename. Default: build.phar
   * $options['regexp']    Regular Expression Filename Capture. Default: /\.php$/
   * $options['stub']      Stub Content. No Default Value
   *
   * @param Builder $phpci   PHPCI instance 
   * @param Build   $build   Build instance 
   * @param array   $options Plugin options 
   */
  public function __construct(
      Builder $phpci,
      Build $build,
      array $options = array()
  ) {
    $this->phpci = $phpci;
    $this->build = $build; 
    $this->config = $options;

    $this->dep = $this->phpci->findBinary('dep');
    $this->branch = $this->build->getBranch();
  }

  /**
   * PHPCI plugin executor.
   *
   * @return bool Did plugin execute successfully 
   */
  public function execute() {
    $task = 'deploy'; //default task is deploy
    $verbosity = ''; //default verbosity is normal

    if (($validationResult = $this->validateConfig()) === NULL) {
      $this->phpci->log($validationResult['message']);<commit_msg>Fixed bug with wrong condition in validation<commit_after><?php
/**
 * Deployer plugin for PHPCI
 * @see http://deployer.org
 *
 * @copyright
 * @license MIT
 * @license https://github.com/ket4yii/phpci-deployer-plugin/blob/master/LICENSE
 * @link https://github.com/ket4yii/phpci-deployer-plugin
 */

namespace ket4yii\PHPCI\Deployer\Plugin;

use PHPCI\Builder;
use PHPCI\Model\Build;

class Deployer implements \PHPCI\Plugin {

  protected $phpci; 
  protected $build;
  protected $config;
  protected $dep;
  protected $branch;
  
  /**
   * Standard Constructor
   *
   * $options['directory'] Output Directory. Default: %BUILDPATH%
   * $options['filename']  Phar Filename. Default: build.phar
   * $options['regexp']    Regular Expression Filename Capture. Default: /\.php$/
   * $options['stub']      Stub Content. No Default Value
   *
   * @param Builder $phpci   PHPCI instance 
   * @param Build   $build   Build instance 
   * @param array   $options Plugin options 
   */
  public function __construct(
      Builder $phpci,
      Build $build,
      array $options = array()
  ) {
    $this->phpci = $phpci;
    $this->build = $build; 
    $this->config = $options;

    $this->dep = $this->phpci->findBinary('dep');
    $this->branch = $this->build->getBranch();
  }

  /**
   * PHPCI plugin executor.
   *
   * @return bool Did plugin execute successfully 
   */
  public function execute() {
    $task = 'deploy'; //default task is deploy
    $verbosity = ''; //default verbosity is normal

    if (($validationResult = $this->validateConfig()) !== NULL) {
      $this->phpci->log($validationResult['message']);
{'fraction_non_alphanumeric': 0.14511627906976743, 'fraction_numerical': 0.0018604651162790699, 'mean_word_length': 3.1200510855683268, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, 'https://': 4, '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': '2804593', 'n_tokens_mistral': 1039, 'n_tokens_neox': 1010, 'n_words': 249}