<commit_before>import gzip
import sys

with gzip.open(sys.argv[1], 'rb') as f:
  sys.stdout.write(f.read())
<commit_msg>[llvm-objcopy, tests] Fix several llvm-objcopy tests<commit_after>import gzip
import sys

with gzip.open(sys.argv[1], 'rb') as f:
  writer = getattr(sys.stdout, 'buffer', None)
  if writer is None:
    writer = sys.stdout
    if sys.platform == "win32":
      import os, msvcrt
      msvcrt.setmode(sys.stdout.fileno(),os.O_BINARY)

  writer.write(f.read())
  sys.stdout.flush()

{'fraction_non_alphanumeric': 0.15030060120240482, 'fraction_numerical': 0.008016032064128256, 'mean_word_length': 4.0, 'pattern_counts': {'":': 1, '<': 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': '4029322', 'n_tokens_mistral': 191, 'n_tokens_neox': 187, 'n_words': 43}