<commit_before><?php

namespace Flosch\Slideshow;

use System\Classes\PluginBase;
use Backend;

class Plugin extends PluginBase
{
    public function pluginDetails()
    {
        return [
            'name' => 'Slideshow',
            'description' => 'Manage Twitter Bootstrap carousels with additional content.',
            'author' => 'Flosch',
            'icon' => 'icon-picture-o',
            'homepage' => ''
        ];
    }

    /**
     * @return array
     */
    public function registerPermissions()
    {
        return [
            'flosch.slideshow.access_slideshow' => [
                'tab'   => 'flosch.slideshow::lang.permissions.tab',
                'label' => 'flosch.slideshow::lang.permissions.manage',
            ],
        ];
    }

    public function registerNavigation()
    {
        return [
            'slideshow' => [
                'label' => 'flosch.slideshow::lang.navigation.label',
                'url' => Backend::url('flosch/slideshow/slideshows'),
                'icon' => 'icon-picture-o',
                'permissions' => ['book.slideshow.access_slideshow'],
                'order' => 500,
                'sideMenu' => [
                    'slideshows' => [
                        'permissions' => ['flosch.slideshow.access_slideshow'],
                        'label' => 'flosch.slideshow::lang.navigation.sideMenu.slideshows',
                        'icon' => 'icon-picture-o',
                        'url' => Backend::url('flosch/slideshow/slideshows'),<commit_msg>Fix wrong permission name<commit_after><?php

namespace Flosch\Slideshow;

use System\Classes\PluginBase;
use Backend;

class Plugin extends PluginBase
{
    public function pluginDetails()
    {
        return [
            'name' => 'Slideshow',
            'description' => 'Manage Twitter Bootstrap carousels with additional content.',
            'author' => 'Flosch',
            'icon' => 'icon-picture-o',
            'homepage' => ''
        ];
    }

    /**
     * @return array
     */
    public function registerPermissions()
    {
        return [
            'flosch.slideshow.access_slideshow' => [
                'tab'   => 'flosch.slideshow::lang.permissions.tab',
                'label' => 'flosch.slideshow::lang.permissions.manage',
            ],
        ];
    }

    public function registerNavigation()
    {
        return [
            'slideshow' => [
                'label' => 'flosch.slideshow::lang.navigation.label',
                'url' => Backend::url('flosch/slideshow/slideshows'),
                'icon' => 'icon-picture-o',
                'permissions' => ['flosch.slideshow.access_slideshow'],
                'order' => 500,
                'sideMenu' => [
                    'slideshows' => [
                        'permissions' => ['flosch.slideshow.access_slideshow'],
                        'label' => 'flosch.slideshow::lang.navigation.sideMenu.slideshows',
                        'icon' => 'icon-picture-o',
                        'url' => Backend::url('flosch/slideshow/slideshows'),
{'fraction_non_alphanumeric': 0.14201954397394137, 'fraction_numerical': 0.001954397394136808, 'mean_word_length': 1.6704347826086956, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '4382706', 'n_tokens_mistral': 924, 'n_tokens_neox': 885, 'n_words': 134}