<commit_before><template>
  <div>
    <TableHeader />
    <table class="gobierto-dashboards-table gobierto-dashboards-table-first-level">
      <tbody>
        <tr
          v-for="{ agrupacio, cost_directe, cost_indirecte, cost_total, cost_per_habitant, ingressos, coverage, ordre_agrupacio, totalPerHabitant, any } in itemsFilter"
          :key="agrupacio"
          class="gobierto-dashboards-tablerow--header"
        >
          <td class="gobierto-dashboards-table-header--nav">
            <router-link
              :to="{ name: 'TableSecondLevel', params: { id: ordre_agrupacio, year: any, description: agrupacio } }"
              class="gobierto-dashboards-table-header--link"
              @click.native="loadTable"
            >
              {{ agrupacio }}
            </router-link>
          </td>
          <td
            :data-th="labelCostDirect"
            class="gobierto-dashboards-table-header--elements gobierto-dashboards-table-color-direct"
          >
            <span>{{ cost_directe | money }}</span>
          </td>
          <td
            :data-th="labelCostIndirect"
            class="gobierto-dashboards-table-header--elements gobierto-dashboards-table-color-indirect"
          >
            <span>{{ cost_indirecte | money }}</span>
          </td>
          <td
            :data-th="labelCostTotal"
            class="gobierto-dashboards-table-header--elements gobierto-dashboards-table-color-total"
          >
            <span>{{ cost_total | money }}</span>
          </td>
          <td
            :data-th="labelCostInhabitant"
            class="gobierto-dashboards-table-header--elements gobierto-dashboards-table-color-inhabitant"
          >
            <span>{{ totalPerHabitant | money }}</span>
          </td>
          <td
            :data-th="labelCostIncome"
            class="gobierto-dashboards-table-header--elements gobierto-dashboards-table-color-income"
          >
            <span>{{ ingressos | money }}</span>
          </td>
          <td
            :data-th="labelCostCoverage"
            class="gobierto-dashboards-table-header--elements gobierto-dashboards-table-color-coverage"
          >
            <span>{{ (coverage).toFixed(0) }} %</span>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</template>
<script>
import TableHeader from './TableHeader.vue'
import { VueFiltersMixin } from "lib/shared"
export default {
  name: "TableFirstLevel",
  components: {
    TableHeader
  },
  mixins: [VueFiltersMixin],
  props: {
    itemsFilter: {
      type: Array,
      default: () => []
    },
    year: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      labelCostDirect: I18n.t("gobierto_dashboards.dashboards.costs.cost_direct") || "",
      labelCostIndirect: I18n.t("gobierto_dashboards.dashboards.costs.cost_indirect") || "",
      labelCostTotal: I18n.t("gobierto_dashboards.dashboards.costs.total") || "",
      labelCostInhabitant: I18n.t("gobierto_dashboards.dashboards.costs.cost_inhabitant") || "",
      labelCostIncome: I18n.t("gobierto_dashboards.dashboards.costs.income") || "",
      labelCostCoverage: I18n.t("gobierto_dashboards.dashboards.costs.coverage") || "",
    }
  },
  methods: {
    loadTable() {
      this.$emit('changeTableHandler', 1)
    }
  }
}
</script>
<commit_msg>show coverage decimals<commit_after><template>
  <div>
    <TableHeader />
    <table class="gobierto-dashboards-table gobierto-dashboards-table-first-level">
      <tbody>
        <tr
          v-for="{ agrupacio, cost_directe, cost_indirecte, cost_total, cost_per_habitant, ingressos, coverage, ordre_agrupacio, totalPerHabitant, any } in itemsFilter"
          :key="agrupacio"
          class="gobierto-dashboards-tablerow--header"
        >
          <td class="gobierto-dashboards-table-header--nav">
            <router-link
              :to="{ name: 'TableSecondLevel', params: { id: ordre_agrupacio, year: any, description: agrupacio } }"
              class="gobierto-dashboards-table-header--link"
              @click.native="loadTable"
            >
              {{ agrupacio }}
            </router-link>
          </td>
          <td
            :data-th="labelCostDirect"
            class="gobierto-dashboards-table-header--elements gobierto-dashboards-table-color-direct"
          >
            <span>{{ cost_directe | money }}</span>
          </td>
          <td
            :data-th="labelCostIndirect"
            class="gobierto-dashboards-table-header--elements gobierto-dashboards-table-color-indirect"
          >
            <span>{{ cost_indirecte | money }}</span>
          </td>
          <td
            :data-th="labelCostTotal"
            class="gobierto-dashboards-table-header--elements gobierto-dashboards-table-color-total"
          >
            <span>{{ cost_total | money }}</span>
          </td>
          <td
            :data-th="labelCostInhabitant"
            class="gobierto-dashboards-table-header--elements gobierto-dashboards-table-color-inhabitant"
          >
            <span>{{ totalPerHabitant | money }}</span>
          </td>
          <td
            :data-th="labelCostIncome"
            class="gobierto-dashboards-table-header--elements gobierto-dashboards-table-color-income"
          >
            <span>{{ ingressos | money }}</span>
          </td>
          <td
            :data-th="labelCostCoverage"
            class="gobierto-dashboards-table-header--elements gobierto-dashboards-table-color-coverage"
          >
            <span>{{ (coverage).toFixed(2) }} %</span>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</template>
<script>
import TableHeader from './TableHeader.vue'
import { VueFiltersMixin } from "lib/shared"
export default {
  name: "TableFirstLevel",
  components: {
    TableHeader
  },
  mixins: [VueFiltersMixin],
  props: {
    itemsFilter: {
      type: Array,
      default: () => []
    },
    year: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      labelCostDirect: I18n.t("gobierto_dashboards.dashboards.costs.cost_direct") || "",
      labelCostIndirect: I18n.t("gobierto_dashboards.dashboards.costs.cost_indirect") || "",
      labelCostTotal: I18n.t("gobierto_dashboards.dashboards.costs.total") || "",
      labelCostInhabitant: I18n.t("gobierto_dashboards.dashboards.costs.cost_inhabitant") || "",
      labelCostIncome: I18n.t("gobierto_dashboards.dashboards.costs.income") || "",
      labelCostCoverage: I18n.t("gobierto_dashboards.dashboards.costs.coverage") || "",
    }
  },
  methods: {
    loadTable() {
      this.$emit('changeTableHandler', 1)
    }
  }
}
</script>

{'fraction_non_alphanumeric': 0.14300704542047668, 'fraction_numerical': 0.004197271773347324, 'mean_word_length': 2.178656503096713, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 87, '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': '3960503', 'n_tokens_mistral': 2139, 'n_tokens_neox': 2115, 'n_words': 290}