<commit_before><?php

namespace App;
use Illuminate\Database\Eloquent\Model;

/**
 * Model of tournaments table.
 *
 * @author <NAME>
 */

class Tournament extends Model
{

    // I added this because when I try to save() Sport value an updated_At "xy" error appears
    // And with this that work
    public $timestamps = false;
    protected $fillable = array('name', 'start_date', 'end_date', 'start_time', 'event_id'); // -> We have to define all data we use on our sport table (For use ->all())
    protected $dates = ['start_date', 'end_date']; //need to user convert format date

    /**
     * Create a new belongs to relationship instance between Tournament and Event
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     *
     * @author <NAME>
     */
    public function event() {
        return $this->belongsTo(Event::class);
    }

    /**
     * Create a new belongs to many relationship instance between Tournament and Court
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
     *
     * @author <NAME>
     */
    public function sport() {
        return $this->belongsTo('App\Sport');
    }

    /**
     * Create a new belongs to many relationship instance between Tournament and Team
     *<commit_msg>Corrected comment in tournament model<commit_after><?php

namespace App;
use Illuminate\Database\Eloquent\Model;

/**
 * Model of tournaments table.
 *
 * @author <NAME>
 */

class Tournament extends Model
{

    // I added this because when I try to save() Sport value an updated_At "xy" error appears
    // And with this that work
    public $timestamps = false;
    protected $fillable = array('name', 'start_date', 'end_date', 'start_time', 'event_id'); // -> We have to define all data we use on our sport table (For use ->all())
    protected $dates = ['start_date', 'end_date']; //need to user convert format date

    /**
     * Create a new belongs to relationship instance between Tournament and Event
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     *
     * @author <NAME>
     */
    public function event() {
        return $this->belongsTo(Event::class);
    }

    /**
     * Create a new belongs to relationship instance between Tournament and Sport
     *
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
     *
     * @author <NAME>
     */
    public function sport() {
        return $this->belongsTo('App\Sport');
    }

    /**
     * Create a new belongs to many relationship instance between Tournament and Team
     *
{'fraction_non_alphanumeric': 0.11150097465886939, 'fraction_numerical': 0.0, 'mean_word_length': 2.7958579881656807, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '5066326', 'n_tokens_mistral': 732, 'n_tokens_neox': 720, 'n_words': 251}