<commit_before>define(function (require, exports, module) { // jshint unused:false
  'use strict';

  var validator = require('validator');

  var defaults = {
    minLength: 8
  };

  var rules = {
    required: function (value) {
      return !validator.isNull(value);
    },

    email: function (value) {
      return validator.isEmail(value);
    },

    minLength: function (value, options) {
      return validator.isLength(value, options ? options.length : defaults.minLength);
    },

    alpha: function (value) {
      return validator.isAlpha(value);
    },

    before: function (value, options) {
      return validator.isBefore(value, options ? options.date : '');
    },

    match: function (value, options) {
      return validator.matches(value, options ? options.pattern : '');
    }
  };

  // expose public API
  exports = {
    defaults: defaults,
    rules: rules
  };
});<commit_msg>fix(plugins.validator): fix export to use<commit_after>define(function (require, exports, module) { // jshint unused:false
  'use strict';

  var validator = require('validator');

  var defaults = {
    minLength: 8
  };

  var rules = {
    required: function (value) {
      return !validator.isNull(value);
    },

    email: function (value) {
      return validator.isEmail(value);
    },

    minLength: function (value, options) {
      return validator.isLength(value, options ? options.length : defaults.minLength);
    },

    alpha: function (value) {
      return validator.isAlpha(value);
    },

    before: function (value, options) {
      return validator.isBefore(value, options ? options.date : '');
    },

    match: function (value, options) {
      return validator.matches(value, options ? options.pattern : '');
    }
  };

  // expose public API
  module.exports = {
    defaults: defaults,
    rules: rules
  };
});
{'fraction_non_alphanumeric': 0.13452188006482982, 'fraction_numerical': 0.0010804970286331713, 'mean_word_length': 2.8825995807127884, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1325645', 'n_tokens_mistral': 560, 'n_tokens_neox': 544, 'n_words': 134}