<commit_before>﻿@using KBVault.Dal.Entities
@model KBVault.Web.Models.Public.LandingPageViewModel

@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        
    @{ Html.RenderPartial("GoogleFonts"); }

    <link rel="stylesheet" href="@Url.Content("~/Assets/css/plugins/bootstrap.css")" />
    <link rel="stylesheet" href="@Url.Content("~/Assets/css/plugins/font-awesome.css")" />
    <link rel="stylesheet" href="@Url.Content("~/Assets/css/plugins/smartmenus/jquery.smartmenus.bootstrap.css")" />
    <link rel="stylesheet" href="@Url.Content("~/Assets/css/jquery-ui/jquery-ui-redmond.css")" />
    <link rel="stylesheet" href="@Url.Content("~/Assets/css/plugins/ionicons.css")" />
    <link rel="stylesheet" href="@Url.Content("~/Assets/css/site.css")" />

     <script type="text/javascript">
         var KB_SearchUrl = "@Url.Action("Ajax", "Search")";
    </script>
</head>
<body>
    hello
    <header class="jumbotron subhead" id="overview">
        <div class="container">            
            <h1>
                <a href="/"><span>@ViewBag.CompanyName</span></a> 
                <small>@ViewBag.TagLine</small>
            </h1>
            <p id="htmlJumbotronText" class="lead">@ViewBag.JumbotronText</p>
        </div>
    </header>
    <div class="container">        
        <div class="row">                            
            @using (Html.BeginForm("Do", "Search", FormMethod.Post, new { id = "SearchForm" }))
            {
                <div class="input-group">
                    <input type="hidden" name="ArticleId" id="ArticleId" value="" />                    
                    <input type="text" class="form-control search-control" placeholder="Enter search text" ID="txtSearch" name="SearchKeyword" />                    
                    <span class="input-group-btn">
                        <input type="submit"  id="btnDoSearch" class="btn btn-default" value="@CommonResources.ButtonSearch" />
                    </span>
                </div>
            }                                
        </div>
        <div class="clearfix">&nbsp;</div>
        @if (ViewBag.ShowTotalArticleCountOnFrontPage)
        {
            <div class="row">
                <div class="container">
                    @Model.TotalArticleCountMessage
                </div>
            </div>
            <div class="clearfix">&nbsp;</div>
        }
        <div class="row">
            <div class="col-lg-9">
                <h4 class="section-title clearfix">
                    <span class="line"></span><i class="fa fa-folder-open-o fa-fw text-muted"></i>@UIResources.LandingHotCategoryHeader                    
                </h4>
                <div class="row">
                    @foreach (var category in Model.HotCategories)
                    {
                        <div class="col-lg-6">
                            <div class="row">
                                <i class="fa fa-folder-open-o fa-fw text-muted"></i>
                                @category.Name
                                <span class="badge">@category.Articles.Count</span> 
                            </div>
                            <div class="row">
                                <ul class="fa-ul">
                                @foreach (var article in category.Articles.Take((int)ViewBag.ArticleDisplayCount))
                                {
                                    <li>
                                        <i class="fa-li fa fa-list-alt fa-fw text-muted"></i>
                                        <a href='@Url.Action("Detail", "Home", new { id = article.SefName })'>@article.Title</a>
                                    </li>
                                }                 
                                </ul>                            
                            </div>
                        </div>
                    }
                </div>
                <div class="clearfix">&nbsp;</div>
                <div class="row">
                    <div class="col-lg-6">
                        <h4 class="section-title clearfix">
                            <span class="line"></span>@UIResources.LandingLatestArticlesTitle
                        </h4>
                        <div class="row">
                            <ul class="fa-ul">
                                @foreach (var article in Model.LatestArticles)
                                {
                                    <li>
                                        <i class="fa-li fa fa-list-alt fa-fw text-muted"></i>
                                        <a href='@Url.Action("Detail", "Home", new { id = article.SefName })'>@article.Title</a>
                                    </li>
                                }
                            </ul>                        
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <h4 class="section-title clearfix">
                            <span class="line"></span>@UIResources.LandingPopularArticlesTitle
                        </h4>
                        <div class="row">
                            <ul class="fa-ul">
                            @foreach (var article in Model.PopularArticles)
                            {
                                <li>
                                    <i class="fa-li fa fa-list-alt fa-fw text-muted"></i>
                                    <a href='@Url.Action("Detail", "Home", new { id = article.SefName })'>@article.Title</a>
                                </li>
                            }
                            </ul> 
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3">
                <h4 class="section-title">@UIResources.LandingSidebarCategoryListTitle</h4>
                <div>
                    @foreach (Category category in Model.FirstLevelCategories)
                    {                        
                        <div class="row">
                            <i class="fa fa-arrow-circle-o-right text-muted"></i>
                            <a href="@Url.Action("Categories", "Home", new { id = category.SefName })">@category.Name</a>
                            @* <span class="badge">@category.Articles.Count</span> *@
                            
                        </div>                        
                    }
                </div>
                <div class="col-lg-12">&nbsp;</div>
                
                @if (Model.PopularTags.Count > 0)
                {
                    <h4 class="section-title">@UIResources.LandingSidebarTagCloudListTitle</h4>
                    <div>
                        @foreach (var tag in Model.PopularTags)
                        {
                            <a class="btn-xs btn btn-primary"  href='@Url.Action("Tags", "Home", new { id = tag.Name })'>
                                @tag.Name
                             </a> 
                        }
                    </div>
                }
            </div>
        </div>
    </div>
    
    <script src="@Url.Content("~/Assets/js/jquery/jquery-2-0-2.js")"></script>
    <script src="@Url.Content("~/Assets/js/jquery/jquery-ui-1-10-4.js")"></script>
    <script src="@Url.Content("~/Assets/js/bootstrap/bootstrap.js")"></script>
    <script src="@Url.Content("~/Assets/js/plugins/cookie/jquery.cookie.js")"></script>
    <script src="@Url.Content("~/Assets/js/frontend.js")"></script>
    <script src="@Url.Content("~/Assets/js/smartmenus/jquery.smartmenus.js")"></script>
    <script src="@Url.Content("~/Assets/js/smartmenus/jquery.smartmenus.bootstrap.js")"></script>
    <script src="@Url.Content("~/Assets/js/smartmenus/jquery.smartmenus.keyboard.js")"></script>

    @if (!String.IsNullOrEmpty(ViewBag.AnalyticsAccount))
    {
        <script>
            (function (i, s, o, g, r, a, m) {
                i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                    (i[r].q = i[r].q || []).push(arguments)
                }, i[r].l = 1 * new Date(); a = s.createElement(o),
                m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
            })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

            ga('create', '@ViewBag.AnalyticsAccount', 'auto');
            ga('send', 'pageview');
        </script>
    }
