<commit_before><?php

class Denkmal_Paging_Song_SuggestionTest extends CMTest_TestCase {

    /** @var Denkmal_Elasticsearch_Type_Song */
    protected $_type;

    public function setUp() {
        CM_Config::get()->CM_Elasticsearch_Client->enabled = true;
        $this->_type = new Denkmal_Elasticsearch_Type_Song();
        $this->_type->createVersioned();
    }

    public function tearDown() {
        $this->_type->getIndex()->delete();
        CMTest_TH::clearEnv();
    }

    public function testGetItems() {
        $file = new CM_File(DIR_TEST_DATA . 'music.mp3');
        $song1 = Denkmal_Model_Song::create('foo', $file);<commit_msg>Create event index in song test<commit_after><?php

class Denkmal_Paging_Song_SuggestionTest extends CMTest_TestCase {

    /** @var Denkmal_Elasticsearch_Type_Song */
    protected $_typeSong;

    /** @var Denkmal_Elasticsearch_Type_Event */
    protected $_typeEvent;

    public function setUp() {
        CM_Config::get()->CM_Elasticsearch_Client->enabled = true;

        $this->_typeSong = new Denkmal_Elasticsearch_Type_Song();
        $this->_typeSong->createVersioned();

        $this->_typeEvent = new Denkmal_Elasticsearch_Type_Event();
        $this->_typeEvent->createVersioned();
    }

    public function tearDown() {
        $this->_typeSong->getIndex()->delete();
        $this->_typeEvent->getIndex()->delete();
        CMTest_TH::clearEnv();
    }

    public function testGetItems() {
        $file = new CM_File(DIR_TEST_DATA . 'music.mp3');
        $song1 = Denkmal_Model_Song::create('foo', $file);
{'fraction_non_alphanumeric': 0.13295165394402036, 'fraction_numerical': 0.002544529262086514, 'mean_word_length': 3.456090651558074, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7145671', 'n_tokens_mistral': 501, 'n_tokens_neox': 481, 'n_words': 79}