<commit_before>/**
 * Created by wudi on 15/5/27.
 */
require.config({
    waitSeconds: 30,
    paths: {
        jquery: '/wxms/lib/jqueryui/external/jquery/jquery',
        jqui: '/wxms/lib/jqueryui/jquery-ui'
    },
    shim: {
        'jqui': {
            deps: ['jquery']
        }
    }
});
require(['jquery', 'jqui'], function ($) {
     var islogin = $('#islogin').val(),username = $('#username').val(),
         login=$('#login'),createrpage =$('.createrpage'),$loginout = $('#logout');;
        if(islogin=="false"){
            $loginout.hide();
        }else{
            $loginout.show();
        }
        login.on('click', function (e) {
            e.preventDefault();
            if(islogin=="false"){
                window.location.href = '/wxms/login';
            }
        })
        if(username!=""){
            window.localStorage.setItem('username',username)
        }
    $.each(createrpage, function (index,page) {
        $(page).on('click', function (e) {
            e.preventDefault();
            if(islogin=="false"){
                window.location.href = '/wxms/login';
            }else{
                window.location.href = '/wxms/list';
            }
        })
    })

    $loginout.on('click', function () {
        $.ajax({
            method: "get",
            url: "/wxms/logout"
        }).done(function (msg) {
            if(msg.success){
                window.location.href = '/wxms/index';
                window.localStorage.setItem('username',"");
            }
        }).fail(function (msg) {

        });
    })

    $(window).on('scroll', function () {
        var body_scoll = $(window).scrollTop();
        var body_scoll_height = document.body.scrollHeight;
        var percentage = body_scoll / body_scoll_height;
        console.log(percentage);
        if(percentage > 0.1){
            $(".footer_left").addClass('zoomInLeft') ;
            $(".footer_right").addClass('zoomInRight') ;
        }else{
            $(".footer_left").removeClass('zoomInLeft') ;
            $(".footer_right").removeClass('zoomInRight') ;
        }
    }) ;

    $(".header_title_logo").hover(function () {
        $(this).addClass("bounce");
    }, function () {
        $(this).removeClass("bounce");
    });
    $(".footer_right_btn").hover(function () {
        $(this).addClass("rubberBand");
    }, function () {
        $(this).removeClass("rubberBand");
    });







});<commit_msg>passport<commit_after>/**
 * Created by wudi on 15/5/27.
 */
require.config({
    waitSeconds: 30,
    paths: {
        jquery: 'http://apps.bdimg.com/libs/jquery/1.1.0/jquery.min',
        jqui: '/wxms/lib/jqueryui/jquery-ui.min'
    },
    shim: {
        'jqui': {
            deps: ['jquery']
        }
    }
});
require(['jquery', 'jqui'], function ($) {
     var islogin = $('#islogin').val(),username = $('#username').val(),
         login=$('#login'),createrpage =$('.createrpage'),$loginout = $('#logout');;
        if(islogin=="false"){
            $loginout.hide();
        }else{
            $loginout.show();
        }
        login.on('click', function (e) {
            e.preventDefault();
            if(islogin=="false"){
                window.location.href = '/wxms/login';
            }
        })
        if(username!=""){
            window.localStorage.setItem('username',username)
        }
    $.each(createrpage, function (index,page) {
        $(page).on('click', function (e) {
            e.preventDefault();
            if(islogin=="false"){
                window.location.href = '/wxms/login';
            }else{
                window.location.href = '/wxms/list';
            }
        })
    })

    $loginout.on('click', function () {
        $.ajax({
            method: "get",
            url: "/wxms/logout"
        }).done(function (msg) {
            if(msg.success){
                window.location.href = '/wxms/index';
                window.localStorage.setItem('username',"");
            }
        }).fail(function (msg) {

        });
    })

    $(window).on('scroll', function () {
        var body_scoll = $(window).scrollTop();
        var body_scoll_height = document.body.scrollHeight;
        var percentage = body_scoll / body_scoll_height;
        console.log(percentage);
        if(percentage > 0.1){
            $(".footer_left").addClass('zoomInLeft') ;
            $(".footer_right").addClass('zoomInRight') ;
        }else{
            $(".footer_left").removeClass('zoomInLeft') ;
            $(".footer_right").removeClass('zoomInRight') ;
        }
    }) ;

    $(".header_title_logo").hover(function () {
        $(this).addClass("bounce");
    }, function () {
        $(this).removeClass("bounce");
    });
    $(".footer_right_btn").hover(function () {
        $(this).addClass("rubberBand");
    }, function () {
        $(this).removeClass("rubberBand");
    });







});
{'fraction_non_alphanumeric': 0.19144144144144143, 'fraction_numerical': 0.0042997542997543, 'mean_word_length': 1.8220681686886193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1272892', 'n_tokens_mistral': 1492, 'n_tokens_neox': 1445, 'n_words': 194}