<commit_before><?php namespace App;

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

/**
 * Страна
 *
 * @property integer $id
 * @property string  $title_ru
 * @property string  $title_en
 * @property string  $slug
 * @property string  $emoji
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @property-read \App\City $cities
 * @property-read \App\Trip $trips
 *
 * @property-read string  $title
 */
class Country extends Model
{
    protected $fillable = ['title_ru', 'title_en', 'slug', 'emoji'];

    public function cities()
    {
        return $this->hasMany(City::class)
            ->orderBy("title_" . App::getLocale());
    }

    public function trips()
    {
        return $this->hasMany(Trip::class)
            ->orderBy('date_start', 'desc');
    }

    public function getTitleAttribute()
    {
        return $this->{'title_' . App::getLocale()};
    }
}<commit_msg>Удаление неиспользуемого кода<commit_after><?php namespace App;

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

/**
 * Страна
 *
 * @property integer $id
 * @property string  $title_ru
 * @property string  $title_en
 * @property string  $slug
 * @property string  $emoji
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @property-read \App\City $cities
 * @property-read \App\Trip $trips
 *
 * @property-read string  $title
 */
class Country extends Model
{
    protected $fillable = ['title_ru', 'title_en', 'slug', 'emoji'];

    public function cities()
    {
        return $this->hasMany(City::class)
            ->orderBy("title_" . App::getLocale());
    }

    public function getTitleAttribute()
    {
        return $this->{'title_' . App::getLocale()};
    }
}
{'fraction_non_alphanumeric': 0.14927953890489915, 'fraction_numerical': 0.0, 'mean_word_length': 3.143198090692124, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1302779', 'n_tokens_mistral': 575, 'n_tokens_neox': 579, 'n_words': 131}