<commit_before><?php namespace Bedard\Debugbar;

use App;
use Event;
use Debugbar;
use BackendAuth;
use System\Classes\PluginBase;
use Illuminate\Foundation\AliasLoader;

/**
 * Debugbar Plugin Information File
 */
class Plugin extends PluginBase
{

    /**
     * Returns information about this plugin.
     *
     * @return array
     */
    public function pluginDetails()
    {
        return [
            'name'        => 'Debugbar',
            'description' => 'Debugbar integration for OctoberCMS.',
            'author'      => 'Bedard',
            'icon'        => 'icon-cog'
        ];
    }

    /**
     * Register service provider, Twig extensions, and alias facade.
     */
    public function boot()
    {
        // Service provider
        App::register('\Barryvdh\Debugbar\ServiceProvider');

        // Register alias
        $alias = AliasLoader::getInstance();
        $alias->alias('Debugbar', '\Barryvdh\Debugbar\Facade');

        // Register middleware
        if (\Config::get('app.debugAjax', false)) {
            $this->app['Illuminate\Contracts\Http\Kernel']->pushMiddleware('\Bedard\Debugbar\Middleware\Debugbar');
        }

        Event::listen('cms.page.beforeDisplay', function($controller, $url, $page) {
            // Only show for authenticated backend users
            if (!BackendAuth::check()) {
                Debugbar::disable();
            }

            // Twig extensions
            $twig = $controller->getTwig();
            $twig->addExtension(new \Barryvdh\Debugbar\Twig\Extension\Debug($this->app));
            $twig->addExtension(new \Barryvdh\Debugbar\Twig\Extension\Stopwatch($this->app));
        });
    }

}<commit_msg>Add homepage to plugin details<commit_after><?php namespace Bedard\Debugbar;

use App;
use Event;
use Debugbar;
use BackendAuth;
use System\Classes\PluginBase;
use Illuminate\Foundation\AliasLoader;

/**
 * Debugbar Plugin Information File
 */
class Plugin extends PluginBase
{
    /**
     * Returns information about this plugin.
     *
     * @return array
     */
    public function pluginDetails()
    {
        return [
            'name'        => 'Debugbar',
            'description' => 'Debugbar integration for OctoberCMS.',
            'author'      => 'Bedard',
            'icon'        => 'icon-cog',
            'homepage'    => 'https://github.com/scottbedard/oc-debugbar-plugin'
        ];
    }

    /**
     * Register service provider, Twig extensions, and alias facade.
     */
    public function boot()
    {
        // Service provider
        App::register('\Barryvdh\Debugbar\ServiceProvider');

        // Register alias
        $alias = AliasLoader::getInstance();
        $alias->alias('Debugbar', '\Barryvdh\Debugbar\Facade');

        // Register middleware
        if (\Config::get('app.debugAjax', false)) {
            $this->app['Illuminate\Contracts\Http\Kernel']->pushMiddleware('\Bedard\Debugbar\Middleware\Debugbar');
        }

        Event::listen('cms.page.beforeDisplay', function($controller, $url, $page)
        {
            // Only show for authenticated backend users
            if (!BackendAuth::check()) {
                Debugbar::disable();
            }

            // Twig extensions
            $twig = $controller->getTwig();
            $twig->addExtension(new \Barryvdh\Debugbar\Twig\Extension\Debug($this->app));
            $twig->addExtension(new \Barryvdh\Debugbar\Twig\Extension\Stopwatch($this->app));
        });
    }
}
{'fraction_non_alphanumeric': 0.13776243888409548, 'fraction_numerical': 0.0, 'mean_word_length': 2.1446654611211575, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 28, 'https://': 1, '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': '280637', 'n_tokens_mistral': 979, 'n_tokens_neox': 969, 'n_words': 190}