<commit_before><?php

namespace Bkwld\Decoy\Models;

use DB;
use App;
use URL;
use Decoy;
use Event;
use Config;
use Session;
use DecoyURL;
use Bkwld\Cloner\Cloneable;
use Bkwld\Upchuck\SupportsUploads;
use Bkwld\Library\Utils\Collection;
use Bkwld\Decoy\Exceptions\Exception;
use Cviebrock\EloquentSluggable\SluggableTrait;
use Bkwld\Decoy\Collections\Base as BaseCollection;
use Cviebrock\EloquentSluggable\SluggableInterface;
use Illuminate\Database\Eloquent\Model as Eloquent;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;

abstract class Base extends Eloquent implements SluggableInterface
{

    /**
     * Adding common traits.  The memory usage of adding additional methods is
     * negligible.
     */
    use Cloneable,
        SluggableTrait,
        SupportsUploads,
        Traits\CanSerializeTransform {
        needsSlugging as traitNeedsSlugging;
    }

    /**
     * Use the Decoy Base Collection
     *
     * @param  array  $models
     * @return Images
     */
    public function newCollection(array $models = [])
    {
        return new BaseCollection($models);
    }

    //---------------------------------------------------------------------------
    // Overrideable properties
    //---------------------------------------------------------------------------

    /**
     * This should be overridden by Models to store the array of their
     * Laravel validation rules
     *
     * @var array
     */
    public static $rules = [];

    /**
     * Should this model be localizable in the admin.  If not undefined, will
     * override the site config "auto_localize_root_models"
     *
     * @var boolean
     */
    public static $localizable;

    /**
     * If false, this model cannot be cloned
     *
     * @var boolean
     */
    public $cloneable = true;

    /**
     * Specify columns that shouldn't be duplicated by Bkwld\Cloner.  Include
     * slug by default so that Sluggable will automatically generate a new one.
     * Also include "public" so clones aren't immediately published.
     *
     * @var array
     */
    protected $clone_exempt_attributes = [ 'slug', 'public' ];
<commit_msg>Revert "Don’t duplicate the public status"<commit_after><?php

namespace Bkwld\Decoy\Models;

use DB;
use App;
use URL;
use Decoy;
use Event;
use Config;
use Session;
use DecoyURL;
use Bkwld\Cloner\Cloneable;
use Bkwld\Upchuck\SupportsUploads;
use Bkwld\Library\Utils\Collection;
use Bkwld\Decoy\Exceptions\Exception;
use Cviebrock\EloquentSluggable\SluggableTrait;
use Bkwld\Decoy\Collections\Base as BaseCollection;
use Cviebrock\EloquentSluggable\SluggableInterface;
use Illuminate\Database\Eloquent\Model as Eloquent;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;

abstract class Base extends Eloquent implements SluggableInterface
{

    /**
     * Adding common traits.  The memory usage of adding additional methods is
     * negligible.
     */
    use Cloneable,
        SluggableTrait,
        SupportsUploads,
        Traits\CanSerializeTransform {
        needsSlugging as traitNeedsSlugging;
    }

    /**
     * Use the Decoy Base Collection
     *
     * @param  array  $models
     * @return Images
     */
    public function newCollection(array $models = [])
    {
        return new BaseCollection($models);
    }

    //---------------------------------------------------------------------------
    // Overrideable properties
    //---------------------------------------------------------------------------

    /**
     * This should be overridden by Models to store the array of their
     * Laravel validation rules
     *
     * @var array
     */
    public static $rules = [];

    /**
     * Should this model be localizable in the admin.  If not undefined, will
     * override the site config "auto_localize_root_models"
     *
     * @var boolean
     */
    public static $localizable;

    /**
     * If false, this model cannot be cloned
     *
     * @var boolean
     */
    public $cloneable = true;

    /**
     * Specify columns that shouldn't be duplicated by Bkwld\Cloner.  Include
     * slug by default so that Sluggable will automatically generate a new one.
     *
     * @var array
     */
    protected $clone_exempt_attributes = ['slug'];

{'fraction_non_alphanumeric': 0.14588074647246244, 'fraction_numerical': 0.0, 'mean_word_length': 2.1664265129683, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2813812', 'n_tokens_mistral': 1266, 'n_tokens_neox': 1235, 'n_words': 354}