<commit_before>export function isBrowserSupport(ua: string): boolean {
    if (!!window['chrome'] && !!window['chrome']['webstore']) {
        return true;
    } else if (ua.indexOf('Firefox') !== -1) {
        const match = /((?!Gecko.+)Firefox|Gecko(?!.+Firefox))(?: |\/)([\d]+)/.exec(ua);
        const ver = +match[2];
        return !!match[1] && !isNaN(ver) && ver >= 27; // Firefox 27+
    } else if (ua.indexOf('MSIE 10') !== -1 || ua.indexOf('Trident/') !== -1 || ua.indexOf('Edge') !== -1) {
        return true; // IE 10+, Edge
    } else if (ua.indexOf('Safari') !== -1) {
        let match = /(?:iPod|iPhone|iPad).+Version\/(\d+\.\d+).*Safari/.exec(ua); // iOS safari 7.1+
        let ver = match ? +match[1] : 0;
        if (!isNaN(ver)) { return ver >= 7.1; }
        match = /Version\/(\d+)\.\d+(?:\.\d+)?.*Safari/.exec(ua); // OS X Safari 9+
        ver = match ? +match[1] : 0;
        if (!isNaN(ver)) { return ver >= 9; }
    }
    return false;
}<commit_msg>fix: browser detect on IE9<commit_after>export function isBrowserSupport(ua: string): boolean {
    if (!!window['chrome'] && !!window['chrome']['webstore']) {
        return true;
    } else if (ua.indexOf('MSIE') !== -1) {
        return ua.indexOf('MSIE 10') !== -1; // filter out all IE but IE10
    } else if (ua.indexOf('Edge') || ua.indexOf('Trident')) {
        return true; // IE11 and Edge
    } else if (ua.indexOf('Firefox') !== -1) {
        const match = /((?!Gecko.+)Firefox|Gecko(?!.+Firefox))(?: |\/)([\d]+)/.exec(ua);
        const ver = +match[2];
        return !!match[1] && !isNaN(ver) && ver >= 27; // Firefox 27+
    } else if (ua.indexOf('Safari') !== -1) {
        let match = /(?:iPod|iPhone|iPad).+Version\/(\d+\.\d+).*Safari/.exec(ua); // iOS safari 7.1+
        let ver = match ? +match[1] : 0;
        if (!isNaN(ver)) { return ver >= 7.1; }
        match = /Version\/(\d+)\.\d+(?:\.\d+)?.*Safari/.exec(ua); // OS X Safari 9+
        ver = match ? +match[1] : 0;
        if (!isNaN(ver)) { return ver >= 9; }
    }
    return false;
}
{'fraction_non_alphanumeric': 0.25048923679060664, 'fraction_numerical': 0.025440313111545987, 'mean_word_length': 2.4312080536912752, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6472935', 'n_tokens_mistral': 782, 'n_tokens_neox': 734, 'n_words': 171}