<commit_before><?php

class Denkmal_Model_Event extends CM_Model_Abstract implements Denkmal_ArrayConvertibleApi {

    /**
     * @return Denkmal_Model_Venue
     */
    public function getVenue() {
        return $this->_get('venue');
    }

    /**
     * @param Denkmal_Model_Venue $venue
     */
    public function setVenue(Denkmal_Model_Venue $venue) {
        $this->_set('venue', $venue);
    }

    /**
     * @return DateTime
     */
    public function getFrom() {
        return $this->_get('from');
    }

    /**
     * @param DateTime $from
     */
    public function setFrom(DateTime $from) {
        $this->_set('from', $from);
    }

    /**
     * @return DateTime|null
     */
    public function getUntil() {
        return $this->_get('until');
    }

    /**
     * @param DateTime|null $until
     */
    public function setUntil(DateTime $until = null) {
        $this->_set('until', $until);
    }

    /**
     * @return string
     */
    public function getDescription() {
        return $this->_get('description');
    }

    /**
     * @param string $description
     */
    public function setDescription($description) {
        $this->_set('description', $description);
    }

    /**
     * @return string|null
     */
    public function getTitle() {
        return $this->_get('title');
    }

    /**
     * @param string|null $title
     */
    public function setTitle($title) {
        $this->_set('title', $title);
    }

    /**
     * @return Denkmal_Model_Song|null
     */
    public function getSong() {
        return $this->_get('song');
    }

    /**
     * @param Denkmal_Model_Song $song
     */
    public function setSong(Denkmal_Model_Song $song = null) {
        $this->_set('song', $song);
    }

    /**
     * @return boolean
     */
    public function getQueued() {
        return $this->_get('queued');
    }

    /**
     * @param boolean $queued
     */
    public function setQueued($queued) {
        $this->_set('queued', $queued);
    }

    /**
     * @return boolean
     */
    public function getEnabled() {
        return $this->_get('enabled');
    }

    /*
     * @param boolean $enabled
     */
    public function setEnabled($enabled) {
        $this->_set('enabled', $enabled);
    }

    /**
     * @return boolean
     */
    public function getHidden() {
        return $this->_get('hidden');
    }

    /**
     * @param boolean $hidden
     */
    public function setHidden($hidden) {
        $this->_set('hidden', $hidden);
    }

    /**
     * @return boolean
     */
    public function getStarred() {
        return $this->_get('starred');
    }

    public function getSongListSuggested(){
        $desc = $this->getDescription();
        $findTermList = Denkmal_Usertext_Filter_Links::getReplacements();
        $searchTermList = array();
        foreach ($findTermList as $searchTerm) {
            if (false !== stripos($desc, $searchTerm['label'])) {
                $searchTermList[] =  $searchTerm['label'];
            }
        }

        if (empty($searchTermList)){
            return null;
        }
        return new Denkmal_Paging_Song_Search($searchTermList);
    }<commit_msg>add docu<commit_after><?php

class Denkmal_Model_Event extends CM_Model_Abstract implements Denkmal_ArrayConvertibleApi {

    /**
     * @return Denkmal_Model_Venue
     */
    public function getVenue() {
        return $this->_get('venue');
    }

    /**
     * @param Denkmal_Model_Venue $venue
     */
    public function setVenue(Denkmal_Model_Venue $venue) {
        $this->_set('venue', $venue);
    }

    /**
     * @return DateTime
     */
    public function getFrom() {
        return $this->_get('from');
    }

    /**
     * @param DateTime $from
     */
    public function setFrom(DateTime $from) {
        $this->_set('from', $from);
    }

    /**
     * @return DateTime|null
     */
    public function getUntil() {
        return $this->_get('until');
    }

    /**
     * @param DateTime|null $until
     */
    public function setUntil(DateTime $until = null) {
        $this->_set('until', $until);
    }

    /**
     * @return string
     */
    public function getDescription() {
        return $this->_get('description');
    }

    /**
     * @param string $description
     */
    public function setDescription($description) {
        $this->_set('description', $description);
    }

    /**
     * @return string|null
     */
    public function getTitle() {
        return $this->_get('title');
    }

    /**
     * @param string|null $title
     */
    public function setTitle($title) {
        $this->_set('title', $title);
    }

    /**
     * @return Denkmal_Model_Song|null
     */
    public function getSong() {
        return $this->_get('song');
    }

    /**
     * @param Denkmal_Model_Song $song
     */
    public function setSong(Denkmal_Model_Song $song = null) {
        $this->_set('song', $song);
    }

    /**
     * @return boolean
     */
    public function getQueued() {
        return $this->_get('queued');
    }

    /**
     * @param boolean $queued
     */
    public function setQueued($queued) {
        $this->_set('queued', $queued);
    }

    /**
     * @return boolean
     */
    public function getEnabled() {
        return $this->_get('enabled');
    }

    /*
     * @param boolean $enabled
     */
    public function setEnabled($enabled) {
        $this->_set('enabled', $enabled);
    }

    /**
     * @return boolean
     */
    public function getHidden() {
        return $this->_get('hidden');
    }

    /**
     * @param boolean $hidden
     */
    public function setHidden($hidden) {
        $this->_set('hidden', $hidden);
    }

    /**
     * @return boolean
     */
    public function getStarred() {
        return $this->_get('starred');
    }

    /**
     * @return Denkmal_Paging_Song_Search|null
     */
    public function getSongListSuggested(){
        $desc = $this->getDescription();
        $findTermList = Denkmal_Usertext_Filter_Links::getReplacements();
        $searchTermList = array();
        foreach ($findTermList as $searchTerm) {
            if (false !== stripos($desc, $searchTerm['label'])) {
                $searchTermList[] =  $searchTerm['label'];
            }
        }

        if (empty($searchTermList)){
            return null;
        }
        return new Denkmal_Paging_Song_Search($searchTermList);
    }
{'fraction_non_alphanumeric': 0.14970432617491441, 'fraction_numerical': 0.0, 'mean_word_length': 1.9879125987912598, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '5518745', 'n_tokens_mistral': 1963, 'n_tokens_neox': 1892, 'n_words': 365}