<commit_before><% content_for :heading do -%><%= t('myplaceonline.restaurants.random') %><% end -%>
<h1><%= t('myplaceonline.restaurants.random') %></h1>
<%= flashes! %>
<%= form_tag restaurants_random_path do |f| %>

  <%= label_tag 'location', t("myplaceonline.restaurants.location") %>
  <%= text_field_tag 'location', @location %>

  <%= label_tag 'search', t("myplaceonline.restaurants.search") %>
  <%= text_field_tag 'search', @search %>

  <%= submit_tag t("myplaceonline.restaurants.submit") %>
<% end %>
<% if !@result.nil? %>
  <iframe style="width: 100%; height: 500px;" src="<%= @business.url %>"></iframe>
<% end %>
<% if false %>
<% if !@result.nil? %>
  <% @result.businesses.each do |x| %><commit_msg>Default to https for yelp iframe pages<commit_after><% content_for :heading do -%><%= t('myplaceonline.restaurants.random') %><% end -%>
<h1><%= t('myplaceonline.restaurants.random') %></h1>
<%= flashes! %>
<%= form_tag restaurants_random_path do |f| %>

  <%= label_tag 'location', t("myplaceonline.restaurants.location") %>
  <%= text_field_tag 'location', @location %>

  <%= label_tag 'search', t("myplaceonline.restaurants.search") %>
  <%= text_field_tag 'search', @search %>

  <%= submit_tag t("myplaceonline.restaurants.submit") %>
<% end %>
<% if !@result.nil? %>
  <iframe style="width: 100%; height: 500px;" src="<%= @business.url.gsub(/^http:/, "https:") %>"></iframe>
<% end %>
<% if false %>
<% if !@result.nil? %>
  <% @result.businesses.each do |x| %>
{'fraction_non_alphanumeric': 0.23755047106325708, 'fraction_numerical': 0.010767160161507403, 'mean_word_length': 5.381974248927039, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '5308640', 'n_tokens_mistral': 614, 'n_tokens_neox': 527, 'n_words': 101}