<commit_before>const base64String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

function base64ToIndex_withTable(base64_ArrayBuffer, table_ByUint8) {
  let source = new Uint8Array( base64_ArrayBuffer );
  let resultBuffer = new ArrayBuffer( base64_ArrayBuffer.length );
  let result = new Uint8Array( resultBuffer );
  for (let i = 0; i < source.length; ++i)
    result[ i ] = source[ table_ByUint8[ i ] ];
  return resultBuffer;
}

function byArray() {
  let table = new Array(256);
  for (let i = 0; i< base64String.length; ++i)
    table[ base64String.codePointAt(i) ] = i;

  return function (base64_ArrayBuffer) {<commit_msg>Update Base64ToIndex.js<commit_after>const base64String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

function base64ToIndex_withTable(base64_ArrayBuffer, table_ByUint8) {
  let source = new Uint8Array( base64_ArrayBuffer );
  let resultBuffer = new ArrayBuffer( base64_ArrayBuffer.byteLength );
  let result = new Uint8Array( resultBuffer );
  for (let i = 0; i < source.length; ++i)
    result[ i ] = source[ table_ByUint8[ i ] ];
  return resultBuffer;
}

function byArray() {
  let table = new Array(256);
  for (let i = 0; i< base64String.length; ++i)
    table[ base64String.codePointAt(i) ] = i;

  return function (base64_ArrayBuffer) {
{'fraction_non_alphanumeric': 0.10800604229607251, 'fraction_numerical': 0.054380664652567974, 'mean_word_length': 5.162790697674419, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1028561', 'n_tokens_mistral': 515, 'n_tokens_neox': 465, 'n_words': 109}