<commit_before><%
  set_meta_tags title: t('.title', place: @place.name, year: @year)
  set_meta_tags description: t('.description', place: @place.name, year: @year)
%>

<% content_for :breadcrumb_current_item do %>
  <h1>
    <%= link_to t('gobierto_budgets.layouts.menu_subsections.execution'), gobierto_budgets_budgets_execution_path(year: GobiertoBudgets::SearchEngineConfiguration::Year.last) %>
  </h1>
<% end %>

<div class="column">

	<%= render partial: 'gobierto_budgets/budgets/year_breadcrumb', locals: {path_calculation_method: :gobierto_budgets_budgets_execution_path} %>

  <% if flash[:alert] %>
    <p><em><%= flash[:alert] %></em></p>
  <% end %>

	<div class="execution">

		<div class="pure-g">
			<div class="pure-u-1 pure-u-md-11-24">
				<div class="deviation_widget"
					data-widget-template="#widget-template-deviation"
	    		data-widget-type="budget_execution_deviation"
	    		data-widget-data-url="<%= gobierto_budgets_api_data_budget_execution_deviation_path(ine_code: @place.id, year: @year, kind: GobiertoBudgets::BudgetLine::INCOME, format: :json) %>"
	    		data-callback="render_evo_line">
				</div>
			</div>
			<div class="pure-u-1 pure-u-md-2-24"></div>
			<div class="pure-u-1 pure-u-md-11-24">
				<div class="deviation_widget"
					data-widget-template="#widget-template-deviation"
	    		data-widget-type="budget_execution_deviation"
	    		data-widget-data-url="<%= gobierto_budgets_api_data_budget_execution_deviation_path(ine_code: @place.id, year: @year, kind: GobiertoBudgets::BudgetLine::EXPENSE, format: :json) %>"
	    		data-callback="render_evo_line">
				</div>
			</div>
		</div>

		<div class="m_v_4">
			<div class="section_separator" name="separator">
			  <div class="sep"></div>
        <p><strong><%= t('.execution_help') %></strong></p>
        <p><%= t('.execution_disclaimer') %></p>
			  <div class="sep"></div>
			</div>
		</div>

		<div class="pure-g">
			<div class="pure-u-1 pure-u-lg-11-24 deviation_table_container">

        <h2 class="lite"><%= t('.budget_lines_income_higher') %></h2>

				<%= render partial: 'execution_table', locals: {data: @top_possitive_difference_income, kind: GobiertoBudgets::BudgetLine::INCOME, area: 'economic'} %>

				<div class="separator"></div>

        <h2 class="lite"><%= t('.budget_lines_income_lower') %></h2>

				<%= render partial: 'execution_table', locals: {data: @top_negative_difference_income, kind: GobiertoBudgets::BudgetLine::INCOME, area: 'economic'} %>

			</div>
			<div class="pure-u-1 pure-u-lg-2-24"></div>
			<div class="pure-u-1 pure-u-lg-11-24 deviation_table_container">

        <h2 class="lite"><%= t('.budget_lines_expense_higher') %></h2>

				<div class="form_filters">
	        <ul>
	          <li><%= link_to t('.economic'), '', class: 'toggle', "data-tab-target": 'economic' %></li>
	          <li class="active"><%= link_to t('.functional'), '', class: 'toggle', "data-tab-target": 'functional' %></li>
	        </ul>
	      </div>

				<div class="tab_content" data-tab="economic" style="display: none">

					<%= render partial: 'execution_table', locals: {data: @top_possitive_difference_expending_economic, kind: GobiertoBudgets::BudgetLine::EXPENSE, area: 'economic'} %>

					<div class="separator"></div>

          <h2 class="lite"><%= t('.budget_lines_expense_lower') %></h2>

					<%= render partial: 'execution_table', locals: {data: @top_negative_difference_expending_economic, kind: GobiertoBudgets::BudgetLine::EXPENSE, area: 'economic'} %>

				</div>

				<div class="tab_content" data-tab="functional">

					<%= render partial: 'execution_table', locals: {data: @top_possitive_difference_expending_functional, kind: GobiertoBudgets::BudgetLine::EXPENSE, area: 'functional'} %>

					<div class="separator"></div>

          <h2 class="lite"><%= t('.budget_lines_expense_lower') %></h2>

					<%= render partial: 'execution_table', locals: {data: @top_negative_difference_expending_functional, kind: GobiertoBudgets::BudgetLine::EXPENSE, area: 'functional'} %>
				</div>
<commit_msg>fix tab switcher<commit_after><%
  set_meta_tags title: t('.title', place: @place.name, year: @year)
  set_meta_tags description: t('.description', place: @place.name, year: @year)
%>

