<commit_before>.loadlib 'io_ops'
.sub main
      .param pmc argv
      load_bytecode "Digest/MD5.pbc"
      .local pmc mba
      .local string filename
    
      set filename, argv[1]
      $S0 = "Creating new MappedByteArray, and opening " . filename
      say $S0
      say 'getting the data from the Mapped Byte Array...'

      $P0 = new 'FileHandle'
      $P0.'open'(filename, 'r')
      $P0.'encoding'('binary')
      $S0 = $P0.'readall'()
      
      $P1 = _md5sum($S0)
      $S0 = _md5_hex($P1)
      say $S0
  .end
<commit_msg>fix codetest failures<commit_after># Copyright (C) 2010, Parrot Foundation.

.loadlib 'io_ops'
.sub main
      .param pmc argv
      load_bytecode "Digest/MD5.pbc"
      .local pmc mba
      .local string filename

      set filename, argv[1]
      $S0 = "Creating new MappedByteArray, and opening " . filename
      say $S0
      say 'getting the data from the Mapped Byte Array...'

      $P0 = new 'FileHandle'
      $P0.'open'(filename, 'r')
      $P0.'encoding'('binary')
      $S0 = $P0.'readall'()

      $P1 = _md5sum($S0)
      $S0 = _md5_hex($P1)
      say $S0
.end

# Local Variables:
#   mode: pir
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir:

{'fraction_non_alphanumeric': 0.13097199341021418, 'fraction_numerical': 0.032948929159802305, 'mean_word_length': 2.222811671087533, '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': '7281254', 'n_tokens_mistral': 464, 'n_tokens_neox': 446, 'n_words': 121}