<commit_before><?php

namespace Drips\LessCompiler;

use Drips\Utils\ICompiler;
use lessc;

class LessCompiler implements ICompiler
{
    public static function compile($string){
        $less = new lessc;
        return $less->compile($string);
    }
}<commit_msg>LessCompiler überarbeitet (Singleton)<commit_after><?php

namespace Drips\LessCompiler;

use Drips\Utils\ICompiler;
use lessc;

class LessCompiler implements ICompiler
{
    private static $compiler;

    public static function compile($string)
    {
        if(static::$compiler == null){
            static::$compiler = new lessc;
        }

        return static::$compiler->compile($string);
    }
}
{'fraction_non_alphanumeric': 0.1092814371257485, 'fraction_numerical': 0.0, 'mean_word_length': 3.48993288590604, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4079430', 'n_tokens_mistral': 195, 'n_tokens_neox': 197, 'n_words': 47}