<commit_before><?php

namespace Intracto\Behat\Features\Context\Bootstrap;

use Behat\MinkExtension\Context\RawMinkContext;
use Behat\Symfony2Extension\Context\KernelDictionary;
use Intracto\Behat\Features\Context\FeatureContext;
use Webmozart\Assert\Assert;

class StartedPartyManagementContext extends RawMinkContext
{
    use KernelDictionary;

    /**
     * @Given /^I am on the started party management page$/
     */
    public function GoToStartedPartyManagementPage()
    {
        $path = $this->getContainer()->get('router')->generate('party_manage', ['listUrl' => FeatureContext::STARTED_PARTY_URL_TOKEN]);
        $this->visitPath($path);
    }

    /**
     * @When /^I remove the second participant$/
     */
    public function iRemoveTheSecondParticipant()
    {
        $this->getSession()->getPage()->find('css', '#mysanta > tbody > tr:nth-child(2) .btn.link_remove_participant')->click();

        $this->getSession()->getPage()->find('css', '#btn_remove_participant_confirmation')->click();
    }

    /**
     * @When /^I send a party update$/
     */
    public function iSendAPartyUpdate()
    {<commit_msg>#215: PSR-1 is camelCase<commit_after><?php

namespace Intracto\Behat\Features\Context\Bootstrap;

use Behat\MinkExtension\Context\RawMinkContext;
use Behat\Symfony2Extension\Context\KernelDictionary;
use Intracto\Behat\Features\Context\FeatureContext;
use Webmozart\Assert\Assert;

class StartedPartyManagementContext extends RawMinkContext
{
    use KernelDictionary;

    /**
     * @Given /^I am on the started party management page$/
     */
    public function goToStartedPartyManagementPage()
    {
        $path = $this->getContainer()->get('router')->generate('party_manage', ['listUrl' => FeatureContext::STARTED_PARTY_URL_TOKEN]);
        $this->visitPath($path);
    }

    /**
     * @When /^I remove the second participant$/
     */
    public function iRemoveTheSecondParticipant()
    {
        $this->getSession()->getPage()->find('css', '#mysanta > tbody > tr:nth-child(2) .btn.link_remove_participant')->click();

        $this->getSession()->getPage()->find('css', '#btn_remove_participant_confirmation')->click();
    }

    /**
     * @When /^I send a party update$/
     */
    public function iSendAPartyUpdate()
    {
{'fraction_non_alphanumeric': 0.14562252529696437, 'fraction_numerical': 0.0035195776506819184, 'mean_word_length': 3.7473903966597075, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '6544235', 'n_tokens_mistral': 711, 'n_tokens_neox': 683, 'n_words': 121}