<commit_before>require 'test_helper'

class SearchControllerTest < ActionController::TestCase
  test "should get index" do
    get :index
    assert_response :success
  end

  test "should export csv" do
    get :index, :format => :csv
    assert_response :success
  end

end<commit_msg>adding a test for search<commit_after>require 'test_helper'

class SearchControllerTest < ActionController::TestCase
  test "should get index" do
    get :index
    assert_response :success
  end

  test "should export csv" do
    get :index, :format => :csv
    assert_response :success
  end

  test "should search" do
    get :index, :q => "joe"
    assert_response :success
    assert_equal 1, assigns(:results).size
  end

end
{'fraction_non_alphanumeric': 0.07938718662952646, 'fraction_numerical': 0.001392757660167131, 'mean_word_length': 3.7933333333333334, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '5990056', 'n_tokens_mistral': 219, 'n_tokens_neox': 211, 'n_words': 73}