<commit_before>var _ = require("lodash");
var makeCouchDB = require("../");

exports.BASE_URL = process.env.COUCHDB_URL || 'http://localhost:5984';

var auth = process.env.COUCHDB_AUTH;
if (auth) {
	auth = auth.split(":");
	exports.HTTP_AUTH = {
		username: auth[0],
		password: <PASSWORD>(1).join(":")
	};
}

exports.setup = function(opts, cb) {
	if (typeof opts === "function") {
		cb = opts;
		opts = null;
	}

	return makeCouchDB(_.assign({
		baseURl: exports.BASE_URL,
		auth: exports.HTTP_AUTH
	}, opts), cb);
};
<commit_msg>chore: changed test util setup name<commit_after>var _ = require("lodash");
var makeCouchDB = require("../");

exports.BASE_URL = process.env.COUCHDB_URL || 'http://localhost:5984';

var auth = process.env.COUCHDB_AUTH;
if (auth) {
	auth = auth.split(":");
	exports.HTTP_AUTH = {
		username: auth[0],
		password: <PASSWORD>(1).<PASSWORD>(":")
	};
}

exports.create = function(opts, cb) {
	if (typeof opts === "function") {
		cb = opts;
		opts = null;
	}

	return makeCouchDB(_.assign({
		baseURl: exports.BASE_URL,
		auth: exports.HTTP_AUTH
	}, opts), cb);
};

{'fraction_non_alphanumeric': 0.1915673693858845, 'fraction_numerical': 0.010999083409715857, 'mean_word_length': 4.300970873786408, 'pattern_counts': {'":': 4, '<': 6, '<?xml version=': 0, '>': 6, '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': '6365520', 'n_tokens_mistral': 436, 'n_tokens_neox': 415, 'n_words': 83}