<commit_before>window.app = {
    isMobile : false,
    chooseDevice : function()
    {
        app.isMobile = false;
        if ( Math.max(document.documentElement.clientWidth, window.innerWidth || 0) <= 480 ) {
            app.isMobile = true;
        }
    },
    initialize : function ()
    {
        this.chooseDevice();
    },
    ready : function(fn)
    {
        if ( document.readyState != 'loading' ) {
            fn();
        } else if (document.addEventListener) {
            document.addEventListener('DOMContentLoaded', fn);
        } else {
            document.attachEvent('onreadystatechange', function () {
                if ( document.readyState != 'loading' ) {
                    fn();
                }
            });
        }
    },
    addEvent : function (evnt, elem, func)
    {
        if ( !elem ) {
            return false;
        }

        if (elem.addEventListener) {
            elem.addEventListener(evnt,func,false);
        } else if (elem.attachEvent) {
            elem.attachEvent("on"+evnt, func);
        } else {
            elem[evnt] = func;
        }
    },
    addClass : function(el, className)
    {
        if ( el.classList ) {
            el.classList.add(className);
        } else {
            el.className += ' ' + className;
        }
    },
    hasClass : function(el, className)
    {
        return ( el.classList ) ? el.classList.contains(className) : new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className);
    },
    removeClass : function(el, className)
    {
        if ( el.classList ) {
            el.classList.remove(className);
        } else {
            el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
        }
    }
};

app.extends = {
    enableSideBar : function()
    {
        app.addClass(document.querySelector('body'), 'enable-side-bar');
    },
    disableSideBar : function()
    {
        app.removeClass(document.querySelector('body'), 'enable-side-bar');
    },
    shareThis : function(shareTo)
    {
        var link = null,
            shareLink = encodeURI(window.location.href),
            shareTitle = encodeURI(window.document.title),
            shareBody = encodeURI(( document.querySelector('.post > .content') === null ) ? '' : document.querySelector('.post > .content').textContent.trim().substring(0, 120));

        if ( shareBody ) {
            if ( document.querySelector('.post > .content').textContent.trim().length > 120 ) {
                shareBody = shareBody + '...';
            }
        }

        if ( shareTo === 'facebook' ) {
            link = 'https://www.facebook.com/sharer.php?u=' + shareLink;
        } else if ( shareTo === 'twitter' ) {
            link = 'https://twitter.com/share?url=' + shareLink+ '&text='+shareBody;
        } else if ( shareTo === 'google-plus' ) {
            link = 'https://plus.google.com/share?url=' + shareLink;
        } else if ( shareTo === 'weibo' ) {
            link = 'http://service.weibo.com/share/share.php?content=utf-8&url=' + shareLink + '&title=' + shareTitle;
        }

        window.open(link);
    }
};

