<commit_before>- c = @converter_future
%table.table.input_outputs
  %tbody
    %tr
      %td
        %table.table.table-condensed.table-bordered
          %thead
            %tr
              %th.centered Links
              %th.centered{:colspan => 2}Outputs
            %tr
              %th
              %th Energy carrier
              %th Conversion efficiency
          %tbody
            - c.outputs.each do |output_slot|
              %tr
                %td
                  - if output_slot.links.any?
                    %table.table.table-condensed.table-bordered
                      %thead
                        %tr
                          %th Converter
                          %th Energy flow (MJ)
                          %th Carrier share
                          %th Type
                      %tbody
                        - output_slot.links.each_with_index do |output_link, i|
                          %tr
                            %td= link_to output_link.lft_converter.key, data_converter_path(:id => output_link.lft_converter)
                            %td{:title => output_link.value}= auto_number output_link.value
                            %td{:class => output_link.kind,
                                :title => output_link.share}= "#{(100.0 * (output_link.value / output_slot.external_value)).round(2)} %" unless output_slot.external_value == 0
                            %td= output_link.link_type
                  %td.centered{:title => output_slot.class.name}= output_slot.carrier.key
                  %td.centered{:class => output_slot.kind,
                               :title => output_slot.conversion}= "#{(100.0 * output_slot.conversion).round(2)} %" unless output_slot.conversion.nil?
      %td
      %td
        %table.table.table-condensed.table-bordered
          %thead
            %tr
              %th.centered{:colspan => 2} Inputs
              %th.centered Links
            %tr
              %th Input share
              %th Energy carrier
              %th
          %tbody
            - c.inputs.each do |input_slot|<commit_msg>Admin UI shows if a link is reversed<commit_after>- c = @converter_future
%table.table.input_outputs
  %tbody
    %tr
      %td
        %table.table.table-condensed.table-bordered
          %thead
            %tr
              %th.centered Links
              %th.centered{:colspan => 2}Outputs
            %tr
              %th
              %th Energy carrier
              %th Conversion efficiency
          %tbody
            - c.outputs.each do |output_slot|
              %tr
                %td
                  - if output_slot.links.any?
                    %table.table.table-condensed.table-bordered
                      %thead
                        %tr
                          %th Converter
                          %th Energy flow (MJ)
                          %th Carrier share
                          %th Type
                      %tbody
                        - output_slot.links.each_with_index do |output_link, i|
                          %tr
                            %td= link_to output_link.lft_converter.key, data_converter_path(:id => output_link.lft_converter)
                            %td{:title => output_link.value}= auto_number output_link.value
                            %td{:class => output_link.kind,
                                :title => output_link.share}= "#{(100.0 * (output_link.value / output_slot.external_value)).round(2)} %" unless output_slot.external_value == 0
                            %td
                              = output_link.link_type
                              - if output_link.reversed?
                                %span(style="color: #999") (rev.)
                  %td.centered{:title => output_slot.class.name}= output_slot.carrier.key
                  %td.centered{:class => output_slot.kind,
                               :title => output_slot.conversion}= "#{(100.0 * output_slot.conversion).round(2)} %" unless output_slot.conversion.nil?
      %td
      %td
        %table.table.table-condensed.table-bordered
          %thead
            %tr
              %th.centered{:colspan => 2} Inputs
              %th.centered Links
            %tr
              %th Input share
              %th Energy carrier
              %th
          %tbody
            - c.inputs.each do |input_slot|
{'fraction_non_alphanumeric': 0.09258836944127707, 'fraction_numerical': 0.0066134549600912204, 'mean_word_length': 1.125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '671440', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1117, 'n_words': 219}