<commit_before>module Hatchy::LayoutHelper

	def flash_messages(opts={})
		@layout_flash = opts.fetch(:layout_flash){true}
		capture do 
			flash.each do |name, msg|
				concat (
					content_tag :div, id:"flash", data:{type:"#{name}", message:"#{msg}"}, class: 'hidden' do 
						content_tag :p, "loading flash"
					end
				)
			end
		end
	end

	def navbar_type
		@nav_type.nil? ? 'navbar-static-top' : @nav_type
	end

	def show_layout_flash?
		@layout_flash.nil? ? true : @layout_flash
	end

	def show_layout_footer?
		@layout_footer.nil? ? true : @layout_footer
	end

end<commit_msg>Added user profile method on layout helper<commit_after>module Hatchy::LayoutHelper

	def flash_messages(opts={})
		@layout_flash = opts.fetch(:layout_flash){true}
		capture do 
			flash.each do |name, msg|
				concat (
					content_tag :div, id:"flash", data:{type:"#{name}", message:"#{msg}"}, class: 'hidden' do 
						content_tag :p, "loading flash"
					end
				)
			end
		end
	end

	def navbar_type
		@nav_type.nil? ? 'navbar-static-top' : @nav_type
	end

	def show_layout_flash?
		@layout_flash.nil? ? true : @layout_flash
	end

	def show_layout_footer?
		@layout_footer.nil? ? true : @layout_footer
	end

	def user_profile
		if current_user.profile_img?
			current_user.profile_img_url.to_s
		else
			'http://www.temazkalite.com/img-demo/unknown-user.gif'
		end
	end

end
{'fraction_non_alphanumeric': 0.1259150805270864, 'fraction_numerical': 0.0, 'mean_word_length': 3.8303886925795054, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2473062', 'n_tokens_mistral': 572, 'n_tokens_neox': 499, 'n_words': 110}