<commit_before>(function( w, $ ) {
	"use strict";
	var simple;

	function commonSetup(){
		$(document).trigger("enhance");
		simple = $( "#simple" ).data( "CharacterCounter" );
	}

	module( "Character Counter", {
		setup: commonSetup
	});

	test( "label counting", function(){
		var string = simple.$el[0].value = "123";
		simple.$el.trigger( "keyup" );
		equal(simple.$label.html(), (10 - string.length).toString());
	});
})(window, shoestring);<commit_msg>tests for max/min<commit_after>(function( w, $ ) {
	"use strict";
	var simple;

	function commonSetup(){
		$(document).trigger("enhance");
		simple = $( "#simple" ).data( "CharacterCounter" );
	}

	module( "Character Counter", {
		setup: commonSetup
	});

	test( "label max counting", function(){
		var string = simple.$el[0].value = "123";
		simple.characterCount();
		equal(simple.$label.html(), (simple.max - string.length).toString());
	});

	test( "past max counting", function(){
		var string = simple.$el[0].value = "1234567890";
		simple.characterCount();
		equal(simple.$label.html(), 0);
	});

	test( "label min counting", function(){
		var string = simple.$el[0].value = "1";
		simple.max = undefined;
		simple.characterCount();
		equal(simple.$label.html(), (simple.min - string.length).toString());
	});

	test( "past min counting reports 0", function(){
		var string = simple.$el[0].value = "123";
		simple.max = undefined;
		simple.characterCount();
		equal(simple.$label.html(), 0);
	});
})(window, shoestring);
{'fraction_non_alphanumeric': 0.20673400673400674, 'fraction_numerical': 0.020202020202020204, 'mean_word_length': 4.503703703703704, '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': '3918562', 'n_tokens_mistral': 531, 'n_tokens_neox': 473, 'n_words': 110}