<commit_before><?php
namespace TypiCMS\Modules\Dashboard\Repositories;

use GuzzleHttp\Client;
use TypiCMS\Repositories\RepositoriesAbstract;

class EloquentDashboard extends RepositoriesAbstract implements DashboardInterface
{

    public function welcomeMessage()
    {
        if ($welcomeMessageUrl = config('typicms.welcome_message_url')) {
            $response = with(new Client)->get($welcomeMessageUrl);
            if ($response->getStatusCode() < 400) {
                return $response->getBody();
            }
        }

        return config('typicms.welcome_message');
    }
}<commit_msg>curl in place of guzzle<commit_after><?php
namespace TypiCMS\Modules\Dashboard\Repositories;

use TypiCMS\Repositories\RepositoriesAbstract;

class EloquentDashboard extends RepositoriesAbstract implements DashboardInterface
{

    public function welcomeMessage()
    {

        if ($welcomeMessageUrl = config('typicms.welcome_message_url')) {
            $ch = curl_init($welcomeMessageUrl);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
            $welcomeMessage = curl_exec($ch);
            if (curl_getinfo($ch, CURLINFO_HTTP_CODE) < 400) {
                curl_close($ch);
                return $welcomeMessage;
            }
        }

        return config('typicms.welcome_message');
    }
}
{'fraction_non_alphanumeric': 0.09901738473167045, 'fraction_numerical': 0.0045351473922902496, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 6, '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': '5614238', 'n_tokens_mistral': 397, 'n_tokens_neox': 378, 'n_words': 66}