<commit_before><div class="main_metrics clearfix">

  <div class="metric"
    data-widget-template="#widget-template"
    data-widget-type="per_person"
    data-line-widget-series="means"
    data-line-widget-url="<%= gobierto_budgets_api_data_lines_path(organization_slug: current_organization.slug, year: @year, what: 'per_person', format: :json) %>"
    data-line-widget-type="per_person"
    data-widget-data-url="<%= gobierto_budgets_api_data_total_budget_per_inhabitant_path(organization_slug: current_organization.slug, year: @year, format: :json) %>"
    data-page-href="<%= gobierto_budgets_place_path(slug: current_organization.slug, year: @year, anchor: 'per_person')%>">
  </div>

  <div class="metric"
    data-widget-template="#widget-template"
    data-widget-type="total_budget"
    data-line-widget-series="means"
    data-line-widget-url="<%= gobierto_budgets_api_data_lines_path(organization_slug: current_organization.slug, year: @year, what: 'total_budget', format: :json) %>"
    data-line-widget-type="total_budget"
    data-widget-data-url="<%= gobierto_budgets_api_data_total_budget_path(organization_slug: current_organization.slug, year: @year, format: :json) %>"
    data-page-href="<%= gobierto_budgets_place_path(slug: current_organization.slug, year: @year, anchor: 'total_budget')%>">
  </div>

  <div class="metric tipsit" title="<%= t('gobierto_budgets.pages.map_metrics.tipsit_planned_vs_executed') %>"
    data-widget-template="#widget-template-execution"
    data-widget-type="total_budget_execution"
    data-widget-data-url="<%= gobierto_budgets_api_data_total_budget_execution_path(organization_slug: current_organization.slug, year: @year, format: :json) %>"
    data-page-href="<%= gobierto_budgets_place_execution_path(slug: current_organization.slug, year: @year, anchor: 'total_budget_execution')%>">
  </div>

  <% if current_organization.city_council? %>
    <div class="metric"
      data-widget-template="#widget-template"
      data-widget-type="population"
      data-widget-data-url="<%= gobierto_budgets_api_data_population_path(ine_code: current_organization.ine_code, year: @year, format: :json) %>">
    </div>

    <div class="metric"
      data-widget-template="#widget-template"
      data-widget-type="debt"
      data-widget-data-url="<%= gobierto_budgets_api_data_debt_path(organization_slug: current_organization.slug, year: @year, format: :json) %>">
    </div>
  <% end %>
</div>


<%= render partial: 'shared/widget_template' %>

<%= render partial: 'shared/widget_template_execution' %>

<%= render partial: 'shared/widget_template_debt' %><commit_msg>Show population widget for associated entity page<commit_after><div class="main_metrics clearfix">

  <div class="metric"
    data-widget-template="#widget-template"
    data-widget-type="per_person"
    data-line-widget-series="means"
    data-line-widget-url="<%= gobierto_budgets_api_data_lines_path(organization_slug: current_organization.slug, year: @year, what: 'per_person', format: :json) %>"
    data-line-widget-type="per_person"
    data-widget-data-url="<%= gobierto_budgets_api_data_total_budget_per_inhabitant_path(organization_slug: current_organization.slug, year: @year, format: :json) %>"
    data-page-href="<%= gobierto_budgets_place_path(slug: current_organization.slug, year: @year, anchor: 'per_person')%>">
  </div>

  <div class="metric"
    data-widget-template="#widget-template"
    data-widget-type="total_budget"
    data-line-widget-series="means"
    data-line-widget-url="<%= gobierto_budgets_api_data_lines_path(organization_slug: current_organization.slug, year: @year, what: 'total_budget', format: :json) %>"
    data-line-widget-type="total_budget"
    data-widget-data-url="<%= gobierto_budgets_api_data_total_budget_path(organization_slug: current_organization.slug, year: @year, format: :json) %>"
    data-page-href="<%= gobierto_budgets_place_path(slug: current_organization.slug, year: @year, anchor: 'total_budget')%>">
  </div>

  <div class="metric tipsit" title="<%= t('gobierto_budgets.pages.map_metrics.tipsit_planned_vs_executed') %>"
    data-widget-template="#widget-template-execution"
    data-widget-type="total_budget_execution"
    data-widget-data-url="<%= gobierto_budgets_api_data_total_budget_execution_path(organization_slug: current_organization.slug, year: @year, format: :json) %>"
    data-page-href="<%= gobierto_budgets_place_execution_path(slug: current_organization.slug, year: @year, anchor: 'total_budget_execution')%>">
  </div>

  <div class="metric"
    data-widget-template="#widget-template"
    data-widget-type="population"
    data-widget-data-url="<%= gobierto_budgets_api_data_population_path(ine_code: current_organization.place_id, year: @year, format: :json) %>">
  </div>

  <% if current_organization.city_council? %>
    <div class="metric"
      data-widget-template="#widget-template"
      data-widget-type="debt"
      data-widget-data-url="<%= gobierto_budgets_api_data_debt_path(organization_slug: current_organization.slug, year: @year, format: :json) %>">
    </div>
  <% end %>
</div>


<%= render partial: 'shared/widget_template' %>

<%= render partial: 'shared/widget_template_execution' %>

<%= render partial: 'shared/widget_template_debt' %>
{'fraction_non_alphanumeric': 0.15425531914893617, 'fraction_numerical': 0.0, 'mean_word_length': 6.029372496662217, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '7657068', 'n_tokens_mistral': 1866, 'n_tokens_neox': 1800, 'n_words': 250}