<commit_before>{% macro ind_zero(
  surveydata,
  rows,
  twentytwelvedata,
  old_publication_status,
  publishedstatuses,
  publishedformats,
  workflow,
  indicator,
  years,
  year_data
) %}
        {% set data = surveydata['researcher'] %}
        <tr class="indicator{{indicator.indicator.id}}">
            <td rowspan="{{rows}}"><a href="#indicator{{indicator.indicator.id}}" role="button" data-toggle="modal">{{indicator.indicator.description}}</a>
                <div id="indicator{{indicator.indicator.id}}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="indicatorHeader" aria-hidden="true">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h3 id="indicatorHeader">Indicator: {{indicator.indicator.description}}</h3>
                    </div>
                    <div class="modal-body">
                        {{indicator.indicator.longdescription}}
                    </div>
                    <div class="modal-footer">
                        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
                    </div>
                </div></td>
            <td><span class="muted">Researcher</span></td>
            <td>
              {% if indicator.indicator.indicator_ordinal %}
                <span class="badge badge-{{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].class}}" title="Researcher's initial assessment">
                {{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].text}}</span>
              {% else %}
                 <span class="badge badge-{{surveydata.researcher[indicator.indicator.id].PublishedStatus.publishedstatus_class}}" title="Researcher's initial assessment">{{surveydata.researcher[indicator.indicator.id].PublishedStatus.title}}</span>
              {% endif %}<br />
            <span class="badge badge-{{surveydata.researcher[indicator.indicator.id].PublishedFormat.format_class}}" title="Researcher's initial assessment">{{surveydata.researcher[indicator.indicator.id].PublishedFormat.title}}</span>
            </td>
            <td class="restrict_text">
            {{surveydata.researcher[indicator.indicator.id].OrganisationSurveyData.published_source}}
            </td>
            <td class="restrict_text">
            {{surveydata.researcher[indicator.indicator.id].OrganisationSurveyData.published_comment}}
            </td>
        </tr>
        {% if surveydata.donorreview %}
        {% set data = surveydata['donorreview'] %}
        <tr>
            <td><span class="muted">Donor review</span></td>
            <td>
              {% if indicator.indicator.indicator_ordinal %}
                <span class="badge badge-{{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].class}}" title="Donor's response">
                {{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].text}}</span>
              {% else %}
                <span class="badge badge-{{surveydata.donorreview[indicator.indicator.id].PublishedStatus.publishedstatus_class}}" title="Donor's response">{{surveydata.donorreview[indicator.indicator.id].PublishedStatus.title}}</span>
              {% endif %}<br />
            <span class="badge badge-{{surveydata.donorreview[indicator.indicator.id].PublishedFormat.format_class}}" title="Donor's response">{{surveydata.donorreview[indicator.indicator.id].PublishedFormat.title}}</span>
            </td>
            <td class="restrict_text">
            {{surveydata.donorreview[indicator.indicator.id].OrganisationSurveyData.published_source}}
            </td>
            <td class="restrict_text">
            {{surveydata.donorreview[indicator.indicator.id].OrganisationSurveyData.published_comment}}
            </td>
        </tr>
        {% endif %}
        {% if surveydata.pwyfreview %}
        {% set data = surveydata['pwyfreview'] %}
        <tr>
            <td><span class="muted">PWYF review</span></td>
            <td>
              {% if indicator.indicator.indicator_ordinal %}
                <span class="badge badge-{{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].class}}" title="PWYF Review">
                {{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].text}}</span>
              {% else %}
                <span class="badge badge-{{surveydata.pwyfreview[indicator.indicator.id].PublishedStatus.publishedstatus_class}}" title="PWYF Review">{{surveydata.pwyfreview[indicator.indicator.id].PublishedStatus.title}}</span>
              {% endif %}<br />
            <span class="badge badge-{{surveydata.pwyfreview[indicator.indicator.id].PublishedFormat.format_class}}" title="PWYF Review">{{surveydata.pwyfreview[indicator.indicator.id].PublishedFormat.title}}</span>
            </td>
            <td class="restrict_text">
            {{surveydata.pwyfreview[indicator.indicator.id].OrganisationSurveyData.published_source}}
            </td>
            <td class="restrict_text">
            {{surveydata.pwyfreview[indicator.indicator.id].OrganisationSurveyData.published_comment}}
            </td>
        </tr>
        {% endif %}
        
		{% if workflow.Workflow.name != 'cso' %}
            {% if surveydata.cso %}
            {% set data = surveydata['cso'] %}
            {% if data[indicator.indicator.id].OrganisationSurveyData.published_accepted == 1 %}
            {% set accepted = 'Agree' %}
            {% set accepted_class = 'success' %}
            {% else %}
            {% set accepted = 'Disagree' %}
            {% set accepted_class = 'important' %}
            {% endif %}
            <tr>
                <td><span class="muted">Independent reviewer</span></td>
                <td>
                <span class="badge badge-{{accepted_class}}" title="Agree or disagree">{{accepted}}</span>
                </td>
                <td class="restrict_text"></td>
                <td class="restrict_text">
                {{data[indicator.indicator.id].OrganisationSurveyData.published_comment}}
                </td>
            </tr>
            {% endif %}

            {% if surveydata.pwyffinal %}
            {% set data = surveydata['pwyffinal'] %}
            <tr>
                <td><span class="muted">PWYF Final Assessment</span></td>
                <td>
                  {% if indicator.indicator.indicator_ordinal %}
                    <span class="badge badge-{{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].class}}" title="PWYF Final Assessment">
                    {{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].text}}</span>
                  {% else %}
                    <span class="badge badge-{{data[indicator.indicator.id].PublishedStatus.publishedstatus_class}}" title="PWYF Final Assessment">{{data[indicator.indicator.id].PublishedStatus.title}}</span>
                  {% endif %}<br />
                <span class="badge badge-{{surveydata.pwyfreview[indicator.indicator.id].PublishedFormat.format_class}}" title="PWYF Final Assessment">{{data[indicator.indicator.id].PublishedFormat.title}}</span>
                </td>
                <td class="restrict_text">
                {{data[indicator.indicator.id].OrganisationSurveyData.published_source}}
                </td>
                <td class="restrict_text">
                {{data[indicator.indicator.id].OrganisationSurveyData.published_comment}}
                </td>
            </tr>
            {% endif %}
        {% endif %}
        {% if (surveydata.donorcomments) and (workflow.Workflow.name != 'donorcomments') and (workflow.Workflow.name!='cso') %}
        {% set data = surveydata['donorcomments'] %}
        {% if data[indicator.indicator.id].OrganisationSurveyData.published_accepted == 1 %}
        {% set accepted = 'Agree' %}
        {% set accepted_class = 'success' %}
        {% else %}
        {% set accepted = 'Disagree' %}
        {% set accepted_class = 'important' %}
        {% endif %}
        <tr>
            <td><span class="muted">{{data[indicator.indicator.id].Workflow.title}}</span></td>
            <td>
            <span class="badge badge-{{accepted_class}}" title="Agree or disagree">{{accepted}}</span>
            </td>
            <td class="restrict_text"></td>
            <td class="restrict_text">
            {{data[indicator.indicator.id].OrganisationSurveyData.published_comment}}
            </td>
        </tr>
        {% endif %}
        {% set data = surveydata[workflow.Workflow.name] %}
        {% if data and data[indicator.indicator.id].OrganisationSurveyData.published_accepted==0 %}
        {% set agree = True %}
        {% else %}
        {% set agree = False %}
        {% endif %}
        <tr id="tr{{indicator.indicator.id}}">
        <td>{{ workflow.Workflow.title }}<input type="hidden" name="indicator" value="{{indicator.indicator.id}}" /></td>
        <td>
        <label for="{{indicator.indicator.id}}-agree-1">
        <input type="radio" name="{{indicator.indicator.id}}-agree" value="1" id="{{indicator.indicator.id}}-agree-1"{% if agree %} checked{%endif%}> Agree</input>
        <br />
        <span class="muted">Agree</span></label>
        <label for="{{indicator.indicator.id}}-agree-0">
        <input type="radio" name="{{indicator.indicator.id}}-agree" value="0" id="{{indicator.indicator.id}}-agree-0"{% if not agree %} checked{%endif%}> Disagree</input>
        <br />
        <span class="muted">Disagree</span></label>
        </td>
        <td colspan="2"><textarea name="{{indicator.indicator.id}}-comments">{% if data %}{{data[indicator.indicator.id].OrganisationSurveyData.published_comment}}{%endif%}</textarea></td>
        </tr>

