<commit_before>define(function(require) {
    'use strict';

    var EmailSyncView;
    var BaseView = require('oroui/js/app/views/base/view');
    var $ = require('jquery');
    var mediator = require('oroui/js/mediator');
    var messenger = require('oroui/js/messenger');

    EmailSyncView = BaseView.extend({
        optionNames: BaseView.prototype.optionNames.concat([
            'syncPath', 'processingMessage', 'errorHandlerMessage', 'actionProcessing', 'actionSync'
        ]),

        events: {
            'click [data-role="sync"]': 'onSync'
        },

        _showLoading: function() {

        },

        onSync: function(e) {
            e.preventDefault();

            var $button = $(e.currentTarget);
            if ($button.attr('disabled')) {
                return;
            }

            $.ajax({
                type: 'GET',
                dataType: 'json',
                url: this.syncPath,
                errorHandlerMessage: this.errorHandlerMessage,<commit_msg>BAP-15331: Component for script in userEmails.html.twig (EmailBundle) (#13194)<commit_after>define(function(require) {
    'use strict';

    var EmailSyncView;
    var BaseView = require('oroui/js/app/views/base/view');
    var $ = require('jquery');
    var mediator = require('oroui/js/mediator');
    var messenger = require('oroui/js/messenger');

    EmailSyncView = BaseView.extend({
        optionNames: BaseView.prototype.optionNames.concat([
            'syncPath', 'processingMessage', 'errorHandlerMessage', 'actionProcessing', 'actionSync'
        ]),

        events: {
            'click [data-role="sync"]': 'onSync'
        },

        onSync: function(e) {
            e.preventDefault();

            var $button = $(e.currentTarget);
            if ($button.attr('disabled')) {
                return;
            }

            $.ajax({
                type: 'GET',
                dataType: 'json',
                url: this.syncPath,
                errorHandlerMessage: this.errorHandlerMessage,
{'fraction_non_alphanumeric': 0.13706086095992084, 'fraction_numerical': 0.004948045522018802, 'mean_word_length': 2.022421524663677, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3525455', 'n_tokens_mistral': 585, 'n_tokens_neox': 546, 'n_words': 102}