<commit_before>using System.Globalization;
using System.Windows.Media;

namespace WpfMath.Colors
{
    internal class HtmlColorParser : SingleComponentColorParser
    {
        protected override Color? ParseSingleComponent(string component)
        {
            if (component.Length != 6)
                return null;

            var colorCode = int.Parse(component, NumberStyles.HexNumber);
            var r = (byte) ((colorCode & 0xFF0000) >> 16);
            var g = (byte) ((colorCode & 0xFF00) >> 8);
            var b = (byte) (colorCode & 0xFF);
            return Color.FromRgb(r, g, b);
        }
    }
}<commit_msg>Use invariant culture for number parsing (#165)<commit_after>using System.Globalization;
using System.Windows.Media;

namespace WpfMath.Colors
{
    internal class HtmlColorParser : SingleComponentColorParser
    {
        protected override Color? ParseSingleComponent(string component)
        {
            if (component.Length != 6)
                return null;

            var colorCode = int.Parse(component, NumberStyles.HexNumber, CultureInfo.InvariantCulture);
            var r = (byte) ((colorCode & 0xFF0000) >> 16);
            var g = (byte) ((colorCode & 0xFF00) >> 8);
            var b = (byte) (colorCode & 0xFF);
            return Color.FromRgb(r, g, b);
        }
    }
}
{'fraction_non_alphanumeric': 0.10514372163388805, 'fraction_numerical': 0.02193645990922844, 'mean_word_length': 2.3157894736842106, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7542084', 'n_tokens_mistral': 392, 'n_tokens_neox': 363, 'n_words': 97}