<commit_before>/*
 *  jQuery sidebar plugin
 *  ---------------------
 *  A very simple sidebar jQuery plugin
 *
 *  Copyright (c) 2013 - <NAME>
 *
 * */
;(function ($){

    /*
     *  $("[jQuery selector]").sidebar({...});
     * */
    $.fn.sidebar = function(options) {

        // defaults
        var settings = $.extend( {
            speed         : 200,         // animate speed
            side          : 'left'       // side: 'left' or 'right'
        }, options);
       
        // get 'this' jQuery element
        var self = this;
       
        /*
         *  Opens the sidebar
         *  $("[jQuery selector]).trigger("open");
         * */
        this.on("open", function () {

            // animate properties
            var properties = {};

            // animate to 0px the `right/left`
            properties[settings.side] = 0;
           
            // start animation
            self.animate(properties, settings.speed, function () {
                // finally emit something
                self.trigger("opened");
            });
        });
       

        /*
         *  Closes the sidebar
         *
         *  $("[jQuery selector]).trigger("close");
         * */
        this.on("close", function (callback) {
            
            // animate properties
            var properties = {};

            // TODO padding? borders?
            properties[settings.side] = - self.width() - 30;

            // start animation
            self.animate(properties, settings.speed, function () {
                // finally emit something
                self.trigger("closed");
            });
        });
       
        return this;<commit_msg>Copyright year, deleted unwanted spaces<commit_after>/*
 *  jQuery sidebar plugin
 *  ---------------------
 *  A very simple sidebar jQuery plugin
 *
 *  Copyright (c) 2013-14 - <NAME>
 *
 * */
;(function ($){

    /*
     *  $("[jQuery selector]").sidebar({...});
     * */
    $.fn.sidebar = function(options) {

        // defaults
        var settings = $.extend( {
            speed         : 200,         // animate speed
            side          : 'left'       // side: 'left' or 'right'
        }, options);

        // get 'this' jQuery element
        var self = this;

        /*
         *  Opens the sidebar
         *  $("[jQuery selector]).trigger("open");
         * */
        this.on("open", function () {

            // animate properties
            var properties = {};

            // animate to 0px the `right/left`
            properties[settings.side] = 0;

            // start animation
            self.animate(properties, settings.speed, function () {
                // finally emit something
                self.trigger("opened");
            });
        });


        /*
         *  Closes the sidebar
         *
         *  $("[jQuery selector]).trigger("close");
         * */
        this.on("close", function (callback) {

            // animate properties
            var properties = {};

            // TODO padding? borders?
            properties[settings.side] = - self.width() - 30;

            // start animation
            self.animate(properties, settings.speed, function () {
                // finally emit something
                self.trigger("closed");
            });
        });

        return this;
{'fraction_non_alphanumeric': 0.1478156792339916, 'fraction_numerical': 0.00718132854578097, 'mean_word_length': 1.2007899934167214, 'pattern_counts': {'":': 0, '<': 5, '<?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': '609185', 'n_tokens_mistral': 872, 'n_tokens_neox': 802, 'n_words': 197}