<commit_before>{% extends "layout.html" %}

{% block pageTitle %}
	GOV.UK prototyping kit
{% endblock %}

{% block content %}

{% import "pip18/elements.html" as elements %}
{% for page in data %}
{% for question in page.eatingAndDrinking %}
<main id="content" role="main" class="pip18">

	<div class="grid-row">
			<div class="column-two-thirds">

				<form action="/pip18/eatingAndDrinking{% if edit %}?edit=true{% endif %}" method="post" class="form form-group-frequency">
					{{ elements.header(page,question) }}

					{% set seq = [
						{"id":"affect1", "label":question.motivatedLabel, "value":question.motivatedLabel, "showPanel":"details"},
						{"id":"affect2", "label":question.knowingWhenLabel, "value":question.knowingWhenLabel, "showPanel":"details"},
						{"id":"affect3", "label":question.knowingMuchLabel, "value":question.knowingMuchLabel, "showPanel":"details"},
						{"id":"affect4", "label":question.cuttingLabel, "value":question.cuttingLabel, "showPanel":"details"},
						{"id":"affect5", "label":question.holdingLabel, "value":question.holdingLabel, "showPanel":"details"},
						{"id":"affect6", "label":question.mouthLabel, "value":question.mouthLabel, "showPanel":"details"},
						{"id":"affect7", "label":question.chewingLabel, "value":question.chewingLabel, "showPanel":"details"},
						{"id":"affect8", "label":question.swallowingLabel, "value":question.swallowingLabel, "showPanel":"details"},
						{"id":"affect9", "label":question.otherWayLabel, "value":question.otherWayLabel, "showPanel":"details",
							"target"        : "target2",
							"textbox"       : true,
							"textboxId"     : "textboxId2",
							"textboxAnswer" : answers.textboxId2
						},
						{"id":"affect10", "label":question.doesntLabel, "value":question.doesntLabel, "hidePanel":"details"}
					] %}
					{{ elements.checkbox('optionsName',"checkbox",question.question,page.tickAll,seq,answers,answers.optionsName,"check-uncheck") }}

					<div class="form-group panel-indent
					 {% if not answers.optionsName  or answers.optionsName == question.doesntLabel %}js-hidden{% endif %}" id="details">

						{% set seq = [
							{id:"conditionAffect1",label:question.encourageLabel,value:question.encourageLabel},
							{id:"conditionAffect2",label:question.helpLabel,value:question.helpLabel},
							{id:"conditionAffect3",label:question.relyLabel,value:question.relyLabel},
							{id:"conditionAffect4",label:question.manageLabel,value:question.manageLabel},
							{"id":"conditionAffect6", "label":question.otherWayLabel, "value":question.otherWayLabel,
								"target"         : "conditionAffectOther",
								"textarea"       : true,
								"textareaId"     : "conditionAffectOther",
								"textareaLabel"  : "",
								"textareaAnswer" : answers.conditionAffectOther
							}
						] %}
						{{ elements.checkbox('conditionAffect',"checkbox",question.question3,'',seq,answers,answers.conditionAffect) }}

						{{ elements.frequency(question.frequency,"frequencyOption",question.question2,answers,answers.frequencyOption)}}

						{{ elements.textarea("howDoes",question.question4,answers.howDoes,"",question.helpTextHd,question.helpText) }}
					</div>
<commit_msg>otherwaylabel2 for eating and drinking<commit_after>{% extends "layout.html" %}

{% block pageTitle %}
	GOV.UK prototyping kit
{% endblock %}

{% block content %}

{% import "pip18/elements.html" as elements %}
{% for page in data %}
{% for question in page.eatingAndDrinking %}
<main id="content" role="main" class="pip18">

	<div class="grid-row">
			<div class="column-two-thirds">

				<form action="/pip18/eatingAndDrinking{% if edit %}?edit=true{% endif %}" method="post" class="form form-group-frequency">
					{{ elements.header(page,question) }}

					{% set seq = [
						{"id":"affect1", "label":question.motivatedLabel, "value":question.motivatedLabel, "showPanel":"details"},
						{"id":"affect2", "label":question.knowingWhenLabel, "value":question.knowingWhenLabel, "showPanel":"details"},
						{"id":"affect3", "label":question.knowingMuchLabel, "value":question.knowingMuchLabel, "showPanel":"details"},
						{"id":"affect4", "label":question.cuttingLabel, "value":question.cuttingLabel, "showPanel":"details"},
						{"id":"affect5", "label":question.holdingLabel, "value":question.holdingLabel, "showPanel":"details"},
						{"id":"affect6", "label":question.mouthLabel, "value":question.mouthLabel, "showPanel":"details"},
						{"id":"affect7", "label":question.chewingLabel, "value":question.chewingLabel, "showPanel":"details"},
						{"id":"affect8", "label":question.swallowingLabel, "value":question.swallowingLabel, "showPanel":"details"},
						{"id":"affect9", "label":question.otherWayLabel, "value":question.otherWayLabel, "showPanel":"details",
							"target"        : "target2",
							"textbox"       : true,
							"textboxId"     : "textboxId2",
							"textboxAnswer" : answers.textboxId2
						},
						{"id":"affect10", "label":question.doesntLabel, "value":question.doesntLabel, "hidePanel":"details"}
					] %}
					{{ elements.checkbox('optionsName',"checkbox",question.question,page.tickAll,seq,answers,answers.optionsName,"check-uncheck") }}

					<div class="form-group panel-indent
					 {% if not answers.optionsName  or answers.optionsName == question.doesntLabel %}js-hidden{% endif %}" id="details">

						{% set seq = [
							{id:"conditionAffect1",label:question.encourageLabel,value:question.encourageLabel},
							{id:"conditionAffect2",label:question.helpLabel,value:question.helpLabel},
							{id:"conditionAffect3",label:question.relyLabel,value:question.relyLabel},
							{id:"conditionAffect4",label:question.manageLabel,value:question.manageLabel},
							{"id":"conditionAffect6", "label":question.otherWayLabel, "value":question.otherWayLabel2,
								"target"         : "conditionAffectOther",
								"textarea"       : true,
								"textareaId"     : "conditionAffectOther",
								"textareaLabel"  : "",
								"textareaAnswer" : answers.conditionAffectOther
							}
						] %}
						{{ elements.checkbox('conditionAffect',"checkbox",question.question3,'',seq,answers,answers.conditionAffect) }}

						{{ elements.frequency(question.frequency,"frequencyOption",question.question2,answers,answers.frequencyOption)}}

						{{ elements.textarea("howDoes",question.question4,answers.howDoes,"",question.helpTextHd,question.helpText) }}
					</div>

{'fraction_non_alphanumeric': 0.17771553065670712, 'fraction_numerical': 0.00902583255524432, 'mean_word_length': 4.912603495860165, 'pattern_counts': {'":': 86, '<': 15, '<?xml version=': 0, '>': 15, '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': '4026358', 'n_tokens_mistral': 2463, 'n_tokens_neox': 1902, 'n_words': 256}