<commit_before>module StudySubjectsHelper

#	TODO move much of this into ccls_engine as is used both in ODMS and HOMEX
#		ccls_engine/lib/ccls_engine/helper.rb

#	#	Used to replace the _id_bar partial
#	def study_subject_id_bar(study_subject,&block)		#	TODO remove as added to ccls_engine > 3.8.7
#		stylesheets('study_subject_id_bar')
#		content_for :main do
#			"<div id='id_bar'>\n" <<
#			"<div class='childid'>\n" <<
#			"<span>ChildID:</span>\n" <<
#			"<span>#{study_subject.try(:childid)}</span>\n" <<
#			"</div><!-- class='childid' -->\n" <<
#			"<div class='studyid'>\n" <<
#			"<span>StudyID:</span>\n" <<
#			"<span>#{study_subject.try(:studyid)}</span>\n" <<
#			"</div><!-- class='studyid' -->\n" <<
#			"<div class='full_name'>\n" <<
#			"<span>#{study_subject.try(:full_name)}</span>\n" <<
#			"</div><!-- class='full_name' -->\n" <<
#			"<div class='controls'>\n" <<
#			@content_for_id_bar.to_s <<
#			((block_given?)?yield: '') <<
#			"</div><!-- class='controls' -->\n" <<
#			"</div><!-- id='id_bar' -->\n"
#		end
#
#		content_for :main do
#			"<div id='do_not_contact'>\n" <<
#			"Subject requests no further contact with Study.\n" <<
#			"</div>\n" 
#		end if study_subject.try(:do_not_contact?)
#	end	#	id_bar_for


#	Move this down with the subject_languages_select'r
	def select_subject_races(study_subject)
		#	NOTE THAT THIS PREFIX HAS ONLY THE FIRST LEFT SIDE [
		prefix = "study_subject[subject_races_attributes"<commit_msg>Removed old code.<commit_after>module StudySubjectsHelper

#	Move this down with the subject_languages_select'r
	def select_subject_races(study_subject)
		#	NOTE THAT THIS PREFIX HAS ONLY THE FIRST LEFT SIDE [
		prefix = "study_subject[subject_races_attributes"
{'fraction_non_alphanumeric': 0.19289044289044288, 'fraction_numerical': 0.0017482517482517483, 'mean_word_length': 4.39937106918239, 'pattern_counts': {'":': 0, '<': 66, '<?xml version=': 0, '>': 31, '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': '912738', 'n_tokens_mistral': 743, 'n_tokens_neox': 682, 'n_words': 131}