<commit_before>﻿@model MoviePicker.WebApp.Interfaces.IMovieListModel

@using MoviePicker.Common.Interfaces;

@{
	const int MAX_SCREENS = 8;

	int pickCount = 0;
}

@foreach (var pick in Model.Picks)
{
	<div class="col-sm-3">
		<h5 style="font-weight: bold;">@Model.ComparisonHeader</h5>
	</div>
	<div class="col-sm-4">
		<h5>Earnings: $@pick.TotalEarnings.ToString("N0")</h5>
	</div>
	<div class="col-sm-3">
		<h5>Cost (BUX): @pick.TotalCost</h5>
	</div>

	if (Model.ComparisonHeader == "Bonus ON")
	{
		<div class="col-sm-2">
			<a class="btn btn-info btn-xs"
			   @* Generate a unique ID so Twitter won't cache the image and share them to other tweets. *@
			   href="@string.Format("ShareBonusOnPicks?{0}&id={1}", Model.ShareQueryString, Guid.NewGuid())"
			   data-toggle="tooltip"
			   data-placement="bottom"
			   title="Click to share your @Model.ComparisonHeader picks...">
				Share &nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-share" aria-hidden="true"></span>
			</a>
		</div>
	}
	else
	{
		<div class="col-sm-2">
			<a class="btn btn-info btn-xs"
			   @* Generate a unique ID so Twitter won't cache the image and share them to other tweets. *@
			   href="@string.Format("ShareBonusOffPicks?{0}&id={1}", Model.ShareQueryString, Guid.NewGuid())"
			   data-toggle="tooltip"
			   data-placement="bottom"
			   title="Click to share your @Model.ComparisonHeader picks...">
				Share  &nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-share" aria-hidden="true"></span>
			</a>
		</div>
	}

	<div class="col-xs-12">
		<table>
			<tr>
				@{
					int movieCount = 0;
					var orderedMovies = pick.Movies.OrderByDescending(item => item.Cost).ToList();

					for (int movieIndex = 0; movieIndex < MAX_SCREENS; movieIndex++)
					{
						var backgroundStyle = "box-shadow: 2px 4px 8px 0px grey;";
						var imageUrl = "/Images/MooveePosterBlank.jpg";
						var movieEarnings = 0;
						var movieName = "This Screen Intentionally Left Blank";

						if (movieIndex < orderedMovies.Count)
						{
							var movie = orderedMovies[movieIndex];

							imageUrl = orderedMovies[movieIndex].ImageUrl;
							movieName = orderedMovies[movieIndex].Name;

							if (movie.IsBestPerformer)
							{
								backgroundStyle = "box-shadow: 2px 4px 8px 0px green;";
							}
						}

						@* This should override what's in the style (for now) *@

						<td style="padding: 3px;">
							<div data-toggle="tooltip" data-placement="bottom"
								 title="@string.Format("{0} - ${1:N0}", movieName, movieEarnings)">

								<img id="@string.Format("{0}{1}{2}", Model.Id, pickCount, movieCount)"
									 class="img-responsive"
									 src="@imageUrl"
									 alt="@movieName"<commit_msg>Fixed earnings on mini list 2.<commit_after>﻿@model MoviePicker.WebApp.Interfaces.IMovieListModel

@using MoviePicker.Common.Interfaces;

@{
	const int MAX_SCREENS = 8;

	int pickCount = 0;
}

@foreach (var pick in Model.Picks)
{
	<div class="col-sm-3">
		<h5 style="font-weight: bold;">@Model.ComparisonHeader</h5>
	</div>
	<div class="col-sm-4">
		<h5>Earnings: $@pick.TotalEarnings.ToString("N0")</h5>
	</div>
	<div class="col-sm-3">
		<h5>Cost (BUX): @pick.TotalCost</h5>
	</div>

	if (Model.ComparisonHeader == "Bonus ON")
	{
		<div class="col-sm-2">
			<a class="btn btn-info btn-xs"
			   @* Generate a unique ID so Twitter won't cache the image and share them to other tweets. *@
			   href="@string.Format("ShareBonusOnPicks?{0}&id={1}", Model.ShareQueryString, Guid.NewGuid())"
			   data-toggle="tooltip"
			   data-placement="bottom"
			   title="Click to share your @Model.ComparisonHeader picks...">
				Share &nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-share" aria-hidden="true"></span>
			</a>
		</div>
	}
	else
	{
		<div class="col-sm-2">
			<a class="btn btn-info btn-xs"
			   @* Generate a unique ID so Twitter won't cache the image and share them to other tweets. *@
			   href="@string.Format("ShareBonusOffPicks?{0}&id={1}", Model.ShareQueryString, Guid.NewGuid())"
			   data-toggle="tooltip"
			   data-placement="bottom"
			   title="Click to share your @Model.ComparisonHeader picks...">
				Share  &nbsp;&nbsp;&nbsp;<span class="glyphicon glyphicon-share" aria-hidden="true"></span>
			</a>
		</div>
	}

	<div class="col-xs-12">
		<table>
			<tr>
				@{
					int movieCount = 0;
					var orderedMovies = pick.Movies.OrderByDescending(item => item.Cost).ToList();

					for (int movieIndex = 0; movieIndex < MAX_SCREENS; movieIndex++)
					{
						var backgroundStyle = "box-shadow: 2px 4px 8px 0px grey;";
						var imageUrl = "/Images/MooveePosterBlank.jpg";
						var movieEarnings = -2000000m;
						var movieName = "This Screen Intentionally Left Blank";

						if (movieIndex < orderedMovies.Count)
						{
							var movie = orderedMovies[movieIndex];

							imageUrl = movie.ImageUrl;
							movieEarnings = movie.Earnings;
							movieName = movie.Name;

							if (movie.IsBestPerformer)
							{
								backgroundStyle = "box-shadow: 2px 4px 8px 0px green;";
							}
						}

						@* This should override what's in the style (for now) *@

						<td style="padding: 3px;">
							<div data-toggle="tooltip" data-placement="bottom"
								 title="@string.Format("{0} - ${1:N0}", movieName, movieEarnings)">

								<img id="@string.Format("{0}{1}{2}", Model.Id, pickCount, movieCount)"
									 class="img-responsive"
									 src="@imageUrl"
									 alt="@movieName"
{'fraction_non_alphanumeric': 0.15897341211225996, 'fraction_numerical': 0.015324963072378139, 'mean_word_length': 3.2155642023346305, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 63, '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': '8773', 'n_tokens_mistral': 2360, 'n_tokens_neox': 1811, 'n_words': 412}