<commit_before># encoding: utf-8

require 'rakuten_web_service'

developer_id = ARGV.shift
keyword = ARGV[0..-1].join(' ')

puts items = RakutenWebService::Ichiba::Item.search(:applicationId => developer_id, :keyword => keyword)

items.each do |item|
  puts "#{item['itemName']}, #{item['itemPrice']} yen"
end<commit_msg>Modify sample code for RWS::Ichiba::Item: Shows first 10 items<commit_after># encoding: utf-8

require 'rakuten_web_service'

application_id = ARGV.shift
keyword = ARGV[0..-1].join(' ')

RakutenWebService.configuration do |c|
  c.application_id = application_id
end

items = RakutenWebService::Ichiba::Item.search(:keyword => keyword)

items.first(10).each do |item|
  puts "#{item['itemName']}, #{item['itemPrice']} yen"
end
{'fraction_non_alphanumeric': 0.16219839142091153, 'fraction_numerical': 0.013404825737265416, 'mean_word_length': 6.323529411764706, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5692610', 'n_tokens_mistral': 275, 'n_tokens_neox': 263, 'n_words': 56}