<commit_before><?php

	namespace Skip;

	use Skip\WebApplication;
	use Skip\ConfigLoader;
    use Symfony\Component\HttpKernel\Client;

	abstract class WebApplicationTestCase extends \Silex\WebTestCase {

        public function createClient(array $server = array(), WebApplication $app=null)
        {
            return new Client( $app ? $app : $this->createApplication(), $server);
        }

        abstract public function getConfigLoader();

		public function createApplication()
		{
			$app = new WebApplication();
			$app->setConfigLoader($this->getConfigLoader());
			$app->configure();
		    return $app;
		}
<commit_msg>update creatClient method to read a bit more clearly<commit_after><?php

	namespace Skip;

	use Skip\WebApplication;
	use Skip\ConfigLoader;
    use Symfony\Component\HttpKernel\Client;

	abstract class WebApplicationTestCase extends \Silex\WebTestCase {

        public function createClient(array $server = array(), WebApplication $app=null)
        {
        	if(!$app) {
        		$app = $this->createApplication();
        	}
            return new Client($app, $server);
        }

        abstract public function getConfigLoader();

		public function createApplication()
		{
			$app = new WebApplication();
			$app->setConfigLoader($this->getConfigLoader());
			$app->configure();
		    return $app;
		}

{'fraction_non_alphanumeric': 0.11301115241635688, 'fraction_numerical': 0.0, 'mean_word_length': 3.20625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5268489', 'n_tokens_mistral': 392, 'n_tokens_neox': 359, 'n_words': 92}