<commit_before><?php

namespace Northstar\Models;

use Carbon\Carbon;
use Exception;
use Illuminate\Database\Eloquent\Builder;
use InvalidArgumentException;
use Jenssegers\Mongodb\Eloquent\Model as BaseModel;
use MongoDB\BSON\UTCDateTime;

/**
 * Base model class
 *
 * @method static \Jenssegers\Mongodb\Query\Builder where(string $field, string $comparison = '=', string $value)
 * @method static \Jenssegers\Mongodb\Query\Builder whereNull(string $field)
 * @method static \Jenssegers\Mongodb\Query\Builder find(string $id, array $columns=['*'])
 * @method static \Jenssegers\Mongodb\Query\Builder findMany(array $ids)
 * @method static \Jenssegers\Mongodb\Query\Builder findOrFail(string $id, array $columns=['*'])
 */
class Model extends BaseModel
{
    /**
     * Set a given attribute on the model.
     *
     * @param  string  $key
     * @param  mixed   $value
     * @return $this
     */
    public function setAttribute($key, $value)
    {
        parent::setAttribute($key, $value);

        // Empty strings should be saved as `null`.
        if (empty($this->attributes[$key])) {
            $this->attributes[$key] = null;
        }

        return $this;
    }

    /**
     * Get the attributes that have been unset since the last sync.
     *
     * @return array
     */
    public function getClearable()
    {
        $clearable = [];<commit_msg>Hint that these methods may return instance of model.<commit_after><?php

namespace Northstar\Models;

use Carbon\Carbon;
use Exception;
use Illuminate\Database\Eloquent\Builder;
use InvalidArgumentException;
use Jenssegers\Mongodb\Eloquent\Model as BaseModel;
use MongoDB\BSON\UTCDateTime;

/**
 * Base model class
 *
 * @method static \Jenssegers\Mongodb\Query\Builder|$this where(string $field, string $comparison = '=', string $value)
 * @method static \Jenssegers\Mongodb\Query\Builder|$this whereNull(string $field)
 * @method static \Jenssegers\Mongodb\Query\Builder|$this find(string $id, array $columns=['*'])
 * @method static \Jenssegers\Mongodb\Query\Builder|$this findMany(array $ids)
 * @method static \Jenssegers\Mongodb\Query\Builder|$this findOrFail(string $id, array $columns=['*'])
 */
class Model extends BaseModel
{
    /**
     * Set a given attribute on the model.
     *
     * @param  string  $key
     * @param  mixed   $value
     * @return $this
     */
    public function setAttribute($key, $value)
    {
        parent::setAttribute($key, $value);

        // Empty strings should be saved as `null`.
        if (empty($this->attributes[$key])) {
            $this->attributes[$key] = null;
        }

        return $this;
    }

    /**
     * Get the attributes that have been unset since the last sync.
     *
     * @return array
     */
    public function getClearable()
    {
        $clearable = [];
{'fraction_non_alphanumeric': 0.12927350427350429, 'fraction_numerical': 0.0, 'mean_word_length': 3.071014492753623, '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': '192772', 'n_tokens_mistral': 888, 'n_tokens_neox': 868, 'n_words': 224}