<commit_before>$(document).ready(function(){
    /**************************************************************/ 
    /*nav-bar hover效果*/
    /**************************************************************/
    var nav_onMouseIn = function(){
        $(this).addClass("hover");
        $(this).children().css("color","#ffffff");
    };

    var nav_onMouseOut = function(){
        $(this).removeClass("hover");
        $(this).children().css("color","#000000");
    };

    $("li.nav-bar-item").hover(nav_onMouseIn, nav_onMouseOut);


    /**************************************************************/
    /*login页面滑动效果*/
    /**************************************************************/

    var login_circle_onMouseIn = function(e){      

        var mousePosX = e.pageX;
        var mousePosY = e.pageY;

        var circlePosX = 616;
        var circlePosY = -7; //获取对象位置，绝对坐标，防止圆离开最初位置

        var circleDiameter = parseInt($("#login-inside-circle").css("height").slice(0, -2)); //圆的直径
        var circleLeftBorder = parseInt($("#login-inside-circle").offset().left);
        var circleTopBorder = parseInt($("#login-inside-circle").offset().top); //圆的位置

        var timeAway = 100, timeBack = 650; //拨过去和回来的时间(ms)
        var distance = 15; //拨的幅度(px)

        $(this).stop(true, true);

        //确定鼠标位置，完成jQuery动画
        if(mousePosX < circleLeftBorder + 0.25*circleDiameter)
            $(this).animate({left: circlePosX+distance+"px"}, timeAway)
               .animate({left: circlePosX+"px", top: circlePosY+"px"}, timeBack);
        else if(mousePosX > circleLeftBorder + 0.75*circleDiameter)
            $(this).animate({left: circlePosX-distance+"px"}, timeAway)
               .animate({left: circlePosX+"px", top: circlePosY+"px"}, timeBack);
        else if(mousePosY < circleTopBorder + 0.25*circleDiameter)
            $(this).animate({top: circlePosY+distance+"px"}, timeAway)
               .animate({top: circlePosY+"px", left: circlePosX+"px"}, timeBack);
        else if(mousePosY > circleTopBorder + 0.75*circleDiameter)
            $(this).animate({top: circlePosY-distance+"px"}, timeAway)
               .animate({top: circlePosY+"px", left: circlePosX+"px"}, timeBack);

    };

    var login_circle_onMouseOut = function(){
        
    }

    //$("#login-inside-circle").hover(login_circle_onMouseIn, login_circle_onMouseOut);


    /**************************************************************/
    /*登陆label/input提示*/
    /**************************************************************/
    $("#login-userinfo #email").attr({"placeholder": "输入邮箱"});
    $("#login-userinfo #password").attr({"placeholder": "输入密码"});
    $("#login-userinfo #confirm").attr({"placeholder": "确认密码"});

    //$(".login-userinfo #email").prev().children().first().text("注册邮箱");
    //$(".login-userinfo #password").prev().children().first().text("密码");
    //$(".login-userinfo #confirm").prev().children().first().text("确认密码");
});<commit_msg>login animate<commit_after>$(document).ready(function(){
    /**************************************************************/ 
    /*nav-bar hover效果*/
    /**************************************************************/
    var nav_onMouseIn = function(){
        $(this).addClass("hover");
        $(this).children().css("color","#ffffff");
    };

    var nav_onMouseOut = function(){
        $(this).removeClass("hover");
        $(this).children().css("color","#000000");
    };

    $("li.nav-bar-item").hover(nav_onMouseIn, nav_onMouseOut);


    /**************************************************************/
    /*login页面滑动效果*/
    /**************************************************************/

    var login_circle_onMouseIn = function(e){      

        console.log("hello");
        var mousePosX = e.pageX;
        var mousePosY = e.pageY;

        var circlePosX = 616;
        var circlePosY = -7; //获取对象位置，绝对坐标，防止圆离开最初位置

        var circleDiameter = parseInt($("#login-inside-circle").css("height").slice(0, -2)); //圆的直径
        var circleLeftBorder = parseInt($("#login-inside-circle").offset().left);
        var circleTopBorder = parseInt($("#login-inside-circle").offset().top); //圆的位置

        console.log(circleDiameter);
        console.log(circleTopBorder);
        console.log(circleLeftBorder);
        var timeAway = 100, timeBack = 650; //拨过去和回来的时间(ms)
        var distance = 15; //拨的幅度(px)

        $(this).stop(true, true);

        //确定鼠标位置，完成jQuery动画
        if(mousePosX < circleLeftBorder + 0.25*circleDiameter)
            $(this).animate({marginRight: "-"+distance+"px"}, timeAway)
               .animate({marginRight: "0px"}, timeBack);
        else if(mousePosX > circleLeftBorder + 0.75*circleDiameter)
            $(this).animate({marginRight: distance+"px"}, timeAway)
               .animate({marginRight: "0px"}, timeBack);
        else if(mousePosY < circleTopBorder + 0.25*circleDiameter)
            $(this).animate({marginTop: distance+"px"}, timeAway)
               .animate({marginTop: "0px"}, timeBack);
        else if(mousePosY > circleTopBorder + 0.75*circleDiameter)
            $(this).animate({marginTop: "-"+distance+"px"}, timeAway)
               .animate({marginTop: "0px"}, timeBack);

    };

    var login_circle_onMouseOut = function(){
        
    }

    $("#login-inside-circle").hover(login_circle_onMouseIn, login_circle_onMouseOut);


    /**************************************************************/
    /*登陆label/input提示*/
    /**************************************************************/
    $("#login-userinfo #email").attr({"placeholder": "输入邮箱"});
    $("#login-userinfo #password").attr({"placeholder": "输入密码"});
    $("#login-userinfo #confirm").attr({"placeholder": "确认密码"});

    //$(".login-userinfo #email").prev().children().first().text("注册邮箱");
    //$(".login-userinfo #password").prev().children().first().text("密码");
    //$(".login-userinfo #confirm").prev().children().first().text("确认密码");
});
{'fraction_non_alphanumeric': 0.29668119342943344, 'fraction_numerical': 0.011397921555481059, 'mean_word_length': 3.42, 'pattern_counts': {'":': 6, '<': 7, '<?xml version=': 0, '>': 7, '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': '483019', 'n_tokens_mistral': 1871, 'n_tokens_neox': 1816, 'n_words': 247}