<commit_before><?php

namespace Kanboard\Plugin\Metadata;

use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;

class Plugin extends Base
{
    public function initialize()
    {
        //Project
        $this->template->hook->attach('template:project:sidebar', 'metadata:project/sidebar');

        //Task
        $this->template->hook->attach('template:task:sidebar', 'metadata:task/sidebar');
        $this->template->hook->attach('template:board:task:icons', 'metadata:task/footer_icon');

        //User
        $this->template->hook->attach('template:user:sidebar:information', 'metadata:user/sidebar');

        // Translation
        $this->on('app.bootstrap', function($container) {
            Translator::load($this->language->getCurrentLanguage(), __DIR__.'/Locale');
        });

        // Add link to new plugin settings
        //$this->template->hook->attach('template:config:sidebar', 'Metadata:config/sidebar');
        
    }

    public function getClasses()
    {
        return array(
            'Plugin\Metadata\Model' => array(
                'MetadataType',
            )
        );<commit_msg>fix #18<commit_after><?php

namespace Kanboard\Plugin\Metadata;

use Kanboard\Core\Plugin\Base;
use Kanboard\Core\Translator;

class Plugin extends Base
{
    public function initialize()
    {
        //Project
        $this->template->hook->attach('template:project:sidebar', 'metadata:project/sidebar');

        //Task
        $this->template->hook->attach('template:task:sidebar:information', 'metadata:task/sidebar');
        $this->template->hook->attach('template:board:task:icons', 'metadata:task/footer_icon');

        //User
        $this->template->hook->attach('template:user:sidebar:information', 'metadata:user/sidebar');

        // Translation
        $this->on('app.bootstrap', function($container) {
            Translator::load($this->language->getCurrentLanguage(), __DIR__.'/Locale');
        });

        // Add link to new plugin settings
        //$this->template->hook->attach('template:config:sidebar', 'Metadata:config/sidebar');
        
    }

    public function getClasses()
    {
        return array(
            'Plugin\Metadata\Model' => array(
                'MetadataType',
            )
        );
{'fraction_non_alphanumeric': 0.15770925110132158, 'fraction_numerical': 0.000881057268722467, 'mean_word_length': 2.722950819672131, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, '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': '850011', 'n_tokens_mistral': 614, 'n_tokens_neox': 600, 'n_words': 93}