<commit_before><?php namespace Inetis\Dump;

use Illuminate\Support\Debug\Dumper;
use System\Classes\PluginBase;

/**
 * Dump Plugin Information File
 */
class Plugin extends PluginBase
{
    /**
     * Returns information about this plugin.
     *
     * @return array
     */
    public function pluginDetails()
    {
        return [
            'name'        => 'Twig Dump',
            'description' => 'Add Twig function d() that recursively dump passed variables',
            'author'      => 'inetis',
            'icon'        => 'icon-code'
        ];
    }

    /**
     * Register new Twig function
     *
     * @return array
     */
    public function registerMarkupTags()
    {
        return [
            'functions' => [
                'd' => function () {
                    array_map(function ($x) {
                        (new Dumper)->dump($x);
                    }, func_get_args());
                }
            ]
        ];
    }

}<commit_msg>Add homepage to the plugin details<commit_after><?php namespace Inetis\Dump;

use Illuminate\Support\Debug\Dumper;
use System\Classes\PluginBase;

/**
 * Dump Plugin Information File
 */
class Plugin extends PluginBase
{
    /**
     * Returns information about this plugin.
     *
     * @return array
     */
    public function pluginDetails()
    {
        return [
            'name'        => 'Twig Dump',
            'description' => 'Add Twig function d() that recursively dump passed variables',
            'author'      => 'inetis',
            'icon'        => 'icon-code',
            'homepage'    => 'https://github.com/inetis-ch/oc-dump'
        ];
    }

    /**
     * Register new Twig function
     *
     * @return array
     */
    public function registerMarkupTags()
    {
        return [
            'functions' => [
                'd' => function () {
                    array_map(function ($x) {
                        (new Dumper)->dump($x);
                    }, func_get_args());
                }
            ]
        ];
    }
}
{'fraction_non_alphanumeric': 0.12297893189612935, 'fraction_numerical': 0.0, 'mean_word_length': 1.41371158392435, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '6829234', 'n_tokens_mistral': 566, 'n_tokens_neox': 551, 'n_words': 129}