<commit_before>module.exports = new Interface();

function Interface() {
	var env = new (require('./environment'))();

	this.compile = function(schema) {
		if (schema.__schemai) { return schema.__schemai; }

		schema.__schemai = new SchemaInterface(env.compile(schema));
		return schema.__schemai;
	};

	this.validate = function(schema, data, opts) {
		return this.compile(schema).validate(data, opts);
	};

	this.environment = function() { return new Interface(); };

	this.addTypeCoerce = env.addTypeCoerce.bind(env);
	this.addType = env.addType.bind(env);
	this.addFormat = env.addFormat.bind(env);
	this.addValidator = env.addValidator.bind(env);

	require('./variables').apply(env);
	require('./types').apply(env);
	require('./formats').apply(env);
	require('./validators').apply(env);<commit_msg>addVariable<commit_after>module.exports = new Interface();

function Interface() {
	var env = new (require('./environment'))();

	this.compile = function(schema) {
		if (schema.__schemai) { return schema.__schemai; }

		schema.__schemai = new SchemaInterface(env.compile(schema));
		return schema.__schemai;
	};

	this.validate = function(schema, data, opts) {
		return this.compile(schema).validate(data, opts);
	};

	this.environment = function() { return new Interface(); };

	this.addTypeCoerce = env.addTypeCoerce.bind(env);
	this.addType = env.addType.bind(env);
	this.addFormat = env.addFormat.bind(env);
	this.addValidator = env.addValidator.bind(env);
	this.addVaraible = env.addVariable.bind(env);

	require('./variables').apply(env);
	require('./types').apply(env);
	require('./formats').apply(env);
	require('./validators').apply(env);
{'fraction_non_alphanumeric': 0.17647058823529413, 'fraction_numerical': 0.0, 'mean_word_length': 5.25, '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': '7266294', 'n_tokens_mistral': 542, 'n_tokens_neox': 511, 'n_words': 89}