<commit_before>class BBproductsController < ApplicationController  
  def index
    @product_skus = BestBuyApi.category_ids(Session.product_type)
  end

  def show
    @id = params[:id]
    @raw_info = ScrapingRule.scrape(BBproduct.new(:id => @id, :category => nil),true)[:raw]
    render :layout => false
  end
end<commit_msg>Added retry to datafeed view.<commit_after>require 'remote_util'
class BBproductsController < ApplicationController  
  def index
    RemoteUtil.do_with_retry({max_tries: 15, interval: 3, exceptions: [BestBuyApi::RequestError]}){|is_retry| @product_skus = BestBuyApi.category_ids(Session.product_type)}
  end

  def show
    @id = params[:id]
    @raw_info = ScrapingRule.scrape(BBproduct.new(:id => @id, :category => nil),true)[:raw]
    render :layout => false
  end
end
{'fraction_non_alphanumeric': 0.1214017521902378, 'fraction_numerical': 0.0037546933667083854, 'mean_word_length': 5.015037593984962, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '7576729', 'n_tokens_mistral': 270, 'n_tokens_neox': 260, 'n_words': 55}