<commit_before>if (typeof module !== 'undefined' && module.exports) {
  var expect = require('expect.js');
  var Amanda = require('../../../../dist/latest.js');
}

/**
 * Format
 * --------------------
 */
suite('JSON/Attribute/format#ip', function() {

  var count = 0;

  /**
   * Schema
   */
  var schema = {
    format: 'ip'
  };

  /**
   * Validator
   */
  var Validator = new Amanda('json');

  test('should not return an error', function() {
    [
      '2001:0db8:85a3:0000:0000:8a2e:0370:7334',
      '172.16.31.10',
      '192.168.127.12',
      '172.16.31.10',
      '192.168.127.12',
      '172.16.31.10',
      '172.16.58.3',
      '192.168.3.11',
      '172.16.58.3',
      '192.168.3.11',
      '172.16.31.10'
    ].forEach(function(data) {
      Validator.validate(data, schema, function(error) {
        count += 1;
        expect(error).to.not.be.ok();
      });  
    });
  });

  test('should run 11 times', function() {
    expect(count).to.be.eql(11);
  });

};<commit_msg>Fix a typo in the ‘ip’ test suite<commit_after>if (typeof module !== 'undefined' && module.exports) {
  var expect = require('expect.js');
  var Amanda = require('../../../../dist/latest.js');
}

/**
 * Format
 * --------------------
 */
suite('JSON/Attribute/format#ip', function() {

  var count = 0;

  /**
   * Schema
   */
  var schema = {
    format: 'ip'
  };

  /**
   * Validator
   */
  var Validator = new Amanda('json');

  test('should not return an error', function() {
    [
      '2001:0db8:85a3:0000:0000:8a2e:0370:7334',
      '172.16.31.10',
      '192.168.127.12',
      '172.16.31.10',
      '192.168.127.12',
      '172.16.31.10',
      '172.16.58.3',
      '192.168.3.11',
      '172.16.58.3',
      '192.168.3.11',
      '172.16.31.10'
    ].forEach(function(data) {
      Validator.validate(data, schema, function(error) {
        count += 1;
        expect(error).to.not.be.ok();
      });  
    });
  });

  test('should run 11 times', function() {
    expect(count).to.be.eql(11);
  });

});
{'fraction_non_alphanumeric': 0.23648983639067922, 'fraction_numerical': 0.12394645513138325, 'mean_word_length': 1.9764011799410028, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 20, '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': '6325885', 'n_tokens_mistral': 909, 'n_tokens_neox': 754, 'n_words': 121}