<commit_before><?php

namespace Transport\Test\Entity\Schedule;

use Transport\Entity;
use Transport\Entity\Schedule\Connection;

class ConnectionTest extends \PHPUnit_Framework_TestCase
{
    protected function getConnection()
    {
        $journey = new Entity\Schedule\Journey();
        $journey->name = 'S1219278';
        $journey->category = 'S12';
        $journey->categoryCode = 5;
        $journey->number = '19278';
        $journey->capacity1st = 1;
        $journey->capacity2nd = 2;

        $from = new Entity\Schedule\Stop();
        $from->departure = '2012-01-31T19:14:00+0100';
        $from->departureTimestamp = 1328033640;
        $from->platform = '21/22';
        $prognosis = new Entity\Schedule\Prognosis();
        $prognosis->capacity1st = '1';
        $prognosis->capacity2nd = '2';
        $from->prognosis = $prognosis;
        $station = new Entity\Location\Station();
        $station->name = 'Zürich HB';
        $station->id = '008503000';<commit_msg>Change type of capacity1st and capacity2nd to int in tests<commit_after><?php

namespace Transport\Test\Entity\Schedule;

use Transport\Entity;
use Transport\Entity\Schedule\Connection;

class ConnectionTest extends \PHPUnit_Framework_TestCase
{
    protected function getConnection()
    {
        $journey = new Entity\Schedule\Journey();
        $journey->name = 'S1219278';
        $journey->category = 'S12';
        $journey->categoryCode = 5;
        $journey->number = '19278';
        $journey->capacity1st = 1;
        $journey->capacity2nd = 2;

        $from = new Entity\Schedule\Stop();
        $from->departure = '2012-01-31T19:14:00+0100';
        $from->departureTimestamp = 1328033640;
        $from->platform = '21/22';
        $prognosis = new Entity\Schedule\Prognosis();
        $prognosis->capacity1st = 1;
        $prognosis->capacity2nd = 2;
        $from->prognosis = $prognosis;
        $station = new Entity\Location\Station();
        $station->name = '<NAME>';
        $station->id = '008503000';
{'fraction_non_alphanumeric': 0.141012909632572, 'fraction_numerical': 0.06454816285998013, 'mean_word_length': 2.7663551401869158, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 32, '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': '3517959', 'n_tokens_mistral': 704, 'n_tokens_neox': 626, 'n_words': 117}