<commit_before><?php

namespace RodrigoPedra\QueryLogger;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\ServiceProvider;

class QueryLoggerServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        if (env( 'APP_DEBUG', false )) {
            $this->startQueryLogger();
        } else {
            DB::connection()->disableQueryLog();
        }<commit_msg>do not use env()<commit_after><?php

namespace RodrigoPedra\QueryLogger;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\ServiceProvider;

class QueryLoggerServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        if ($this->app[ 'config' ]->get( 'app.debug' ) === true) {
            $this->startQueryLogger();
        } else {
            DB::connection()->disableQueryLog();
        }
{'fraction_non_alphanumeric': 0.12252591894439209, 'fraction_numerical': 0.0, 'mean_word_length': 2.73943661971831, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '520631', 'n_tokens_mistral': 294, 'n_tokens_neox': 302, 'n_words': 63}