<commit_before><?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Game extends Model {

    public function contender1() {
        return $this->belongsTo('App\Contender', 'contender1_id');
    }

    public function contender2() {
        return $this->belongsTo('App\Contender', 'contender2_id');
    }

    public function court() {
        return $this->belongsTo('App\Court');
    }

    public function sport() {
        return $this->court->sport;
    }

    public function team1() {
        return $this->contender1->team;
    }

    public function team2() {
        return $this->contender1->team;
    }
}
<commit_msg>Corrected problem. game team2 returned team of contender 1 and not 2<commit_after><?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Game extends Model {

    public function contender1() {
        return $this->belongsTo('App\Contender', 'contender1_id');
    }

    public function contender2() {
        return $this->belongsTo('App\Contender', 'contender2_id');
    }

    public function court() {
        return $this->belongsTo('App\Court');
    }

    public function sport() {
        return $this->court->sport;
    }

    public function team1() {
        return $this->contender1->team;
    }

    public function team2() {
        return $this->contender2->team;
    }
}

{'fraction_non_alphanumeric': 0.12953367875647667, 'fraction_numerical': 0.014063656550703183, 'mean_word_length': 2.724517906336088, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '168985', 'n_tokens_mistral': 427, 'n_tokens_neox': 410, 'n_words': 93}