<commit_before>@(field: play.api.data.Field,
  title: String,
  visibleLabel: String,
  invisibleLable: String,
  optionalField: => play.twirl.api.HtmlFormat.Appendable)(implicit handler: helper.FieldConstructor, lang: Lang)

@import uk.gov.dvla.vehicles.presentation.common.mappings.OptionalToggle.{Visible, Invisible, OptionFieldSuffix}
@import _root_.views.html.helper.input

@input(field) { (id, name, value, htmlArgs) =>
<div class="expandable-optional" id="@id">
    <div class="form-item">
        <fieldset>
            <legend>@title</legend>
            <div class="radio">
                <div class="form-item">
                    <label for="@(s"${id}_$Visible")" class="form-radio selectable">
                        <input class="option-visible ga-email-option-visible" name="@name" value="@Visible" showerrors="false" type="radio"
                               aria-required="true" @(if(value == Some(Visible)) "checked" else "") id="@(s"${id}_$Visible")">
                        <span class="text">@visibleLabel</span>
                    </label>
                    <label for="@(s"${id}_$Invisible")" class="form-radio selectable">
                        <input class="option-invisible  ga-email-option-invisible" name="@name" value="@Invisible" showerrors="false" type="radio"
                               aria-required="true" @(if(value == Some(Invisible)) "checked" else "") id="@(s"${id}_$Invisible")" >
                        <span class="text">@invisibleLable</span>
                    </label>
                </div>
            </div>
        </fieldset>
    </div>

    <div class="optional-field" id="@(s"${id}${OptionFieldSuffix}")">
        <div class="panel-indent-wrapper">
            <div class="panel-indent">
                @optionalField
            </div>
        </div>
    </div>
</div>
}<commit_msg>remove unused class<commit_after>@(field: play.api.data.Field,
  title: String,
  visibleLabel: String,
  invisibleLable: String,
  optionalField: => play.twirl.api.HtmlFormat.Appendable)(implicit handler: helper.FieldConstructor, lang: Lang)

@import uk.gov.dvla.vehicles.presentation.common.mappings.OptionalToggle.{Visible, Invisible, OptionFieldSuffix}
@import _root_.views.html.helper.input

@input(field) { (id, name, value, htmlArgs) =>
<div class="expandable-optional" id="@id">
    <div class="form-item">
        <fieldset>
            <legend>@title</legend>
            <div class="radio">
                <div class="form-item">
                    <label for="@(s"${id}_$Visible")" class="form-radio selectable">
                        <input class="option-visible" name="@name" value="@Visible" showerrors="false" type="radio"
                               aria-required="true" @(if(value == Some(Visible)) "checked" else "") id="@(s"${id}_$Visible")">
                        <span class="text">@visibleLabel</span>
                    </label>
                    <label for="@(s"${id}_$Invisible")" class="form-radio selectable">
                        <input class="option-invisible" name="@name" value="@Invisible" showerrors="false" type="radio"
                               aria-required="true" @(if(value == Some(Invisible)) "checked" else "") id="@(s"${id}_$Invisible")" >
                        <span class="text">@invisibleLable</span>
                    </label>
                </div>
            </div>
        </fieldset>
    </div>

    <div class="optional-field" id="@(s"${id}${OptionFieldSuffix}")">
        <div class="panel-indent-wrapper">
            <div class="panel-indent">
                @optionalField
            </div>
        </div>
    </div>
</div>
}
{'fraction_non_alphanumeric': 0.17163159333151135, 'fraction_numerical': 0.0, 'mean_word_length': 2.2972972972972974, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 63, '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': '5835489', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1045, 'n_words': 184}