<commit_before><link rel="import" href="/resources/polymer/polymer/polymer.html">

<link rel="import" href="/resources/polymer/paper-button/paper-button.html">
<link rel="import" href="/resources/polymer/paper-dialog/paper-dialog.html">

<style is="custom-style">
    .confirm-dialog paper-button {
        color: var(--paper-light-blue-500);
        --paper-button-flat-focus-color: var(--paper-light-blue-50);
    }
    .confirm-dialog paper-button:hover {
        background: var(--paper-light-blue-50);
    }
</style>

<dom-module id="tg-confirmation-dialog">
    <script>
        (function () {
            var dialogModel = document.createElement('template', 'dom-bind');
            dialogModel.innerHTML = '<paper-dialog id="confirmDialog" class="confirm-dialog layout vertical" modal entry-animation="scale-up-animation" exit-animation="fade-out-animation" on-iron-overlay-canceled="dialogCanceled" on-iron-overlay-opened="dialogOpened" on-iron-overlay-closed="dialogClosed">' +
                '<div style="padding: 20px;" inner-h-t-m-l="[[message]]"></div>' +
                '<div class="buttons">' +
                '<template is="dom-repeat" items="[[buttons]]">' +
                '<paper-button dialog-confirm$="[[item.confirm]]" dialog-dismiss$="[[!item.confirm]]" autofocus$="[[item.autofocus]]" on-tap="_action">[[item.name]]</paper-button>' +
                '</template>' +
                '</div>' +
                '</paper-dialog>';

            dialogModel.showDialog = function () {<commit_msg>#462 Enhanced confirmation dialog so that it always on top of others dialogs.<commit_after><link rel="import" href="/resources/polymer/polymer/polymer.html">

<link rel="import" href="/resources/polymer/paper-button/paper-button.html">
<link rel="import" href="/resources/polymer/paper-dialog/paper-dialog.html">

<style is="custom-style">
    .confirm-dialog paper-button {
        color: var(--paper-light-blue-500);
        --paper-button-flat-focus-color: var(--paper-light-blue-50);
    }
    .confirm-dialog paper-button:hover {
        background: var(--paper-light-blue-50);
    }
</style>

<dom-module id="tg-confirmation-dialog">
    <script>
        (function () {
            var dialogModel = document.createElement('template', 'dom-bind');
            dialogModel.innerHTML = '<paper-dialog id="confirmDialog" class="confirm-dialog layout vertical" modal always-on-top entry-animation="scale-up-animation" exit-animation="fade-out-animation" on-iron-overlay-canceled="dialogCanceled" on-iron-overlay-opened="dialogOpened" on-iron-overlay-closed="dialogClosed">' +
                '<div style="padding: 20px;" inner-h-t-m-l="[[message]]"></div>' +
                '<div class="buttons">' +
                '<template is="dom-repeat" items="[[buttons]]">' +
                '<paper-button dialog-confirm$="[[item.confirm]]" dialog-dismiss$="[[!item.confirm]]" autofocus$="[[item.autofocus]]" on-tap="_action">[[item.name]]</paper-button>' +
                '</template>' +
                '</div>' +
                '</paper-dialog>';

            dialogModel.showDialog = function () {
{'fraction_non_alphanumeric': 0.18729955099422707, 'fraction_numerical': 0.006735086593970494, 'mean_word_length': 3.077124183006536, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '3321488', 'n_tokens_mistral': 950, 'n_tokens_neox': 916, 'n_words': 135}