<commit_before><?php

namespace App\Units\Home\Http\Controllers;

use Codecasts\Support\Http\Controller;

/**
 * Class GraphicsController.
 */
class GraphicsController extends Controller
{

    public function showGraphicsStars()
    {
        return view('home::Graphics.Trends.stars');
    }

    public function showGraphicsForks()
    {
        return view('home::Graphics.Trends.forks');
    }

}<commit_msg>Compact the top 10 repositories (forked and stared) to the views.<commit_after><?php

namespace App\Units\Home\Http\Controllers;

use App\Domains\Trends\Trend;
use Codecasts\Support\Http\Controller;

/**
 * Class GraphicsController.
 */
class GraphicsController extends Controller
{

    public function showGraphicsStars()
    {
        $repositories = Trend::getMostStaredRepositories();

        return view('home::Graphics.Trends.stars', compact(['repositories']));
    }

    public function showGraphicsForks()
    {
        $repositories = Trend::getMostForkedRepositories();

        return view('home::Graphics.Trends.forks', compact(['repositories']));
    }

}
{'fraction_non_alphanumeric': 0.12269372693726938, 'fraction_numerical': 0.0018450184501845018, 'mean_word_length': 3.8222222222222224, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6611945', 'n_tokens_mistral': 339, 'n_tokens_neox': 311, 'n_words': 60}