<commit_before><?php namespace Ivacuum\Generic\Providers;

use Illuminate\Support\ServiceProvider;

class BladeServiceProvider extends ServiceProvider
{
    public function register()
    {
        $this->lang();
        $this->prop();
        $this->svg();
    }

    protected function lang()
    {
        \Blade::directive('ru', function ($expression) {
            return '<?php if ($locale === \'ru\'): ?>';
        });

        \Blade::directive('en', function ($expression) {
            return '<?php elseif ($locale === \'en\'): ?>';
        });

        \Blade::directive('de', function ($expression) {
            return '<?php elseif ($locale === \'de\'): ?>';
        });

        \Blade::directive('endlang', function ($expression) {
            return '<?php endif; ?>';
        });
    }

    protected function prop()
    {
        \Blade::directive('prop', function ($expression) {
            return '<?php echo \Ivacuum\Generic\Utilities\Vue::prop($expression); ?>';
        });
    }

    protected function svg()<commit_msg>Дополнительные алиасы для языковых директив шаблонизатора<commit_after><?php namespace Ivacuum\Generic\Providers;

use Illuminate\Support\ServiceProvider;

class BladeServiceProvider extends ServiceProvider
{
    public function register()
    {
        $this->lang();
        $this->prop();
        $this->svg();
    }

    protected function lang()
    {
        \Blade::directive('ru', function () {
            return '<?php if ($locale === \'ru\'): ?>';
        });

        \Blade::directive('endru', function () {
            return '<?php endif; ?>';
        });

        \Blade::directive('en', function () {
            return '<?php elseif ($locale === \'en\'): ?>';
        });

        \Blade::directive('enden', function () {
            return '<?php endif; ?>';
        });

        \Blade::directive('de', function () {
            return '<?php elseif ($locale === \'de\'): ?>';
        });

        \Blade::directive('endde', function () {
            return '<?php endif; ?>';
        });

        \Blade::directive('endlang', function () {
            return '<?php endif; ?>';
        });
    }

    protected function prop()
    {
        \Blade::directive('prop', function ($expression) {
            return '<?php echo \Ivacuum\Generic\Utilities\Vue::prop($expression); ?>';
        });
    }

    protected function svg()
{'fraction_non_alphanumeric': 0.1858813700918964, 'fraction_numerical': 0.0, 'mean_word_length': 2.1471747700394217, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 22, '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': '4877399', 'n_tokens_mistral': 694, 'n_tokens_neox': 683, 'n_words': 137}