<commit_before>﻿var firstRun = true;
var saveButtonPressed = false;

$(document).ready(function () {

    InitializePieCharts();
    
    ConnectToSignalRPerformanceHub();

    setTimeout(setupHandlebarsHelpers, 50);

    $(".portfolioPanelHeading").on("click", function () {
        var toggler = $(this).children("span");
        toggler.toggleClass("glyphicon-collapse-up");
    });

    $(".work-wrapper").hover(function () {
        $(this).find('.glyphicon').addClass('blueGlyphicon', 600);
    }, function () {
        $(this).find('.glyphicon').removeClass('blueGlyphicon', 600);
    });

    $(".masthead-nav").find('li').each(function () {
        $(this).click(function () {
            $('.masthead-nav li').removeClass('active');
            var divToShow = $(this).data('activediv');
            $(this).addClass('active');
            $(".inner.cover").hide();
            $(this).show();
            $(divToShow).fadeIn(500);
        });
    });

    $(".date").datetimepicker({
        format: "L",
        allowInputToggle: true,
        locale: moment.locale("en-ca")
    });

    InitializeMediaDashboardEventHandlers();

    tinymce.init({
        selector: '.tinymce',
        theme: 'modern'
    });

});

function InitializeMediaDashboardEventHandlers() {
    $('button[role="iconpicker"]').iconpicker().change(function () {
        $(this).attr("data-icon", $(this).children("input:first").val());
        $(this).closest(".mediaDashboardLink").find('.iconContainer').html("<span class='fa " + $(this).children("input:first").val() + "'></span>");
    });
    $(".mediaSortable").sortable({
        handle: ".move",
        stop: function (e, ui) {
            debugger;
            $('td.drag', ui.item).click();
            var orderCount = 1;
            $('.hiddenOrder').each(function() {
                $(this).val(orderCount);<commit_msg>removed debugger<commit_after>﻿var firstRun = true;
var saveButtonPressed = false;

$(document).ready(function () {

    InitializePieCharts();
    
    ConnectToSignalRPerformanceHub();

    setTimeout(setupHandlebarsHelpers, 50);

    $(".portfolioPanelHeading").on("click", function () {
        var toggler = $(this).children("span");
        toggler.toggleClass("glyphicon-collapse-up");
    });

    $(".work-wrapper").hover(function () {
        $(this).find('.glyphicon').addClass('blueGlyphicon', 600);
    }, function () {
        $(this).find('.glyphicon').removeClass('blueGlyphicon', 600);
    });

    $(".masthead-nav").find('li').each(function () {
        $(this).click(function () {
            $('.masthead-nav li').removeClass('active');
            var divToShow = $(this).data('activediv');
            $(this).addClass('active');
            $(".inner.cover").hide();
            $(this).show();
            $(divToShow).fadeIn(500);
        });
    });

    $(".date").datetimepicker({
        format: "L",
        allowInputToggle: true,
        locale: moment.locale("en-ca")
    });

    InitializeMediaDashboardEventHandlers();

    tinymce.init({
        selector: '.tinymce',
        theme: 'modern'
    });

});

function InitializeMediaDashboardEventHandlers() {
    $('button[role="iconpicker"]').iconpicker().change(function () {
        $(this).attr("data-icon", $(this).children("input:first").val());
        $(this).closest(".mediaDashboardLink").find('.iconContainer').html("<span class='fa " + $(this).children("input:first").val() + "'></span>");
    });
    $(".mediaSortable").sortable({
        handle: ".move",
        stop: function (e, ui) {
            $('td.drag', ui.item).click();
            var orderCount = 1;
            $('.hiddenOrder').each(function() {
                $(this).val(orderCount);
{'fraction_non_alphanumeric': 0.20923986032769273, 'fraction_numerical': 0.0064464141821112, 'mean_word_length': 2.7054726368159203, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '659618', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1086, 'n_words': 141}