<commit_before><?php

namespace BoomCMS\Tests;

use BoomCMS\Database\Models\Page;
use BoomCMS\Repositories;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Session\SessionManager;

abstract class AbstractTestCase extends \Illuminate\Foundation\Testing\TestCase
{
    protected $baseUrl = 'localhost';

    /**
     * Creates the application.
     *
     * @return \Illuminate\Foundation\Application
     */
    public function createApplication()
    {
        $app = require __DIR__.'/../vendor/laravel/laravel/bootstrap/app.php';
        $app->make(Kernel::class)->bootstrap();
        $app->register(Stubs\BoomCMSServiceProvider::class);

        $app->bind('boomcms.settings', function ($app) {
            return new Stubs\SettingsStore();
        });

        return $app;
    }

    protected function getMockSession()
    {
        return $this
            ->getMockBuilder(SessionManager::class)
            ->disableOriginalConstructor()
            ->getMock();
    }

    protected function getMockPersonRepository($methods = null)
    {
        return $this
            ->getMockBuilder(Repositories\Person::class)
            ->setMethods($methods)
            ->disableOriginalConstructor()
            ->getMock();
    }

    protected function invalidPage()
    {
        return new Page();
    }<commit_msg>Removed unused code from tests<commit_after><?php

namespace BoomCMS\Tests;

use BoomCMS\Database\Models\Page;
use Illuminate\Contracts\Console\Kernel;
use \Illuminate\Foundation\Testing\TestCase;

abstract class AbstractTestCase extends TestCase
{
    protected $baseUrl = 'localhost';

    /**
     * Creates the application.
     *
     * @return \Illuminate\Foundation\Application
     */
    public function createApplication()
    {
        $app = require __DIR__.'/../vendor/laravel/laravel/bootstrap/app.php';
        $app->make(Kernel::class)->bootstrap();
        $app->register(Stubs\BoomCMSServiceProvider::class);

        $app->bind('boomcms.settings', function ($app) {
            return new Stubs\SettingsStore();
        });

        return $app;
    }

    protected function invalidPage()
    {
        return new Page();
    }
{'fraction_non_alphanumeric': 0.12201834862385322, 'fraction_numerical': 0.0, 'mean_word_length': 2.616915422885572, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '5908286', 'n_tokens_mistral': 599, 'n_tokens_neox': 592, 'n_words': 112}