<commit_before>(function ($) {
    $("body").css("position","relative");
    $.fn.extend({
        
        right: function (){
            $(this).each(function(){
                var selector = $(this);
                var options = {
                    valueDirection: '-100%'
                };
                filterTag(selector, options);
                //for outside variable
                //var filter = test();
                //alert(filter);
                
                
            });
        },
        
        left: function (){
            $(this).each(function(){
                var selector = $(this);
                var options = {
                    valueDirection: '100%'
                };
                filterTag(selector, options);
            });
        }
    });
})(jQuery);
/*
debe captar el seletor y el nombre del efecto para poder ejecutar el transition
*/
//function test(){
//    variable = "outside variable";
//    return variable;
//}
function filterTag(selector, options){
    var nameSelector = selector[0]['tagName'];
    if(nameSelector === 'A'){
        var value = options.valueDirection;
        $("body").removeAttr("class");
        var href = selector.attr('href');
        event.preventDefault();
        $("body").animate(
            { left : value},
            {
                easeing: 'easeInOutBounce',
                duration: 500, 
                complete: function(){
                }
            }
        );
        setTimeout(function(){ window.location.href = href; }, 500);
        
    } else {
        var value = options.valueDirection;
        
        $("body").removeAttr("class");
        var href = selector.attr('data-link');
        $("body").animate(
            { left : value},
            {
                easeing: 'easeInOutBounce',
                duration: 500, 
                complete: function(){
                }
            }<commit_msg>se agrego una linea para setear el css correcto en tag body y asi mostrar el efecto<commit_after>(function ($) {
    $.fn.extend({
        
        right: function (){
            $(this).each(function(){
                var selector = $(this);
                var options = {
                    valueDirection: '-100%'
                };
                filterTag(selector, options);
                //for outside variable
                //var filter = test();
                //alert(filter);
                
                
            });
        },
        
        left: function (){
            $(this).each(function(){
                var selector = $(this);
                var options = {
                    valueDirection: '100%'
                };
                filterTag(selector, options);
            });
        }
    });
})(jQuery);
/*
debe captar el seletor y el nombre del efecto para poder ejecutar el transition
*/
//function test(){
//    variable = "outside variable";
//    return variable;
//}
function filterTag(selector, options){
    $("body").css({"position":"relative", "overflow": "hidden"});
    var nameSelector = selector[0]['tagName'];
    if(nameSelector === 'A'){
        var value = options.valueDirection;
        $("body").removeAttr("class");
        var href = selector.attr('href');
        event.preventDefault();
        $("body").animate(
            { left : value},
            {
                easeing: 'easeInOutBounce',
                duration: 500, 
                complete: function(){
                }
            }
        );
        setTimeout(function(){ window.location.href = href; }, 500);
        
    } else {
        var value = options.valueDirection;
        
        $("body").removeAttr("class");
        var href = selector.attr('data-link');
        $("body").animate(
            { left : value},
            {
                easeing: 'easeInOutBounce',
                duration: 500, 
                complete: function(){
                }
            }
{'fraction_non_alphanumeric': 0.13668341708542714, 'fraction_numerical': 0.008040201005025126, 'mean_word_length': 1.2735579668760708, 'pattern_counts': {'":': 2, '<': 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': '703425', 'n_tokens_mistral': 1037, 'n_tokens_neox': 964, 'n_words': 222}