<commit_before><?php
namespace WFV;
defined( 'ABSPATH' ) or die();

/**
 *
 *
 * @since 0.8.0
 */
class Messages implements ValidationInterface {

  use AccessorTrait;
  use MutatorTrait;

  /**
   * __construct
   *
   * @since 0.8.0
   *
   */
  function __construct( $messages = null ) {
    if( $messages ) {
      $this->set( $messages );
    }
  }

  /**
   * Check if a fields rule has custom message
   *
   * @since 0.7.0
   *
   * @param string $field
   * @param string $rule
   * @return bool
   */
  public function exist( $field, $rule ) {
    if( property_exists( $this, $field ) && array_key_exists( $rule, $this->$field ) ) {
      return true;
    }
    return false;
  }
}
<commit_msg>Messages - phpdoc - added param doc for construct<commit_after><?php
namespace WFV;
defined( 'ABSPATH' ) or die();

/**
 *
 *
 * @since 0.8.0
 */
class Messages implements ValidationInterface {

  use AccessorTrait;
  use MutatorTrait;

  /**
   * __construct
   *
   * @since 0.8.0
   *
   * @param array (optional) $messages
   */
  function __construct( $messages = null ) {
    if( $messages ) {
      $this->set( $messages );
    }
  }

  /**
   * Check if a fields rule has custom message
   *
   * @since 0.7.0
   *
   * @param string $field
   * @param string $rule
   * @return bool
   */
  public function exist( $field, $rule ) {
    if( property_exists( $this, $field ) && array_key_exists( $rule, $this->$field ) ) {
      return true;
    }
    return false;
  }
}

{'fraction_non_alphanumeric': 0.14767363452461227, 'fraction_numerical': 0.012137559002022926, 'mean_word_length': 2.365079365079365, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5476402', 'n_tokens_mistral': 538, 'n_tokens_neox': 522, 'n_words': 134}