<commit_before><?php

namespace App\Http\Controllers;

use DateTimeZone;
use App\Models\User;
use Illuminate\Http\Request;
use App\Repositories\UserRepository;
use Illuminate\Support\Facades\Mail;
use App\Mail\SendInvitationToRegister;

class UserController extends Controller
{
    public function index(UserRepository $userRepository)
    {
        $users = $userRepository->getAllUsers();

        return response()->json([
            'status' => 'success',
            'data'   => $users,
        ]);
    }

    public function sentInvitationToRegister(Request $request)
    {
        try {
            if (!User::where('email', $request->email)->first()) {
                Mail::to($request->email)
                    ->send(new SendInvitationToRegister());

                return response()->json([
                    'status'  => 'success',
                    'message' => 'Invitation sent successfully',
                ]);
            }

            return response()->json([
                'status'  => 'error',<commit_msg>Apply fixes from StyleCI<commit_after><?php

namespace App\Http\Controllers;

use DateTimeZone;
use App\Models\User;
use Illuminate\Http\Request;
use App\Repositories\UserRepository;
use Illuminate\Support\Facades\Mail;
use App\Mail\SendInvitationToRegister;

class UserController extends Controller
{
    public function index(UserRepository $userRepository)
    {
        $users = $userRepository->getAllUsers();

        return response()->json([
            'status' => 'success',
            'data'   => $users,
        ]);
    }

    public function sentInvitationToRegister(Request $request)
    {
        try {
            if (! User::where('email', $request->email)->first()) {
                Mail::to($request->email)
                    ->send(new SendInvitationToRegister());

                return response()->json([
                    'status'  => 'success',
                    'message' => 'Invitation sent successfully',
                ]);
            }

            return response()->json([
                'status'  => 'error',
{'fraction_non_alphanumeric': 0.1291866028708134, 'fraction_numerical': 0.0, 'mean_word_length': 2.088626292466765, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '3505136', 'n_tokens_mistral': 540, 'n_tokens_neox': 536, 'n_words': 110}