<commit_before>= render "layouts/nav"
	
.contentpage
	#videos
		%br
		- if user_signed_in?
			.indexactivities
				= link_to " + Add Video", new_video_path(current_user), class: "addpost"
		%br	
		- cache('video_cache', :expires_in => 12.hour) do 
			- @videos.each do |video|
				-if video.link.nil?
					this video link is no longer supported
				-else
					- @youtube = OEmbed::Providers::Youtube.get(video.link)
				.video
					.video_image
						-if @youtube.thumbnail_url.html_safe.nil?
							no image
						-else
							= link_to (image_tag @youtube.thumbnail_url.html_safe), video
					.video_content
						.title
							-if @youtube.title.html_safe.nil?
								no longer available
							-else
								%h2= link_to truncate(@youtube.title.html_safe, :length => 40), video

	-#ad
		-#%br
		-#%h2 Ad
		-#%hr
		-#%br
		-#= render "layouts/ad2"
	.pagination
		= will_paginate @videos <commit_msg>unless nil?<commit_after>= render "layouts/nav"
	
.contentpage
	#videos
		%br
		- if user_signed_in?
			.indexactivities
				= link_to " + Add Video", new_video_path(current_user), class: "addpost"
		%br	
		- cache('video_cache', :expires_in => 12.hour) do
			- @videos.each do |video|
				-unless video.nil?
					- @youtube = OEmbed::Providers::Youtube.get(video.link)
					.video
						.video_image
							= link_to (image_tag @youtube.thumbnail_url.html_safe), video
						.video_content
							.title
								%h2= link_to truncate(@youtube.title.html_safe, :length => 40), video

	-#ad
		-#%br
		-#%h2 Ad
		-#%hr
		-#%br
		-#= render "layouts/ad2"
	.pagination
		= will_paginate @videos 
{'fraction_non_alphanumeric': 0.13613550815558345, 'fraction_numerical': 0.00878293601003764, 'mean_word_length': 2.641552511415525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5427395', 'n_tokens_mistral': 778, 'n_tokens_neox': 601, 'n_words': 124}