<commit_before>// Creates a new element from the given elementHtml in a sandbox before each
// tests defined in the tests function. It initializes it as a tags input with
// the given options.
function testTagsInput(elementHtml, options, tests) {
	if (typeof options === 'function') {
		tests = options;
		options = undefined;
	}

	describe(elementHtml, function() {
		var $sandbox;

		beforeEach(function() {
			$sandbox = $('<div />').appendTo($('body'));
			this.$element = $(elementHtml).appendTo($sandbox);
			this.$element.tagsinput(options);
		});

		afterEach(function() {
			this.$element.tagsinput('destroy');
			$sandbox.remove();
		});

		tests();
	});
}<commit_msg>Show options in name of test suite<commit_after>// Creates a new element from the given elementHtml in a sandbox before each
// tests defined in the tests function. It initializes it as a tags input with
// the given options.
function testTagsInput(elementHtml, options, tests) {
	if (typeof options === 'function') {
		tests = options;
		options = undefined;
	}

	describe(elementHtml + ' (options: ' + JSON.stringify(options, function(name, value) { return (typeof value === "function") ? value.toString() : value; }) + ')', function() {
		var $sandbox;

		beforeEach(function() {
			$sandbox = $('<div />').appendTo($('body'));
			this.$element = $(elementHtml).appendTo($sandbox);
			this.$element.tagsinput(options);
		});

		afterEach(function() {
			this.$element.tagsinput('destroy');
			$sandbox.remove();
		});

		tests();
	});
}
{'fraction_non_alphanumeric': 0.16084377059986815, 'fraction_numerical': 0.0, 'mean_word_length': 4.23448275862069, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1150205', 'n_tokens_mistral': 498, 'n_tokens_neox': 442, 'n_words': 132}