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

/**
 *
 *
 *
 * @since 0.7.0
 */
class WFV_Messages {

  /**
   * _construct
   *
   * @param array $messages
   */
  function __construct( $messages ) {
    $this->set( $messages );
  }

  public function get( $property ) {
    return ( true === property_exists( $this, $property ) ) ? $this->$property : $this;
  }

  /**
   * Check if field/rule has custom message
   *
   * @since 0.7.0<commit_msg>fixes bug if there are no custom error messages<commit_after><?php defined( 'ABSPATH' ) or die();

/**
 *
 *
 *
 * @since 0.7.0
 */
class WFV_Messages {

  /**
   * _construct
   *
   * @param array $messages
   */
  function __construct( $messages ) {
    if( $messages ) {
      $this->set( $messages );
    }
  }

  public function get( $property ) {
    return ( true === property_exists( $this, $property ) ) ? $this->$property : $this;
  }

  /**
   * Check if field/rule has custom message
   *
   * @since 0.7.0
{'fraction_non_alphanumeric': 0.16940451745379878, 'fraction_numerical': 0.012320328542094456, 'mean_word_length': 2.482142857142857, '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': '3704874', 'n_tokens_mistral': 351, 'n_tokens_neox': 340, 'n_words': 83}