<commit_before>
= render 'subnav'

.header Check if present demand matches demand_expected_value.

- @converters = @gql.present_graph.converters

%p
  %strong
    = @converters.select{ |c| c.query.demand_expected? == false }.length
    converters are unhappy. :-( 

%table
  %thead
    %tr
      %th Id
      %th Key

      %th Demand
      %th Expected
      %th
  %tbody
    - @converters.map(&:query).each do |converter|
      %tr
        %td
          %a{:id => converter.full_key}= converter.dataset_get(:excel_id)
        %td= converter.full_key
        %td.align-right= auto_number converter.demand
        %td.align-right= auto_number converter.demand_expected_value
        %td
          &nbsp;
          - if converter.demand_expected? == false
            \:-(
          &nbsp; <commit_msg>improve demand_expected checks. closes #267<commit_after>
= render 'subnav'

.header Check if present demand matches demand_expected_value.

- @converters = @gql.present_graph.converters.map(&:query).sort_by{|c| c.excel_id || 0}

%p
  %h2
    Demand not expected: 
    = @converters.select{ |c| c.demand_expected? == false }.length
    converters are unhappy. :-( 

%table
  %thead
    %tr
      %th Id
      %th Key
      %th Demand
      %th Expected
      %th
  %tbody
    - @converters.select{ |c| c.demand_expected? == false }.each do |converter|
      - full_key = converter.full_key
      %tr
        %td
          %a{:id => full_key}= converter.dataset_get(:excel_id)
        %td= link_to full_key, data_converter_path(:id => full_key)
        %td.align-right= auto_number converter.demand
        %td.align-right= auto_number converter.demand_expected_value
        %td
          &nbsp;
          - if converter.demand_expected? == false
            \:-(
          &nbsp; 

%h2 All converters
%table
  %thead
    %tr
      %th Id
      %th Key
      %th Demand
      %th Expected
      %th
  %tbody
    - @converters.each do |converter|
      - full_key = converter.full_key
      %tr
        %td
          %a{:id => full_key}= converter.dataset_get(:excel_id)
        %td= link_to full_key, data_converter_path(:id => full_key)
        %td.align-right= auto_number converter.demand
        %td.align-right= auto_number converter.demand_expected_value
        %td
          &nbsp;
          - if converter.demand_expected? == false
            \:-(
          &nbsp; 
{'fraction_non_alphanumeric': 0.11574074074074074, 'fraction_numerical': 0.0025252525252525255, 'mean_word_length': 2.1525198938992043, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '6194243', 'n_tokens_mistral': 833, 'n_tokens_neox': 791, 'n_words': 175}