<commit_before><?php
class AvaneSassCompiler extends Avane
{
    function __construct($thisOne)
    {
        if($thisOne) parent::__construct($thisOne);
        
        $this->sassListPath     = $this->compiledPath . 'sass.json';
        $this->modifiedTimePath = $this->compiledPath . 'sass_modified_time.txt';
    }
    
    
    
    
    function compile()
    {
        if(!$this->checkTime())
        {
            foreach($this->sass as $name => $path)
            {
                exec($this->sassc . ' ' . $this->sassPath . $path . ' > ' . $this->stylesPath . $name . '.css 2>&1', $Output, $Code);
            }
        }
        
        return $this;
    }
    
    
    function checkTime()
    {
        if(!file_exists($this->modifiedTimePath))
        {
            file_put_contents(filemtime($this->sassPath), $this->modifiedTimePath);
        
            return false;
        }
        
        return file_get_contents($this->modifiedTimePath) == filemtime($this->sassPath);
    }
    
    
    function listAndSave()
    {
        $list      = [];
        $directory = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->sassPath));
        
        foreach ($directory as $info)
        {
            $filename = $info->getFilename();
            $fileMD5  = md5_file($info->getRealPath());
            
            $list[]   = $FileMD5;
        }

        /** Remove unnecessary */
        unset($list['.']);
        unset($list['..']);
    }
    
    <commit_msg>Wrong args of file_put_contents.<commit_after><?php
class AvaneSassCompiler extends Avane
{
    function __construct($thisOne)
    {
        if($thisOne) parent::__construct($thisOne);
        
        $this->sassListPath     = $this->compiledPath . 'sass.json';
        $this->modifiedTimePath = $this->compiledPath . 'sass_modified_time.txt';
    }
    
    
    
    
    function compile()
    {
        if(!$this->checkTime())
        {
            foreach($this->sass as $name => $path)
            {
                exec($this->sassc . ' ' . $this->sassPath . $path . ' > ' . $this->stylesPath . $name . '.css 2>&1', $Output, $Code);
            }
        }
        
        return $this;
    }
    
    
    function checkTime()
    {
        if(!file_exists($this->modifiedTimePath))
        {
            file_put_contents($this->modifiedTimePath, filemtime($this->sassPath));
        
            return false;
        }
        
        return file_get_contents($this->modifiedTimePath) == filemtime($this->sassPath);
    }
    
    
    function listAndSave()
    {
        $list      = [];
        $directory = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->sassPath));
        
        foreach ($directory as $info)
        {
            $filename = $info->getFilename();
            $fileMD5  = md5_file($info->getRealPath());
            
            $list[]   = $FileMD5;
        }

        /** Remove unnecessary */
        unset($list['.']);
        unset($list['..']);
    }
    
    
{'fraction_non_alphanumeric': 0.14474118034948896, 'fraction_numerical': 0.003297065611605671, 'mean_word_length': 1.635968722849696, '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': '5769454', 'n_tokens_mistral': 908, 'n_tokens_neox': 903, 'n_words': 131}