<commit_before><% title t('.title', year: @year) %>

<% content_for :breadcrumb_current_item do %>
  <h1>
    <%= link_to t('gobierto_budgets.layouts.menu_subsections.summary'), gobierto_budgets_budgets_path %>
  </h1>
<% end %>

<% content_for :body_attributes do %>
  <%== %Q{data-bubbles-data="#{bubbles_data_path(current_site)}"} %>
<% end %>

<div class="column">

  <div class="block">

    <div class="pure-g header_block_inline">
      <div class="pure-u-1 pure-u-md-12-24">
        <div class="inline_header">
          <h2 class="with_description p_h_r_1"><%= t('.header') %></h2>
          <%= render partial: 'gobierto_budgets/budgets/year_breadcrumb', locals: {path_calculation_method: :gobierto_budgets_budgets_path} %>
        </div>

        <p><%= t('.description') %></p>

        <% if @budgets_data_updated_at %>
          <p class="last_update">
            <strong><%= t('.last_update') %>:</strong> <%= l(@budgets_data_updated_at, format: '%d %B %Y') %>
          </p>
        <% end %>

        <% pending do %>
          <p class="m_v_0_25"><a href="#"><%= t('.budget_guide') %></a>.</p>
        <% end %>
      </div>

      <div class="pure-u-1 pure-u-md-12-24 right">
        <%= image_tag('illustrations/personaliza.jpg', class: 'img-fluid m_v_4') %>
      </div>
    </div>

    <div class="pure-g metric_boxes">

      <div class="pure-u-1-2 pure-u-md-1-5 metric_box">
        <div class="inner">
          <h3><%= t('.expenses_per_inhabitant') %></h3>
          <div class="metric"><%= format_currency @site_stats.total_budget_per_inhabitant %></div>
        </div>
      </div>

      <div class="pure-u-1-2 pure-u-md-1-5 metric_box">
        <div class="inner">
          <h3><%= t('.total_expenses') %></h3>
          <div class="metric"><%= format_currency @site_stats.total_budget %></div>
        </div>
      </div>

      <div class="pure-u-1-2 pure-u-md-1-5 metric_box">
        <div class="inner">
          <h3><%= t('.executed') %> (<span class="tooltiped" title="<%= t('.executed_tooltip') %>">?</span>)</h3>
          <div class="metric"><%= format_currency @site_stats.total_budget_executed %></div>
          <div class="explanation_bar">
            <% percentage = @site_stats.percentage_difference(variable1: :total_budget_executed, variable2: :total_budget_planned) %>
            <div class="bar"><div class="line" style="width: <%= percentage %>%"></div></div>
            <span><%= t('.executed_percent', percentage: percentage) %></span>
          </div>
        </div>
      </div>

      <div class="pure-u-1-2 pure-u-md-1-5 metric_box">
        <div class="inner">
          <h3><%= t('.inhabitants') %></h3>
          <div class="metric"><%= number_with_precision @site_stats.latest_available(:population, @year)[:value], precision: 0, delimiter: '.' %></div>
          <% if @site_stats.latest_available(:population, @year)[:year] != @year %>
            <div class="explanation">
              <%= t('.data_of_year', year: @site_stats.latest_available(:population, @year)[:year]) %>
            </div>
          <% end %>
        </div>
      </div>

      <div class="pure-u-1-2 pure-u-md-1-5 metric_box">
        <div class="inner">
          <h3><%= t('.debt') %></h3>
          <div class="metric"><%= format_currency @site_stats.latest_available(:debt, @year)[:value] %></div>
          <% if @site_stats.latest_available(:debt, @year)[:year] != @year %>
            <div class="explanation">
              <%= t('.at_years_end', year: @site_stats.latest_available(:debt, @year)[:year])%>
            </div>
          <% end %>
        </div>
      </div>

      <div class="pure-u-1-1 right soft m_v_0_25">
        <small><%= t('.data_advice') %></small>
      </div>
    </div>
  </div>

  <% pending do%>
    <div class="block">
      <h2><%= t('.stories_header') %></h2>

      <div class="pure-g stories_box">
        <a href="#" class="pure-u-md-1-3 pure-u-1 story_box">
          <div class="inner">
            <div class="bg-image" style="background-image: url(<%= image_url('stories/story_1') %>);"></div>

            <div class="padded">
              <h3 class="m_v_0_25"><%= t('.story_1.title') %></h3>
              <p class="m_v_0_25 soft"><%= t('.story_1.lede') %></p>
            </div>
          </div>
        </a>
        <a href="#" class="pure-u-md-1-3 pure-u-1 story_box">
          <div class="inner">
            <div class="bg-image" style="background-image: url(<%= image_url('stories/story_2') %>);"></div>

            <div class="padded">
              <h3 class="m_v_0_25"><%= t('.story_2.title') %></h3>
              <p class="m_v_0_25 soft"><%= t('.story_2.lede') %></p><commit_msg>Markup changes<commit_after><% title t('.title', year: @year) %>

