<commit_before><div class="repeater-group block-group row panel panel-default">
    <div class="panel-heading">
        <div class="row">
            <div class="col-xs-5">
                <label class="main">{{ field.fields[block].label }}</label>
            </div>
            <div class="col-xs-7 text-right">
                <div class="btn-group">
                    <button type="button" class="btn btn-sm btn-default move-up">
                        <i class="fa fa-arrow-up"></i> {{ __('general.phrase.move-up') }}
                    </button>
                    <button type="button" class="btn btn-sm btn-default  move-down">
                        <i class="fa fa-arrow-down"></i> {{ __('general.phrase.move-down') }}
                    </button>
                    <button type="button" class="btn btn-sm btn-silent-danger delete-button">
                        <i class="fa fa-trash"></i> {{ __('general.phrase.delete-set') }}
                    </button>
                </div>
            </div>
        </div>
    </div>
    <div class="panel-body">
        {% set defaults = {
            class:      '',
            label:      '',
            variant:    '',
            default:    null
        } %}
        {% for rkey, rfield in field.fields[block].fields %}
            {% set rfield = defaults|merge(rfield) %}
            {% if rfield.type == 'select' %}
                {% set values = context.values.select_choices[rkey] %}
            {% endif %}
            {% set rcontext = {
                'key':        name ~ '_' ~ index ~ '_' ~ block ~ '_' ~ rkey,
                'name':       name ~ '[' ~ index ~ '][' ~ block ~ '][' ~ rkey ~ ']',
                'contentkey': rkey,
                'values':     values|default(),
                'field':      rfield,
                'labelkey':   rfield.label|default(rkey|ucfirst),
                'context': {
                    'content':  content,
                    'can':      context.can,
                    'file_matcher': context.file_matcher,
                }
            } %}
            <div class="block-field" data-bolt-fieldset="{{ rfield.type }}">
                {# Prefix #}
                {% if rcontext.field.prefix is defined and rcontext.field.prefix is not empty %}
                    <div class="prefix">
                        {{ rcontext.field.prefix|markdown }}
                    </div>
                {% endif %}

                {{ include(context.fields[rfield.type].template, rcontext) }}

                {# Postfix #}
                {% if rcontext.field.postfix is defined and rcontext.field.postfix is not empty %}
                    <div class="postfix">
                        {{ rcontext.field.postfix|markdown }}
                    </div>
                {% endif %}

                {# Divider #}
                {% if rcontext.field.separator is defined and rcontext.field.separator == true %}
                    <hr>
                {% endif %}
            </div>
        {% endfor %}
    </div>
</div><commit_msg>Add an 'if' statement for missing Block field<commit_after>{% if field.fields[block] is defined %}
<div class="repeater-group block-group row panel panel-default">
    <div class="panel-heading">
        <div class="row">
            <div class="col-xs-5">
                <label class="main">{{ field.fields[block].label }}</label>
            </div>
            <div class="col-xs-7 text-right">
                <div class="btn-group">
                    <button type="button" class="btn btn-sm btn-default move-up">
                        <i class="fa fa-arrow-up"></i> {{ __('general.phrase.move-up') }}
                    </button>
                    <button type="button" class="btn btn-sm btn-default  move-down">
                        <i class="fa fa-arrow-down"></i> {{ __('general.phrase.move-down') }}
                    </button>
                    <button type="button" class="btn btn-sm btn-silent-danger delete-button">
                        <i class="fa fa-trash"></i> {{ __('general.phrase.delete-set') }}
                    </button>
                </div>
            </div>
        </div>
    </div>
    <div class="panel-body">
        {% set defaults = {
            class:      '',
            label:      '',
            variant:    '',
            default:    null
        } %}
        {% for rkey, rfield in field.fields[block].fields %}
            {% set rfield = defaults|merge(rfield) %}
            {% if rfield.type == 'select' %}
                {% set values = context.values.select_choices[rkey] %}
            {% endif %}
            {% set rcontext = {
                'key':        name ~ '_' ~ index ~ '_' ~ block ~ '_' ~ rkey,
                'name':       name ~ '[' ~ index ~ '][' ~ block ~ '][' ~ rkey ~ ']',
                'contentkey': rkey,
                'values':     values|default(),
                'field':      rfield,
                'labelkey':   rfield.label|default(rkey|ucfirst),
                'context': {
                    'content':  content,
                    'can':      context.can,
                    'file_matcher': context.file_matcher,
                }
            } %}
            <div class="block-field" data-bolt-fieldset="{{ rfield.type }}">
                {# Prefix #}
                {% if rcontext.field.prefix is defined and rcontext.field.prefix is not empty %}
                    <div class="prefix">
                        {{ rcontext.field.prefix|markdown }}
                    </div>
                {% endif %}

                {{ include(context.fields[rfield.type].template, rcontext) }}

                {# Postfix #}
                {% if rcontext.field.postfix is defined and rcontext.field.postfix is not empty %}
                    <div class="postfix">
                        {{ rcontext.field.postfix|markdown }}
                    </div>
                {% endif %}

                {# Divider #}
                {% if rcontext.field.separator is defined and rcontext.field.separator == true %}
                    <hr>
                {% endif %}
            </div>
        {% endfor %}
    </div>
</div>
{% endif %}
{'fraction_non_alphanumeric': 0.15003229974160207, 'fraction_numerical': 0.0006459948320413437, 'mean_word_length': 1.2422157856625633, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '6954271', 'n_tokens_mistral': 1762, 'n_tokens_neox': 1599, 'n_words': 332}