<commit_before><?php
namespace autocar\LaravelLogManager;

use Illuminate\Support\Facades\View;

class LogManagerController extends \Illuminate\Routing\Controller
{

    public function index()
    {
        if (\Request::get('l')) {
            LaravelLogManager::setFile(base64_decode(\Request::get('l')));
        }
        if (\Request::get('d')) {
            $log_file = glob(storage_path().'/logs'.'/'.base64_decode(\Request::get('d')));
            \File::delete($log_file);
            return redirect()->to('logs');
        }
        $logs = LaravelLogManager::all();
        View::addNamespace('laravel-log-manager', __DIR__.'/../views');

        return View::make('laravel-log-manager::log', [
            'logs' => $logs,
            'files' => LaravelLogManager::getFiles(true),
            'current_file' => LaravelLogManager::getFileName()
        ]);
    }

}<commit_msg>Update LogManagerController.php<commit_after><?php
namespace autocar\LaravelLogManager;

use Illuminate\Support\Facades\View;

class LogManagerController extends \Illuminate\Routing\Controller
{

    public function index()
    {
        if (\Request::get('l')) {
            LaravelLogManager::setFile(base64_decode(\Request::get('l')));
        }
        if (\Request::get('d')) {
            $log_file = glob(storage_path().'/logs'.'/'.base64_decode(\Request::get('d')));
            \File::delete($log_file);
            return redirect()->back();
        }
        $logs = LaravelLogManager::all();
        View::addNamespace('laravel-log-manager', __DIR__.'/../views');

        return View::make('laravel-log-manager::log', [
            'logs' => $logs,
            'files' => LaravelLogManager::getFiles(true),
            'current_file' => LaravelLogManager::getFileName()
        ]);
    }

}
{'fraction_non_alphanumeric': 0.17578125, 'fraction_numerical': 0.004464285714285714, 'mean_word_length': 2.712215320910973, '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': '2876408', 'n_tokens_mistral': 532, 'n_tokens_neox': 528, 'n_words': 69}