<commit_before>$(function() {

    $("#contactForm input,#contactForm textarea").jqBootstrapValidation({
        preventSubmit: true,
        submitError: function($form, event, errors) {
            // additional error messages or events
        },
        submitSuccess: function($form, event) {
            event.preventDefault(); // prevent default submit behaviour
            // get values from FORM
            var subject = $("input#subject").val();
            var from = $("input#from").val();
			var to = $("input#to").val();
            var phone = $("input#phone").val();
            var text = $("textarea#message").val();

            $.ajax({
                url: "https://api.mailgun.net/v3/email.dendev.com.br/messages",
                type: "POST",
                data: {
                    subject: subject,
					to: to,                    
                    from: from,
                    text: text
                },
			    headers : {
                'content-type': 'application/x-www-form-urlencoded',
                'Authorization': 'Basic ' + window.btoa('api:key-0b6d1e7915f49980434aa50e15b75e3b')
                },
                cache: false,
                success: function() {
                    // Success message
                    $('#success').html("<div class='alert alert-success'>");
                    $('#success > .alert-success').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;")
                        .append("</button>");
                    $('#success > .alert-success')<commit_msg>formulario de email<commit_after>$(function() {

    $("#contactForm input,#contactForm textarea").jqBootstrapValidation({
        preventSubmit: true,
        submitError: function($form, event, errors) {
            // additional error messages or events
        },
        submitSuccess: function($form, event) {
            event.preventDefault(); // prevent default submit behaviour
            // get values from FORM
            var subject = $("input#subject").val();
            var from = $("input#from").val();
			var to = $("input#to").val();
            var phone = $("input#phone").val();
            var text = $("textarea#message").val();

            $.ajax({
                url: "https://api.mailgun.net/v3/email.dendev.com.br/messages",
                type: "POST",
                data: {
                    subject: subject,
					to: to,                    
                    from: from,
                    text: text
                },
			    headers : {
				'Access-Control-Allow-Headers': 'Authorization',
                'content-type': 'application/x-www-form-urlencoded',
                'Authorization': 'Basic ' + window.btoa('api:key-0b6d1e7915f49980434aa50e15b75e3b')
                },
                cache: false,
                success: function() {
                    // Success message
                    $('#success').html("<div class='alert alert-success'>");
                    $('#success > .alert-success').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;")
                        .append("</button>");
                    $('#success > .alert-success')
{'fraction_non_alphanumeric': 0.15054095826893354, 'fraction_numerical': 0.014219474497681607, 'mean_word_length': 1.5723370429252783, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '181648', 'n_tokens_mistral': 884, 'n_tokens_neox': 807, 'n_words': 163}