<commit_before><?php

namespace Predis\Commands;

class ServerEval extends Command {
    public function getId() {
        return 'EVAL';
    }

    protected function canBeHashed() {
        return false;
    }
}<commit_msg>Add support for transparent key prefixing to EVAL and the Predis\Commands\ScriptedCommand class.<commit_after><?php

namespace Predis\Commands;

class ServerEval extends Command {
    public function getId() {
        return 'EVAL';
    }

    protected function onPrefixKeys(Array $arguments, $prefix) {
        $arguments = $this->getArguments();
        for ($i = 2; $i < $arguments[1] + 2; $i++) {
            $arguments[$i] = "$prefix{$arguments[$i]}";
        }
        return $arguments;
    }

    protected function canBeHashed() {
        return false;
    }
}
{'fraction_non_alphanumeric': 0.11823899371069183, 'fraction_numerical': 0.0037735849056603774, 'mean_word_length': 2.7547169811320753, 'pattern_counts': {'":': 0, '<': 6, '<?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': '4804083', 'n_tokens_mistral': 230, 'n_tokens_neox': 228, 'n_words': 63}