<commit_before><?php

namespace Bolt\Extensions;

use Bolt\Application;

class StatService
{
    public $app;
    public $urls = array(
        'install' => 'stat/install/%s/%s'
    );

    public function __construct(Application $app)
    {
        $this->app = $app;
    }

    public function recordInstall($package, $version)
    {
        $url = sprintf($this->app['extend.site'].$this->urls['install'], $package, $version);
        @file_get_contents($url);
    }
}<commit_msg>allow record method to return value<commit_after><?php

namespace Bolt\Extensions;

use Bolt\Application;

class StatService
{
    public $app;
    public $urls = array(
        'install' => 'stat/install/%s/%s'
    );

    public function __construct(Application $app)
    {
        $this->app = $app;
    }

    public function recordInstall($package, $version)
    {
        $url = sprintf($this->app['extend.site'].$this->urls['install'], $package, $version);
        return @file_get_contents($url);
    }
}
{'fraction_non_alphanumeric': 0.15477386934673368, 'fraction_numerical': 0.0, 'mean_word_length': 2.9681274900398407, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6487548', 'n_tokens_mistral': 311, 'n_tokens_neox': 313, 'n_words': 64}