<commit_before><?php

namespace App\CHD;

class Request
{
    protected $data;

    public function get($url)
    {
        if (isset($this->data[$url])) {
            return $this->data[$url];
        }

        //$this->app['log']->debug('getting page:', array('url' => $url));
        //echo 'getting page:'.$url;
        $data = file_get_contents($url);
        //$this->app['log']->info('loaded page: ', array('url' => $url));
        //echo 'loaded page: '.$url;

        $this->data[$url] = trim(preg_replace('/\s+/', ' ', $data));

        return $this->data[$url];
    }
}
<commit_msg>logging requests<commit_after><?php

namespace App\CHD;

use Illuminate\Support\Facades\Log;

class Request
{
    protected $data;

    public function get($url)
    {
        if (isset($this->data[$url])) {
            return $this->data[$url];
        }

        Log::info('request started for:  '.$url);

        $data = file_get_contents($url);
        //$this->app['log']->info('loaded page: ', array('url' => $url));

        Log::info('request finished for: '.$url);

        $this->data[$url] = trim(preg_replace('/\s+/', ' ', $data));

        return $this->data[$url];
    }
}

{'fraction_non_alphanumeric': 0.21761219305673157, 'fraction_numerical': 0.0, 'mean_word_length': 2.4260869565217393, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, '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': '4379648', 'n_tokens_mistral': 397, 'n_tokens_neox': 387, 'n_words': 72}