<commit_before><p id="notice"><%= notice %></p>
<%=

if @entity.is_a?(Array) and @entity.any?
	@entity.each do |item|
		display_hash(item).html_safe
	end
else
	if @entity.any?
		display_hash(@entity).html_safe
	else
		"Entity is empty"
	end
end

%><commit_msg>refactored entity view<commit_after><p id="notice"><%= notice %></p>

<%=
html = ""
if @entity.empty?
	html << "Entity is empty"
elsif @entity.is_a?(Array) 
	@entity.each do |item|
		html << display_hash(item)
	end
else
	html << display_hash(@entity)
end
html.html_safe
%>
{'fraction_non_alphanumeric': 0.17857142857142858, 'fraction_numerical': 0.0, 'mean_word_length': 4.9222222222222225, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 11, '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': '968306', 'n_tokens_mistral': 218, 'n_tokens_neox': 210, 'n_words': 49}