<commit_before><% content_for :head do -%>
<% if @test.state != "ready" %> 
  <meta http-equiv="refresh" content="10">
<%end %> 
  <script>
	$(document).ready(function() {
	      $('#upload_results').dialog({
	        title: 'Upload Results',
	        autoOpen: false,
	        closeOnEscape: true,
	        draggable: true,
	        position: 'center',
	        width: 'auto',
	        height: 'auto',
	        modal: true,<commit_msg>adding refresh tag to product_test page so it will refresh until the test is ready<commit_after><% content_for :head do -%>
<% if @test.state != "ready" &&  @test.state != "errored" %> 
  <meta http-equiv="refresh" content="10">
<%end %> 
  <script>
	$(document).ready(function() {
	      $('#upload_results').dialog({
	        title: 'Upload Results',
	        autoOpen: false,
	        closeOnEscape: true,
	        draggable: true,
	        position: 'center',
	        width: 'auto',
	        height: 'auto',
	        modal: true,
{'fraction_non_alphanumeric': 0.16288659793814433, 'fraction_numerical': 0.004123711340206186, 'mean_word_length': 2.5309090909090908, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1770460', 'n_tokens_mistral': 323, 'n_tokens_neox': 291, 'n_words': 77}