{% endmacro %}
<commit_msg>Try to fix bug a bit more<commit_after>{% macro ind_zero(
  surveydata,
  rows,
  twentytwelvedata,
  old_publication_status,
  publishedstatuses,
  publishedformats,
  workflow,
  indicator,
  years,
  year_data
) %}
        {% set data = surveydata['researcher'] %}
        <tr class="indicator{{indicator.indicator.id}}">
            <td rowspan="{{rows}}"><a href="#indicator{{indicator.indicator.id}}" role="button" data-toggle="modal">{{indicator.indicator.description}}</a>
                <div id="indicator{{indicator.indicator.id}}" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="indicatorHeader" aria-hidden="true">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h3 id="indicatorHeader">Indicator: {{indicator.indicator.description}}</h3>
                    </div>
                    <div class="modal-body">
                        {{indicator.indicator.longdescription}}
                    </div>
                    <div class="modal-footer">
                        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
                    </div>
                </div></td>
            <td><span class="muted">Researcher</span></td>
            <td>
              {% if indicator.indicator.indicator_ordinal %}
                <span class="badge badge-{{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].class}}" title="Researcher's initial assessment">
                {{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].text}}</span>
              {% else %}
                 <span class="badge badge-{{surveydata.researcher[indicator.indicator.id].PublishedStatus.publishedstatus_class}}" title="Researcher's initial assessment">{{surveydata.researcher[indicator.indicator.id].PublishedStatus.title}}</span>
              {% endif %}<br />
            <span class="badge badge-{{surveydata.researcher[indicator.indicator.id].PublishedFormat.format_class}}" title="Researcher's initial assessment">{{surveydata.researcher[indicator.indicator.id].PublishedFormat.title}}</span>
            </td>
            <td class="restrict_text">
            {{surveydata.researcher[indicator.indicator.id].OrganisationSurveyData.published_source}}
            </td>
            <td class="restrict_text">
            {{surveydata.researcher[indicator.indicator.id].OrganisationSurveyData.published_comment}}
            </td>
        </tr>
        {% if surveydata.donorreview %}
        {% set data = surveydata['donorreview'] %}
        <tr>
            <td><span class="muted">Donor review</span></td>
            <td>
              {% if indicator.indicator.indicator_ordinal %}
                <span class="badge badge-{{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].class}}" title="Donor's response">
                {{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].text}}</span>
              {% else %}
                <span class="badge badge-{{surveydata.donorreview[indicator.indicator.id].PublishedStatus.publishedstatus_class}}" title="Donor's response">{{surveydata.donorreview[indicator.indicator.id].PublishedStatus.title}}</span>
              {% endif %}<br />
            <span class="badge badge-{{surveydata.donorreview[indicator.indicator.id].PublishedFormat.format_class}}" title="Donor's response">{{surveydata.donorreview[indicator.indicator.id].PublishedFormat.title}}</span>
            </td>
            <td class="restrict_text">
            {{surveydata.donorreview[indicator.indicator.id].OrganisationSurveyData.published_source}}
            </td>
            <td class="restrict_text">
            {{surveydata.donorreview[indicator.indicator.id].OrganisationSurveyData.published_comment}}
            </td>
        </tr>
        {% endif %}
        {% if surveydata.pwyfreview %}
        {% set data = surveydata['pwyfreview'] %}
        <tr>
            <td><span class="muted">PWYF review</span></td>
            <td>
              {% if indicator.indicator.indicator_ordinal %}
                <span class="badge badge-{{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].class}}" title="PWYF Review">
                {{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].text}}</span>
              {% else %}
                <span class="badge badge-{{surveydata.pwyfreview[indicator.indicator.id].PublishedStatus.publishedstatus_class}}" title="PWYF Review">{{surveydata.pwyfreview[indicator.indicator.id].PublishedStatus.title}}</span>
              {% endif %}<br />
            <span class="badge badge-{{surveydata.pwyfreview[indicator.indicator.id].PublishedFormat.format_class}}" title="PWYF Review">{{surveydata.pwyfreview[indicator.indicator.id].PublishedFormat.title}}</span>
            </td>
            <td class="restrict_text">
            {{surveydata.pwyfreview[indicator.indicator.id].OrganisationSurveyData.published_source}}
            </td>
            <td class="restrict_text">
            {{surveydata.pwyfreview[indicator.indicator.id].OrganisationSurveyData.published_comment}}
            </td>
        </tr>
        {% endif %}
        
		{% if workflow.Workflow.name != 'cso' %}
            {% if surveydata.cso %}
            {% set data = surveydata['cso'] %}
            {% if data[indicator.indicator.id].OrganisationSurveyData.published_accepted == 1 %}
            {% set accepted = 'Agree' %}
            {% set accepted_class = 'success' %}
            {% else %}
            {% set accepted = 'Disagree' %}
            {% set accepted_class = 'important' %}
            {% endif %}
            <tr>
                <td><span class="muted">Independent reviewer</span></td>
                <td>
                <span class="badge badge-{{accepted_class}}" title="Agree or disagree">{{accepted}}</span>
                </td>
                <td class="restrict_text"></td>
                <td class="restrict_text">
                {{data[indicator.indicator.id].OrganisationSurveyData.published_comment}}
                </td>
            </tr>
            {% endif %}

            {% if surveydata.pwyffinal %}
            {% set data = surveydata['pwyffinal'] %}
            <tr>
                <td><span class="muted">PWYF Final Assessment</span></td>
                <td>
                  {% if indicator.indicator.indicator_ordinal %}
                    <span class="badge badge-{{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].class}}" title="PWYF Final Assessment">
                    {{year_data[data[indicator.indicator.id].OrganisationSurveyData.ordinal_value].text}}</span>
                  {% else %}
                    <span class="badge badge-{{data[indicator.indicator.id].PublishedStatus.publishedstatus_class}}" title="PWYF Final Assessment">{{data[indicator.indicator.id].PublishedStatus.title}}</span>
                  {% endif %}<br />
                <span class="badge badge-{{surveydata.pwyfreview[indicator.indicator.id].PublishedFormat.format_class}}" title="PWYF Final Assessment">{{data[indicator.indicator.id].PublishedFormat.title}}</span>
                </td>
                <td class="restrict_text">
                {{data[indicator.indicator.id].OrganisationSurveyData.published_source}}
                </td>
                <td class="restrict_text">
                {{data[indicator.indicator.id].OrganisationSurveyData.published_comment}}
                </td>
            </tr>
            {% endif %}
        {% endif %}
        {% if (surveydata.donorcomments) and (workflow.Workflow.name != 'donorcomments') and (workflow.Workflow.name!='cso') %}
        {% set data = surveydata['donorcomments'] %}
        {% if data[indicator.indicator.id].OrganisationSurveyData.published_accepted == 1 %}
        {% set accepted = 'Agree' %}
        {% set accepted_class = 'success' %}
        {% else %}
        {% set accepted = 'Disagree' %}
        {% set accepted_class = 'important' %}
        {% endif %}
        <tr>
            <td><span class="muted">{{data[indicator.indicator.id].Workflow.title}}</span></td>
            <td>
            <span class="badge badge-{{accepted_class}}" title="Agree or disagree">{{accepted}}</span>
            </td>
            <td class="restrict_text"></td>
            <td class="restrict_text">
            {{data[indicator.indicator.id].OrganisationSurveyData.published_comment}}
            </td>
        </tr>
        {% endif %}
        {% set data = surveydata[workflow.Workflow.name] %}
        {% if data and data[indicator.indicator.id] and data[indicator.indicator.id].OrganisationSurveyData.published_accepted==0 %}
        {% set agree = True %}
        {% else %}
        {% set agree = False %}
        {% endif %}
        <tr id="tr{{indicator.indicator.id}}">
        <td>{{ workflow.Workflow.title }}<input type="hidden" name="indicator" value="{{indicator.indicator.id}}" /></td>
        <td>
        <label for="{{indicator.indicator.id}}-agree-1">
        <input type="radio" name="{{indicator.indicator.id}}-agree" value="1" id="{{indicator.indicator.id}}-agree-1"{% if agree %} checked{%endif%}> Agree</input>
        <br />
        <span class="muted">Agree</span></label>
        <label for="{{indicator.indicator.id}}-agree-0">
        <input type="radio" name="{{indicator.indicator.id}}-agree" value="0" id="{{indicator.indicator.id}}-agree-0"{% if not agree %} checked{%endif%}> Disagree</input>
        <br />
        <span class="muted">Disagree</span></label>
        </td>
        <td colspan="2"><textarea name="{{indicator.indicator.id}}-comments">{% if data %}{{data[indicator.indicator.id].OrganisationSurveyData.published_comment}}{%endif%}</textarea></td>
        </tr>

{% endmacro %}

{'fraction_non_alphanumeric': 0.15714070275976474, 'fraction_numerical': 0.0013069924093902377, 'mean_word_length': 2.4846733228236118, 'pattern_counts': {'":': 0, '<': 297, '<?xml version=': 0, '>': 297, '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': '2010215', 'n_tokens_mistral': 6170, 'n_tokens_neox': 5647, 'n_words': 762}