<% content_for :breadcrumb_current_item do %>
  <h1>
    <%= link_to t('gobierto_budgets.layouts.menu_subsections.summary'), gobierto_budgets_budgets_path %>
  </h1>
<% end %>

<% content_for :body_attributes do %>
  <%== %Q{data-bubbles-data="#{bubbles_data_path(current_site)}"} %>
<% end %>

<div class="column">

  <div class="block">

    <div class="pure-g header_block_inline">
      <div class="pure-u-1 pure-u-md-12-24">
        <div class="inline_header">
          <h2 class="with_description p_h_r_1"><%= t('.header') %></h2>
          <%= render partial: 'gobierto_budgets/budgets/year_breadcrumb', locals: {path_calculation_method: :gobierto_budgets_budgets_path} %>
        </div>

        <p>
          <%= t('.description') %>

          <% if @budgets_data_updated_at %>
            <%= t('.last_update') %>: <%= l(@budgets_data_updated_at, format: '%d %B %Y') %>
          <% end %>
        </p>

        <% pending do %>
          <p class="m_v_0_25"><a href="#"><%= t('.budget_guide') %></a>.</p>
        <% end %>
      </div>

      <div class="pure-u-1 pure-u-md-12-24 right">
        <%= image_tag('illustrations/personaliza.jpg', class: 'img_header m_v_4') %>
      </div>
    </div>

    <div class="pure-g metric_boxes">

      <div class="pure-u-1-2 pure-u-md-1-5 metric_box">
        <div class="inner">
          <h3><%= t('.expenses_per_inhabitant') %></h3>
          <div class="metric"><%= format_currency @site_stats.total_budget_per_inhabitant %></div>
        </div>
      </div>

      <div class="pure-u-1-2 pure-u-md-1-5 metric_box">
        <div class="inner">
          <h3><%= t('.total_expenses') %></h3>
          <div class="metric"><%= format_currency @site_stats.total_budget %></div>
        </div>
      </div>

      <div class="pure-u-1-2 pure-u-md-1-5 metric_box">
        <div class="inner">
          <h3><%= t('.executed') %> (<span class="tooltiped" title="<%= t('.executed_tooltip') %>">?</span>)</h3>
          <div class="metric"><%= format_currency @site_stats.total_budget_executed %></div>
          <div class="explanation_bar">
            <% percentage = @site_stats.percentage_difference(variable1: :total_budget_executed, variable2: :total_budget_planned) %>
            <div class="bar"><div class="line" style="width: <%= percentage %>%"></div></div>
            <span><%= t('.executed_percent', percentage: percentage) %></span>
          </div>
        </div>
      </div>

      <div class="pure-u-1-2 pure-u-md-1-5 metric_box">
        <div class="inner">
          <h3><%= t('.inhabitants') %></h3>
          <div class="metric"><%= number_with_precision @site_stats.latest_available(:population, @year)[:value], precision: 0, delimiter: '.' %></div>
          <% if @site_stats.latest_available(:population, @year)[:year] != @year %>
            <div class="explanation">
              <%= t('.data_of_year', year: @site_stats.latest_available(:population, @year)[:year]) %>
            </div>
          <% end %>
        </div>
      </div>

      <div class="pure-u-1-2 pure-u-md-1-5 metric_box">
        <div class="inner">
          <h3><%= t('.debt') %></h3>
          <div class="metric"><%= format_currency @site_stats.latest_available(:debt, @year)[:value] %></div>
          <% if @site_stats.latest_available(:debt, @year)[:year] != @year %>
            <div class="explanation">
              <%= t('.at_years_end', year: @site_stats.latest_available(:debt, @year)[:year])%>
            </div>
          <% end %>
        </div>
      </div>
    </div>
  </div>

  <% pending do%>
    <div class="block">
      <h2><%= t('.stories_header') %></h2>

      <div class="pure-g stories_box">
        <a href="#" class="pure-u-md-1-3 pure-u-1 story_box">
          <div class="inner">
            <div class="bg-image" style="background-image: url(<%= image_url('stories/story_1') %>);"></div>

            <div class="padded">
              <h3 class="m_v_0_25"><%= t('.story_1.title') %></h3>
              <p class="m_v_0_25 soft"><%= t('.story_1.lede') %></p>
            </div>
          </div>
        </a>
        <a href="#" class="pure-u-md-1-3 pure-u-1 story_box">
          <div class="inner">
            <div class="bg-image" style="background-image: url(<%= image_url('stories/story_2') %>);"></div>

            <div class="padded">
              <h3 class="m_v_0_25"><%= t('.story_2.title') %></h3>
              <p class="m_v_0_25 soft"><%= t('.story_2.lede') %></p>
{'fraction_non_alphanumeric': 0.21486706456863808, 'fraction_numerical': 0.018339663591969615, 'mean_word_length': 2.536454336147352, 'pattern_counts': {'":': 0, '<': 308, '<?xml version=': 0, '>': 308, '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': '3011467', 'n_tokens_mistral': 3476, 'n_tokens_neox': 3212, 'n_words': 558}