<commit_before>
from .base_executor import ScriptExecutor
from judgeenv import env


class Executor(ScriptExecutor):
    ext = '.sed'
    name = 'SED'
    command = env['runtime'].get('sed', '/bin/sed')
    test_program = '''s/.*/echo: Hello, World!/
q'''
    fs = ['.*\.(so|sed)', '/dev/urandom$', '/proc/self/maps$', '/proc/filesystems$', '/+lib/charset.alias$']
    syscalls = ['getgroups32', 'statfs64']

    def get_cmdline(self):
        return [self.get_command(), '-f', self._code]

initialize = Executor.initialize
<commit_msg>Working sed on x64 closes #123<commit_after>
from .base_executor import ScriptExecutor
from judgeenv import env


class Executor(ScriptExecutor):
    ext = '.sed'
    name = 'SED'
    command = env['runtime'].get('sed', '/bin/sed')
    test_program = '''s/.*/echo: Hello, World!/
q'''
    fs = ['.*\.(so|sed)', '/dev/urandom$', '/proc/self/maps$', '/proc/filesystems$', '/+lib/charset.alias$']
    syscalls = ['getgroups32', 'statfs64', 'statfs']

    def get_cmdline(self):
        return [self.get_command(), '-f', self._code]

initialize = Executor.initialize

{'fraction_non_alphanumeric': 0.19836214740673339, 'fraction_numerical': 0.011828935395814377, 'mean_word_length': 3.721030042918455, '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': '3899353', 'n_tokens_mistral': 387, 'n_tokens_neox': 369, 'n_words': 86}