<commit_before>﻿@using StockportWebapp.Config
@using StockportWebapp.Config
@inject IApplicationConfiguration ApplicationConfiguration
@inject CurrentEnvironment CurrentEnvironment
@inject BusinessId BusinessId
@{
    var bannerTypeformUrl = ViewData["BannerTypeformUrl"];
    var stylesheet = ApplicationConfiguration.GetStylesheetConfig();
}
<!DOCTYPE html>
<html lang="en-GB">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="x-ua-compatible" content="ie=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=12.0, minimum-scale=1, user-scalable=yes" />
    <link rel="shortcut icon" type="image/png" href="~/assets/images/ui-images/favicon-sg.png" />
    <title>@ViewData["Title"] - Stockport Council</title>
    <link rel="stylesheet" type="text/css" href="@stylesheet.GoogleFonts" />
    <link rel="stylesheet" type="text/css" href="@stylesheet.FontAwesome" />
    <link rel="stylesheet" type="text/css" href="@stylesheet.CludoSearch" />
    <link rel="stylesheet" type="text/css" href="@stylesheet.JqueryUi" />
    <link rel="stylesheet" type="text/css" href="@stylesheet.StyleguideSemanticV2" />
    <link rel="stylesheet" type="text/css" href="@stylesheet.Slick" />
    <script type="text/javascript" src="~/assets/javascript/vendor/require.2.3.4.min.js"></script>
    @if (CurrentEnvironment.Name == "test")
    {
        <script type="text/javascript" src="/assets/javascript/requireConfigUitest.js"></script>
    }
    else
    {
        <script type="text/javascript" src="/assets/javascript/requireConfig.js"></script>
    }
    @*@Html.Partial("CookieBanner")*@

    <partial name="TagManager/TagManagerDataLayer" />
    <partial name="TagManager/TagManager" />
</head>
<body>
    <partial name="TagManager/TagManagerNoScript" />
    <header>
        <div class="skip-to-main-content">
            <a href="#content">Skip to main content</a>
        </div>
        <partial name="SemanticHeader" />
        <partial name="BrowserCheckSemantic" />
        @if (bannerTypeformUrl != null)
        {
            <div class="banner-header">
                <div class="center-wrapper">
                    <span>NEW</span><strong>This part of our website is brand new. </strong><a href="@ViewData["BannerTypeformUrl"]" target="_blank" data-mode="1" class="typeform-share link">Give us your feedback</a> to help us improve it.
                </div>
            </div>
        }
        @RenderSection("Breadcrumbs", false)
    </header><commit_msg>fix(LayoutSemantic): Added null or empty check to bannerTypeformUrl<commit_after>﻿@using StockportWebapp.Config
@using StockportWebapp.Config
@inject IApplicationConfiguration ApplicationConfiguration
@inject CurrentEnvironment CurrentEnvironment
@inject BusinessId BusinessId
@{
    var bannerTypeformUrl = ViewData["BannerTypeformUrl"];
    var stylesheet = ApplicationConfiguration.GetStylesheetConfig();
}
<!DOCTYPE html>
<html lang="en-GB">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="x-ua-compatible" content="ie=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=12.0, minimum-scale=1, user-scalable=yes" />
    <link rel="shortcut icon" type="image/png" href="~/assets/images/ui-images/favicon-sg.png" />
    <title>@ViewData["Title"] - Stockport Council</title>
    <link rel="stylesheet" type="text/css" href="@stylesheet.GoogleFonts" />
    <link rel="stylesheet" type="text/css" href="@stylesheet.FontAwesome" />
    <link rel="stylesheet" type="text/css" href="@stylesheet.CludoSearch" />
    <link rel="stylesheet" type="text/css" href="@stylesheet.JqueryUi" />
    <link rel="stylesheet" type="text/css" href="@stylesheet.StyleguideSemanticV2" />
    <link rel="stylesheet" type="text/css" href="@stylesheet.Slick" />
    <script type="text/javascript" src="~/assets/javascript/vendor/require.2.3.4.min.js"></script>
    @if (CurrentEnvironment.Name == "test")
    {
        <script type="text/javascript" src="/assets/javascript/requireConfigUitest.js"></script>
    }
    else
    {
        <script type="text/javascript" src="/assets/javascript/requireConfig.js"></script>
    }
    @*@Html.Partial("CookieBanner")*@

    <partial name="TagManager/TagManagerDataLayer" />
    <partial name="TagManager/TagManager" />
</head>
<body>
    <partial name="TagManager/TagManagerNoScript" />
    <header>
        <div class="skip-to-main-content">
            <a href="#content">Skip to main content</a>
        </div>
        <partial name="SemanticHeader" />
        <partial name="BrowserCheckSemantic" />
        @if (!string.IsNullOrEmpty((string)bannerTypeformUrl))
        {
            <div class="banner-header">
                <div class="center-wrapper">
                    <span>NEW</span><strong>This part of our website is brand new. </strong><a href="@ViewData["BannerTypeformUrl"]" target="_blank" data-mode="1" class="typeform-share link">Give us your feedback</a> to help us improve it.
                </div>
            </div>
        }
        @RenderSection("Breadcrumbs", false)
    </header>
{'fraction_non_alphanumeric': 0.16153091265947006, 'fraction_numerical': 0.0043179587831207065, 'mean_word_length': 3.74046511627907, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '3403499', 'n_tokens_mistral': 1555, 'n_tokens_neox': 1517, 'n_words': 279}