<commit_before><?php

namespace App\Http\Controllers;

use App\Country;
use App\Members;
use Illuminate\Http\Request;

class MembersController extends Controller
{
    // FIXME: Set the flash messages to translations files.

    /**
     * MembersController constructor.
     *
     * @return void.
     */
    public function __constrict()
    {
        $this->middleware('auth');
    }

    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        //
    }

    /**
     * Show the form for creating a new resource.
     *
     * @url:platform
     * @see:phpunit
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        $data['countries'] = Country::all();
        return view('members/create', $data);
    }

    /**
     * Store a newly created resource in storage.
     *
     * @url:platform
     * @see:phpunit
     * @see:phpunit
     *
     * @param  \App\Http\Requests\MemberValidator  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Requests\MembersValidator $input)
    {
        if (Members::create($input->except('_token'))) {
            session()->flash('class', 'alert alert-success');
            session()->flash('message', 'Het lid is aangemaakt in het systeem. De leiding zal de inschrijving snel bevestigen.');<commit_msg>Selected the only needed db columns<commit_after><?php

namespace App\Http\Controllers;

use App\Country;
use App\Members;
use Illuminate\Http\Request;

class MembersController extends Controller
{
    // FIXME: Set the flash messages to translations files.

    /**
     * MembersController constructor.
     *
     * @return void.
     */
    public function __constrict()
    {
        $this->middleware('auth');
    }

    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        //
    }

    /**
     * Show the form for creating a new resource.
     *
     * @url:platform
     * @see:phpunit
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        $data['countries'] = Country::select('id', 'name')->get();
        return view('members/create', $data);
    }

    /**
     * Store a newly created resource in storage.
     *
     * @url:platform
     * @see:phpunit
     * @see:phpunit
     *
     * @param  \App\Http\Requests\MemberValidator  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Requests\MembersValidator $input)
    {
        if (Members::create($input->except('_token'))) {
            session()->flash('class', 'alert alert-success');
            session()->flash('message', 'Het lid is aangemaakt in het systeem. De leiding zal de inschrijving snel bevestigen.');
{'fraction_non_alphanumeric': 0.1295391061452514, 'fraction_numerical': 0.0, 'mean_word_length': 2.2191011235955056, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '357582', 'n_tokens_mistral': 827, 'n_tokens_neox': 842, 'n_words': 203}