<commit_before>﻿@model ContentList<Teaser>
<div class='rich-text' @Markup.Entity(Model)>
    @if (Model.Headline != null)
    {
	    <div class='page-header page-header-top'>
		    <h1 class='h3' @Markup.Property(Model,"Headline")>@Model.Headline</h1>
	    </div>
    }
    @if (Model.ItemListElements.Count > 0)
    {
        <div class="pull-right">@String.Format(Html.Resource("core.showingItemsText"), Model.Start + 1, Model.Start+Model.ItemListElements.Count)</div>
        @Html.Partial("Partials/Pager")
	    <div class="list-group">
            @foreach(var item in Model.ItemListElements)
            {
		        <a href="@item.Link.Url" class="list-group-item">
			        <h4 class="list-group-item-heading">@item.Headline</h4>
                    @if (item.Date != null)
                    {
                        <time class="meta small">@Html.DateDiff(item.Date)</time>
                    }
                    @if (item.Text!=null)
                    {
			            <p class="list-group-item-text">@item.Text</p>
                    }
		        </a>
            }
	    </div>
	    @Html.Partial("Partials/Pager")
    }
</div><commit_msg>TSI-467 added test for item.Link.IsValidLink() so item.Link.Url could not be null<commit_after>﻿@model ContentList<Teaser>
<div class='rich-text' @Markup.Entity(Model)>
    @if (Model.Headline != null)
    {
	    <div class='page-header page-header-top'>
		    <h1 class='h3' @Markup.Property(Model,"Headline")>@Model.Headline</h1>
	    </div>
    }
    @if (Model.ItemListElements.Count > 0)
    {
        <div class="pull-right">@String.Format(Html.Resource("core.showingItemsText"), Model.Start + 1, Model.Start+Model.ItemListElements.Count)</div>
        @Html.Partial("Partials/Pager")
	    <div class="list-group">
            @foreach(var item in Model.ItemListElements)
            {
                if (item.Link.IsValidLink())
                {
    		        @:<a href="@item.Link.Url" class="list-group-item">
                }
			    <h4 class="list-group-item-heading">@item.Headline</h4>
                if (item.Date != null)
                {
                    <time class="meta small">@Html.DateDiff(item.Date)</time>
                }
                if (item.Text != null)
                {
			        <p class="list-group-item-text">@item.Text</p>
                }
                if (item.Link.IsValidLink())
                {
    		        @:</a>
                }
            }
	    </div>
	    @Html.Partial("Partials/Pager")
    }
</div>
{'fraction_non_alphanumeric': 0.15714285714285714, 'fraction_numerical': 0.006563706563706564, 'mean_word_length': 1.6438775510204082, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 43, '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': '6260403', 'n_tokens_mistral': 849, 'n_tokens_neox': 788, 'n_words': 112}