<commit_before><?php

use Behat\Behat\Context\ClosuredContextInterface,
    Behat\Behat\Context\TranslatedContextInterface,
    Behat\Behat\Context\BehatContext,
    Behat\Behat\Exception\PendingException;
use Behat\Gherkin\Node\PyStringNode,
    Behat\Gherkin\Node\TableNode;

use Behat\MinkExtension\Context\RawMinkContext;
use Behat\MinkExtension\Context\MinkContext;

//
// Require 3rd-party libraries here:
//
   require_once 'PHPUnit/Autoload.php';
   require_once 'PHPUnit/Framework/Assert/Functions.php';
//

/**
 * Features context.
 */
class FeatureContext extends RawMinkContext
{
	
	/** @AfterScenario */
	public static function errors(ScenarioEvent $event)
	{
		if ($event->getResult() == '4'){
			print static::showError($event->getContext()->getSubcontext('mink')->printCurrentUrl());
			print static::showError($event->getContext()->getSubcontext('mink')->printLastResponse());
		}
	}<commit_msg>Fixed featureContext to errors show<commit_after><?php

use Behat\Behat\Context\ClosuredContextInterface,
    Behat\Behat\Context\TranslatedContextInterface,
    Behat\Behat\Context\BehatContext,
    Behat\Behat\Event\ScenarioEvent,
    Behat\Behat\Exception\PendingException;
use Behat\Gherkin\Node\PyStringNode,
    Behat\Gherkin\Node\TableNode;

use Behat\MinkExtension\Context\RawMinkContext;
use Behat\MinkExtension\Context\MinkContext;

//
// Require 3rd-party libraries here:
//
   require_once 'PHPUnit/Autoload.php';
   require_once 'PHPUnit/Framework/Assert/Functions.php';
//

/**
 * Features context.
 */
class FeatureContext extends RawMinkContext
{
	
	/** @AfterScenario */
	public static function errors(ScenarioEvent $event)
	{
		if ($event->getResult() == '4'){
			print 'URL:' . $event->getContext()->getSubcontext('mink')->printCurrentUrl();
			print 'Last Response: ' . $event->getContext()->getSubcontext('mink')->printLastResponse();
		}
	}
{'fraction_non_alphanumeric': 0.14194236926360726, 'fraction_numerical': 0.0021344717182497333, 'mean_word_length': 4.914826498422713, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '2255379', 'n_tokens_mistral': 622, 'n_tokens_neox': 606, 'n_words': 88}