<commit_before><?php namespace Anomaly\UsersModule\User\Register;

use Anomaly\SettingsModule\Setting\Contract\SettingRepositoryInterface;
use Anomaly\Streams\Platform\Ui\Form\FormBuilder;

/**
 * Class RegisterFormBuilder
 *
 * @link          http://anomaly.is/streams-platform
 * @author        AnomalyLabs, Inc. <<EMAIL>>
 * @author        <NAME> <<EMAIL>>
 * @package       Anomaly\UsersModule\User\Register
 */
class RegisterFormBuilder extends FormBuilder
{

    /**
     * The form model.
     *
     * @var string
     */
    protected $model = 'Anomaly\UsersModule\User\UserModel';

    /**
     * The form skips.
     *
     * @var array
     */
    protected $skips = [
        'roles',
        'ip_address',
        'last_login_at',
        'remember_token',
        'last_activity_at'
    ];

    /**
     * The form options.
     *
     * @var array
     */
    protected $options = [
        'wrapper_view' => 'anomaly.module.users::register'
    ];

    /**
     * Fired when the builder is ready.
     *
     * @param SettingRepositoryInterface $settings
     */
    public function onReady(SettingRepositoryInterface $settings)
    {
        if ($settings->get('anomaly.module.users::allow_registration') === false) {
            abort(404);
        }
    }
}<commit_msg>Register<commit_after><?php namespace Anomaly\UsersModule\User\Register;

use Anomaly\SettingsModule\Setting\Contract\SettingRepositoryInterface;
use Anomaly\Streams\Platform\Ui\Form\FormBuilder;

/**
 * Class RegisterFormBuilder
 *
 * @link          http://anomaly.is/streams-platform
 * @author        AnomalyLabs, Inc. <<EMAIL>>
 * @author        <NAME> <<EMAIL>>
 * @package       Anomaly\UsersModule\User\Register
 */
class RegisterFormBuilder extends FormBuilder
{

    /**
     * The form model.
     *
     * @var string
     */
    protected $model = 'Anomaly\UsersModule\User\UserModel';

    /**
     * The form skips.
     *
     * @var array
     */
    protected $skips = [
        'roles',
        'ip_address',
        'permissions',
        'last_login_at',
        'remember_token',
        'last_activity_at'
    ];

    /**
     * The form options.
     *
     * @var array
     */
    protected $options = [
        'wrapper_view' => 'anomaly.module.users::register'
    ];

    /**
     * Fired when the builder is ready.
     *
     * @param SettingRepositoryInterface $settings
     */
    public function onReady(SettingRepositoryInterface $settings)
    {
        if ($settings->get('anomaly.module.users::allow_registration') === false) {
            abort(404);
        }
    }
}
{'fraction_non_alphanumeric': 0.1298151001540832, 'fraction_numerical': 0.0023112480739599386, 'mean_word_length': 2.1982758620689653, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '4542804', 'n_tokens_mistral': 801, 'n_tokens_neox': 769, 'n_words': 141}