<commit_before>'use strict';

var Path = require('path');
var _ = require('lodash');
var loadPlugins = require('gulp-load-plugins');
var safeRequireDir = require('../helpers/safe_require_dir');
var log = require('gulp-util').log;

var defaults = {
	camelize: false,
	pattern: ['configurable-gulp-recipe-*'],
	replaceString: /^configurable[-.]gulp[-.]recipe[-.]/g
};

function ConfigurableRecipeRegistry(recipes) {
	this.recipes = recipes;
}

ConfigurableRecipeRegistry.prototype.size = function () {
	return _.size(this.recipes);
};

ConfigurableRecipeRegistry.prototype.lookup = function (name) {<commit_msg>ConfigurableRecipeRegistry.builder#npm(): make sure load from host modules's package.json<commit_after>'use strict';

var Path = require('path');
var _ = require('lodash');
var loadPlugins = require('gulp-load-plugins');
var safeRequireDir = require('../helpers/safe_require_dir');
var log = require('gulp-util').log;

var defaults = {
	camelize: false,
	config: process.cwd() + '/package.json',
	pattern: ['configurable-gulp-recipe-*'],
	replaceString: /^configurable[-.]gulp[-.]recipe[-.]/g
};

function ConfigurableRecipeRegistry(recipes) {
	this.recipes = recipes;
}

ConfigurableRecipeRegistry.prototype.size = function () {
	return _.size(this.recipes);
};

ConfigurableRecipeRegistry.prototype.lookup = function (name) {
{'fraction_non_alphanumeric': 0.16541916167664672, 'fraction_numerical': 0.0, 'mean_word_length': 5.891752577319588, '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': '118618', 'n_tokens_mistral': 431, 'n_tokens_neox': 426, 'n_words': 80}