<commit_before><%= will_filter_tag(@orders) %>
<%= will_filter_table_tag(@orders, :columns => [
	:id, :user_id, [:amount, :filterable => true], :created_at
	],
	:header => {
		:label => "Total Amount",	
		:value => lambda{ |key|
			if (key == :amount) 
				total = @orders.wf_filter.sum(key)
				if total < 1000
					raw("<span style='color:red'>#{number_to_currency(total)}</span>")
				else	
					raw("<span style='color:green'>#{number_to_currency(total)}</span>")	
				end
			end	
		},
		:value1 => {
			:id => "<strong>Totals:</strong>".html_safe,
			:amount => :total
		}
	},
	:footer => {
		:value => {
			:id => "<strong>Range:</strong>".html_safe,
			:amount => [:range, {:style=>"color:blue; font-weight:bold;"}]
		}
	}	
) %><commit_msg>removed unused code<commit_after><%= will_filter_tag(@orders) %>
<%= will_filter_table_tag(@orders, :columns => [
	:id, :user_id, [:amount, :filterable => true], :created_at
	],
	:header => {
		:label => "Total Amount",	
		:value => lambda{ |key|
			if (key == :amount) 
				total = @orders.wf_filter.sum(key)
				if total < 1000
					raw("<span style='color:red'>#{number_to_currency(total)}</span>")
				else	
					raw("<span style='color:green'>#{number_to_currency(total)}</span>")	
				end
			end	
		}
	},
	:footer => {
		:value => {
			:id => "<strong>Range:</strong>".html_safe,
			:amount => [:range, {:style=>"color:blue; font-weight:bold;"}]
		}
	}	
) %>
{'fraction_non_alphanumeric': 0.22608079376328843, 'fraction_numerical': 0.0063784549964564135, 'mean_word_length': 3.9198606271777003, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 44, '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': '6635576', 'n_tokens_mistral': 621, 'n_tokens_neox': 542, 'n_words': 87}