<commit_before>
console.log("HERE", test);

test("TinyColor initialization", function() {
	ok ( typeof tinycolor != "undefined", "tinycolor is initialized on the page" );
	ok ( typeof tinycolor("red") == "object", "tinycolor is able to be instantiated." );
});


module("Color translations");

test("Named colors", function() {
	equals (tinycolor("red").toHexCss(), "#ff0000", "red matches hex");
});

test("RGB colors", function() {
	equals (tinycolor("rgb 255 0 0").toHexCss(), "#ff0000", "spaced input");
	equals (tinycolor("rgb(255, 0, 0)").toHexCss(), "#ff0000", "parenthesized input");
	equals (tinycolor("rgb (255, 0, 0)").toHexCss(), "#ff0000", "parenthesized spaced input");
	equals (tinycolor({ r: 255, g: 0, b: 0 }).toHexCss(), "#ff0000", "object input");
	same (tinycolor({ r: 255, g: 0, b: 0 }).toRgb(), { r: 255, g: 0, b: 0 }, "object input and compare");
});


test("Hex colors", function() {
	equals (tinycolor("ff0000").toHexCss(), "#ff0000", "6 character, no pound");
	equals (tinycolor("#ff0000").toHexCss(), "#ff0000", "6 character, with pound");
	equals (tinycolor("f00").toHexCss(), "#ff0000", "3 character, no pound");
	equals (tinycolor("#f00").toHexCss(), "#ff0000", "3 character, with pound");
});

module("Utilities");

test("Color equality", function() {
	ok (tinycolor.equals("#ff0000", "#ff0000"), "Same hex");
	ok (tinycolor.equals("ff0000", "#ff0000"), "Same hex");<commit_msg>using non deprecated function names<commit_after>
console.log("HERE", test);

test("TinyColor initialization", function() {
	ok ( typeof tinycolor != "undefined", "tinycolor is initialized on the page" );
	ok ( typeof tinycolor("red") == "object", "tinycolor is able to be instantiated." );
});


module("Color translations");

test("Named colors", function() {
	equal (tinycolor("red").toHexCss(), "#ff0000", "red matches hex");
});

test("RGB colors", function() {
	equal (tinycolor("rgb 255 0 0").toHexCss(), "#ff0000", "spaced input");
	equal (tinycolor("rgb(255, 0, 0)").toHexCss(), "#ff0000", "parenthesized input");
	equal (tinycolor("rgb (255, 0, 0)").toHexCss(), "#ff0000", "parenthesized spaced input");
	equal (tinycolor({ r: 255, g: 0, b: 0 }).toHexCss(), "#ff0000", "object input");
	deepEqual (tinycolor({ r: 255, g: 0, b: 0 }).toRgb(), { r: 255, g: 0, b: 0 }, "object input and compare");
});


test("Hex colors", function() {
	equal (tinycolor("ff0000").toHexCss(), "#ff0000", "6 character, no pound");
	equal (tinycolor("#ff0000").toHexCss(), "#ff0000", "6 character, with pound");
	equal (tinycolor("f00").toHexCss(), "#ff0000", "3 character, no pound");
	equal (tinycolor("#f00").toHexCss(), "#ff0000", "3 character, with pound");
});

module("Utilities");

test("Color equality", function() {
	ok (tinycolor.equals("#ff0000", "#ff0000"), "Same hex");
	ok (tinycolor.equals("ff0000", "#ff0000"), "Same hex");
{'fraction_non_alphanumeric': 0.22637517630465445, 'fraction_numerical': 0.0691114245416079, 'mean_word_length': 6.255754475703325, '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': '1490029', 'n_tokens_mistral': 1099, 'n_tokens_neox': 941, 'n_words': 283}