<commit_before><?php

namespace Milax\Mconsole\Http\Requests;

use App\Http\Requests\Request;

class LanguageRequest extends Request
{
    /**
     * Create new instance
     */
    public function __construct()
    {
        $this->repository = app('API')->repositories->languages;
    }
    
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */<commit_msg>Use repository in LanguageRequest<commit_after><?php

namespace Milax\Mconsole\Http\Requests;

use App\Http\Requests\Request;
use Milax\Mconsole\Contracts\Repositories\LanguagesRepository;

class LanguageRequest extends Request
{
    /**
     * Create new instance
     */
    public function __construct(LanguagesRepository $repository)
    {
        $this->repository = $repository;
    }
    
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
{'fraction_non_alphanumeric': 0.09808612440191387, 'fraction_numerical': 0.0, 'mean_word_length': 2.209718670076726, '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': '5708072', 'n_tokens_mistral': 350, 'n_tokens_neox': 348, 'n_words': 96}