<commit_before>- site = @site || CONFIG
- if logged_in?
  .bootstrap
    .container
      .row
        .col-xs-12
          .box.text-center.upstacked
            - if current_user.test_groups =~ /header-2018/
              - chosen_header_test = current_user.test_groups[/header-2018[^|]*/, 0]
              - opts = { "Try Version 1" => "header-2018", "Try Version 2" => "header-2018-2", "Try Version 3" => "header-2018-3", "Try Version 4" => "header-2018-4" }
              = form_tag join_test_user_path( current_user ), method: "put", class: "inlineblock" do
                %label Testing the new header
                = select_tag :test, options_for_select( opts, chosen_header_test ), data: { autosubmit: true }
                - %w(header-2018 header-2018-2 header-2018-3 header-2018-4).each do |test_group|
                  = hidden_field_tag "leave[]", test_group
                &nbsp;
                = link_to t(:what_do_you_think), "https://www.inaturalist.org/blog/15132-new-header"
              = form_tag leave_test_user_path( current_user ), method: "put", class: "inlineblock" do
                - %w(header-2018 header-2018-2 header-2018-3 header-2018-4).each do |test_group|
                  = hidden_field_tag "test[]", test_group
                &nbsp;<commit_msg>Bugfix<commit_after>- site = @site || CONFIG
- if logged_in?
  .bootstrap
    .container
      .row
        .col-xs-12
          .box.text-center.upstacked
            - opts = { "Try Version 1" => "header-2018", "Try Version 2" => "header-2018-2", "Try Version 3" => "header-2018-3", "Try Version 4" => "header-2018-4" }
            - if current_user.test_groups =~ /header-2018/
              - chosen_header_test = current_user.test_groups[/header-2018[^|]*/, 0]
              = form_tag join_test_user_path( current_user ), method: "put", class: "inlineblock" do
                %label Testing the new header
                = select_tag :test, options_for_select( opts, chosen_header_test ), data: { autosubmit: true }
                - %w(header-2018 header-2018-2 header-2018-3 header-2018-4).each do |test_group|
                  = hidden_field_tag "leave[]", test_group
                &nbsp;
                = link_to t(:what_do_you_think), "https://www.inaturalist.org/blog/15132-new-header"
              = form_tag leave_test_user_path( current_user ), method: "put", class: "inlineblock" do
                - %w(header-2018 header-2018-2 header-2018-3 header-2018-4).each do |test_group|
                  = hidden_field_tag "test[]", test_group
                &nbsp;
{'fraction_non_alphanumeric': 0.13436893203883496, 'fraction_numerical': 0.05980582524271845, 'mean_word_length': 2.1073582629674306, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3811106', 'n_tokens_mistral': 925, 'n_tokens_neox': 792, 'n_words': 171}