<commit_before>// Type definitions for SweetAlert 1.3.0

declare var sweetAlert: SweetAlert2.SweetAlertStatic;
declare var swal: SweetAlert2.SweetAlertStatic;

declare module "sweetalert2" {
    export = swal;
}

declare module SweetAlert2 {
    interface SweetAlertOptions {

        /**
         * The title of the modal. It can either be added to the object under the key "title" or passed as the first parameter of the function.
         * Default: null
         */
        title?: string;
        /**
         * A description for the modal.
         * Default: null
         */
        text?: string;

        /**
         * A HTML description for the modal. If "text" and "html" parameters are provided in the same time, "text" will be used.
         * Default: null
         */
        html?: string;

        /**
         * The type of the modal. SweetAlert2 comes with 5 built-in types which will show a corresponding icon animation: warning, error, success, info and question. It can either be put in the array under the key type or passed as the third parameter of the function.
         * Default: null
         */
        type?: 'warning' | 'error' | 'success' | 'info' | 'question';

        /**
         * A custom CSS class for the modal.
         * Default: null
         */
        customClass?: string;

        /**
         * If set to false, modal CSS animation will be disabled.
         * Default: true
         */
        animation?: boolean;

        /**
         * If set to false, the user can't dismiss the modal by clicking outside it.
         * Default: true
         */
        allowOutsideClick?:boolean;

        /**
         * If set to false, the user can't dismiss the modal by pressing the Escape key.
         * Default: true
         */
        allowEscapeKey?:boolean;

        /**
         * If set to false, a "Confirm"-button will not be shown. It can be useful when you're using html parameter for custom HTML description.
         * Default: true
         */
        showConfirmButton?:boolean;

        /**
         * If set to true, a "Cancel"-button will be shown, which the user can click on to dismiss the modal.
         * Default: false
         */
        showCancelButton?:boolean;

        /**
         * Use this to change the text on the "Confirm"-button.
         * Default: "OK"
         */
        confirmButtonText?:string;

        /**
         * Use this to change the text on the "Cancel"-button.
         * Default: "Cancel"
         */
        cancelButtonText?:string;

        /**
         * Use this to change the background color of the "Confirm"-button (must be a HEX value).
         * Default: "#3085d6"
         */
        confirmButtonColor?:string;

        /**
         * Use this to change the background color of the "Cancel"-button (must be a HEX value).
         * Default: "#aaa"
         */
        cancelButtonColor?: string;

        /**
         * A custom CSS class for the "Confirm"-button.
         * Default: null<commit_msg>Updated typings.<commit_after>

// Generated by typings
// Source: https://raw.githubusercontent.com/StefanKoenen/typed-sweetalert2/3d140f40e37ec6af2c2c7ae0c28d9b68ff760e75/global/index.d.ts
declare var sweetAlert: SweetAlert2.SweetAlertStatic;
declare var swal: SweetAlert2.SweetAlertStatic;

declare module "sweetalert2" {
    export = swal;
}

declare module SweetAlert2 {
    interface SweetAlertOptions {

        /**
         * The title of the modal. It can either be added to the object under the key "title" or passed as the first parameter of the function.
         * Default: null
         */
        title?: string;
        /**
         * A description for the modal.
         * Default: null
         */
        text?: string;

        /**
         * A HTML description for the modal. If "text" and "html" parameters are provided in the same time, "text" will be used.
         * Default: null
         */
        html?: string;

        /**
         * The type of the modal. SweetAlert2 comes with 5 built-in types which will show a corresponding icon animation: warning, error, success, info and question. It can either be put in the array under the key type or passed as the third parameter of the function.
         * Default: null
         */
        type?: 'warning' | 'error' | 'success' | 'info' | 'question';

		/**
         * A custom CSS class for the modal.
         * Default: null
         */
        customClass?: string;

		/**
         * Defines the type of input to show on the sweetalert
         * Default: null
         */
        input?: string;

		/**
		 * If set to true, loader icon will display on confirmation
		 * Default: false
		 */
		showLoaderOnConfirm?: boolean;

		/**
		 * Function which is executed before confirmation
		 * Default: null
		 */
		preConfirm?: Function;

        /**
         * If set to false, modal CSS animation will be disabled.
         * Default: true
         */
        animation?: boolean;

        /**
         * If set to false, the user can't dismiss the modal by clicking outside it.
         * Default: true
         */
        allowOutsideClick?: boolean;

        /**
         * If set to false, the user can't dismiss the modal by pressing the Escape key.
         * Default: true
         */
        allowEscapeKey?: boolean;

        /**
         * If set to false, a "Confirm"-button will not be shown. It can be useful when you're using html parameter for custom HTML description.
         * Default: true
         */
        showConfirmButton?: boolean;

        /**
         * If set to true, a "Cancel"-button will be shown, which the user can click on to dismiss the modal.
         * Default: false
         */
        showCancelButton?: boolean;

        /**
         * Use this to change the text on the "Confirm"-button.
         * Default: "OK"
         */
        confirmButtonText?: string;

        /**
         * Use this to change the text on the "Cancel"-button.
         * Default: "Cancel"
         */
        cancelButtonText?: string;

        /**
         * Use this to change the background color of the "Confirm"-button (must be a HEX value).
         * Default: "#3085d6"
         */
        confirmButtonColor?: string;

        /**
         * Use this to change the background color of the "Cancel"-button (must be a HEX value).
         * Default: "#aaa"
         */
        cancelButtonColor?: string;

        /**
         * A custom CSS class for the "Confirm"-button.
         * Default: null
{'fraction_non_alphanumeric': 0.09121569829832898, 'fraction_numerical': 0.0075118810363329755, 'mean_word_length': 1.7832764505119454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '5271816', 'n_tokens_mistral': 1747, 'n_tokens_neox': 1640, 'n_words': 683}