<commit_before><?php

namespace Eluceo\iCal;

class ComponentTest extends \PHPUnit_Framework_TestCase
{
    public function testFoldWithMultibyte()
    {
        $input = "x" . str_repeat("あいうえお", 5);

        $vCalendar = new \Eluceo\iCal\Component\Calendar('www.example.com');
        $vEvent = new \Eluceo\iCal\Component\Event();
        $vEvent->setDtStart(new \DateTime('2012-12-24'));
        $vEvent->setDtEnd(new \DateTime('2012-12-24'));
        $vEvent->setDescription($input);
        $vCalendar->addEvent($vEvent);

        $output = $vCalendar->render();
        $output = preg_replace('/\r\n /u', '', $output);
        $this->assertContains($input, $output);
    }
}
<commit_msg>Method addComponent() of Component class used.<commit_after><?php

namespace Eluceo\iCal;

class ComponentTest extends \PHPUnit_Framework_TestCase
{
    public function testFoldWithMultibyte()
    {
        $input = "x" . str_repeat("あいうえお", 5);

        $vCalendar = new \Eluceo\iCal\Component\Calendar('www.example.com');
        $vEvent = new \Eluceo\iCal\Component\Event();
        $vEvent->setDtStart(new \DateTime('2012-12-24'));
        $vEvent->setDtEnd(new \DateTime('2012-12-24'));
        $vEvent->setDescription($input);
        $vCalendar->addComponent($vEvent);

        $output = $vCalendar->render();
        $output = preg_replace('/\r\n /u', '', $output);
        $this->assertContains($input, $output);
    }
}

{'fraction_non_alphanumeric': 0.17076598735066761, 'fraction_numerical': 0.023893183415319746, 'mean_word_length': 3.1037463976945245, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2538493', 'n_tokens_mistral': 494, 'n_tokens_neox': 469, 'n_words': 73}