<commit_before>class AsciiIo.DataUnpacker
  unpack: (base64BzippedData, callback) ->
    data = atob base64BzippedData

    if data[0] == 'B' and data[1] == 'Z'
      if window.Worker
        worker = new Worker(window.unpackWorkerPath)
        worker.onmessage = (event) => callback event.data
        worker.postMessage data
      else
        data = ArchUtils.bz2.decode data
        callback data
    else
      callback data<commit_msg>Revert "Call the callback, really"<commit_after>class AsciiIo.DataUnpacker
  unpack: (base64BzippedData, callback) ->
    data = atob base64BzippedData

    if data[0] == 'B' and data[1] == 'Z'
      if window.Worker
        worker = new Worker(window.unpackWorkerPath)
        worker.onmessage = (event) => callback event.data
        worker.postMessage data
      else
        data = ArchUtils.bz2.decode data
        callback data
    else
      data
{'fraction_non_alphanumeric': 0.09060402684563758, 'fraction_numerical': 0.015659955257270694, 'mean_word_length': 2.58, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1456954', 'n_tokens_mistral': 285, 'n_tokens_neox': 276, 'n_words': 70}