<commit_before>@*
 * Copyright 2019 HM Revenue & Customs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *@

@import selfservicetimetopay.partials._
@import uk.gov.hmrc.selfservicetimetopay.controllers.routes
@import uk.gov.hmrc.selfservicetimetopay.models.CalculatorPaymentSchedule
@( schedule: CalculatorPaymentSchedule, loggedIn: Boolean)(implicit messages: play.api.i18n.Messages, request: Request[_])

@selfservicetimetopay.main(
    title = Messages("ssttp.calculator.check-calculation.h1"),
    loggedIn = loggedIn,
    welshToggleEnabled =false,
    navTitle =  "ssttp.payment-plan-calculator.title"){
    <a class="link-back" href="@routes.CalculatorController.getCalculateInstalmentsUnAuth().url">@Messages("ssttp.calculator.check-calculation.back")</a>
    <header class="page-header text">
        <h1>@Messages("ssttp.calculator.check-calculation.h1")</h1>
    </header>

    @check_calculation_table( schedule)
    <h2>@Messages("ssttp.calculator.check-calculation.h2")</h2>
    <p>@Messages("ssttp.calculator.check-calculation.p1")</p>
    <details>
        <summary onclick="click"><span class="summary">@Messages("ssttp.calculator.check-calculation.how-we-calculate-interest")</span></summary>
        <div class="panel panel-border-wide">
            <p>@Messages("ssttp.calculator.check-calculation.how-we-calculate-interest.p1")</p>
            <p>@Messages("ssttp.calculator.check-calculation.how-we-calculate-interest.p2")</p>
            <p>@Messages("ssttp.calculator.check-calculation.how-we-calculate-interest.p3")</p>
        </div>
    </details>
    <h3>@Messages("ssttp.calculator.check-calculation.what-happens-next")</h3>
    <p>
        @Messages("ssttp.calculator.check-calculation.what-happens-next.p1.1")
        <a href="https://www.gov.uk/log-in-file-self-assessment-tax-return">@Messages("ssttp.calculator.check-calculation.what-happens-next.p1.link")</a>
        @Messages("ssttp.calculator.check-calculation.what-happens-next.p1.2")
    </p>
    <p>
        @Messages("ssttp.calculator.check-calculation.what-happens-next.p2")
        <a href="https://www.tax.service.gov.uk/pay-what-you-owe-in-instalments">@Messages("ssttp.calculator.check-calculation.what-happens-next.p2.link")</a>
        .
    </p>
    <p>
        @Messages("ssttp.calculator.check-calculation.what-happens-next.p3.1")
        <a href="https://www.gov.uk/pay-self-assessment-tax-bill/budget-payment-plan">@Messages("ssttp.calculator.check-calculation.what-happens-next.p3.link")</a>
        @Messages("ssttp.calculator.check-calculation.what-happens-next.p3.2")
    </p>
}

<script type="text/javascript">

function click() {
    window['optimizely'] = window['optimizely'] || [];
    window['optimizely'].push({
    type: "event",
    eventName: "how-we-calculate-interest",
    tags: {
    revenue: 0,
    value: 0.00
    }
    });
}
</script>
<commit_msg>last one (#380)<commit_after>@*
 * Copyright 2019 HM Revenue & Customs
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *@

@import selfservicetimetopay.partials._
@import uk.gov.hmrc.selfservicetimetopay.controllers.routes
@import uk.gov.hmrc.selfservicetimetopay.models.CalculatorPaymentSchedule
@( schedule: CalculatorPaymentSchedule, loggedIn: Boolean)(implicit messages: play.api.i18n.Messages, request: Request[_])

@selfservicetimetopay.main(
    title = Messages("ssttp.calculator.check-calculation.h1"),
    loggedIn = loggedIn,
    welshToggleEnabled =false,
    navTitle =  "ssttp.payment-plan-calculator.title"){
    <a class="link-back" href="@routes.CalculatorController.getCalculateInstalmentsUnAuth().url">@Messages("ssttp.calculator.check-calculation.back")</a>
    <header class="page-header text">
        <h1>@Messages("ssttp.calculator.check-calculation.h1")</h1>
    </header>

    @check_calculation_table( schedule)
    <h2>@Messages("ssttp.calculator.check-calculation.h2")</h2>
    <p>@Messages("ssttp.calculator.check-calculation.p1")</p>
    <details>
        <summary onclick="click()"><span class="summary">@Messages("ssttp.calculator.check-calculation.how-we-calculate-interest")</span></summary>
        <div class="panel panel-border-wide">
            <p>@Messages("ssttp.calculator.check-calculation.how-we-calculate-interest.p1")</p>
            <p>@Messages("ssttp.calculator.check-calculation.how-we-calculate-interest.p2")</p>
            <p>@Messages("ssttp.calculator.check-calculation.how-we-calculate-interest.p3")</p>
        </div>
    </details>
    <h3>@Messages("ssttp.calculator.check-calculation.what-happens-next")</h3>
    <p>
        @Messages("ssttp.calculator.check-calculation.what-happens-next.p1.1")
        <a href="https://www.gov.uk/log-in-file-self-assessment-tax-return">@Messages("ssttp.calculator.check-calculation.what-happens-next.p1.link")</a>
        @Messages("ssttp.calculator.check-calculation.what-happens-next.p1.2")
    </p>
    <p>
        @Messages("ssttp.calculator.check-calculation.what-happens-next.p2")
        <a href="https://www.tax.service.gov.uk/pay-what-you-owe-in-instalments">@Messages("ssttp.calculator.check-calculation.what-happens-next.p2.link")</a>
        .
    </p>
    <p>
        @Messages("ssttp.calculator.check-calculation.what-happens-next.p3.1")
        <a href="https://www.gov.uk/pay-self-assessment-tax-bill/budget-payment-plan">@Messages("ssttp.calculator.check-calculation.what-happens-next.p3.link")</a>
        @Messages("ssttp.calculator.check-calculation.what-happens-next.p3.2")
    </p>
}

<script type="text/javascript">

function click() {
    window['optimizely'] = window['optimizely'] || [];
    window['optimizely'].push({
    type: "event",
    eventName: "how-we-calculate-interest",
    tags: {
    revenue: 0,
    value: 0.00
    }
    });
}
</script>

{'fraction_non_alphanumeric': 0.15819793205317578, 'fraction_numerical': 0.011964549483013294, 'mean_word_length': 3.8817591925018022, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, 'https://': 6, 'lorem ipsum': 0, 'www.': 8, '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': '5563509', 'n_tokens_mistral': 2409, 'n_tokens_neox': 2296, 'n_words': 334}