<commit_before>class ItemsController < ApplicationController
  def index
    @items = RWS::Ichiba::Item.
      search(keyword: params[:keyword], imageFlag: 1).first(10)
  end
end<commit_msg>Show only the header of table when giving empty string as keyword<commit_after>class ItemsController < ApplicationController
  def index
    @items = if params[:keyword].present?
       RWS::Ichiba::Item.
        search(keyword: params[:keyword], imageFlag: 1).first(10)
    else
      []
    end
  end
end
{'fraction_non_alphanumeric': 0.1028225806451613, 'fraction_numerical': 0.012096774193548387, 'mean_word_length': 3.9207920792079207, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4104908', 'n_tokens_mistral': 148, 'n_tokens_neox': 139, 'n_words': 40}