<commit_before>var uuid  = require("uuid/v4");
var empty = require("is-empty");
var Ajv   = require("ajv");

// Reserved attributes names
const reserved = {
  type: "type",
  specversion: "specversion",
  source: "source",
  id: "id",
  time: "time",
  schemaurl: "schemaurl",
  contenttype: "contenttype",
  data: "data"
};

const schema = require("../../ext/spec_0_2.json");

// Default options
const ajv = new Ajv();<commit_msg>Changed JSON schema validator's options to remove warning: "$ref: keywords ignored in schema at path "#" "<commit_after>var uuid  = require("uuid/v4");
var empty = require("is-empty");
var Ajv   = require("ajv");

// Reserved attributes names
const reserved = {
  type: "type",
  specversion: "specversion",
  source: "source",
  id: "id",
  time: "time",
  schemaurl: "schemaurl",
  contenttype: "contenttype",
  data: "data"
};

const schema = require("../../ext/spec_0_2.json");

const ajv = new Ajv({
  extendRefs: true //  validate all keywords in the schemas with $ref (the default behaviour in versions before 5.0.0)
});
{'fraction_non_alphanumeric': 0.16729678638941398, 'fraction_numerical': 0.008506616257088847, 'mean_word_length': 4.140776699029126, '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': '5356690', 'n_tokens_mistral': 352, 'n_tokens_neox': 347, 'n_words': 107}