<commit_before><?php

namespace blink\server;

use blink\core\Object;
use blink\http\Application;

/**
 * The base class for Application Server.
 *
 * @package blink\server
 */
abstract class Server extends Object
{
    public $host = '0.0.0.0';
    public $port = 7788;

    /**
     * A php file that application will boot from.
     *
     * @var string
     */
    public $bootstrap;

    public function startApp()
    {
        if ($this->bootstrap instanceof Application) {
            $app = $this->bootstrap;
        } else if (is_array($this->bootstrap)) {
            $app = new Application($this->bootstrap);
        } else {
            $app = require $this->bootstrap;
        }

        $app->bootstrap();
    }

    public function stopApp()
    {
        app()->shutdown();
    }

    public function handleRequest($request)
    {
        return app()->handleRequest($request);
    }

    abstract public function run();
}
<commit_msg>Fixed wrong namespace using<commit_after><?php

namespace blink\server;

use blink\core\Object;
use blink\core\Application;

/**
 * The base class for Application Server.
 *
 * @package blink\server
 */
abstract class Server extends Object
{
    public $host = '0.0.0.0';
    public $port = 7788;

    /**
     * A php file that application will boot from.
     *
     * @var string
     */
    public $bootstrap;

    public function startApp()
    {
        if ($this->bootstrap instanceof Application) {
            $app = $this->bootstrap;
        } else if (is_array($this->bootstrap)) {
            $app = new Application($this->bootstrap);
        } else {
            $app = require $this->bootstrap;
        }

        $app->bootstrap();
    }

    public function stopApp()
    {
        app()->shutdown();
    }

    public function handleRequest($request)
    {
        return app()->handleRequest($request);
    }

    abstract public function run();
}

{'fraction_non_alphanumeric': 0.12930135557872785, 'fraction_numerical': 0.008342022940563087, 'mean_word_length': 2.1356209150326797, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2933637', 'n_tokens_mistral': 550, 'n_tokens_neox': 531, 'n_words': 145}