<commit_before>- if @intervention
  - if @container.is_a?(CultivableZone)
    = map(@container)
  .info
    %span.title= Intervention.human_attribute_name(:name)
    %span.value= link_to(@intervention.name, controller: "/backend/interventions", action: :show, id: @intervention.to_param)
  .info
    %span.title= Intervention.human_attribute_name(:casting)
    %span.value= @intervention.casting
  - if @intervention.started_at?
    .info
      %span.title= Intervention.human_attribute_name(:started_at)
      %span.value= @intervention.started_at.l
    .info
      %span.title= Intervention.human_attribute_name(:duration)
      %span.value= @intervention.duration.in_second.convert(:hour).round(2).l
    .info
      %span.title= Intervention.human_attribute_name(:state)
      %span.value= @intervention.state.text
    - total = 0
    - for type in [:input, :tool, :doer]
      - cost = (@intervention.cost(type) || 0.0).round
      - total += cost
      .info
        %span.title= "evaluated_#{type}_cost".tl
        %span.value= cost.l(currency: Preference[:currency])
    .big-info.important
      %span.title= :total_cost.tl
      %span.value= cost.l(currency: Preference[:currency])

- else
  = no_data
<commit_msg>Fixes total display in last_intervention cell<commit_after>- if @intervention
  - if @container.is_a?(CultivableZone)
    = map(@container)
  .info
    %span.title= Intervention.human_attribute_name(:name)
    %span.value= link_to(@intervention.name, controller: "/backend/interventions", action: :show, id: @intervention.to_param)
  .info
    %span.title= Intervention.human_attribute_name(:casting)
    %span.value= @intervention.casting
  - if @intervention.started_at?
    .info
      %span.title= Intervention.human_attribute_name(:started_at)
      %span.value= @intervention.started_at.l
    .info
      %span.title= Intervention.human_attribute_name(:duration)
      %span.value= @intervention.duration.in_second.convert(:hour).round(2).l
    .info
      %span.title= Intervention.human_attribute_name(:state)
      %span.value= @intervention.state.text
    - total = 0
    - for type in [:input, :tool, :doer]
      - cost = (@intervention.cost(type) || 0.0).round
      - total += cost
      .info
        %span.title= "evaluated_#{type}_cost".tl
        %span.value= cost.l(currency: Preference[:currency])
    .big-info.important
      %span.title= :total_cost.tl
      %span.value= total.l(currency: Preference[:currency])

- else
  = no_data

{'fraction_non_alphanumeric': 0.14118596208148446, 'fraction_numerical': 0.003227107704719645, 'mean_word_length': 3.460431654676259, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3632312', 'n_tokens_mistral': 834, 'n_tokens_neox': 800, 'n_words': 137}