<commit_before><div layout="column" layout-gt-md="row" layout-wrap layout-fill>
    <div ng-repeat="field in ctrl.getFields()" flex="{{ctrl.getFlexValue()}}" class="padding-sides">
        <div ng-if="'textarea' === field.type">
            <md-input-container ng-if="ctrl.isRequired(field)" class="content">
                <label>{{ctrl.name}} {{field.label}}</label>
                <textarea required
                          type="{{field.type}}"
                          id="required-{{ctrl.name}}-{{field.label}}-ta"
                          md-select-on-focus
                          rows="2"
                          ng-model="ctrl.param.parts[field.key]"></textarea>
            </md-input-container>

            <md-input-container ng-if="!ctrl.isRequired(field)" class="content">
                <label>{{ctrl.name}} {{field.label}}</label>
                <textarea type="{{field.type}}"
                          md-select-on-focus
                          id="{{ctrl.name}}-{{field.label}}-ta"
                          rows="2"
                          ng-model="ctrl.param.parts[field.key]"></textarea>
            </md-input-container>
        </div>
        <div ng-if="'checkbox' === field.type" layout-margin>
            <md-checkbox ng-if="ctrl.isRequired(field)" ng-model="ctrl.param.parts[field.key]" id="required-{{ctrl.name}}-{{field.label}}-cb" required>
                {{ctrl.name}} {{field.label}}
            </md-checkbox>
            <md-checkbox ng-if="!ctrl.isRequired(field)" ng-model="ctrl.param.parts[field.key]" id="{{ctrl.name}}-{{field.label}}-cb">
                {{ctrl.name}} {{field.label}}
            </md-checkbox>
        </div>
        <div ng-if="'checkbox' !== field.type && 'textarea' !== field.type">
            <md-input-container ng-if="ctrl.isRequired(field)" class="content small-input-container">
                <label>{{ctrl.name}} {{field.label}}</label>
                <input required
                       type="{{field.type}}"
                       id="required-{{ctrl.name}}-{{field.label}}"
                       md-select-on-focus
                       ng-model="ctrl.param.parts[field.key]">
            </md-input-container>

            <md-input-container ng-if="!ctrl.isRequired(field)" class="content small-input-container">
                <label>{{ctrl.name}} {{field.label}}</label>
                <input type="{{field.type}}"
                       id="{{ctrl.name}}-{{field.label}}"
                       md-select-on-focus
                       ng-model="ctrl.param.parts[field.key]">
            </md-input-container>
        </div>
        <md-tooltip md-direction="top" ng-if="ctrl.param.description">
            {{ctrl.param.description}}
        </md-tooltip>
    </div>
</div><commit_msg>gh-429 - used ng-required to simplify code (#449)<commit_after><div layout="column" layout-gt-md="row" layout-wrap layout-fill>
    <div ng-repeat="field in ctrl.getFields()" flex="{{ctrl.getFlexValue()}}" class="padding-sides">
        <div ng-if="'textarea' === field.type">
            <md-input-container class="content">
                <label>{{ctrl.name}} {{field.label}}</label>
                <textarea ng-required="ctrl.isRequired(field)"
                          type="{{field.type}}"
                          id="{{ctrl.name}}-{{field.label}}-ta"
                          md-select-on-focus
                          rows="2"
                          ng-model="ctrl.param.parts[field.key]"></textarea>
            </md-input-container>
        </div>
        <div ng-if="'checkbox' === field.type" layout-margin>
            <md-checkbox ng-if="ctrl.isRequired(field)" ng-model="ctrl.param.parts[field.key]" id="required-{{ctrl.name}}-{{field.label}}-cb" required>
                {{ctrl.name}} {{field.label}}
            </md-checkbox>
            <md-checkbox ng-if="!ctrl.isRequired(field)" ng-model="ctrl.param.parts[field.key]" id="{{ctrl.name}}-{{field.label}}-cb">
                {{ctrl.name}} {{field.label}}
            </md-checkbox>
        </div>
        <div ng-if="'checkbox' !== field.type && 'textarea' !== field.type">
            <md-input-container class="content small-input-container">
                <label>{{ctrl.name}} {{field.label}}</label>
                <input ng-required="ctrl.isRequired(field)"
                       type="{{field.type}}"
                       id="{{ctrl.name}}-{{field.label}}"
                       md-select-on-focus
                       ng-model="ctrl.param.parts[field.key]">
            </md-input-container>
        </div>
        <md-tooltip md-direction="top" ng-if="ctrl.param.description">
            {{ctrl.param.description}}
        </md-tooltip>
    </div>
</div>
{'fraction_non_alphanumeric': 0.18854013060880556, 'fraction_numerical': 0.0018959342742784916, 'mean_word_length': 1.7381776239907727, 'pattern_counts': {'":': 0, '<': 68, '<?xml version=': 0, '>': 68, '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': '5604', 'n_tokens_mistral': 1391, 'n_tokens_neox': 1301, 'n_words': 175}