<commit_before><?php

class Denkmal_Component_Event extends Denkmal_Component_Abstract {

    public function prepare() {
        $event = $this->_params->getEvent('event');
        $venue = $this->_params->has('venue') ? $this->_params->getVenue('venue') : $event->getVenue();

        $isPersistent = ($event->hasId() && $venue->hasId());

        $this->setTplParam('event', $event);
        $this->setTplParam('venue', $venue);
        $this->setTplParam('allowDetails', $isPersistent);

        if ($isPersistent) {
            $this->_setJsParam('event', $event);
            $this->_setJsParam('venue', $venue);
        } else {
            $this->_params = CM_Params::factory(); // Empty params to not send them to client
        }
    }
}<commit_msg>use hasIdRaw()<commit_after><?php

class Denkmal_Component_Event extends Denkmal_Component_Abstract {

    public function prepare() {
        $event = $this->_params->getEvent('event');
        $venue = $this->_params->has('venue') ? $this->_params->getVenue('venue') : $event->getVenue();

        $isPersistent = ($event->hasIdRaw() && $venue->hasIdRaw());

        $this->setTplParam('event', $event);
        $this->setTplParam('venue', $venue);
        $this->setTplParam('allowDetails', $isPersistent);

        if ($isPersistent) {
            $this->_setJsParam('event', $event);
            $this->_setJsParam('venue', $venue);
        } else {
            $this->_params = CM_Params::factory(); // Empty params to not send them to client
        }
    }
}
{'fraction_non_alphanumeric': 0.179672131147541, 'fraction_numerical': 0.0, 'mean_word_length': 2.9329896907216493, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '5557835', 'n_tokens_mistral': 465, 'n_tokens_neox': 455, 'n_words': 81}