<commit_before>define(['mac/bitpacking'], function(bitpacking) {

  'use strict';
  
  return function(resource) {
    resource.getUnpackedData = function() {
      return bitpacking.unpackBits(this.data.buffer, this.data.byteOffset, this.data.byteLength);
    };
  };
<commit_msg>Change BITD to new loader format<commit_after>define(['mac/bitpacking'], function(bitpacking) {

  'use strict';
  
  return function(item) {
    item.getUnpackedData = function() {
      return this.getBytes().then(function(bytes) {
        return bitpacking.unpackBits(bytes.buffer, bytes.byteOffset, bytes.byteLength);
      });
    };
  };

{'fraction_non_alphanumeric': 0.1408, 'fraction_numerical': 0.0, 'mean_word_length': 4.008, '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': '6243872', 'n_tokens_mistral': 199, 'n_tokens_neox': 196, 'n_words': 31}