<commit_before><?php namespace App\Data;

use Eloquent;
use FavoritePresenter;
use App\RecordsActivity;
use Laracasts\Presenter\PresentableTrait;

class Favorite extends Eloquent
{
	use PresentableTrait, RecordsActivity;

	protected $table = 'favorites';
	protected $fillable = ['user_id', 'favorited_id', 'favorited_type'];
	protected $presenter = FavoritePresenter::class;
}
<commit_msg>Add the favorited relationship<commit_after><?php namespace App\Data;

use Eloquent;
use FavoritePresenter;
use App\RecordsActivity;
use Laracasts\Presenter\PresentableTrait;

class Favorite extends Eloquent
{
	use PresentableTrait, RecordsActivity;

	protected $table = 'favorites';
	protected $fillable = ['user_id', 'favorited_id', 'favorited_type'];
	protected $presenter = FavoritePresenter::class;

	public function favorited()
	{
		return $this->morphTo();
	}
}

{'fraction_non_alphanumeric': 0.10722610722610723, 'fraction_numerical': 0.0, 'mean_word_length': 6.953703703703703, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '7447279', 'n_tokens_mistral': 286, 'n_tokens_neox': 279, 'n_words': 66}