<commit_before>﻿@using Hops.Models;
@model DetailModel

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@{
    ViewBag.Title = $"{Model.Hop.Name} - Hops";
}

<div class="jumbotron">
    <h1>@Model.Hop.Name</h1>
    <p>@Model.Hop.Trade</p>
    <p>Aroma profile: @Model.Hop.Aroma</p>
    <p>Typical beer styles: @Model.Hop.Styles</p>

</div>

<div class="panel panel-default">
    <div class="panel-heading">Information</div>
    <div class="panel-body">
        <p>@Model.Hop.Info</p>
        @if(Model.Aliases.Any())
        {
            <p> Also known as: @string.Join(", ", Model.Aliases) </p>
        }      
        <p>Pedigree: @Model.Hop.Pedigree</p>
    </div>
</div>

<div class="panel panel-default">
    <div class="panel-heading">Brewing values</div>

    <div class="panel-body">
        <p>Brewing Usage: @Model.Hop.BrewingUsageString()</p>
    </div>

    <table class="table table-striped">
        <tr><td>Alpha Acid</td><td>@Model.Hop.AlphaMin - @Model.Hop.AlphaMax%</td></tr>
        <tr><td>Beta Acid</td><td>@Model.Hop.BetaMin - @Model.Hop.BetaMax%</td></tr>
        <tr><td>Co-humulone</td><td>@Model.Hop.CoHumuloneMin - @Model.Hop.CoHumuloneMax%</td></tr>
        <tr><td>Total Oil</td><td>@Model.Hop.TotalOilMin - @Model.Hop.TotalOilMax mL/100g</td></tr>
    </table>
</div>

<div class="panel panel-default">
    <div class="panel-heading">Possible substitutions</div>
    <div class="panel-body list-group">
        @foreach (var substitute in Model.Substitutions)
        {
            <a href="@Url.Action("Detail", new { Id = substitute.Id })" class="list-group-item">@substitute.Name</a>
        }
    </div>
</div><commit_msg>Add info tooltips<commit_after>﻿@using Hops.Models;
@model DetailModel

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@{
    ViewBag.Title = $"{Model.Hop.Name} - Hops";
}

<div class="jumbotron">
    <h1>@Model.Hop.Name</h1>
    <p>@Model.Hop.Trade</p>
    <p>Aroma profile: @Model.Hop.Aroma</p>
    <p>Typical beer styles: @Model.Hop.Styles</p>

</div>

<div class="panel panel-default">
    <div class="panel-heading">Information</div>
    <div class="panel-body">
        <p>@Model.Hop.Info</p>
        @if(Model.Aliases.Any())
        {
            <p> Also known as: @string.Join(", ", Model.Aliases) </p>
        }      
        <p>Pedigree: @Model.Hop.Pedigree</p>
    </div>
</div>

<div class="panel panel-default">
    <div class="panel-heading">Brewing values</div>

    <div class="panel-body">
        <p>Brewing Usage: @Model.Hop.BrewingUsageString()</p>
    </div>

    <table class="table table-striped">
        <tr><td>Alpha Acid <span class="glyphicon glyphicon-info-sign" 
                                 data-toggle="tooltip" 
                                 title="Alpha acids are a major component of the soft resins. When isomerized, these materials provide the main bitter compaunds associated with beer." />
            </td><td>@Model.Hop.AlphaMin - @Model.Hop.AlphaMax%</td>
        </tr>
        <tr><td>Beta Acid <span class="glyphicon glyphicon-info-sign"
                                data-toggle="tooltip"
                                title="Beta acids, another soft resin component, are not bitter in their natural, or isomeric, form. Some of the oxidation products do provide bitterness." />
            </td><td>@Model.Hop.BetaMin - @Model.Hop.BetaMax%</td>
        </tr>
        <tr><td>Co-humulone <span class="glyphicon glyphicon-info-sign"
                                  data-toggle="tooltip"
                                  title="It is widely held that higher levels of co-humulone produce a harsh, unpleasant bitterness and have a negative impact on head retention." />
            </td><td>@Model.Hop.CoHumuloneMin - @Model.Hop.CoHumuloneMax%</td>
        </tr>
        <tr><td>Total Oil <span class="glyphicon glyphicon-info-sign"
                                data-toggle="tooltip"
                                title="The quantity and composition of the essential oils are responsible for the amount and quality of hop flavor and aroma in beer." />
            </td><td>@Model.Hop.TotalOilMin - @Model.Hop.TotalOilMax mL/100g</td>
        </tr>
    </table>
</div>

@if (Model.Substitutions.Any())
{
    <div class="panel panel-default">
        <div class="panel-heading">Possible substitutions</div>
        <div class="panel-body list-group">
            @foreach (var substitute in Model.Substitutions)
            {
                <a href="@Url.Action("Detail", new { Id = substitute.Id })" class="list-group-item">@substitute.Name</a>
            }
        </div>
    </div>
}

<script>
$(document).ready(function(){
    $('[data-toggle="tooltip"]').tooltip();
});
</script>
{'fraction_non_alphanumeric': 0.1700275949904479, 'fraction_numerical': 0.0021226915729144554, 'mean_word_length': 2.4120202751629254, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3724172', 'n_tokens_mistral': 1642, 'n_tokens_neox': 1549, 'n_words': 304}