<commit_before>= render 'asides/search'

%section#search-content
	%section#inside-content
		%section#results-list
			%section#detail-screen
				= render 'layouts/results_header'
				%section#detail-info
					
					- if @org.name.present?
						%h1.name
							= @org.name
					
					- if @org.street_address.present? || @org.phones.present? || @org.urls.present?
						%section.contact-box
							%h1 
								%span Contact

							- if @org.street_address.present?
								%div.address
									%span{"data-icon"=>"✉" , :class=>"ohana-icon"}
									%span
										= @org.street_address 
										%br 
										= "#{@org.city}, #{@org.state} #{@org.zipcode}"
							
							- if @org.phones.present?
								%div.phone
									- @org.phones.each do |hash|
										%span{"data-icon"=>"☎" , :class=>"ohana-icon"}
										%span
											= "#{format_phone(hash["number"])} #{hash["phone_hours"]}"	
										%br							

							- if @org.urls.present?
								%div.url
									- @org.urls.each do |url|
										%a{:href=>url,:target=>"_blank"}
											%span{"data-icon"=>"🔗" , :class=>"external-link ohana-icon"}
											%span
												= url
											%br

							- if @org.emails.present?
								%div.email
									= @org.emails.join(", ")

					- if @org.schedule.present?
						%section.hours-box
							%h1
								%span Business Hours

								%div.schedule
									= @org.schedule

					- if @org.sorted_payments_accepted.present? || @org.sorted_products_sold.present?
						%section.payment-box
							%h1
								%span Payment & Products

							- if @org.sorted_payments_accepted.present?
								%div.payments-accepted
									Payment methods accepted:
									%ul
										-@org.payments_accepted.sort.each do |payment|
											%li
												= payment

							- if @org.sorted_products_sold.present?
								%div.products-sold
									Products sold: 
									%ul
										- @org.products_sold.sort.each do |product|<commit_msg>Removes residual references to sorted methods<commit_after>= render 'asides/search'

%section#search-content
	%section#inside-content
		%section#results-list
			%section#detail-screen
				= render 'layouts/results_header'
				%section#detail-info
					
					- if @org.name.present?
						%h1.name
							= @org.name
					
					- if @org.street_address.present? || @org.phones.present? || @org.urls.present?
						%section.contact-box
							%h1 
								%span Contact

							- if @org.street_address.present?
								%div.address
									%span{"data-icon"=>"✉" , :class=>"ohana-icon"}
									%span
										= @org.street_address 
										%br 
										= "#{@org.city}, #{@org.state} #{@org.zipcode}"
							
							- if @org.phones.present?
								%div.phone
									- @org.phones.each do |hash|
										%span{"data-icon"=>"☎" , :class=>"ohana-icon"}
										%span
											= "#{format_phone(hash["number"])} #{hash["phone_hours"]}"	
										%br							

							- if @org.urls.present?
								%div.url
									- @org.urls.each do |url|
										%a{:href=>url,:target=>"_blank"}
											%span{"data-icon"=>"🔗" , :class=>"external-link ohana-icon"}
											%span
												= url
											%br

							- if @org.emails.present?
								%div.email
									= @org.emails.join(", ")

					- if @org.schedule.present?
						%section.hours-box
							%h1
								%span Business Hours

								%div.schedule
									= @org.schedule

					- if @org.payments_accepted.present? || @org.products_sold.present?
						%section.payment-box
							%h1
								%span Payment & Products

							- if @org.payments_accepted.present?
								%div.payments-accepted
									Payment methods accepted:
									%ul
										-@org.payments_accepted.sort.each do |payment|
											%li
												= payment

							- if @org.products_sold.present?
								%div.products-sold
									Products sold: 
									%ul
										- @org.products_sold.sort.each do |product|
{'fraction_non_alphanumeric': 0.1469098277608916, 'fraction_numerical': 0.002026342451874367, 'mean_word_length': 1.7122252747252746, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3000874', 'n_tokens_mistral': 2186, 'n_tokens_neox': 1311, 'n_words': 204}