<commit_before>from unittest import TestCase
import os

from mock import patch

from cycy import interpreter
from cycy.bytecode import *
from cycy.compiler import compile
from cycy.objects import W_Bool, W_Char, W_Function, W_Int32, W_String
from cycy.parser import parse


class TestInterpreterWithBytecode(TestCase):
    def test_it_handles_opcodes_with_args(self):
        byte_code = Bytecode(
            instructions=[
                PUTC, 0,
                RETURN, 0,
            ],
            constants=[W_Char("x")],
            name="<some test bytecode>",
            arguments=(),<commit_msg>fix failing test<commit_after>from unittest import TestCase
import os

from mock import patch

from cycy import interpreter
from cycy.bytecode import *
from cycy.compiler import compile
from cycy.objects import W_Bool, W_Char, W_Function, W_Int32, W_String
from cycy.parser import parse


class TestInterpreterWithBytecode(TestCase):
    def test_it_handles_opcodes_with_args(self):
        byte_code = Bytecode(
            instructions=[
                LOAD_CONST, 0,
                PUTC, 0,
                RETURN, 0,
            ],
            constants=[W_Char("x")],
            name="<some test bytecode>",
            arguments=(),
{'fraction_non_alphanumeric': 0.07532051282051282, 'fraction_numerical': 0.007211538461538462, 'mean_word_length': 2.599423631123919, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5875244', 'n_tokens_mistral': 366, 'n_tokens_neox': 352, 'n_words': 101}