<commit_before>﻿using System;

namespace RobotsTxt
{
    internal class CrawlDelayRule : Rule
    {
        public long Delay { get; private set; } // milliseconds

        public CrawlDelayRule(String userAgent, Line line, int order)
            : base(userAgent, order)
        {
            double delay = 0;
            Double.TryParse(line.Value, out delay);
            Delay = (long)(delay * 1000);
        }
    }
}<commit_msg>fix an issue where crawl-delay parsin was depending on system culture's number styles<commit_after>﻿using System;
using System.Globalization;

namespace RobotsTxt
{
    internal class CrawlDelayRule : Rule
    {
        public long Delay { get; private set; } // milliseconds

        public CrawlDelayRule(String userAgent, Line line, int order)
            : base(userAgent, order)
        {
            double delay = 0;
            Double.TryParse(line.Value, NumberStyles.Float, CultureInfo.InvariantCulture, out delay);
            Delay = (long)(delay * 1000);
        }
    }
}
{'fraction_non_alphanumeric': 0.08823529411764706, 'fraction_numerical': 0.00980392156862745, 'mean_word_length': 2.3042071197411005, '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': '7469280', 'n_tokens_mistral': 294, 'n_tokens_neox': 275, 'n_words': 82}