<commit_before>extends ../layout

//include ../games/mixins
include ../notifications
include ../events

block body
	#container-inner.user-profile
			//if u.email
			//	img(src='http://www.gravatar.com/avatar/'+u.email_hash)
			h1 #{title}
			h4 Required Questions
			.row#additional-info
				haveDoneAQuestion = questions && questions.length > 0;
				if questions && questions.length > 0
					answer = null
					each question, i in questions
						active = (i == 0)
						whiteCard = true
						if question
							- question.transientRequired = true
							include mixins
						//mixin do_question(question, null, i == 0)
				if answers && answers.length > 0
					each answer, i in answers
						active = (!haveDoneAQuestion && i == 0)
						question = answer.question
						if question && question.transientRequired
							whiteCard = true
							if question
								include mixins
							//mixin do_question(answer.question, answer, !haveDoneAQuestion && i == 0)
			hr
			h4 Optional Questions
			.row#additional-info
				if optionalQuestions && optionalQuestions.length > 0
					answer = null
					each question, i in optionalQuestions
						active = (i == 0)
						whiteCard = true
						if question
							include mixins
						//mixin do_question(question, null, i == 0)
				if answers && answers.length > 0
					each answer, i in answers
						active = (!haveDoneAQuestion && i == 0)
						question = answer.question
						if !question || !question.transientRequired
							whiteCard = true
							if question
								include mixins
							//mixin do_question(answer.question, answer, !haveDoneAQuestion && i == 0)<commit_msg>Don't show "Optional Questions" section if there are no Optional Questions.<commit_after>extends ../layout

//include ../games/mixins
include ../notifications
include ../events

block body
	#container-inner.user-profile
			//if u.email
			//	img(src='http://www.gravatar.com/avatar/'+u.email_hash)
			h1 #{title}
			h4 Required Questions
			.row#additional-info
				haveDoneAQuestion = questions && questions.length > 0;
				if questions && questions.length > 0
					answer = null
					each question, i in questions
						active = (i == 0)
						whiteCard = true
						if question
							- question.transientRequired = true
							include mixins
						//mixin do_question(question, null, i == 0)
				if answers && answers.length > 0
					each answer, i in answers
						active = (!haveDoneAQuestion && i == 0)
						question = answer.question
						if question && question.transientRequired
							whiteCard = true
							if question
								include mixins
							//mixin do_question(answer.question, answer, !haveDoneAQuestion && i == 0)
			if optionalQuestions && optionalQuestions.length > 0
				hr
				h4 Optional Questions
				.row#additional-info
					answer = null
					each question, i in optionalQuestions
						active = (i == 0)
						whiteCard = true
						if question
							include mixins
						//mixin do_question(question, null, i == 0)
					if answers && answers.length > 0
						each answer, i in answers
							active = (!haveDoneAQuestion && i == 0)
							question = answer.question
							if !question || !question.transientRequired
								whiteCard = true
								if question
									include mixins
								//mixin do_question(answer.question, answer, !haveDoneAQuestion && i == 0)
{'fraction_non_alphanumeric': 0.09889121965837579, 'fraction_numerical': 0.00958945160323644, 'mean_word_length': 2.4306269270298047, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2251855', 'n_tokens_mistral': 1362, 'n_tokens_neox': 916, 'n_words': 291}