<commit_before>describe("jsx.js tests", function() {
	
	// Object extensions
	
	it("Object.isObject", function() {
		expect(Object.isObject(null)).toBe(false);
		expect(Object.isObject("test")).toBe(false);
		expect(Object.isObject(true)).toBe(false);
		expect(Object.isObject(1)).toBe(false);
		expect(Object.isObject({})).toBe(true);
		expect(Object.isObject(new Date())).toBe(true);
		expect(Object.isObject(function() { return "test"; })).toBe(true);
	});
	
	it("Object.isFunction", function() {
		expect(Object.isFunction(null)).toBe(false);
		expect(Object.isFunction("test")).toBe(false);
		expect(Object.isFunction(true)).toBe(false);
		expect(Object.isFunction(1)).toBe(false);
		expect(Object.isFunction({})).toBe(false);
		expect(Object.isFunction(new Date())).toBe(false);
		expect(Object.isFunction(function() { return "test"; })).toBe(true);
	});

	it("Object.isString", function() {
		expect(Object.isString(null)).toBe(false);
		expect(Object.isString("test")).toBe(true);
		expect(Object.isString(true)).toBe(false);
		expect(Object.isString(1)).toBe(false);
		expect(Object.isString({})).toBe(false);
		expect(Object.isString(new Date())).toBe(false);
		expect(Object.isString(function() { return "test"; })).toBe(false);
	});
});<commit_msg>more tests<commit_after>describe("jsx.js tests", function() {
	
	// Object extensions

	function foo() { return "foo"; }
	
	it("Object.isObject", function() {
		var negative = [null, "test", true, 1];
		negative.forEach(function(v) {
			expect(Object.isObject(v)).toBe(false);
		});
		var positive = [{}, new Date(), foo];
		positive.forEach(function(v) {
			expect(Object.isObject(v)).toBe(true);
		});
	});
	
	it("Object.isFunction", function() {
		var negative = [null, "test", true, 1, {}, new Date()];
		negative.forEach(function(v) {
			expect(Object.isFunction(v)).toBe(false);
		});
		expect(Object.isFunction(foo)).toBe(true);
	});

	it("Object.isString", function() {
		var negative = [null, true, 1, {}, new Date(), foo];
		negative.forEach(function(v) {
			expect(Object.isString(v)).toBe(false);
		});
		expect(Object.isString("test")).toBe(true);
	});

	it("Object.isNumber", function() {
		var negative = [null, true, "test", {}, new Date(), foo];
		negative.forEach(function(v) {
			expect(Object.isNumber(v)).toBe(false);
		});
		expect(Object.isNumber(1)).toBe(true);
		expect(Object.isNumber(3.14)).toBe(true);
	});

	// Boolean extensions

	it("Boolean.toBoolean", function() {
		var t = [true, 1, "test", {}, new Date(), foo];
		t.forEach(function(v) {
			expect(Boolean.toBoolean(v)).toBe(true);
		});
		var f = [false, 0, null, ""];
		f.forEach(function(v) {
			expect(Boolean.toBoolean(v)).toBe(false);
		});
	});

	// Number extensions

	it("Number.isNumber", function() {
		var negative = [null, true, "test", {}, new Date(), foo];
		negative.forEach(function(v) {
			expect(Number.isNumber(v)).toBe(false);
		});
		expect(Number.isNumber(1)).toBe(true);
		expect(Number.isNumber(3.14)).toBe(true);
	});

	// String extensions

	it("String.isString", function() {
		var negative = [null, true, 1, {}, new Date(), foo];
		negative.forEach(function(v) {
			expect(String.isString(v)).toBe(false);
		});
		expect(String.isString("test")).toBe(true);
	});

	// Function extensions

	it("Function.isFunction", function() {
		var negative = [null, "test", true, 1, {}, new Date()];
		negative.forEach(function(v) {
			expect(Function.isFunction(v)).toBe(false);
		});
		expect(Function.isFunction(foo)).toBe(true);
	});
});
{'fraction_non_alphanumeric': 0.2206679988581216, 'fraction_numerical': 0.005138452754781616, 'mean_word_length': 5.15817223198594, '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': '6665430', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1184, 'n_words': 178}