<commit_before>Red [
  Needs: 'View
]

do %v1_interpreter.red

interpreter: function [memory [block!]][
    pc: 0
    output_string: copy []
    output_memory: append/only [] memory 
        
    while [(pc + 3) < (length? memory)] [
        interpreter_output: step_interpreter memory pc
        either error? interpreter_output/error [
            append output_string copy interpreter_output/error
            break
        ] [
            ; we must update these two variables to step through the interpreter
            pc: interpreter_output/pc
            memory: copy interpreter_output/memory
            
            append output_string copy interpreter_output/output_string
            append/only output_memory memory
        ]
    ]
    return make map! compose/only [
      output_string: (output_string)
      output_memory: (output_memory)
    ]
]
<commit_msg>fixed bug<commit_after>Red [
  Needs: 'View
]

do %v1_interpreter.red

interpreter: function [memory [block!]][
    pc: 0
    output_string: copy []
    output_memory: reduce copy [memory]
        
    while [(pc + 3) < (length? memory)] [
        interpreter_output: step_interpreter memory pc
        either error? interpreter_output/error [
            append output_string copy interpreter_output/error
            break
        ] [
            ; we must update these two variables to step through the interpreter
            pc: interpreter_output/pc
            memory: copy interpreter_output/memory
            
            append output_string copy interpreter_output/output_string
            append/only output_memory memory
        ]
    ]
    return make map! compose/only [
      output_string: (output_string)
      output_memory: (output_memory)
    ]
]

{'fraction_non_alphanumeric': 0.06930126002290951, 'fraction_numerical': 0.003436426116838488, 'mean_word_length': 2.2113970588235294, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3676647', 'n_tokens_mistral': 481, 'n_tokens_neox': 467, 'n_words': 130}