<commit_before>{{#if this.isStatic}}
    <div class="oxi-no-input">{{@content.options.0.label}}</div>
{{else if this.content.editable}}
    <div class="input-group">
        {{#if this.customMode}}
            {{input class="form-control" placeholder=this.content.placeholder value=this.content.value}}
        {{else}}
            <OxiSelect @list={{this.options}} @selected={{this.sanitizedValue}} @onChange={{this.optionSelected}} />
        {{/if}}
        <span class="input-group-btn">
            <BsButton @type="default" class="{{if this.customMode "active"}}" @onClick={{this.toggleCustomMode}}>
                Custom
            </BsButton>
        </span>
    </div>
{{else}}
    <OxiSelect @list={{this.options}} @selected={{this.sanitizedValue}} @onChange={{this.optionSelected}} />
{{/if}}
<commit_msg>JS: fix "active" state of <BsButton> in oxifield-select<commit_after>{{#if this.isStatic}}
    <div class="oxi-no-input">{{@content.options.0.label}}</div>
{{else if this.content.editable}}
    <div class="input-group">
        {{#if this.customMode}}
            {{input class="form-control" placeholder=this.content.placeholder value=this.content.value}}
        {{else}}
            <OxiSelect @list={{this.options}} @selected={{this.sanitizedValue}} @onChange={{this.optionSelected}} />
        {{/if}}
        <span class="input-group-btn">
            <BsButton @type="default" @active={{this.customMode}} @onClick={{this.toggleCustomMode}}>
                Custom
            </BsButton>
        </span>
    </div>
{{else}}
    <OxiSelect @list={{this.options}} @selected={{this.sanitizedValue}} @onChange={{this.optionSelected}} />
{{/if}}

{'fraction_non_alphanumeric': 0.19867947178871548, 'fraction_numerical': 0.0012004801920768306, 'mean_word_length': 3.220253164556962, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, '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': '375426', 'n_tokens_mistral': 519, 'n_tokens_neox': 522, 'n_words': 83}