<commit_before>{% set active_page='organisations'%}{% extends "layout.html" %}
{% block title %}
{{organisation.organisation_name}} &raquo; Organisations
{% endblock %}
{% block content %}

    <div class="pull-right">
        <a class="btn btn-success" 
		   href="{{url_for('login', next='/organisations/' + organisation.organisation_code + '/publication')}}">
		  <i class="icon-lock icon-white"></i> 
		  <b>Login &raquo; {{ organisation.organisation_name }}</b>
		</a>
    </div>

    <h1>
	  <a href="{{url_for('organisations', 
			   organisation_code=organisation.organisation_code)}}">
		{{organisation.organisation_name}}</a>
	</h1>

    {% if results %}

    <h3>2014 Aid Transparency Index data </h3>
    <div class="">
        <div class="row">
            <div class="span12">
                <h2>Tracking aid transparency improvements over time.</h2>
                <p class="lead">This page shows the information
                collected for {{organisation.organisation_name}} for
                the 2014 Aid Transparency Index and tracks changes to
                the information found over the course of the Index
                data collection period.</p>
            </div>
        </div>
    </div>


    <a id="commitment"></a>
    <hr />
    <fieldset>
      <h3>Commitment</h3>
      <table class="table" id="results_commitment">
        <thead>
          <th width="50%">Indicator</th>
          <th width="25%">2013</th>
          <th width="25%">2014</th>
        </thead>
        <tbody>
          {% for indicator, result in results.commitment.items() %}

            <tr id="indicator-{{result["indicator"]["id"]}}">

              <td>
				<a href="#indicator{{result["indicator"]["id"]}}" 
				   role="button" data-toggle="modal">
				  {{result["indicator"]["indicator_order"]}}. 
				  {{result["indicator"]["description"]}}
				</a>
                <div id="indicator{{result["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: {{result["indicator"]["description"]}}
					</h3>
                  </div>
                  <div class="modal-body">
                    {{result.indicator.longdescription}}
                  </div>
                  <div class="modal-footer">
                    <button class="btn" data-dismiss="modal" 
							aria-hidden="true">Close</button>
                  </div>
                </div>
              </td>

              {% if lastyearsdata[result.indicator.name].result == '' %}
              <td>
				<span class="label label-default">Not in 2013 Index</span>
			  </td>
              <td>
				<span class="label label-default">No survey data 
				  yet.</span>
			  </td>
              {% else %}

              <td>
				{{lastyearsdata[result.indicator.name].survey_ordinal_value}}% 
				<a href="#" class="showTests" 
				   id="showindicator-{{result["indicator"]["id"]}}">
				  <i class="icon-chevron-down align-right"></i></a>
			  </td>

              <td>
				<span class="label label-default">No survey data 
				  yet.</span>
			  </td>

            </tr>

            <tr id="tr-{{result["indicator"]["id"]}}-details" 
				class="group-{{result["indicator"]["id"]}} hidden">

              <td colspan="3">
                <h5>Evidence</h5>
			    <p>{{lastyearsdata[result.indicator.name].survey_source}}</p>
                <h5>Comments</h5>
			    <p>{{lastyearsdata[result.indicator.name].survey_comment}}</p>
              </td>
              {% endif %}
            </tr>
			{% endfor %}
        </tbody>
      </table>
    </fieldset>
	

    <a id="publication_organisation"></a>
    <hr />
    <fieldset>
      <h3>Publication &ndash; Organisation</h3>
      <table class="table" id="results_publication">
        <thead>
          <th width="20%">Subgroup</th>
          <th width="30%">Indicator</th>
          <th width="25%">2013</th>
          <th width="25%">2014</th>
        </thead>
        <tbody>

        {% for indicator, result in results.publication_organisation.items() %}
          <tr id="indicator-{{result["indicator"]["id"]}}">
            <td>{{result.indicator.indicator_subcategory_name|title}}</td>
            <td>
			  <a href="#indicator{{result["indicator"]["id"]}}" 
				 role="button" data-toggle="modal">
                {{result["indicator"]["indicator_order"]}}. 
				{{result["indicator"]["description"]}}
			  </a>

              <div id="indicator{{result["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: {{result["indicator"]["description"]}}
				  </h3>
                </div>

                <div class="modal-body">
                  {{result.indicator.longdescription}}
                </div>

                <div class="modal-footer">
                  <button class="btn" data-dismiss="modal" 
						  aria-hidden="true">Close</button>
                </div>
              </div>
            </td>
            <td>{% if lastyearsdata[result.indicator.name].result == '' %}<commit_msg>reformat template<commit_after>{% set active_page='organisations'%}{% extends "layout.html" %}
{% block title %}
{{organisation.organisation_name}} &raquo; Organisations
{% endblock %}
{% block content %}

    <div class="pull-right">
        <a class="btn btn-success" 
		   href="{{url_for('login', next='/organisations/' + organisation.organisation_code + '/publication')}}">
		  <i class="icon-lock icon-white"></i> 
		  <b>Login &raquo; {{ organisation.organisation_name }}</b>
		</a>
    </div>

    <h1>
	  <a href="{{url_for('organisations', 
			   organisation_code=organisation.organisation_code)}}">
		{{organisation.organisation_name}}</a>
	</h1>

    {% if results %}

    <h3>2014 Aid Transparency Index data </h3>
    <div class="">
        <div class="row">
            <div class="span12">
                <h2>Tracking aid transparency improvements over time.</h2>
                <p class="lead">This page shows the information
                collected for {{organisation.organisation_name}} for
                the 2014 Aid Transparency Index and tracks changes to
                the information found over the course of the Index
                data collection period.</p>
            </div>
        </div>
    </div>


    <a id="commitment"></a>
    <hr />
    <fieldset>
      <h3>Commitment</h3>
      <table class="table" id="results_commitment">
        <thead>
          <th width="50%">Indicator</th>
          <th width="25%">2013</th>
          <th width="25%">2014</th>
        </thead>
        <tbody>
          {% for indicator, result in results.commitment.items() %}

            <tr id="indicator-{{result["indicator"]["id"]}}">

              <td>
				<a href="#indicator{{result["indicator"]["id"]}}" 
				   role="button" data-toggle="modal">
				  {{result["indicator"]["indicator_order"]}}. 
				  {{result["indicator"]["description"]}}
				</a>
                <div id="indicator{{result["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: {{result["indicator"]["description"]}}
					</h3>
                  </div>
                  <div class="modal-body">
                    {{result.indicator.longdescription}}
                  </div>
                  <div class="modal-footer">
                    <button class="btn" data-dismiss="modal" 
							aria-hidden="true">Close</button>
                  </div>
                </div>
              </td>

              {% if lastyearsdata[result.indicator.name].result == '' %}
              <td>
				<span class="label label-default">Not in 2013 Index</span>
			  </td>
              <td>
				<span class="label label-default">No survey data 
				  yet.</span>
			  </td>
              {% else %}

              <td>
				{{lastyearsdata[result.indicator.name].survey_ordinal_value}}% 
				<a href="#" class="showTests" 
				   id="showindicator-{{result["indicator"]["id"]}}">
				  <i class="icon-chevron-down align-right"></i></a>
			  </td>

              <td>
				<span class="label label-default">No survey data 
				  yet.</span>
			  </td>

            </tr>

            <tr id="tr-{{result["indicator"]["id"]}}-details" 
				class="group-{{result["indicator"]["id"]}} hidden">

              <td colspan="3">
                <h5>Evidence</h5>
			    <p>{{lastyearsdata[result.indicator.name].survey_source}}</p>
                <h5>Comments</h5>
			    <p>{{lastyearsdata[result.indicator.name].survey_comment}}</p>
              </td>
              {% endif %}
            </tr>
			{% endfor %}
        </tbody>
      </table>
    </fieldset>
	

    <a id="publication_organisation"></a>
    <hr />
    <fieldset>
      <h3>Publication &ndash; Organisation</h3>
      <table class="table" id="results_publication">
        <thead>
          <th width="20%">Subgroup</th>
          <th width="30%">Indicator</th>
          <th width="25%">2013</th>
          <th width="25%">2014</th>
        </thead>
        <tbody>

        {% for indicator, result in results.publication_organisation.items() %}
          <tr id="indicator-{{result["indicator"]["id"]}}">
            <td>{{result.indicator.indicator_subcategory_name|title}}</td>
            <td>
			  <a href="#indicator{{result["indicator"]["id"]}}" 
				 role="button" data-toggle="modal">
                {{result["indicator"]["indicator_order"]}}. 
				{{result["indicator"]["description"]}}
			  </a>

              <div id="indicator{{result["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: {{result["indicator"]["description"]}}
				  </h3>
                </div>

                <div class="modal-body">
                  {{result.indicator.longdescription}}
                </div>

                <div class="modal-footer">
                  <button class="btn" data-dismiss="modal" 
						  aria-hidden="true">Close</button>
                </div>
              </div>
            </td>

            <td>{% if lastyearsdata[result.indicator.name].result == '' %}
{'fraction_non_alphanumeric': 0.17734522844011896, 'fraction_numerical': 0.011714877894926557, 'mean_word_length': 2.0330691445750206, 'pattern_counts': {'":': 0, '<': 269, '<?xml version=': 0, '>': 269, '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': '13853', 'n_tokens_mistral': 3804, 'n_tokens_neox': 3260, 'n_words': 577}