<commit_before><!DOCTYPE html>
<html lang="${c.language}" xmlns="http://www.w3.org/1999/xhtml"
  xmlns:py="http://genshi.edgewall.org/"
  xmlns:i18n="http://genshi.edgewall.org/i18n"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  >

  <xi:include href="_util.html" />
  <xi:include href="dataset/_select.html" />

  <!-- templates/layout.html top -->

  <py:if test="len(_form_errors)">
    <div py:match="input" py:strip="" py:with="error = _form_errors.get(str(select('@name')))">
      ${select('.')}
      <py:if test="error">
        <p class="help-block error" py:content="error"></p>
      </py:if>
    </div>
    <div py:match="select" py:strip="" py:with="error = _form_errors.get(str(select('@name')))">
      <select py:attrs="select('@*')"
          py:with="select_name = str(select('@name'))"
          py:content="select('option|optgroup')" />
      <py:if test="error">
        <p class="help-block error" py:content="error"></p>
      </py:if>
    </div>
    <div py:match="textarea" py:strip="" py:with="error = _form_errors.get(str(select('@name')))">
      <textarea py:attrs="select('@*')"
          py:with="select_name = str(select('@name'))"
          py:content="select('text()')" />
      <py:if test="error">
        <p class="help-block error" py:content="error"></p>
      </py:if>
    </div>

  </py:if>

  <head>
    <meta charset="utf-8" />
    <title>${page_title()} - ${g.site_title}</title>
    <meta name="description" py:if="defined('page_description')" 
      content="${page_description()}" />
    <meta name="description" py:if="not defined('page_description')" 
      content="We're enabling anyone to explore, visualize and track government spending." />
    <meta name="author" content="Open Knowledge Foundation" />
    <link rel="shortcut icon" href="${h.static('img/favicon.ico')}" type="image/x-icon" />

    <!-- Le styles -->
    <link href="${h.static('style/bootstrap.css')}" rel="stylesheet" />
    <link href="${h.static('style/style.css')}" rel="stylesheet" />

    <py:if test="defined('optional_head')">
      ${optional_head()}
    </py:if>

    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>

  <!-- templates/layout.html body -->

  <body>

    <div class="navbar navbar-fixed-top" data-dropdown="dropdown">
      <div class="navbar-inner">
        <div class="container">
          <a class="brand" href="/" xml:lang="en"><span class="green">Open</span>Spending</a>
          <div class="nav-collapse">
            <ul class="nav">
              <li><a href="/">Home</a></li>
              <li><a class='${"active" if c.content_section=="blog" else ""}'
                href="${h.url(controller='content', action='view', section='blog', path='index.html')}">Spending Blog</a></li>
              <li class="dropdown">
                <a class='list-datasets ${"active" if c.dataset else ""}' href="#datasets">Datasets</a>
              </li>
              <li class="dropdown">
                <a class='${"active" if c.content_section=="resources" else ""} dropdown-toggle'
                  data-toggle="dropdown">Community</a>
                <ul class="dropdown-menu locale-dropdown">
                  <li>
                    <a href="/resources/wg/index.html">Working Group on Open Spending Data</a>
                    <a href="/resources/gift/index.html">Report: Technology for Fiscal Transparency</a>
                    <a href="/resources/eu/index.html">Briefing: European Union Spending</a>
                    <a href="/resources/iati/index.html">Briefing: Aid Transparency</a>
                    <a href="/resources/mobi/index.html">Briefing: OpenSpending.mobi</a>
                    <a href="/resources/standard/index.html">Standard for Transactional Spending Data</a>
                  </li>
                </ul>
              </li>
              <li><a class='${"active" if c.content_section=="help" else ""}'
               href="${h.url(controller='content', action='view', section='help', path='index.html')}">Help</a></li>
              <li><a class='${"active" if c.content_section=="about" else ""}'
                href="${h.url(controller='content', action='view', section='about', path='contact.html')}">About</a></li>
            </ul>
          </div>
          <ul class="nav pull-right">
            <li py:if="c.account is None">
              <a href="/login">Login/Register</a>
            </li>
            <py:if test="c.account is not None">
              <li><a href="/dashboard">Dashboard</a></li>
              <li><a href="/settings">Settings</a></li>
              <li><a href="/logout">Logout</a></li>
            </py:if>
            <li class="dropdown">
              <a class="dropdown-toggle" data-toggle="dropdown">Language</a>
              <ul class="dropdown-menu locale-dropdown">
                <li py:for="l in c.detected_l10n_languages" class="locale ${'current-locale' if l[0] == c.language else ''}">
                    <a class="select-locale" data-locale="${l[0]}">${l[1]}</a>
                </li>
              </ul>
             </li>
          </ul>
        </div>
      </div>
    </div>

    <div class="container">
      <py:with vars="messages = list(h._flash.pop_messages())">
        <div py:if="len(messages)">
          <div class="alert alert-${m.category}" py:for="m in messages">
            ${m.message}
          </div>
        </div>
      </py:with>

