<commit_before>= render "list"

#content
  .header
    Converters for:
    = params[:blueprint_id]
    = params[:region_code]
    
  - fields = (params[:fields] ||= 'demand').split(',').map(&:strip)
  %table
    %thead
      %tr
        %th{:colspan => 2}
          = form_tag( {}, {:method => 'get'}) do 
            Attributes:
            = text_field_tag :fields, (params[:fields])
            = submit_tag 'show'
        - fields.each do |field|
          %th{:colspan => 2}= field
      %tr
        %th id
        %th Key
        - fields.each do |field|
          %th Present
          %th Future
    - @blueprint.converter_records.each do |converter|
      %tr
        %td== ##{converter.id}
        %td= link_to converter.full_key, data_converter_path(:id => converter)
        - fields.each do |field|
          - v = @present_graph.converter(converter.id).send(field)
          %td.tar{:title => title_tag_number(v)}
            = link_to auto_number(v), data_converter_path(:id => converter, :format => 'svg'), :target => :blank
          - v = @future_graph.converter(converter.id).send(field)
          %td.tar{:title => title_tag_number(v)}
            = link_to auto_number(v), data_converter_path(:id => converter, :format => 'svg', :graph => 'future'), :target => :blank<commit_msg>graphviz links on list page<commit_after>= render "list"

#content
  .header
    Converters for:
    = params[:blueprint_id]
    = params[:region_code]
    
  - fields = (params[:fields] ||= 'demand').split(',').map(&:strip)
  %table
    %thead
      %tr
        %th{:colspan => 3}
          = form_tag( {}, {:method => 'get'}) do 
            Attributes:
            = text_field_tag :fields, (params[:fields])
            = submit_tag 'show'
        - fields.each do |field|
          %th{:colspan => 2}= field
      %tr
        %th id
        %th Key
        %th Graph
        - fields.each do |field|
          %th Present
          %th Future
    - @blueprint.converter_records.each do |converter|
      %tr
        %td== ##{converter.id}
        %td
          = link_to converter.full_key, data_converter_path(:id => converter)
        %td
          %small
            = link_to 'pres', data_converter_path(:id => converter, :format => 'svg'), :target => :blank
            |
            = link_to 'fut', data_converter_path(:id => converter, :format => 'svg', :graph => 'future'), :target => :blank            

        - fields.each do |field|
          - v = @present_graph.converter(converter.id).send(field)
          %td.tar{:title => title_tag_number(v)}=auto_number(v)
          - v = @future_graph.converter(converter.id).send(field)
          %td.tar{:title => title_tag_number(v)}= auto_number(v)
{'fraction_non_alphanumeric': 0.1555473645410984, 'fraction_numerical': 0.001474382602285293, 'mean_word_length': 2.13757225433526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '3941348', 'n_tokens_mistral': 896, 'n_tokens_neox': 870, 'n_words': 178}