<commit_before><?php

class Theme extends Eloquent {

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

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = array('user_id');

}<commit_msg>Add validation rules for themes<commit_after><?php

class Theme extends Eloquent {

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

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = array('user_id');

    /**
     * The validation rules for store
     *
     * @var array
     */
    protected $rules = array(
        ['title' => 'required|min:1'],
        ['template' => 'required'],
        ['parent_theme_key' => 'min:40'],
    );

}
{'fraction_non_alphanumeric': 0.13566739606126915, 'fraction_numerical': 0.0032822757111597373, 'mean_word_length': 1.9707792207792207, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '5680398', 'n_tokens_mistral': 280, 'n_tokens_neox': 268, 'n_words': 80}