<commit_before>var util = require('util');
var path = require('path');
var fs = require('fs');
var debug = require('debug')('Container');
var esprima = require('esprima');
var CountingSignaller = require('./CountingSignaller.js');
var readJson = require('read-package-json');

module.exports = Container;

function Container(deps, searchPaths) {
	// the dependencies are not kept in the registry, we use the module system for that
	// registry is only used to track metadata
	this._registry = {};
	this._initSearchPaths();
	this._autoInjectFunction = 'flameInject';
}


/*
	inject stuff to a target function using its arguments as the names of the dependencies.

	The first attempt to load a dependency is to naively require it by its name,
	if that fails the container will try to look for it in its search paths.<commit_msg>remove unused require<commit_after>var util = require('util');
var path = require('path');
var fs = require('fs');
var debug = require('debug')('Container');
var esprima = require('esprima');
var CountingSignaller = require('./CountingSignaller.js');

module.exports = Container;

function Container(deps, searchPaths) {
	// the dependencies are not kept in the registry, we use the module system for that
	// registry is only used to track metadata
	this._registry = {};
	this._initSearchPaths();
	this._autoInjectFunction = 'flameInject';
}


/*
	inject stuff to a target function using its arguments as the names of the dependencies.

	The first attempt to load a dependency is to naively require it by its name,
	if that fails the container will try to look for it in its search paths.
{'fraction_non_alphanumeric': 0.10154798761609907, 'fraction_numerical': 0.0, 'mean_word_length': 4.792114695340501, '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': '7010257', 'n_tokens_mistral': 433, 'n_tokens_neox': 436, 'n_words': 192}