app.ready(function()
{
    app.initialize();

    if ( navigator.userAgent.toLowerCase().indexOf('android') > -1 ) {
        document.getElementById('metaViewport').setAttribute('content', 'width='+screen.width+', initial-scale=1.0, maximum-scale=1.0, user-scalable=no');
    }

    window.addEventListener('copy', function (e) {
        document.execCommand('copy');
        e.preventDefault();
        e.clipboardData.setData('text/plain', document.getSelection() + "\n\n[출처]" + document.URL +"  [Hax0r blog]");
   }, false);
   
    var stie = site;
    (function() { 
        var d = document, s = d.createElement('script');
        s.src = '//' + site.disqusId + '.disqus.com/embed.js';
        s.setAttribute('data-timestamp', +new Date());
        (d.head || d.body).appendChild(s);
    })();

    if ( !app.isMobile ) {
        document.querySelector('.header > h1 > a').innerHTML = ( page.title ) ? page.title : site.name;
        setTimeout(function () {
            if ( document.documentElement.getAttribute('data-page') !== 'default' ) {
                app.addClass(document.querySelector('.header > h1'), 'want-to-concentrate');
            }
            app.addEvent('mouseenter', document.querySelector('.header > h1'), function(e)
            {
                if (app.hasClass(document.querySelector('body'), 'throttle')) {<commit_msg>chore: space ref when copy<commit_after>window.app = {
    isMobile : false,
    chooseDevice : function()
    {
        app.isMobile = false;
        if ( Math.max(document.documentElement.clientWidth, window.innerWidth || 0) <= 480 ) {
            app.isMobile = true;
        }
    },
    initialize : function ()
    {
        this.chooseDevice();
    },
    ready : function(fn)
    {
        if ( document.readyState != 'loading' ) {
            fn();
        } else if (document.addEventListener) {
            document.addEventListener('DOMContentLoaded', fn);
        } else {
            document.attachEvent('onreadystatechange', function () {
                if ( document.readyState != 'loading' ) {
                    fn();
                }
            });
        }
    },
    addEvent : function (evnt, elem, func)
    {
        if ( !elem ) {
            return false;
        }

        if (elem.addEventListener) {
            elem.addEventListener(evnt,func,false);
        } else if (elem.attachEvent) {
            elem.attachEvent("on"+evnt, func);
        } else {
            elem[evnt] = func;
        }
    },
    addClass : function(el, className)
    {
        if ( el.classList ) {
            el.classList.add(className);
        } else {
            el.className += ' ' + className;
        }
    },
    hasClass : function(el, className)
    {
        return ( el.classList ) ? el.classList.contains(className) : new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className);
    },
    removeClass : function(el, className)
    {
        if ( el.classList ) {
            el.classList.remove(className);
        } else {
            el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
        }
    }
};

app.extends = {
    enableSideBar : function()
    {
        app.addClass(document.querySelector('body'), 'enable-side-bar');
    },
    disableSideBar : function()
    {
        app.removeClass(document.querySelector('body'), 'enable-side-bar');
    },
    shareThis : function(shareTo)
    {
        var link = null,
            shareLink = encodeURI(window.location.href),
            shareTitle = encodeURI(window.document.title),
            shareBody = encodeURI(( document.querySelector('.post > .content') === null ) ? '' : document.querySelector('.post > .content').textContent.trim().substring(0, 120));

        if ( shareBody ) {
            if ( document.querySelector('.post > .content').textContent.trim().length > 120 ) {
                shareBody = shareBody + '...';
            }
        }

        if ( shareTo === 'facebook' ) {
            link = 'https://www.facebook.com/sharer.php?u=' + shareLink;
        } else if ( shareTo === 'twitter' ) {
            link = 'https://twitter.com/share?url=' + shareLink+ '&text='+shareBody;
        } else if ( shareTo === 'google-plus' ) {
            link = 'https://plus.google.com/share?url=' + shareLink;
        } else if ( shareTo === 'weibo' ) {
            link = 'http://service.weibo.com/share/share.php?content=utf-8&url=' + shareLink + '&title=' + shareTitle;
        }

        window.open(link);
    }
};

app.ready(function()
{
    app.initialize();

    if ( navigator.userAgent.toLowerCase().indexOf('android') > -1 ) {
        document.getElementById('metaViewport').setAttribute('content', 'width='+screen.width+', initial-scale=1.0, maximum-scale=1.0, user-scalable=no');
    }

    window.addEventListener('copy', function (e) {
        document.execCommand('copy');
        e.preventDefault();
        e.clipboardData.setData('text/plain', document.getSelection() + "\n\n[출처] " + document.URL +"  [Hax0r blog]");
   }, false);
   
    var stie = site;
    (function() { 
        var d = document, s = d.createElement('script');
        s.src = '//' + site.disqusId + '.disqus.com/embed.js';
        s.setAttribute('data-timestamp', +new Date());
        (d.head || d.body).appendChild(s);
    })();

    if ( !app.isMobile ) {
        document.querySelector('.header > h1 > a').innerHTML = ( page.title ) ? page.title : site.name;
        setTimeout(function () {
            if ( document.documentElement.getAttribute('data-page') !== 'default' ) {
                app.addClass(document.querySelector('.header > h1'), 'want-to-concentrate');
            }
            app.addEvent('mouseenter', document.querySelector('.header > h1'), function(e)
            {
                if (app.hasClass(document.querySelector('body'), 'throttle')) {
{'fraction_non_alphanumeric': 0.16876379690949228, 'fraction_numerical': 0.004635761589403974, 'mean_word_length': 2.040604026845638, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 6, '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': '5686534', 'n_tokens_mistral': 2683, 'n_tokens_neox': 2675, 'n_words': 432}