<commit_before><?php

use Drips\HTTP\Request;
use Drips\HTTP\Response;
use Drips\Debugbar\Debugbar;

if(!defined('DRIPS_DEBUG')){
    define('DRIPS_DEBUG', true);
}

if(class_exists('Drips\App')){
    Response::on('send', function($response){
	    $request = Request::getInstance();
        if(in_array('text/html', $request->getAccept())){
            $debugbar = Debugbar::getInstance();
            if($debugbar->hasTabs()){
                $debugbarString = $debugbar->__toString();
                $bodyTag = '</body>';
                if(strpos($response->body, $bodyTag) !== false){
                    $reponse->body = str_replace($bodyTag, $debugbarString.$bodyTag, $response->body);
                } else {
                    $reponse->body .= $debugbarString;
                }
            }
        }
    });
}<commit_msg>Tippfehler Response<commit_after><?php

use Drips\HTTP\Request;
use Drips\HTTP\Response;
use Drips\Debugbar\Debugbar;

if(!defined('DRIPS_DEBUG')){
    define('DRIPS_DEBUG', true);
}

if(class_exists('Drips\App')){
    Response::on('send', function($response){
	    $request = Request::getInstance();
        if(in_array('text/html', $request->getAccept())){
            $debugbar = Debugbar::getInstance();
            if($debugbar->hasTabs()){
                $debugbarString = $debugbar->__toString();
                $bodyTag = '</body>';
                if(strpos($response->body, $bodyTag) !== false){
                    $response->body = str_replace($bodyTag, $debugbarString.$bodyTag, $response->body);
                } else {
                    $response->body .= $debugbarString;
                }
            }
        }
    });
}
{'fraction_non_alphanumeric': 0.17142857142857143, 'fraction_numerical': 0.0, 'mean_word_length': 2.2451737451737452, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, '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': '160085', 'n_tokens_mistral': 512, 'n_tokens_neox': 495, 'n_words': 69}