<commit_before><?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CoinDataCodes extends Model
{
    public function name()
    {
        return $this->belongsTo('App\Models\CoinDataNames', 'coin_data_name_id');
    }

    public function provider()
    {
        return $this->belongsTo('App\Models\CoinDataProviders', 'coin_data_provider_id');
    }
}
<commit_msg>Add relations with collection retreival, hide ids<commit_after><?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CoinDataCodes extends Model
{
    protected $hidden = ['id', 'coin_data_name_id', 'coin_data_provider_id'];
    protected $with = ['name', 'provider'];

    public function name()
    {
        return $this->belongsTo('App\Models\CoinDataNames', 'coin_data_name_id');
    }

    public function provider()
    {
        return $this->belongsTo('App\Models\CoinDataProviders', 'coin_data_provider_id');
    }
}

{'fraction_non_alphanumeric': 0.12539851222104145, 'fraction_numerical': 0.0, 'mean_word_length': 3.984126984126984, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7631279', 'n_tokens_mistral': 302, 'n_tokens_neox': 304, 'n_words': 57}