<commit_before>var cp = require('child_process'),
	fs = require('fs'),
	path = require('path'),

	TS_TIME_TO_EXEC = 'Time to exec',

	ADVK_CONFIG_FILE = '.advk.json',

	cwd = process.cwd();

console.time(TS_TIME_TO_EXEC);

function NO_OP() {}

function isExistingDirectory(dir, callback) {
	fs.exists(dir, function(dirExists) {
		if (!dirExists) {
			callback(null, false);
			return;
		}

		fs.stat(dir, function(err, stats) {
			if (err) {
				callback(err);
			} else {
				callback(null, stats.isDirectory());
			}
		});
	});
}

function findProperties(dir, callback) {
	var propsFile = path.join(dir, ADVK_CONFIG_FILE);

	function next() {
		var parentDir = path.join(dir, '../');
		if (parentDir === dir) {
			callback('No .advk.json file found in the folder heirarchy');
		} else {
			findProperties(parentDir, callback);
		}
	}

	fs.exists(propsFile, function(exists) {
		if (!exists) {
			return next();
		}
<commit_msg>Fixed typo in output message<commit_after>var cp = require('child_process'),
	fs = require('fs'),
	path = require('path'),

	TS_TIME_TO_EXEC = 'Time to exec',

	ADVK_CONFIG_FILE = '.advk.json',

	cwd = process.cwd();

console.time(TS_TIME_TO_EXEC);

function NO_OP() {}

function isExistingDirectory(dir, callback) {
	fs.exists(dir, function(dirExists) {
		if (!dirExists) {
			callback(null, false);
			return;
		}

		fs.stat(dir, function(err, stats) {
			if (err) {
				callback(err);
			} else {
				callback(null, stats.isDirectory());
			}
		});
	});
}

function findProperties(dir, callback) {
	var propsFile = path.join(dir, ADVK_CONFIG_FILE);

	function next() {
		var parentDir = path.join(dir, '../');
		if (parentDir === dir) {
			callback('No .advk.json file found in the folder hierarchy');
		} else {
			findProperties(parentDir, callback);
		}
	}

	fs.exists(propsFile, function(exists) {
		if (!exists) {
			return next();
		}

{'fraction_non_alphanumeric': 0.16337426588360918, 'fraction_numerical': 0.0, 'mean_word_length': 3.8675324675324676, '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': '3973699', 'n_tokens_mistral': 744, 'n_tokens_neox': 666, 'n_words': 142}