<commit_before>﻿@using LeagueLeak.Web.Areas.Administration.ViewModels.Articles
@{
    ViewBag.Title = "Article";
    const string ControllerName = "Article";
}

<h2>@ViewBag.Title</h2>

@(Html.Kendo()
    .Grid<ArticleViewModel>()
    .Name("Grid")
    .Columns(cols =>
    {
        cols.Bound(pr => pr.Title);
        cols.Bound(pr => pr.Content);
        cols.Bound(pr => pr.DateCreated);
        cols.Bound(pr => pr.ModifiedOn).Hidden();
        cols.Command(com => com.Edit()).Title("Edit");
        cols.Command(com => com.Destroy()).Title("Delete");
    })
    .Pageable(p => p.Refresh(true))
    .ColumnMenu()
    .Sortable()
    .Filterable()
    .Editable(e =>
    {
        e.Mode(GridEditMode.PopUp).Window(w => w.Width(700));
        e.ConfirmDelete("Are you sure you want to delete this item?");
    })
    .ToolBar(t =>
    {
        t.Create();
    })
    .DataSource(data =>
        data
        .Ajax()
        .Model(m => m.Id(c => c.Id))
        .Read(read => read.Action("Read", ControllerName))
        .Create(create => create.Action("Create", ControllerName))
        .Update(update => update.Action("Update", ControllerName))
        .Destroy(destroy => destroy.Action("Destroy", ControllerName)))
)<commit_msg>minor fix on article view model<commit_after>﻿@using LeagueLeak.Web.Areas.Administration.ViewModels.Articles
@{
    ViewBag.Title = "Article";
    const string ControllerName = "Article";
}

<h2>@ViewBag.Title</h2>

@(Html.Kendo()
    .Grid<ArticleViewModel>()
    .Name("Grid")
    .Columns(cols =>
    {
        cols.Bound(pr => pr.Title);
        cols.Bound(pr => pr.Content);
        cols.Bound(pr => pr.DateCreated);
        cols.Bound(pr => pr.ModifiedOn).Hidden();
        cols.Command(com => com.Edit()).Title("Edit");
        cols.Command(com => com.Destroy()).Title("Delete");
    })
    .Pageable(p => p.Refresh(true))
    .ColumnMenu()
    .Sortable()
    .Filterable()
    .Editable(e =>
    {
        e.Mode(GridEditMode.PopUp).Window(w => w.Resizable());
        e.ConfirmDelete("Are you sure you want to delete this item?");
    })
    .ToolBar(t =>
    {
        t.Create();
    })
    .DataSource(data =>
        data
        .Ajax()
        .Model(m => m.Id(c => c.Id))
        .Read(read => read.Action("Read", ControllerName))
        .Create(create => create.Action("Create", ControllerName))
        .Update(update => update.Action("Update", ControllerName))
        .Destroy(destroy => destroy.Action("Destroy", ControllerName)))
)
{'fraction_non_alphanumeric': 0.18386190285026094, 'fraction_numerical': 0.0028101164191087916, 'mean_word_length': 2.5804597701149423, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 45, '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': '681924', 'n_tokens_mistral': 816, 'n_tokens_neox': 791, 'n_words': 129}