<commit_before><?php

/*
 * This file is part of the eluceo/iCal package.
 *
 * (c) 2019 <NAME> <<EMAIL>>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Example;

use \DateTimeImmutable;
use Eluceo\iCal\Domain\Entity\Calendar;
use Eluceo\iCal\Domain\Entity\Event;
use Eluceo\iCal\Domain\ValueObject\DateTime;
use Eluceo\iCal\Domain\ValueObject\TimeSpan;
use Eluceo\iCal\Presentation\Factory\CalendarFactory;

require_once __DIR__ . '/../vendor/autoload.php';

// 1. Create Event domain entity
$event = Event::create();
$event
    ->setSummary('Christmas Eve')
    ->setDescription('Lorem Ipsum Dolor...')
    ->setOccurrence(
        TimeSpan::create(
            DateTime::fromDateTimeInterface(
                DateTimeImmutable::createFromFormat('Y-m-d H:i:s', '2030-12-24 13:30:00')
            ),<commit_msg>Fix code style<commit_after><?php

/*
 * This file is part of the eluceo/iCal package.
 *
 * (c) 2019 <NAME> <<EMAIL>>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Example;

use DateTimeImmutable;
use Eluceo\iCal\Domain\Entity\Calendar;
use Eluceo\iCal\Domain\Entity\Event;
use Eluceo\iCal\Domain\ValueObject\DateTime;
use Eluceo\iCal\Domain\ValueObject\TimeSpan;
use Eluceo\iCal\Presentation\Factory\CalendarFactory;

require_once __DIR__ . '/../vendor/autoload.php';

// 1. Create Event domain entity
$event = Event::create();
$event
    ->setSummary('Christmas Eve')
    ->setDescription('Lorem Ipsum Dolor...')
    ->setOccurrence(
        TimeSpan::create(
            DateTime::fromDateTimeInterface(
                DateTimeImmutable::createFromFormat('Y-m-d H:i:s', '2030-12-24 13:30:00')
            ),
{'fraction_non_alphanumeric': 0.13113839285714285, 'fraction_numerical': 0.021205357142857144, 'mean_word_length': 3.4825, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '7181646', 'n_tokens_mistral': 610, 'n_tokens_neox': 581, 'n_words': 142}