<commit_before>/**
 * @file btoa polyfill
 * @since 0.2.9
 */
/*#ifndef(UMD)*/
"use strict";
/*global _GPF_12_BITS*/ // 12
/*global _GPF_18_BITS*/ // 18
/*global _GPF_1_BYTE*/ // 1
/*global _GPF_2_BYTES*/ // 2
/*global _GPF_6_BITS*/ // 6
/*global _GPF_6_BITS_MASK*/ // 63
/*global _GPF_START*/ // 0
/*global _GPF_START*/ // 0
/*global _gpfBase64*/ // Base64 encoding string
/*global _gpfMaxUnsignedByte*/ // 255
/*exported _gpfBtoa*/ // btoa polyfill
/*#endif*/

var _GPF_BTOA_MAX_PADDING = 3,
    _GPF_BTOA_INDEX_INCREMENT = 3;

function _gpfBtoaCheck (stringToEncode, index) {
    var value = stringToEncode.charCodeAt(index);
    if (value > _gpfMaxUnsignedByte) {
        throw new TypeError("The string to be encoded contains characters outside of the Latin1 range.");
    }
    return value;
}

function _gpfBtoaRead (input, from) {
    var index = from,
        a,
        b,
        c;
    a = _gpfBtoaCheck(input, index++);
    b = _gpfBtoaCheck(input, index++);
    c = _gpfBtoaCheck(input, index++);
    return a << _GPF_2_BYTES | b << _GPF_1_BYTE | c;
}
<commit_msg>Fixes useless duplicate (New ESLint rules)<commit_after>/**
 * @file btoa polyfill
 * @since 0.2.9
 */
/*#ifndef(UMD)*/
"use strict";
/*global _GPF_12_BITS*/ // 12
/*global _GPF_18_BITS*/ // 18
/*global _GPF_1_BYTE*/ // 1
/*global _GPF_2_BYTES*/ // 2
/*global _GPF_6_BITS*/ // 6
/*global _GPF_6_BITS_MASK*/ // 63
/*global _GPF_START*/ // 0
/*global _gpfBase64*/ // Base64 encoding string
/*global _gpfMaxUnsignedByte*/ // 255
/*exported _gpfBtoa*/ // btoa polyfill
/*#endif*/

var _GPF_BTOA_MAX_PADDING = 3,
    _GPF_BTOA_INDEX_INCREMENT = 3;

function _gpfBtoaCheck (stringToEncode, index) {
    var value = stringToEncode.charCodeAt(index);
    if (value > _gpfMaxUnsignedByte) {
        throw new TypeError("The string to be encoded contains characters outside of the Latin1 range.");
    }
    return value;
}

function _gpfBtoaRead (input, from) {
    var index = from,
        a,
        b,
        c;
    a = _gpfBtoaCheck(input, index++);
    b = _gpfBtoaCheck(input, index++);
    c = _gpfBtoaCheck(input, index++);
    return a << _GPF_2_BYTES | b << _GPF_1_BYTE | c;
}

{'fraction_non_alphanumeric': 0.14550509731232622, 'fraction_numerical': 0.03104726598702502, 'mean_word_length': 3.0735849056603772, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, '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': '500642', 'n_tokens_mistral': 893, 'n_tokens_neox': 850, 'n_words': 206}