<commit_before><?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Card;
use App\Boy;
use App\Skill;
use App\Minievent;
use App\Minieventchoice;
use App\Event;
use Auth;
use App\User;
use App\Eventcard;

class EventController extends Controller
{

    /**
     * Only can do this when logged in
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth');
    }

    /**
     * Add event display
     *
     * @return \Illuminate\Http\Response
     */
    public function addDisplay() {

            return view('home.eventAdd');
    } 


    /**
     * Add event 
     *
     * @return \Illuminate\Http\Response
     */
    public function add(Request $request) {
        //need to update event
        $e = new Event;
        $e->active = 0;
        $e->name_j = $request->input('name_j');
        $e->name_e = $request->input('name_e');
        $e->name_s = $request->input('name_s');
        $e->start = $request->input('start');
        $e->end = $request->input('end');
        $e->text = $request->input('text');
        $e->url = $request->input('url');
        $e->rank_5 = 0;<commit_msg>Add event id, currently hardcoded to baisc<commit_after><?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Card;
use App\Boy;
use App\Skill;
use App\Minievent;
use App\Minieventchoice;
use App\Event;
use Auth;
use App\User;
use App\Eventcard;

class EventController extends Controller
{

    /**
     * Only can do this when logged in
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth');
    }

    /**
     * Add event display
     *
     * @return \Illuminate\Http\Response
     */
    public function addDisplay() {

            return view('home.eventAdd');
    } 


    /**
     * Add event 
     *
     * @return \Illuminate\Http\Response
     */
    public function add(Request $request) {
        //need to update event
        $e = new Event;
        $e->active = 0;
        $e->game_id = 2;
        $e->name_j = $request->input('name_j');
        $e->name_e = $request->input('name_e');
        $e->name_s = $request->input('name_s');
        $e->start = $request->input('start');
        $e->end = $request->input('end');
        $e->text = $request->input('text');
        $e->url = $request->input('url');
        $e->rank_5 = 0;
{'fraction_non_alphanumeric': 0.15859766277128548, 'fraction_numerical': 0.002921535893155259, 'mean_word_length': 2.1498028909329827, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 38, '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': '7378077', 'n_tokens_mistral': 788, 'n_tokens_neox': 781, 'n_words': 173}