<!-- ************************************************************************************************** -->
        <!-- templates/layout.html content include start -->
        ${content()}
        <!-- templates/layout.html content include end -->
<!-- ************************************************************************************************** -->

      ${dataset_select()}

    </div> <!-- /container -->

    <footer>
      <div class="inner">
        <div class="container">
          <p i18n:msg="okfn">
            This is an <a href="http://okfn.org">Open Knowledge Foundation</a>
            project.
          </p>

          <ul class="footer-links span4 pull-left">
            <li><a href="http://wheredoesmymoneygo.org">Where Does My Money Go
              (UK)</a></li>
            <li><a href="http://offenerhaushalt.de">OffenerHaushalt (DE)</a></li>
            <li><a href="http://opencorporates.com" title="The Open Database Of The Corporate World">OpenCorporates.com</a></li>
            <li><a href="http://okfnlabs.org">OKFN Labs</a></li>
            <li><a href="http://italia.yourtopia.net">YourTopia</a></li>
          </ul>
          <ul class="footer-links span4 pull-left">
            <li><a href="http://twitter.com/openspending">Twitter</a></li>
            <li><a href="${h.url(controller='content', action='view', section='help', path='index.html')}">Help</a></li>
            <li><a href="${g.lists_link}">Mailing List</a></li>
            <li><a href="${h.url(controller='content', action='view', section='help', path='api.html')}">API</a></li>
            <li><a href="http://okfn.org/privacy-policy/">Privacy</a> and <a href="${h.url(controller='content', action='view', section='about', path='contact.html')}">Contact</a></li>
          </ul>

          <p i18n:msg="code,data,opendef">
          All <a href="http://www.gnu.org/licenses/agpl.html">code</a><commit_msg>link to cc-by from footer <commit_after><!DOCTYPE html>
<html lang="${c.language}" xmlns="http://www.w3.org/1999/xhtml"
  xmlns:py="http://genshi.edgewall.org/"
  xmlns:i18n="http://genshi.edgewall.org/i18n"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  >

  <xi:include href="_util.html" />
  <xi:include href="dataset/_select.html" />

  <!-- templates/layout.html top -->

  <py:if test="len(_form_errors)">
    <div py:match="input" py:strip="" py:with="error = _form_errors.get(str(select('@name')))">
      ${select('.')}
      <py:if test="error">
        <p class="help-block error" py:content="error"></p>
      </py:if>
    </div>
    <div py:match="select" py:strip="" py:with="error = _form_errors.get(str(select('@name')))">
      <select py:attrs="select('@*')"
          py:with="select_name = str(select('@name'))"
          py:content="select('option|optgroup')" />
      <py:if test="error">
        <p class="help-block error" py:content="error"></p>
      </py:if>
    </div>
    <div py:match="textarea" py:strip="" py:with="error = _form_errors.get(str(select('@name')))">
      <textarea py:attrs="select('@*')"
          py:with="select_name = str(select('@name'))"
          py:content="select('text()')" />
      <py:if test="error">
        <p class="help-block error" py:content="error"></p>
      </py:if>
    </div>

  </py:if>

  <head>
    <meta charset="utf-8" />
    <title>${page_title()} - ${g.site_title}</title>
    <meta name="description" py:if="defined('page_description')" 
      content="${page_description()}" />
    <meta name="description" py:if="not defined('page_description')" 
      content="We're enabling anyone to explore, visualize and track government spending." />
    <meta name="author" content="Open Knowledge Foundation" />
    <link rel="shortcut icon" href="${h.static('img/favicon.ico')}" type="image/x-icon" />

    <!-- Le styles -->
    <link href="${h.static('style/bootstrap.css')}" rel="stylesheet" />
    <link href="${h.static('style/style.css')}" rel="stylesheet" />

    <py:if test="defined('optional_head')">
      ${optional_head()}
    </py:if>

    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>

  <!-- templates/layout.html body -->

  <body>

    <div class="navbar navbar-fixed-top" data-dropdown="dropdown">
      <div class="navbar-inner">
        <div class="container">
          <a class="brand" href="/" xml:lang="en"><span class="green">Open</span>Spending</a>
          <div class="nav-collapse">
            <ul class="nav">
              <li><a href="/">Home</a></li>
              <li><a class='${"active" if c.content_section=="blog" else ""}'
                href="${h.url(controller='content', action='view', section='blog', path='index.html')}">Spending Blog</a></li>
              <li class="dropdown">
                <a class='list-datasets ${"active" if c.dataset else ""}' href="#datasets">Datasets</a>
              </li>
              <li class="dropdown">
                <a class='${"active" if c.content_section=="resources" else ""} dropdown-toggle'
                  data-toggle="dropdown">Community</a>
                <ul class="dropdown-menu locale-dropdown">
                  <li>
                    <a href="/resources/wg/index.html">Working Group on Open Spending Data</a>
                    <a href="/resources/gift/index.html">Report: Technology for Fiscal Transparency</a>
                    <a href="/resources/eu/index.html">Briefing: European Union Spending</a>
                    <a href="/resources/iati/index.html">Briefing: Aid Transparency</a>
                    <a href="/resources/mobi/index.html">Briefing: OpenSpending.mobi</a>
                    <a href="/resources/standard/index.html">Standard for Transactional Spending Data</a>
                  </li>
                </ul>
              </li>
              <li><a class='${"active" if c.content_section=="help" else ""}'
               href="${h.url(controller='content', action='view', section='help', path='index.html')}">Help</a></li>
              <li><a class='${"active" if c.content_section=="about" else ""}'
                href="${h.url(controller='content', action='view', section='about', path='contact.html')}">About</a></li>
            </ul>
          </div>
          <ul class="nav pull-right">
            <li py:if="c.account is None">
              <a href="/login">Login/Register</a>
            </li>
            <py:if test="c.account is not None">
              <li><a href="/dashboard">Dashboard</a></li>
              <li><a href="/settings">Settings</a></li>
              <li><a href="/logout">Logout</a></li>
            </py:if>
            <li class="dropdown">
              <a class="dropdown-toggle" data-toggle="dropdown">Language</a>
              <ul class="dropdown-menu locale-dropdown">
                <li py:for="l in c.detected_l10n_languages" class="locale ${'current-locale' if l[0] == c.language else ''}">
                    <a class="select-locale" data-locale="${l[0]}">${l[1]}</a>
                </li>
              </ul>
             </li>
          </ul>
        </div>
      </div>
    </div>

    <div class="container">
      <py:with vars="messages = list(h._flash.pop_messages())">
        <div py:if="len(messages)">
          <div class="alert alert-${m.category}" py:for="m in messages">
            ${m.message}
          </div>
        </div>
      </py:with>

