<commit_before>﻿@using Newtonsoft.Json
@using StockSim.Models.Game
@model ViewGamesViewModel

@{ 
   ViewData["Title"] = "View Games";
}

<h2>@ViewData["Title"]</h2>

<h3>Public Games</h3>
<div class="list-group">
   @foreach (var publicGame in Model.PublicGames)
   {
      <a href="@Url.Action("ViewGame")?gid=@publicGame.Gid" class="list-group-item">
         <span class="badge">@publicGame.PlayerCount</span>
         @publicGame.Title
      </a>
   }
</div>

<br />
<br />

<h3>Your Games</h3>
<div class="list-group">
   @foreach (var userGame in Model.UserGames)
   {
      <a href="@Url.Action("ViewGame")?gid=@userGame.Gid" class="list-group-item">
         <span class="badge">@userGame.PlayerCount</span>
         @userGame.Title
      </a>
   }
</div>

<br/>
<br/><commit_msg>Notifying user if no games are available<commit_after>﻿@using Newtonsoft.Json
@using StockSim.Models.Game
@model ViewGamesViewModel

@{ 
   ViewData["Title"] = "View Games";
}

<h2>@ViewData["Title"]</h2>

<h3>Public Games</h3>
<div class="list-group">
   @if (!Model.PublicGames.Any())
   {
      <span class="list-group-item">No games available!</span>
   }
   @foreach (var publicGame in Model.PublicGames)
   {
      <a href="@Url.Action("ViewGame")?gid=@publicGame.Gid" class="list-group-item">
         <span class="badge">@publicGame.PlayerCount</span>
         @publicGame.Title
      </a>
   }
</div>

<br />
<br />

<h3>Your Games</h3>
<div class="list-group">
   @if (!Model.UserGames.Any())
   {
      <span class="list-group-item">No games available!</span>
   }
   @foreach (var userGame in Model.UserGames)
   {
      <a href="@Url.Action("ViewGame")?gid=@userGame.Gid" class="list-group-item">
         <span class="badge">@userGame.PlayerCount</span>
         @userGame.Title
      </a>
   }
</div>

<br/>
<br/>
{'fraction_non_alphanumeric': 0.1915244909190974, 'fraction_numerical': 0.006604292790313704, 'mean_word_length': 3.3807228915662653, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '5312194', 'n_tokens_mistral': 686, 'n_tokens_neox': 675, 'n_words': 113}