<commit_before>import sys

from cpu import CPU
from instruction import Instruction

MEMORY = 16


def main():
    cpu = CPU(MEMORY)
    if len(sys.argv) != 2:
        print 'usage'
        sys.exit(1)

    with open(sys.argv[1]) as f:
        for _line in f.readlines():
            line = _line.strip()
            if line and not line.startswith('#'):
                cpu.execute(Instruction(line))
<commit_msg>Minor fix<commit_after>import sys

from cpu import CPU
from instruction import Instruction

MEMORY = 16


def main():
    if len(sys.argv) != 2:
        print 'Usage: {} <file>'
        sys.exit(1)

    cpu = CPU(MEMORY)

    with open(sys.argv[1]) as f:
        for _line in f.readlines():
            line = _line.strip()
            if line and not line.startswith('#'):
                cpu.execute(Instruction(line))

{'fraction_non_alphanumeric': 0.11870503597122302, 'fraction_numerical': 0.011990407673860911, 'mean_word_length': 2.150943396226415, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7256866', 'n_tokens_mistral': 272, 'n_tokens_neox': 258, 'n_words': 78}