<commit_before>$.extend({
    indexView: new function() {
        var self = this;
        var smController = new ScrollMagic.Controller();
        var appBaseUrl = "http://dev.synchronit.com/appbase-webconsole/json";

        self.initialize = function() {
            attachBehavior();
        };


        var attachBehavior = function() {
            $('#contact-btn').bind('click', function() {
                if (checkFields() == false) {
                    self.showMessage('You must fill the required fields');
                    return;
                }
                $.ajax({
                    type: 'POST',
                    url: 'contact.php',
                    cache: false,
                    data: $('form#contact-form').serialize(),
                    dataType: 'json',
                    success: function(result) {
                        cleanFields();
                        $('#answer-token').val(result.token);
                        $('#answer').attr('placeholder', result.question);

                        if (result.success == true) {
                            self.showMessage('You message has been send');
                        } else {
                            self.showMessage('Some problem sending your message');
                        }
                    }
                });
            });

            self.getCaptcha();

            self.getTeamMembers();

        }

        var cleanFields = function() {
            $('input[name="from"').val('');
            $('input[name="message"').val('');
            $('#answer').val('');
        }

        var checkFields = function() {
            if ($('input[name="from"').val() == null || $('input[name="message"').val() | $('#answer').val())
                return false;
            return true;
        }


        self.getCaptcha = function() {
            $.ajax({
                type: 'GET',
                url: 'contact.php?get_capcha=true',
                cache: false,
                //data: $('#contact-form').serialize(),
                dataType: 'json',
                success: function(result) {
                    $('#answer-token').val(result.token);
                    $('#answer').attr('placeholder', result.question);
                }
            });
        };

        self.getTeamMembers = function() {
            $.ajax({
                type: 'GET',
                url: appBaseUrl,
                cache: false,
                data: {
                    command: ' GET PEOPLE with  isActive = true'
                },
                dataType: 'json',
                success: function(result) {
                    var headers = result.resultSet.headers;
                    var rows = result.resultSet.rows.sort(function(itemA, itemB) {
                        var nameA = itemA[0] + ' ' + itemA[1];
                        var nameB = itemB[0] + ' ' + itemB[1];<commit_msg>team desde el appbase<commit_after>$.extend({
    indexView: new function() {
        var self = this;
        var smController = new ScrollMagic.Controller();
        var appBaseUrl = "http://dev.synchronit.com/appbase-webconsole/json";

        self.initialize = function() {
            attachBehavior();
        };


        var attachBehavior = function() {
            $('#contact-btn').bind('click', function() {
                if (checkFields() == false) {
                    self.showMessage('You must fill the required fields');
                    return;
                }
                $.ajax({
                    type: 'POST',
                    url: 'contact.php',
                    cache: false,
                    data: $('form#contact-form').serialize(),
                    dataType: 'json',
                    success: function(result) {
                        cleanFields();
                        $('#answer-token').val(result.token);
                        $('#answer').attr('placeholder', result.question);

                        if (result.success == true) {
                            self.showMessage('You message has been send');
                        } else {
                            self.showMessage('Some problem sending your message');
                        }
                    }
                });
            });

            self.getCaptcha();

            self.getTeamMembers();

        }

        var cleanFields = function() {
            $('input[name="from"').val('');
            $('input[name="message"').val('');
            $('#answer').val('');
        }

        var checkFields = function() {
            if ($('input[name="from"').val() == null || $('input[name="message"').val() | $('#answer').val())
                return false;
            return true;
        }


        self.getCaptcha = function() {
            $.ajax({
                type: 'GET',
                url: 'contact.php?get_capcha=true',
                cache: false,
                //data: $('#contact-form').serialize(),
                dataType: 'json',
                success: function(result) {
                    $('#answer-token').val(result.token);
                    $('#answer').attr('placeholder', result.question);
                }
            });
        };

        self.getTeamMembers = function() {
            $.ajax({
                type: 'GET',
                url: appBaseUrl,
                cache: false,
                data: {
                    command: ' GET PEOPLE with  isActive = true'
                },
                dataType: 'json',
                success: function(result) {

                    $('#loader').hide();

                    var headers = result.resultSet.headers;
                    var rows = result.resultSet.rows.sort(function(itemA, itemB) {
                        var nameA = itemA[0] + ' ' + itemA[1];
                        var nameB = itemB[0] + ' ' + itemB[1];
{'fraction_non_alphanumeric': 0.14089754445385266, 'fraction_numerical': 0.001354784081287045, 'mean_word_length': 1.146075581395349, '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': '2424636', 'n_tokens_mistral': 1459, 'n_tokens_neox': 1350, 'n_words': 275}