<commit_before><?php

namespace ViKon\Wiki\Model;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use ViKon\Auth\Model\User;
use ViKon\Wiki\Model\Page;

/**
 * \ViKon\Wiki\Model\PageContent
 *
 * @property integer                     $id
 * @property string                      $title
 * @property string                      $content
 * @property integer                     $views
 * @property boolean                     $draft
 * @property integer                     $page_id
 * @property integer                     $created_by_user_id
 * @property \Carbon\Carbon              $created_at
 * @property-read Page                   $page
 * @property-read \ViKon\Auth\Model\User $createdByUser
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereTitle($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereContent($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereViews($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereDraft($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent wherePageId($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereCreatedByUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereCreatedAt($value)
 *
 * @author <NAME><<EMAIL>>
 */
class PageContent extends Model
{
    use SoftDeletes;

    /**
     *
     * Disable updated_at and created_at columns
     *
     * @var boolean
     */
    public $timestamps = false;

    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'wiki_pages_content';

    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);
        $this->created_at = new Carbon();
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function page()
    {
        return $this->belongsTo(Page::class, 'page_id', 'id');
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */<commit_msg>Marked created_at column as date in PageContent model<commit_after><?php

namespace ViKon\Wiki\Model;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use ViKon\Auth\Model\User;

/**
 * \ViKon\Wiki\Model\PageContent
 *
 * @property integer                     $id
 * @property string                      $title
 * @property string                      $content
 * @property integer                     $views
 * @property boolean                     $draft
 * @property integer                     $page_id
 * @property integer                     $created_by_user_id
 * @property \Carbon\Carbon              $created_at
 * @property-read Page                   $page
 * @property-read \ViKon\Auth\Model\User $createdByUser
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereTitle($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereContent($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereViews($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereDraft($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent wherePageId($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereCreatedByUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\ViKon\Wiki\Model\PageContent whereCreatedAt($value)
 *
 * @author <NAME><<EMAIL>>
 */
class PageContent extends Model
{
    use SoftDeletes;

    /**
     *
     * Disable updated_at and created_at columns
     *
     * @var boolean
     */
    public $timestamps = false;

    /**
     * The database table used by the model.
     *
     * @var string
     */
    protected $table = 'wiki_pages_content';

    public function __construct(array $attributes = [])
    {
        $this->dates = [
            'created_at',
        ];

        parent::__construct($attributes);
        $this->created_at = new Carbon();
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function page()
    {
        return $this->belongsTo(Page::class, 'page_id', 'id');
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
{'fraction_non_alphanumeric': 0.12121212121212122, 'fraction_numerical': 0.0, 'mean_word_length': 2.6898928024502298, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, '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': '6629452', 'n_tokens_mistral': 1438, 'n_tokens_neox': 1450, 'n_words': 257}