<commit_before>module Itemable
  extend ActiveSupport::Concern

  private

  def search_params(params)
    filters = params.except(:search)
    filters['channel_type'] ||= %w(twitter instagram rss event_rss facebook_page youtube_platlist icalendar)
    [params[:search], filters]
  end

end
<commit_msg>Filtering out the two-worded channel types as they are spaces instead of underscores<commit_after>module Itemable
  extend ActiveSupport::Concern

  private

  def search_params(params)
    filters = params.except(:search)
    filters['channel_type'] ||= ['twitter', 'instagram', 'rss', 'event rss', 'facebook page', 'youtube playlist', 'icalendar']
    [params[:search], filters]
  end

end

{'fraction_non_alphanumeric': 0.1093525179856115, 'fraction_numerical': 0.0, 'mean_word_length': 5.27027027027027, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5090992', 'n_tokens_mistral': 213, 'n_tokens_neox': 202, 'n_words': 57}