<commit_before><script type="text/javascript" charset="utf-8">
  var validator = new FormValidator('batch_edit', [{
    name: 'data[cat_id]',
    display: 'category ID',
    rules: 'alpha_numeric'
  }, {
    name: 'data[phone]',
    display: 'phone number',
    rules: 'alpha_numeric'
  }, {
    name: 'data[state]',
    display: 'state',
    rules: 'alpha'
  }, {
    name: 'venues[page_id]',
    display: 'page ID',
    rules: 'numeric|!callback_page_or_venue|!callback_min_change'
  }, {
    name: 'venues[venue_id]',
    display: 'venues',
    rules: '!callback_page_or_venue|!callback_min_change'
  }], function(errors, event) {
    var error_field = $("#error");
    if (errors.length > 0) {
      var error_array = [];
      $.each(errors, function(index, error) {
          error_array.push(error.message);
      });
      error_array = $.unique(error_array);
      var error_string = '';
      $.each(error_array, function(index, message) {
        error_string += message + '<br />';
      });
      error_field.html(error_string);
      error_field.show();
    }
    else error_field.hide();
  });
  validator.registerCallback('page_or_venue', function(value) {
      var venue_list = $("#venue_list_row textarea").val();
      var page_id = $("#page_id_row input").val();<commit_msg>Not validating state field anymore. Hello, Greater London!<commit_after><script type="text/javascript" charset="utf-8">
  var validator = new FormValidator('batch_edit', [{
    name: 'data[cat_id]',
    display: 'category ID',
    rules: 'alpha_numeric'
  }, {
    name: 'data[phone]',
    display: 'phone number',
    rules: 'alpha_numeric'
  },{
    name: 'venues[page_id]',
    display: 'page ID',
    rules: 'numeric|!callback_page_or_venue|!callback_min_change'
  }, {
    name: 'venues[venue_id]',
    display: 'venues',
    rules: '!callback_page_or_venue|!callback_min_change'
  }], function(errors, event) {
    var error_field = $("#error");
    if (errors.length > 0) {
      var error_array = [];
      $.each(errors, function(index, error) {
          error_array.push(error.message);
      });
      error_array = $.unique(error_array);
      var error_string = '';
      $.each(error_array, function(index, message) {
        error_string += message + '<br />';
      });
      error_field.html(error_string);
      error_field.show();
    }
    else error_field.hide();
  });
  validator.registerCallback('page_or_venue', function(value) {
      var venue_list = $("#venue_list_row textarea").val();
      var page_id = $("#page_id_row input").val();
{'fraction_non_alphanumeric': 0.16673174541194846, 'fraction_numerical': 0.0015618898867629833, 'mean_word_length': 3.372013651877133, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5867581', 'n_tokens_mistral': 845, 'n_tokens_neox': 838, 'n_words': 156}