<commit_before>module AdminHelper
	def checked boolean
		result = "<input type='checkbox'>"
		result = "<input type='checkbox' checked>" if boolean
		result.html_safe
	end
end
<commit_msg>Added method youtube_iframe for remove logic from view<commit_after>module AdminHelper
	def checked boolean
		result = "<input type='checkbox'>"
		result = "<input type='checkbox' checked>" if boolean
		result.html_safe
	end

	def youtube_iframe video_id
		"<iframe id='ytplayer' type='text/html' width='640' height='390'
		  src='https://www.youtube.com/embed/#{video_id}?autoplay'=1='0'/></iframe>".html_safe
	end
end

{'fraction_non_alphanumeric': 0.13157894736842105, 'fraction_numerical': 0.013157894736842105, 'mean_word_length': 5.548387096774194, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '5419602', 'n_tokens_mistral': 212, 'n_tokens_neox': 187, 'n_words': 51}