<commit_before><?php

namespace App\Http\Controllers;

use App\Hotel;
use Illuminate\Support\Facades\Redis;

/**
 * Class HotelController
 * @package App\Http\Controllers
 */
class HotelController extends Controller
{
    //

    /**
     * @var
     */
    public $single_hotel;


    /**
     * @param int $hotelID
     * @return mixed
     */
    public function getHotel(int $hotelID)
    {
        if (Redis::get('hotel.' . $hotelID) === null) {
            $this->single_hotel = Hotel::find($hotelID);
            //Redis::set('hotel.'.$hotelID, json_encode($this->single_hotel));
            dump("OH yeah");
        }
        return Redis::get('hotel.' . $hotelID);
    }


}<commit_msg>additional file for accurate system work and user determination<commit_after><?php

namespace App\Http\Controllers;

use App\Hotel;
use Illuminate\Support\Facades\Redis;

/**
 * Class HotelController
 * @package App\Http\Controllers
 */
class HotelController extends Controller
{
    //

    /**
     * @var
     */
    public $single_hotel;


    /**
     * @param int $hotelID
     * @return mixed
     */
    public function getHotel(int $hotelID)
    {
        if (Redis::get('hotel.' . $hotelID) === null) {
            $this->single_hotel = Hotel::find($hotelID);
            Redis::set('hotel.'.$hotelID, json_encode($this->single_hotel));
        }
        return Redis::get('hotel.' . $hotelID);
    }


}
{'fraction_non_alphanumeric': 0.15259048970901348, 'fraction_numerical': 0.0, 'mean_word_length': 2.397590361445783, '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': '7575791', 'n_tokens_mistral': 469, 'n_tokens_neox': 467, 'n_words': 86}