<commit_before><?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use Apt\Barbershop;

use Illuminate\Support\Facades\Auth;

class SessionsController extends Controller {

    public function __construct() {
        $this->middleware('guest', ['except' => 'destroy']);
    }

    /**
     * log barbershop into session
     *
     */
    public function create() {

        return view('sessions.create');
    }

     /**
     * Authenticate the barbershop
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request) {
        $barbershopEmail = $request->input('email');
        $password = $request->input('password');

        if(! Auth::attempt(['barbershopEmail' => $barbershopEmail, 'password' => $password])) {
            return back()->withErrors([
                'message' => 'Email or password is incorrect'
            ]);
        }
        return redirect('/');
     }

     /**
     * log the user out of the session
     * 
     */
    public function destroy() {
    	auth()->logout();

    	return redirect()->home();
    }
}
<commit_msg>corrected namespace error<commit_after><?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Barbershop;

use Illuminate\Support\Facades\Auth;

class SessionsController extends Controller {

    public function __construct() {
        $this->middleware('guest', ['except' => 'destroy']);
    }

    /**
     * log barbershop into session
     *
     */
    public function create() {

        return view('sessions.create');
    }

     /**
     * Authenticate the barbershop
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request) {
        $barbershopEmail = $request->input('email');
        $password = $request->input('password');

        if(! Auth::attempt(['barbershopEmail' => $barbershopEmail, 'password' => $password])) {
            return back()->withErrors([
                'message' => 'Email or password is incorrect'
            ]);
        }
        return redirect('/');
     }

     /**
     * log the user out of the session
     * 
     */
    public function destroy() {
    	auth()->logout();

    	return redirect()->home();
    }
}

{'fraction_non_alphanumeric': 0.14346712211784798, 'fraction_numerical': 0.0, 'mean_word_length': 2.276923076923077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '5889565', 'n_tokens_mistral': 666, 'n_tokens_neox': 661, 'n_words': 146}