<commit_before>namespace dotless.Core.Parser.Tree
{
    using System;
    using System.Collections.Generic;
    using System.Globalization;
    using System.Linq;
    using System.Text.RegularExpressions;
    using Exceptions;
    using Infrastructure;
    using Infrastructure.Nodes;
    using Utils;

    public class Color : Node, IOperable, IComparable
    {
        private static readonly Dictionary<int, string> Html4ColorsReverse;

        private static readonly Dictionary<string, int> Html4Colors =
            new Dictionary<string, int>
                {
                    { "aliceblue", 0xf0f8ff},
                    { "antiquewhite", 0xfaebd7},
                    { "aqua", 0x00ffff},
                    { "aquamarine", 0x7fffd4},
                    { "azure", 0xf0ffff},
                    { "beige", 0xf5f5dc},
                    { "bisque", 0xffe4c4},
                    { "black", 0x000000},
                    { "blanchedalmond", 0xffebcd},
                    { "blue", 0x0000ff},
                    { "blueviolet", 0x8a2be2},
                    { "brown", 0xa52a2a},
                    { "burlywood", 0xdeb887},
                    { "cadetblue", 0x5f9ea0},
                    { "chartreuse", 0x7fff00},<commit_msg>Add dictionary html color -> color instance.<commit_after>namespace dotless.Core.Parser.Tree
{
    using System;
    using System.Collections.Generic;
    using System.Globalization;
    using System.Linq;
    using System.Text.RegularExpressions;
    using Exceptions;
    using Infrastructure;
    using Infrastructure.Nodes;
    using Utils;

    public class Color : Node, IOperable, IComparable
    {
        private static readonly Dictionary<string, Color> Html4Colors2 = new Dictionary<string, Color>
        {
            {"transparent", new Color(0x000000, 0.0, "transparent")}, // Note that transparent is not a color
            {"aliceblue", new Color(0xf0f8ff, 1.0, "aliceblue")},
            {"antiquewhite", new Color(0xfaebd7, 1.0, "antiquewhite")},
            {"aqua", new Color(0x00ffff, 1.0, "aqua")},
            {"aquamarine", new Color(0x7fffd4, 1.0, "aquamarine")},
            {"azure", new Color(0xf0ffff, 1.0, "azure")},
            {"beige", new Color(0xf5f5dc, 1.0, "beige")},
            {"bisque", new Color(0xffe4c4, 1.0, "bisque")},
            {"black", new Color(0x000000, 1.0, "black")},
            {"blanchedalmond", new Color(0xffebcd, 1.0, "blanchedalmond")},
            {"blue", new Color(0x0000ff, 1.0, "blue")},
            {"blueviolet", new Color(0x8a2be2, 1.0, "blueviolet")},
            {"brown", new Color(0xa52a2a, 1.0, "brown")},
            {"burlywood", new Color(0xdeb887, 1.0, "burlywood")},
            {"cadetblue", new Color(0x5f9ea0, 1.0, "cadetblue")},
            {"chartreuse", new Color(0x7fff00, 1.0, "chartreuse")},
            {"chocolate", new Color(0xd2691e, 1.0, "chocolate")},
            {"coral", new Color(0xff7f50, 1.0, "coral")},
            {"cornflowerblue", new Color(0x6495ed, 1.0, "cornflowerblue")},
            {"cornsilk", new Color(0xfff8dc, 1.0, "cornsilk")},
            {"crimson", new Color(0xdc143c, 1.0, "crimson")},
            {"cyan", new Color(0x00ffff, 1.0, "cyan")},
            {"darkblue", new Color(0x00008b, 1.0, "darkblue")},
            {"darkcyan", new Color(0x008b8b, 1.0, "darkcyan")},
            {"darkgoldenrod", new Color(0xb8860b, 1.0, "darkgoldenrod")},
            {"darkgray", new Color(0xa9a9a9, 1.0, "darkgray")},
            {"darkgrey", new Color(0xa9a9a9, 1.0, "darkgrey")},
            {"darkgreen", new Color(0x006400, 1.0, "darkgreen")},
            {"darkkhaki", new Color(0xbdb76b, 1.0, "darkkhaki")},
            {"darkmagenta", new Color(0x8b008b, 1.0, "darkmagenta")},
            {"darkolivegreen", new Color(0x556b2f, 1.0, "darkolivegreen")},
            {"darkorange", new Color(0xff8c00, 1.0, "darkorange")},
            {"darkorchid", new Color(0x9932cc, 1.0, "darkorchid")},
            {"darkred", new Color(0x8b0000, 1.0, "darkred")},
            {"darksalmon", new Color(0xe9967a, 1.0, "darksalmon")},
            {"darkseagreen", new Color(0x8fbc8f, 1.0, "darkseagreen")},
            {"darkslateblue", new Color(0x483d8b, 1.0, "darkslateblue")},
            {"darkslategray", new Color(0x2f4f4f, 1.0, "darkslategray")},
            {"darkslategrey", new Color(0x2f4f4f, 1.0, "darkslategrey")},
            {"darkturquoise", new Color(0x00ced1, 1.0, "darkturquoise")},
            {"darkviolet", new Color(0x9400d3, 1.0, "darkviolet")},
            {"deeppink", new Color(0xff1493, 1.0, "deeppink")},
            {"deepskyblue", new Color(0x00bfff, 1.0, "deepskyblue")},
            {"dimgray", new Color(0x696969, 1.0, "dimgray")},
            {"dimgrey", new Color(0x696969, 1.0, "dimgrey")},
            {"dodgerblue", new Color(0x1e90ff, 1.0, "dodgerblue")},
            {"firebrick", new Color(0xb22222, 1.0, "firebrick")},
            {"floralwhite", new Color(0xfffaf0, 1.0, "floralwhite")},
            {"forestgreen", new Color(0x228b22, 1.0, "forestgreen")},
            {"fuchsia", new Color(0xff00ff, 1.0, "fuchsia")},
            {"gainsboro", new Color(0xdcdcdc, 1.0, "gainsboro")},
            {"ghostwhite", new Color(0xf8f8ff, 1.0, "ghostwhite")},
            {"gold", new Color(0xffd700, 1.0, "gold")},
            {"goldenrod", new Color(0xdaa520, 1.0, "goldenrod")},
            {"gray", new Color(0x808080, 1.0, "gray")},
            {"grey", new Color(0x808080, 1.0, "grey")},
            {"green", new Color(0x008000, 1.0, "green")},
            {"greenyellow", new Color(0xadff2f, 1.0, "greenyellow")},
            {"honeydew", new Color(0xf0fff0, 1.0, "honeydew")},
            {"hotpink", new Color(0xff69b4, 1.0, "hotpink")},
            {"indianred", new Color(0xcd5c5c, 1.0, "indianred")},
            {"indigo", new Color(0x4b0082, 1.0, "indigo")},
            {"ivory", new Color(0xfffff0, 1.0, "ivory")},
            {"khaki", new Color(0xf0e68c, 1.0, "khaki")},
            {"lavender", new Color(0xe6e6fa, 1.0, "lavender")},
            {"lavenderblush", new Color(0xfff0f5, 1.0, "lavenderblush")},
            {"lawngreen", new Color(0x7cfc00, 1.0, "lawngreen")},
            {"lemonchiffon", new Color(0xfffacd, 1.0, "lemonchiffon")},
            {"lightblue", new Color(0xadd8e6, 1.0, "lightblue")},
            {"lightcoral", new Color(0xf08080, 1.0, "lightcoral")},
            {"lightcyan", new Color(0xe0ffff, 1.0, "lightcyan")},
            {"lightgoldenrodyellow", new Color(0xfafad2, 1.0, "lightgoldenrodyellow")},
            {"lightgray", new Color(0xd3d3d3, 1.0, "lightgray")},
            {"lightgrey", new Color(0xd3d3d3, 1.0, "lightgrey")},
            {"lightgreen", new Color(0x90ee90, 1.0, "lightgreen")},
            {"lightpink", new Color(0xffb6c1, 1.0, "lightpink")},
            {"lightsalmon", new Color(0xffa07a, 1.0, "lightsalmon")},
            {"lightseagreen", new Color(0x20b2aa, 1.0, "lightseagreen")},
            {"lightskyblue", new Color(0x87cefa, 1.0, "lightskyblue")},
            {"lightslategray", new Color(0x778899, 1.0, "lightslategray")},
            {"lightslategrey", new Color(0x778899, 1.0, "lightslategrey")},
            {"lightsteelblue", new Color(0xb0c4de, 1.0, "lightsteelblue")},
            {"lightyellow", new Color(0xffffe0, 1.0, "lightyellow")},
            {"lime", new Color(0x00ff00, 1.0, "lime")},
            {"limegreen", new Color(0x32cd32, 1.0, "limegreen")},
            {"linen", new Color(0xfaf0e6, 1.0, "linen")},
            {"magenta", new Color(0xff00ff, 1.0, "magenta")},
            {"maroon", new Color(0x800000, 1.0, "maroon")},
            {"mediumaquamarine", new Color(0x66cdaa, 1.0, "mediumaquamarine")},
            {"mediumblue", new Color(0x0000cd, 1.0, "mediumblue")},
            {"mediumorchid", new Color(0xba55d3, 1.0, "mediumorchid")},
            {"mediumpurple", new Color(0x9370d8, 1.0, "mediumpurple")},
            {"mediumseagreen", new Color(0x3cb371, 1.0, "mediumseagreen")},
            {"mediumslateblue", new Color(0x7b68ee, 1.0, "mediumslateblue")},
            {"mediumspringgreen", new Color(0x00fa9a, 1.0, "mediumspringgreen")},
            {"mediumturquoise", new Color(0x48d1cc, 1.0, "mediumturquoise")},
            {"mediumvioletred", new Color(0xc71585, 1.0, "mediumvioletred")},
            {"midnightblue", new Color(0x191970, 1.0, "midnightblue")},
            {"mintcream", new Color(0xf5fffa, 1.0, "mintcream")},
            {"mistyrose", new Color(0xffe4e1, 1.0, "mistyrose")},
            {"moccasin", new Color(0xffe4b5, 1.0, "moccasin")},
            {"navajowhite", new Color(0xffdead, 1.0, "navajowhite")},
            {"navy", new Color(0x000080, 1.0, "navy")},
            {"oldlace", new Color(0xfdf5e6, 1.0, "oldlace")},
            {"olive", new Color(0x808000, 1.0, "olive")},
            {"olivedrab", new Color(0x6b8e23, 1.0, "olivedrab")},
            {"orange", new Color(0xffa500, 1.0, "orange")},
            {"orangered", new Color(0xff4500, 1.0, "orangered")},
            {"orchid", new Color(0xda70d6, 1.0, "orchid")},
            {"palegoldenrod", new Color(0xeee8aa, 1.0, "palegoldenrod")},
            {"palegreen", new Color(0x98fb98, 1.0, "palegreen")},
            {"paleturquoise", new Color(0xafeeee, 1.0, "paleturquoise")},
            {"palevioletred", new Color(0xd87093, 1.0, "palevioletred")},
            {"papayawhip", new Color(0xffefd5, 1.0, "papayawhip")},
            {"peachpuff", new Color(0xffdab9, 1.0, "peachpuff")},
            {"peru", new Color(0xcd853f, 1.0, "peru")},
            {"pink", new Color(0xffc0cb, 1.0, "pink")},
            {"plum", new Color(0xdda0dd, 1.0, "plum")},
            {"powderblue", new Color(0xb0e0e6, 1.0, "powderblue")},
            {"purple", new Color(0x800080, 1.0, "purple")},
            {"red", new Color(0xff0000, 1.0, "red")},
            {"rosybrown", new Color(0xbc8f8f, 1.0, "rosybrown")},
            {"royalblue", new Color(0x4169e1, 1.0, "royalblue")},
            {"saddlebrown", new Color(0x8b4513, 1.0, "saddlebrown")},
            {"salmon", new Color(0xfa8072, 1.0, "salmon")},
            {"sandybrown", new Color(0xf4a460, 1.0, "sandybrown")},
            {"seagreen", new Color(0x2e8b57, 1.0, "seagreen")},
            {"seashell", new Color(0xfff5ee, 1.0, "seashell")},
            {"sienna", new Color(0xa0522d, 1.0, "sienna")},
            {"silver", new Color(0xc0c0c0, 1.0, "silver")},
            {"skyblue", new Color(0x87ceeb, 1.0, "skyblue")},
            {"slateblue", new Color(0x6a5acd, 1.0, "slateblue")},
            {"slategray", new Color(0x708090, 1.0, "slategray")},
            {"slategrey", new Color(0x708090, 1.0, "slategrey")},
            {"snow", new Color(0xfffafa, 1.0, "snow")},
            {"springgreen", new Color(0x00ff7f, 1.0, "springgreen")},
            {"steelblue", new Color(0x4682b4, 1.0, "steelblue")},
            {"tan", new Color(0xd2b48c, 1.0, "tan")},
            {"teal", new Color(0x008080, 1.0, "teal")},
            {"thistle", new Color(0xd8bfd8, 1.0, "thistle")},
            {"tomato", new Color(0xff6347, 1.0, "tomato")},
            {"turquoise", new Color(0x40e0d0, 1.0, "turquoise")},
            {"violet", new Color(0xee82ee, 1.0, "violet")},
            {"wheat", new Color(0xf5deb3, 1.0, "wheat")},
            {"white", new Color(0xffffff, 1.0, "white")},
            {"whitesmoke", new Color(0xf5f5f5, 1.0, "whitesmoke")},
            {"yellow", new Color(0xffff00, 1.0, "yellow")},
            {"yellowgreen", new Color(0x9acd32, 1.0, "yellowgreen")}
        };

        private static readonly Dictionary<int, string> Html4ColorsReverse;

        private static readonly Dictionary<string, int> Html4Colors =
            new Dictionary<string, int>
                {
                    { "aliceblue", 0xf0f8ff},
                    { "antiquewhite", 0xfaebd7},
                    { "aqua", 0x00ffff},
                    { "aquamarine", 0x7fffd4},
                    { "azure", 0xf0ffff},
                    { "beige", 0xf5f5dc},
                    { "bisque", 0xffe4c4},
                    { "black", 0x000000},
                    { "blanchedalmond", 0xffebcd},
                    { "blue", 0x0000ff},
                    { "blueviolet", 0x8a2be2},
                    { "brown", 0xa52a2a},
                    { "burlywood", 0xdeb887},
                    { "cadetblue", 0x5f9ea0},
                    { "chartreuse", 0x7fff00},
{'fraction_non_alphanumeric': 0.1765131420303834, 'fraction_numerical': 0.08182621975725424, 'mean_word_length': 2.3627027027027028, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '1543312', 'n_tokens_mistral': 5080, 'n_tokens_neox': 4573, 'n_words': 902}