</body>
</html>
<commit_msg>Removed test "hello" literal<commit_after>﻿@using KBVault.Dal.Entities
@model KBVault.Web.Models.Public.LandingPageViewModel

@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        
    @{ Html.RenderPartial("GoogleFonts"); }

    <link rel="stylesheet" href="@Url.Content("~/Assets/css/plugins/bootstrap.css")" />
    <link rel="stylesheet" href="@Url.Content("~/Assets/css/plugins/font-awesome.css")" />
    <link rel="stylesheet" href="@Url.Content("~/Assets/css/plugins/smartmenus/jquery.smartmenus.bootstrap.css")" />
    <link rel="stylesheet" href="@Url.Content("~/Assets/css/jquery-ui/jquery-ui-redmond.css")" />
    <link rel="stylesheet" href="@Url.Content("~/Assets/css/plugins/ionicons.css")" />
    <link rel="stylesheet" href="@Url.Content("~/Assets/css/site.css")" />

     <script type="text/javascript">
         var KB_SearchUrl = "@Url.Action("Ajax", "Search")";
    </script>
</head>
<body>    
    <header class="jumbotron subhead" id="overview">
        <div class="container">            
            <h1>
                <a href="/"><span>@ViewBag.CompanyName</span></a> 
                <small>@ViewBag.TagLine</small>
            </h1>
            <p id="htmlJumbotronText" class="lead">@ViewBag.JumbotronText</p>
        </div>
    </header>
    <div class="container">        
        <div class="row">                            
            @using (Html.BeginForm("Do", "Search", FormMethod.Post, new { id = "SearchForm" }))
            {
                <div class="input-group">
                    <input type="hidden" name="ArticleId" id="ArticleId" value="" />                    
                    <input type="text" class="form-control search-control" placeholder="Enter search text" ID="txtSearch" name="SearchKeyword" />                    
                    <span class="input-group-btn">
                        <input type="submit"  id="btnDoSearch" class="btn btn-default" value="@CommonResources.ButtonSearch" />
                    </span>
                </div>
            }                                
        </div>
        <div class="clearfix">&nbsp;</div>
        @if (ViewBag.ShowTotalArticleCountOnFrontPage)
        {
            <div class="row">
                <div class="container">
                    @Model.TotalArticleCountMessage
                </div>
            </div>
            <div class="clearfix">&nbsp;</div>
        }
        <div class="row">
            <div class="col-lg-9">
                <h4 class="section-title clearfix">
                    <span class="line"></span><i class="fa fa-folder-open-o fa-fw text-muted"></i>@UIResources.LandingHotCategoryHeader                    
                </h4>
                <div class="row">
                    @foreach (var category in Model.HotCategories)
                    {
                        <div class="col-lg-6">
                            <div class="row">
                                <i class="fa fa-folder-open-o fa-fw text-muted"></i>
                                @category.Name
                                <span class="badge">@category.Articles.Count</span> 
                            </div>
                            <div class="row">
                                <ul class="fa-ul">
                                @foreach (var article in category.Articles.Take((int)ViewBag.ArticleDisplayCount))
                                {
                                    <li>
                                        <i class="fa-li fa fa-list-alt fa-fw text-muted"></i>
                                        <a href='@Url.Action("Detail", "Home", new { id = article.SefName })'>@article.Title</a>
                                    </li>
                                }                 
                                </ul>                            
                            </div>
                        </div>
                    }
                </div>
                <div class="clearfix">&nbsp;</div>
                <div class="row">
                    <div class="col-lg-6">
                        <h4 class="section-title clearfix">
                            <span class="line"></span>@UIResources.LandingLatestArticlesTitle
                        </h4>
                        <div class="row">
                            <ul class="fa-ul">
                                @foreach (var article in Model.LatestArticles)
                                {
                                    <li>
                                        <i class="fa-li fa fa-list-alt fa-fw text-muted"></i>
                                        <a href='@Url.Action("Detail", "Home", new { id = article.SefName })'>@article.Title</a>
                                    </li>
                                }
                            </ul>                        
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <h4 class="section-title clearfix">
                            <span class="line"></span>@UIResources.LandingPopularArticlesTitle
                        </h4>
                        <div class="row">
                            <ul class="fa-ul">
                            @foreach (var article in Model.PopularArticles)
                            {
                                <li>
                                    <i class="fa-li fa fa-list-alt fa-fw text-muted"></i>
                                    <a href='@Url.Action("Detail", "Home", new { id = article.SefName })'>@article.Title</a>
                                </li>
                            }
                            </ul> 
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-lg-3">
                <h4 class="section-title">@UIResources.LandingSidebarCategoryListTitle</h4>
                <div>
                    @foreach (Category category in Model.FirstLevelCategories)
                    {                        
                        <div class="row">
                            <i class="fa fa-arrow-circle-o-right text-muted"></i>
                            <a href="@Url.Action("Categories", "Home", new { id = category.SefName })">@category.Name</a>
                            @* <span class="badge">@category.Articles.Count</span> *@
                            
                        </div>                        
                    }
                </div>
                <div class="col-lg-12">&nbsp;</div>
                
                @if (Model.PopularTags.Count > 0)
                {
                    <h4 class="section-title">@UIResources.LandingSidebarTagCloudListTitle</h4>
                    <div>
                        @foreach (var tag in Model.PopularTags)
                        {
                            <a class="btn-xs btn btn-primary"  href='@Url.Action("Tags", "Home", new { id = tag.Name })'>
                                @tag.Name
                             </a> 
                        }
                    </div>
                }
            </div>
        </div>
    </div>
    
    <script src="@Url.Content("~/Assets/js/jquery/jquery-2-0-2.js")"></script>
    <script src="@Url.Content("~/Assets/js/jquery/jquery-ui-1-10-4.js")"></script>
    <script src="@Url.Content("~/Assets/js/bootstrap/bootstrap.js")"></script>
    <script src="@Url.Content("~/Assets/js/plugins/cookie/jquery.cookie.js")"></script>
    <script src="@Url.Content("~/Assets/js/frontend.js")"></script>
    <script src="@Url.Content("~/Assets/js/smartmenus/jquery.smartmenus.js")"></script>
    <script src="@Url.Content("~/Assets/js/smartmenus/jquery.smartmenus.bootstrap.js")"></script>
    <script src="@Url.Content("~/Assets/js/smartmenus/jquery.smartmenus.keyboard.js")"></script>

    @if (!String.IsNullOrEmpty(ViewBag.AnalyticsAccount))
    {
        <script>
            (function (i, s, o, g, r, a, m) {
                i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                    (i[r].q = i[r].q || []).push(arguments)
                }, i[r].l = 1 * new Date(); a = s.createElement(o),
                m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
            })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

            ga('create', '@ViewBag.AnalyticsAccount', 'auto');
            ga('send', 'pageview');
        </script>
    }
</body>
</html>

{'fraction_non_alphanumeric': 0.14931686960498486, 'fraction_numerical': 0.003772937746527182, 'mean_word_length': 1.1826575171553337, 'pattern_counts': {'":': 0, '<': 321, '<?xml version=': 0, '>': 323, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 42, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1079687', 'n_tokens_mistral': 4856, 'n_tokens_neox': 4576, 'n_words': 744}