<commit_before><?php

namespace App\Http\Controllers;

use App\Events\ConversationRead;
use App\Http\Resources\ConversationResource;
use App\Rules\NotSelfId;
use Auth;
use DB;
use Illuminate\Http\Request;

class ConversationsController extends Controller
{
    public function __construct()
    {
        $this->middleware('auth');
    }

    /**
     * all the conversations auth user has ever had.
     *
     * @return \Illuminate\Support\Collection
     */
    public function index()
    {
        return ConversationResource::collection(
            Auth::user()->contacts
        );
    }<commit_msg>fix "block user"<commit_after><?php

namespace App\Http\Controllers;

use App\Events\ConversationRead;
use App\Http\Resources\ConversationResource;
use App\Rules\NotSelfId;
use Auth;
use DB;
use Illuminate\Http\Request;
use App\Traits\CachableUser;

class ConversationsController extends Controller
{
    use CachableUser;

    public function __construct()
    {
        $this->middleware('auth');
    }

    /**
     * all the conversations auth user has ever had.
     *
     * @return \Illuminate\Support\Collection
     */
    public function index()
    {
        return ConversationResource::collection(
            Auth::user()->contacts
        );
    }
{'fraction_non_alphanumeric': 0.10559495665878645, 'fraction_numerical': 0.0, 'mean_word_length': 2.895705521472393, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3218762', 'n_tokens_mistral': 360, 'n_tokens_neox': 367, 'n_words': 84}