<commit_before><?php
namespace Barryvanveen\Http\Controllers;

use Barryvanveen\Blogs\Blog;
use Barryvanveen\Blogs\BlogRepository;
use Barryvanveen\Comments\Comment;
use Barryvanveen\Http\Requests\CreateCommentRequest;
use Barryvanveen\Jobs\Blogs\GetBlogRssXml;
use Barryvanveen\Jobs\Comments\CreateComment;
use Barryvanveen\Jobs\Markdown\MarkdownToHtml;
use Barryvanveen\Mailers\CommentMailer;
use Barryvanveen\Pagination\SimplePaginatorPresenter;
use Flash;
use GoogleTagManager;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Http\RedirectResponse;
use Redirect;
use Request;
use Response;
use View;

class BlogController extends Controller
{
    use ValidatesRequests;

    /** @var BlogRepository */
    private $blogRepository;

    /**
     * @param BlogRepository $blogRepository
     */
    public function __construct(BlogRepository $blogRepository)
    {
        $this->blogRepository = $blogRepository;

        parent::__construct();
    }

    /**
     * display full-list of blog items.
     *
     * @return View
     */
    public function index()
    {
        $blogs     = $this->blogRepository->paginatedPublished();
        $presenter = new SimplePaginatorPresenter($blogs);
<commit_msg>remove double usage of ValidatesRequests trait<commit_after><?php
namespace Barryvanveen\Http\Controllers;

use Barryvanveen\Blogs\Blog;
use Barryvanveen\Blogs\BlogRepository;
use Barryvanveen\Comments\Comment;
use Barryvanveen\Http\Requests\CreateCommentRequest;
use Barryvanveen\Jobs\Blogs\GetBlogRssXml;
use Barryvanveen\Jobs\Comments\CreateComment;
use Barryvanveen\Jobs\Markdown\MarkdownToHtml;
use Barryvanveen\Mailers\CommentMailer;
use Barryvanveen\Pagination\SimplePaginatorPresenter;
use Flash;
use GoogleTagManager;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Http\RedirectResponse;
use Redirect;
use Request;
use Response;
use View;

class BlogController extends Controller
{
    /** @var BlogRepository */
    private $blogRepository;

    /**
     * @param BlogRepository $blogRepository
     */
    public function __construct(BlogRepository $blogRepository)
    {
        $this->blogRepository = $blogRepository;

        parent::__construct();
    }

    /**
     * display full-list of blog items.
     *
     * @return View
     */
    public function index()
    {
        $blogs     = $this->blogRepository->paginatedPublished();
        $presenter = new SimplePaginatorPresenter($blogs);

{'fraction_non_alphanumeric': 0.09343936381709742, 'fraction_numerical': 0.0, 'mean_word_length': 4.176954732510288, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2963828', 'n_tokens_mistral': 746, 'n_tokens_neox': 747, 'n_words': 149}