<commit_before>#container.embed
  #content
    %h2 #{@item.name}
    %small#display_type
      Displaying:
      %strong
        #{@item.display_frequency.capitalize} #{@item.display_type.capitalize}

    #graph.lines
      %svg{ :style => 'height: 60%' }

    %script{ :type => 'text/javascript' }
      var graph_data = { values: #{@records.to_a} };
      var item_id = '#{@item.id.to_s}';<commit_msg>remove @s from embed template so we can pass vars as locals<commit_after>#container.embed
  #content
    %h2 #{item.name}
    %small#display_type
      Displaying:
      %strong
        #{item.display_frequency.capitalize} #{item.display_type.capitalize}

    #graph.lines
      %svg{ :style => 'height: 60%' }

    %script{ :type => 'text/javascript' }
      var graph_data = { values: #{records.to_a} };
      var item_id = '#{item.id.to_s}';
{'fraction_non_alphanumeric': 0.15820543093270367, 'fraction_numerical': 0.0070838252656434475, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1511785', 'n_tokens_mistral': 302, 'n_tokens_neox': 291, 'n_words': 58}