<commit_before>$(document).ready(function(){
    $( "#contact" ).submit(function( event ) {
        event.preventDefault();
        var sName = "chinautla";
        $.post("php/getPosts.php",{
                keyWord:sName
            },
            function(data){
                var obj = JSON.parse(data);
                alert(obj.length);
                $("#contactResult").html(data);
            });

    });
});

function addPosts(data){
    var obj = JSON.parse(data);
    alert(obj.length);
    $("#contactResult").html(data);
    var template = '<div class="post">';
    template += '<iframe width="560" height="315" src="//www.youtube.com/embed/DfOAgO70jG8" frameborder="0" allowfullscreen></iframe>';
    template += '<p>Description</p><hr/>';
    template += '<p>Author</p>';
    template += '</div>';
}<commit_msg>UPDATED: New functions added to main.js<commit_after>$(document).ready(function(){
    $( "#contact" ).submit(function( event ) {
        event.preventDefault();
        var sName = "chinautla";
        $.post("php/getPosts.php",{
                keyWord:sName
            },
            function(data){
                var obj = JSON.parse(data);
                alert(obj.length);
                $("#contactResult").html(data);
            });

    });
});

function fillYouTubePost(title, URL){
    var template = '<div class="post">';
    template += '<iframe width="560" height="315" src="'+URL+'" frameborder="0" allowfullscreen></iframe>';
    template += '<p>'+title+'</p><hr/>';
    template += '</div>';
    return template;
}

function fillFacebookPost(title, URL){
    var template = '<div class="post">';

}
{'fraction_non_alphanumeric': 0.19309927360774817, 'fraction_numerical': 0.010290556900726392, 'mean_word_length': 2.429460580912863, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2422376', 'n_tokens_mistral': 504, 'n_tokens_neox': 481, 'n_words': 88}