<!-- ************************************************************************************************** -->
        <!-- templates/layout.html content include start -->
        ${content()}
        <!-- templates/layout.html content include end -->
<!-- ************************************************************************************************** -->

      ${dataset_select()}

    </div> <!-- /container -->

    <footer>
      <div class="inner">
        <div class="container">
          <p i18n:msg="okfn">
            This is an <a href="http://okfn.org">Open Knowledge Foundation</a>
            project.
          </p>

          <ul class="footer-links span4 pull-left">
            <li><a href="http://wheredoesmymoneygo.org">Where Does My Money Go
              (UK)</a></li>
            <li><a href="http://offenerhaushalt.de">OffenerHaushalt (DE)</a></li>
            <li><a href="http://opencorporates.com" title="The Open Database Of The Corporate World">OpenCorporates.com</a></li>
            <li><a href="http://okfnlabs.org">OKFN Labs</a></li>
            <li><a href="http://italia.yourtopia.net">YourTopia</a></li>
          </ul>
          <ul class="footer-links span4 pull-left">
            <li><a href="http://twitter.com/openspending">Twitter</a></li>
            <li><a href="${h.url(controller='content', action='view', section='help', path='index.html')}">Help</a></li>
            <li><a href="${g.lists_link}">Mailing List</a></li>
            <li><a href="${h.url(controller='content', action='view', section='help', path='api.html')}">API</a></li>
            <li><a href="http://okfn.org/privacy-policy/">Privacy</a> and <a href="${h.url(controller='content', action='view', section='about', path='contact.html')}">Contact</a></li>
          </ul>

          <p i18n:msg="code,data,opendef">
          All <a href="http://www.gnu.org/licenses/agpl.html">code</a>,
          <a href="http://creativecommons.org/licenses/by/3.0/">content</a>
{'fraction_non_alphanumeric': 0.23112326574172892, 'fraction_numerical': 0.004402347918890074, 'mean_word_length': 2.5227913533834587, 'pattern_counts': {'":': 0, '<': 407, '<?xml version=': 0, '>': 407, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 10}, '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': '6255012', 'n_tokens_mistral': 4744, 'n_tokens_neox': 4593, 'n_words': 796}