<commit_before>﻿// Copyright (c) <NAME>, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.

/// <reference path="../../../../../node_modules/@types/jquery/index.d.ts" />

namespace martinCostello.londonTravel {

    /**
     * Represents the class for managing accounts.
     */
    export class Manage {

        private confirmationTimeout: number;

        /**
         * Initializes a new instance of the martinCostello.londonTravel.Manage class.
         * @constructor
         */
        public constructor() {
            this.confirmationTimeout = 3000;
        }

        /**
         * Initializes the page.
         */
        public initialize(): void {
            $(".js-hidden-control")
                .fadeIn()
                .removeClass("hide");
            $(".js-modal-form").on("submit", this.onFormSubmit);
            $(".js-modal").on("show.bs.modal", this.onModalShown);
        }

        /**
         * Handles the form being submitted.
         * @param {Object} e - The event.
         */
        private onFormSubmit = (e: any): void => {
            var form: JQuery = $(e.target);
            form.find(".js-delete-control").addClass("disabled");
            form.find(".js-delete-content").addClass("hide");
            form.find(".js-delete-loader").removeClass("hide");
        }

        /**
         * Handles the modal being displayed.
         * @param {Object} e - The event.
         */
        private onModalShown = (e: any): void => {
            var modal = $(e.target);
            setTimeout(() => {
                modal.find(".js-modal-confirm")
                    .prop("disabled", false)
                    .removeClass("disabled");
            }, this.confirmationTimeout);
        }
    }
}
(function() {
    let manage = new martinCostello.londonTravel.Manage();
    manage.initialize();
})();
<commit_msg>Fix tshint warnings<commit_after>﻿// Copyright (c) <NAME>, 2017. All rights reserved.
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.

/// <reference path="../../../../../node_modules/@types/jquery/index.d.ts" />

namespace martinCostello.londonTravel {

    /**
     * Represents the class for managing accounts.
     */
    export class Manage {

        private confirmationTimeout: number;

        /**
         * Initializes a new instance of the martinCostello.londonTravel.Manage class.
         * @constructor
         */
        public constructor() {
            this.confirmationTimeout = 3000;
        }

        /**
         * Initializes the page.
         */
        public initialize(): void {
            $(".js-hidden-control")
                .fadeIn()
                .removeClass("hide");
            $(".js-modal-form").on("submit", this.onFormSubmit);
            $(".js-modal").on("show.bs.modal", this.onModalShown);
        }

        /**
         * Handles the form being submitted.
         * @param {Object} e - The event.
         */
        private onFormSubmit = (e: any): void => {
            let form: JQuery = $(e.target);
            form.find(".js-delete-control").addClass("disabled");
            form.find(".js-delete-content").addClass("hide");
            form.find(".js-delete-loader").removeClass("hide");
        }

        /**
         * Handles the modal being displayed.
         * @param {Object} e - The event.
         */
        private onModalShown = (e: any): void => {
            let modal: JQuery = $(e.target);
            setTimeout(() => {
                modal.find(".js-modal-confirm")
                    .prop("disabled", false)
                    .removeClass("disabled");
            }, this.confirmationTimeout);
        }
    }
}
(function(): any {
    let manage: martinCostello.londonTravel.Manage = new martinCostello.londonTravel.Manage();
    manage.initialize();
})();

{'fraction_non_alphanumeric': 0.1480453972257251, 'fraction_numerical': 0.005044136191677175, 'mean_word_length': 1.709016393442623, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '3023423', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1034, 'n_words': 245}