<% content_for :breadcrumb_current_item do %>
  <h1>
    <%= link_to t('gobierto_budgets.layouts.menu_subsections.execution'), gobierto_budgets_budgets_execution_path(year: GobiertoBudgets::SearchEngineConfiguration::Year.last) %>
  </h1>
<% end %>

<div class="column">

	<%= render partial: 'gobierto_budgets/budgets/year_breadcrumb', locals: {path_calculation_method: :gobierto_budgets_budgets_execution_path} %>

  <% if flash[:alert] %>
    <p><em><%= flash[:alert] %></em></p>
  <% end %>

	<div class="execution">

		<div class="pure-g">
			<div class="pure-u-1 pure-u-md-11-24">
				<div class="deviation_widget"
					data-widget-template="#widget-template-deviation"
	    		data-widget-type="budget_execution_deviation"
	    		data-widget-data-url="<%= gobierto_budgets_api_data_budget_execution_deviation_path(ine_code: @place.id, year: @year, kind: GobiertoBudgets::BudgetLine::INCOME, format: :json) %>"
	    		data-callback="render_evo_line">
				</div>
			</div>
			<div class="pure-u-1 pure-u-md-2-24"></div>
			<div class="pure-u-1 pure-u-md-11-24">
				<div class="deviation_widget"
					data-widget-template="#widget-template-deviation"
	    		data-widget-type="budget_execution_deviation"
	    		data-widget-data-url="<%= gobierto_budgets_api_data_budget_execution_deviation_path(ine_code: @place.id, year: @year, kind: GobiertoBudgets::BudgetLine::EXPENSE, format: :json) %>"
	    		data-callback="render_evo_line">
				</div>
			</div>
		</div>

		<div class="m_v_4">
			<div class="section_separator" name="separator">
			  <div class="sep"></div>
        <p><strong><%= t('.execution_help') %></strong></p>
        <p><%= t('.execution_disclaimer') %></p>
			  <div class="sep"></div>
			</div>
		</div>

		<div class="pure-g">
			<div class="pure-u-1 pure-u-lg-11-24 deviation_table_container">

        <h2 class="lite"><%= t('.budget_lines_income_higher') %></h2>

				<%= render partial: 'execution_table', locals: {data: @top_possitive_difference_income, kind: GobiertoBudgets::BudgetLine::INCOME, area: 'economic'} %>

				<div class="separator"></div>

        <h2 class="lite"><%= t('.budget_lines_income_lower') %></h2>

				<%= render partial: 'execution_table', locals: {data: @top_negative_difference_income, kind: GobiertoBudgets::BudgetLine::INCOME, area: 'economic'} %>

			</div>
			<div class="pure-u-1 pure-u-lg-2-24"></div>
			<div class="pure-u-1 pure-u-lg-11-24 deviation_table_container">

        <h2 class="lite"><%= t('.budget_lines_expense_higher') %></h2>

				<div class="form_filters">
	        <ul>
	          <li><%= link_to t('.economic'), '', class: 'toggle', "data-tab-target": 'economic' %></li>
	          <li class="active"><%= link_to t('.functional'), '', class: 'toggle', "data-tab-target": 'functional' %></li>
	        </ul>
	      </div>

				<div class="tab_content tab active" data-tab="economic">

					<%= render partial: 'execution_table', locals: {data: @top_possitive_difference_expending_economic, kind: GobiertoBudgets::BudgetLine::EXPENSE, area: 'economic'} %>

					<div class="separator"></div>

          <h2 class="lite"><%= t('.budget_lines_expense_lower') %></h2>

					<%= render partial: 'execution_table', locals: {data: @top_negative_difference_expending_economic, kind: GobiertoBudgets::BudgetLine::EXPENSE, area: 'economic'} %>

				</div>

				<div class="tab_content tab" data-tab="functional">

					<%= render partial: 'execution_table', locals: {data: @top_possitive_difference_expending_functional, kind: GobiertoBudgets::BudgetLine::EXPENSE, area: 'functional'} %>

					<div class="separator"></div>

          <h2 class="lite"><%= t('.budget_lines_expense_lower') %></h2>

					<%= render partial: 'execution_table', locals: {data: @top_negative_difference_expending_functional, kind: GobiertoBudgets::BudgetLine::EXPENSE, area: 'functional'} %>
				</div>

{'fraction_non_alphanumeric': 0.1868349418460777, 'fraction_numerical': 0.010146003464488988, 'mean_word_length': 4.605409153952843, 'pattern_counts': {'":': 4, '<': 189, '<?xml version=': 0, '>': 189, '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': '414864', 'n_tokens_mistral': 3325, 'n_tokens_neox': 2792, 'n_words': 471}