<commit_before><?php

namespace Coyote;

use Illuminate\Database\Eloquent\Model;

/**
 * @property int $content_id
 * @property string $content_type
 * @property string $path
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 */
class Page extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['title', 'path', 'allow_sitemap'];
    
    /**
     * @var string
     */
    protected $dateFormat = 'Y-m-d H:i:se';

    /**
     * @return \Illuminate\Database\Eloquent\Relations\MorphTo
     */
    public function content()
    {
        return $this->morphTo();
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function visits()
    {
        return $this->hasMany('Coyote\Page\Visit');
    }
}<commit_msg>bugfix: urldecode przy zapisie sciezki<commit_after><?php

namespace Coyote;

use Illuminate\Database\Eloquent\Model;

/**
 * @property int $content_id
 * @property string $content_type
 * @property string $path
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 */
class Page extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['title', 'path', 'allow_sitemap'];

    /**
     * @var string
     */
    protected $dateFormat = 'Y-m-d H:i:se';

    /**
     * @return \Illuminate\Database\Eloquent\Relations\MorphTo
     */
    public function content()
    {
        return $this->morphTo();
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function visits()
    {
        return $this->hasMany('Coyote\Page\Visit');
    }

    /**
     * @param string $path
     */
    public function setPathAttribute($path)
    {
        $this->attributes['path'] = urldecode($path);
    }
}
{'fraction_non_alphanumeric': 0.14323328067403895, 'fraction_numerical': 0.0, 'mean_word_length': 2.4482758620689653, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '4183335', 'n_tokens_mistral': 628, 'n_tokens_neox': 627, 'n_words': 126}