<commit_before>﻿@using AirportSystem.Models
@using GridMvc.Html
@model List<Flight>

@{
    ViewBag.Title = "Home Page";
}

<div class="row">
    <div class="col-md-6">
        <h1>Schedule</h1>

        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">Arrivals</h3>
            </div>
            <div class="panel-body">                
                @Html.Grid(Model.Where(x => x.FlightType.Name == "Arrivals")).Columns(columns =>
                {
                    columns.Add(f => f.SheduledTime.TimeOfDay).Titled("Time").SetWidth(50);                    
                    columns.Add(f => f.DestinationAirport.Name).Titled("Destination").SetWidth(100);
                    columns.Add(f => f.Plane.Airlines.Name).Titled("Airline").SetWidth(100);
                    columns.Add(f => f.Plane.Manufacturers.Name).Titled("Plane").SetWidth(50);
                    columns.Add(f => f.Plane.Models.Name).Titled(" ").SetWidth(50);
                }).WithPaging(10)
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">Departures</h3>
            </div>
            <div class="panel-body">
                @Html.Grid(Model.Where(x => x.FlightType.Name == "Departures")).Columns(columns =>
                {
                    columns.Add(f => f.SheduledTime.TimeOfDay).Titled("Time").SetWidth(50);
                    columns.Add(f => f.DestinationAirport.Name).Titled("Destination").SetWidth(100);
                    columns.Add(f => f.Plane.Airlines.Name).Titled("Airline").SetWidth(100);
                    columns.Add(f => f.Plane.Manufacturers.Name).Titled("Plane").SetWidth(50);
                    columns.Add(f => f.Plane.Models.Name).Titled(" ").SetWidth(50);
                }).WithPaging(10)
            </div><commit_msg>view changes<commit_after>﻿@using AirportSystem.Models
@using GridMvc.Html
@model List<Flight>

@{
    ViewBag.Title = "Home Page";
}

<div class="row">
    <div class="col-md-8">
        <h1>Schedule</h1>

        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">Arrivals</h3>
            </div>
            <div class="panel-body">                
                @Html.Grid(Model.Where(x => x.FlightType.Name == "Arrivals")).Columns(columns =>
                {
                    columns.Add(f => f.SheduledTime.TimeOfDay).Titled("Time").SetWidth(20);                    
                    columns.Add(f => f.DestinationAirport.Name).Titled("Destination").SetWidth(200);
                    columns.Add(f => f.Plane.Airlines.Name).Titled("Airline").SetWidth(200);
                    columns.Add(f => f.Plane.Manufacturers.Name)
                        .RenderValueAs(f => f.Plane.Manufacturers.Name + " " + f.Plane.Models.Name)
                        .Titled("Plane").SetWidth(200);
                    columns.Add(f => f.ActualTime).RenderValueAs(f => f.ActualTime != null ? "Flying" : "Landed").Titled("Status").SetWidth(100);
                }).WithPaging(10).EmptyText("No flights for this day")
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">Departures</h3>
            </div>
            <div class="panel-body">
                @Html.Grid(Model.Where(x => x.FlightType.Name == "Departures")).Columns(columns =>
           {
               columns.Add(f => f.SheduledTime.TimeOfDay).Titled("Time").SetWidth(20);
               columns.Add(f => f.DestinationAirport.Name).Titled("Destination").SetWidth(200);
               columns.Add(f => f.Plane.Airlines.Name).Titled("Airline").SetWidth(200);
               columns.Add(f => f.Plane.Manufacturers.Name)
                        .RenderValueAs(f => f.Plane.Manufacturers.Name + " " + f.Plane.Models.Name)
                        .Titled("Plane").SetWidth(200);
               columns.Add(f => f.ActualTime).RenderValueAs(f => f.ActualTime != null ? "Departed" : "On Ground").Titled("Status").SetWidth(100);
           }).WithPaging(10).EmptyText("No flights for this day")
            </div>
{'fraction_non_alphanumeric': 0.1663133097762073, 'fraction_numerical': 0.017432273262661956, 'mean_word_length': 1.8689189189189188, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 75, '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': '3018068', 'n_tokens_mistral': 1349, 'n_tokens_neox': 1283, 'n_words': 157}