<commit_before><?php

namespace Canvas\Http\Controllers;

use Canvas\Post;
use Canvas\View;
use Illuminate\Routing\Controller;

class StatsController extends Controller
{
    const DAYS_PRIOR = 30;

    /**
     * Show the overall statistics for all posts.
     *
     * @return \Illuminate\View\View
     */
    public function index()
    {
        $posts = Post::withCount('views')->orderByDesc('created_at')->paginate();
        $views = View::whereBetween('created_at', [
            now()->subDays(self::DAYS_PRIOR)->toDateTimeString(),
            now()->toDateTimeString()
        ])->select('created_at')->get();
<commit_msg>Apply fixes from StyleCI (#441)<commit_after><?php

namespace Canvas\Http\Controllers;

use Canvas\Post;
use Canvas\View;
use Illuminate\Routing\Controller;

class StatsController extends Controller
{
    const DAYS_PRIOR = 30;

    /**
     * Show the overall statistics for all posts.
     *
     * @return \Illuminate\View\View
     */
    public function index()
    {
        $posts = Post::withCount('views')->orderByDesc('created_at')->paginate();
        $views = View::whereBetween('created_at', [
            now()->subDays(self::DAYS_PRIOR)->toDateTimeString(),
            now()->toDateTimeString(),
        ])->select('created_at')->get();

{'fraction_non_alphanumeric': 0.14918414918414918, 'fraction_numerical': 0.005439005439005439, 'mean_word_length': 3.1414790996784565, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '399283', 'n_tokens_mistral': 388, 'n_tokens_neox': 382, 'n_words': 74}