<commit_before><?php
namespace Tests\AppBundle\EndToEnd;

use aik099\PHPUnit\BrowserTestCase;
use Symfony\Component\Yaml\Yaml;

/**
 * BaseWebTestCase
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright ProjektMOTOR GmbH 2016
 */
class BaseBrowserTestCase extends BrowserTestCase
{
    const WAIT = 5000;

    public function setUp()
    {
		$parameters = Yaml::parse(file_get_contents('app/config/parameters.yml'));

		$tunnelId = $parameters['parameters']['mink_tunnel_id'];
		putenv('PHPUNIT_MINK_TUNNEL_ID='.$tunnelId);

		$browserConfiguration = [
			'driver' => 'selenium2',
			'host' => $parameters['parameters']['mink_host'],
			'port' => $parameters['parameters']['mink_port'],
			'browserName' => 'chrome',
			'baseUrl' => $parameters['parameters']['mink_base_url'],
			'type' => $parameters['parameters']['mink_type'],
		];

		if ($browserConfiguration['type'] !== 'default') {
			$browserConfiguration['api_username'] = $parameters['parameters']['mink_api_username'];
			$browserConfiguration['api_key'] = $parameters['parameters']['mink_api_key'];
		}

        $browser = $this->createBrowserConfiguration($browserConfiguration);

        $this->setBrowser($browser);

        parent::setUp();
    }

    protected function openHomepage()
    {
        $this->getSession()->visit($this->getBrowser()->getBaseUrl());
    }
}<commit_msg>skip tests until sauce labs is changed to open source plan<commit_after><?php
namespace Tests\AppBundle\EndToEnd;

use aik099\PHPUnit\BrowserTestCase;
use Symfony\Component\Yaml\Yaml;

/**
 * BaseWebTestCase
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright ProjektMOTOR GmbH 2016
 */
class BaseBrowserTestCase extends BrowserTestCase
{
    const WAIT = 5000;

    public function setUp()
    {
		$parameters = Yaml::parse(file_get_contents('app/config/parameters.yml'));

		$tunnelId = $parameters['parameters']['mink_tunnel_id'];
		putenv('PHPUNIT_MINK_TUNNEL_ID='.$tunnelId);

		$browserConfiguration = [
			'driver' => 'selenium2',
			'host' => $parameters['parameters']['mink_host'],
			'port' => $parameters['parameters']['mink_port'],
			'browserName' => 'chrome',
			'baseUrl' => $parameters['parameters']['mink_base_url'],
			'type' => $parameters['parameters']['mink_type'],
		];

		if ($browserConfiguration['type'] !== 'default') {
			$browserConfiguration['api_username'] = $parameters['parameters']['mink_api_username'];
			$browserConfiguration['api_key'] = $parameters['parameters']['mink_api_key'];
		}

		if ($browserConfiguration['type'] === 'saucelabs') {
			$this->markTestSkipped('sauce labs not yet configured');
		}

        $browser = $this->createBrowserConfiguration($browserConfiguration);

        $this->setBrowser($browser);

        parent::setUp();
    }

    protected function openHomepage()
    {
        $this->getSession()->visit($this->getBrowser()->getBaseUrl());
    }
}
{'fraction_non_alphanumeric': 0.1752541184717841, 'fraction_numerical': 0.008412197686645636, 'mean_word_length': 5.008421052631579, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 34, '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': '3863968', 'n_tokens_mistral': 960, 'n_tokens_neox': 866, 'n_words': 134}