<commit_before><?php

namespace Grafite\FormMaker\Fields\Bootstrap;

use Grafite\FormMaker\Fields\Field;

class HasMany extends Field
{
    protected static function getType()
    {
        return 'relationship';
    }

    protected static function getAttributes()
    {
        return [
            'class' => 'selectpicker',
        ];
    }

    protected static function getFactory()
    {
        return 'text(50)';
    }

    protected static function stylesheets($options)
    {
        return [
            "//cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css",
        ];
    }

    protected static function scripts($options)
    {
        return [
            '//cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/bootstrap-select.min.js'
        ];
    }

    protected static function js($id, $options)
    {
        $btn = $options['btn'] ?? 'btn-primary';

        return <<<EOT
$('.selectpicker').selectpicker({
    style: "{$btn}",
}).parent().css({
    display: "block",
    width: "100%"
});
EOT;
    }
}
<commit_msg>Because there was a clear typo issue here<commit_after><?php

namespace Grafite\FormMaker\Fields\Bootstrap;

use Grafite\FormMaker\Fields\Field;

class HasOne extends Field
{
    protected static function getType()
    {
        return 'relationship';
    }

    protected static function getAttributes()
    {
        return [
            'class' => 'selectpicker',
        ];
    }

    protected static function getFactory()
    {
        return 'text(50)';
    }

    protected static function stylesheets($options)
    {
        return [
            "//cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css",
        ];
    }

    protected static function scripts($options)
    {
        return [
            '//cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/bootstrap-select.min.js'
        ];
    }

    protected static function js($id, $options)
    {
        $btn = $options['btn'] ?? 'btn-primary';

        return <<<EOT
$('.selectpicker').selectpicker({
    style: "{$btn}",
}).parent().css({
    display: "block",
    width: "100%"
});
EOT;
    }
}

{'fraction_non_alphanumeric': 0.14490078449469312, 'fraction_numerical': 0.01384402399630826, 'mean_word_length': 2.2166172106824926, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, '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': '2467391', 'n_tokens_mistral': 703, 'n_tokens_neox': 668, 'n_words': 125}