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

use WFV\Rules;
use WFV\Input;
use WFV\Messages;
use WFV\Errors;
use WFV\Validator;

/**
 *
 *
 * @since 0.8.2
 */
class ValidationFactory {

  /**
   *
   *
   * @since 0.8.2
   * @param array $form
   *
   */
  public static function create( &$form ){
    $rules = new Rules();
    $input = new Input( $form['action'] );
    $messages = new Messages( $form['messages'] );<commit_msg>ValidationFactory - phpdoc - something is better than nothing...<commit_after><?php
namespace WFV\Factory;
defined( 'ABSPATH' ) or die();

use WFV\Rules;
use WFV\Input;
use WFV\Messages;
use WFV\Errors;
use WFV\Validator;

/**
 *
 *
 * @since 0.8.2
 */
class ValidationFactory {

  /**
   * Build an instance of WFV\Validator as described by $form
   *
   * @since 0.8.2
   * @param array $form
   *
   */
  public static function create( &$form ){
    $rules = new Rules();
    $input = new Input( $form['action'] );
    $messages = new Messages( $form['messages'] );
{'fraction_non_alphanumeric': 0.16439688715953307, 'fraction_numerical': 0.011673151750972763, 'mean_word_length': 3.01953125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1536700', 'n_tokens_mistral': 383, 'n_tokens_neox': 360, 'n_words': 99}