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


class Executor(ScriptExecutor):
    ext = '.php'
    name = 'PHP'
    command = env['runtime'].get('php')
    address_grace = 131072
    test_program = '<?php while($f = fgets(STDIN)) echo $f;'
    fs = ['.*\.so', '/etc/localtime$', '.*/php[\w-]*\.ini$']
    if 'phpconfdir' in env['runtime']:
        fs += [env['runtime']['phpconfdir']]

    def get_cmdline(self):
        return ['php', self._code]

    def get_fs(self):
        return self.fs + [self._code]


initialize = Executor.initialize<commit_msg>Logical grouping.<commit_after>from .base_executor import ScriptExecutor
from judgeenv import env


class Executor(ScriptExecutor):
    ext = '.php'
    name = 'PHP'
    command = env['runtime'].get('php')
    address_grace = 131072
    test_program = '<?php while($f = fgets(STDIN)) echo $f;'

    fs = ['.*\.so', '/etc/localtime$', '.*/php[\w-]*\.ini$']
    if 'phpconfdir' in env['runtime']:
        fs += [env['runtime']['phpconfdir']]

    def get_cmdline(self):
        return ['php', self._code]

    def get_fs(self):
        return self.fs + [self._code]


initialize = Executor.initialize
{'fraction_non_alphanumeric': 0.17716204869857263, 'fraction_numerical': 0.010075566750629723, 'mean_word_length': 3.226950354609929, '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': '1950484', 'n_tokens_mistral': 419, 'n_tokens_neox': 396, 'n_words': 92}