<commit_before>/*!
 * jCarousel v@VERSION - Riding carousels with jQuery
 * http://sorgalla.com/jcarousel/
 *
 * Copyright 2011, <NAME>
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * or GPL Version 2 (http://www.opensource.org/licenses/gpl-2.0.php) licenses.
 *
 * Date: @DATE
 */
(function($, window, undefined) {

    var filterItemFirst    = ':jcarousel-item-first',
        filterItemLast     = ':jcarousel-item-last',
        filterItemVisible  = ':jcarousel-item-visible',
        itemData           = ['first', 'last', 'visible'];

    var $j = $.jcarousel = function(element, options) {
        // Allow instantiation without the 'new' keyword
        if (!this.jcarousel) {
            return new $j(element, options);
        }

        this._init(element, options);
    };

    $.extend($j, {
        plugins: {},
        intval: function(value) {
            value = parseInt(value, 10);
            return isNaN(value) ? 0 : value;
        },
        dataOptions: function(element, options) {
            var dataOptions = {};
            $.each(options, function(option) {
                var value = element.data('jcarousel-' + option.replace(/[A-Z]/g, function(c) {
                        return '-' + c.toLowerCase();
                    })
                );

                if (value !== undefined) {
                    dataOptions[option] = value;
                }
            });

            return dataOptions;
        },
        trigger: function(element, type, data, event) {
            event = $.Event(event);
            event.type = ('jcarousel' + type).toLowerCase();
            data = data || {};

            if (event.originalEvent) {
                for (var i = $.event.props.length, prop; i;) {
                    prop = $.event.props[--i];
                    event[prop] = event.originalEvent[prop];
                }
            }

            element.trigger(event, data);

            return !event.isDefaultPrevented();
        }
    });

    $.extend($j.prototype, {
        jcarousel: '@VERSION',
        element:     null,
        list:        null,
        options:     {
            list:      '>ul:eq(0)',
            items:     '>li',
            animation: 'normal',
            wrap:      null,
            vertical:  null,
            rtl:       null,
            center:    true
        },
        animating:   false,
        tail:        0,
        inTail:      false,
        resizeTimer: null,
        lt:          null,
        vertical:    false,
        rtl:         false,
        circular:    false,
        plugins:     {},
        _init: function(element, options) {
            this.element  = $(element);
            this.element.data('jcarousel', this);

            var self = this;

            $.each($j.plugins, function(name, plugin) {
                self.plugins[name] = new plugin(self);
            });

            // Set passed options
            this.option(options || {});
<commit_msg>Fix default value for center option<commit_after>/*!
 * jCarousel v@VERSION - Riding carousels with jQuery
 * http://sorgalla.com/jcarousel/
 *
 * Copyright 2011, <NAME>
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * or GPL Version 2 (http://www.opensource.org/licenses/gpl-2.0.php) licenses.
 *
 * Date: @DATE
 */
(function($, window, undefined) {

    var filterItemFirst    = ':jcarousel-item-first',
        filterItemLast     = ':jcarousel-item-last',
        filterItemVisible  = ':jcarousel-item-visible',
        itemData           = ['first', 'last', 'visible'];

    var $j = $.jcarousel = function(element, options) {
        // Allow instantiation without the 'new' keyword
        if (!this.jcarousel) {
            return new $j(element, options);
        }

        this._init(element, options);
    };

    $.extend($j, {
        plugins: {},
        intval: function(value) {
            value = parseInt(value, 10);
            return isNaN(value) ? 0 : value;
        },
        dataOptions: function(element, options) {
            var dataOptions = {};
            $.each(options, function(option) {
                var value = element.data('jcarousel-' + option.replace(/[A-Z]/g, function(c) {
                        return '-' + c.toLowerCase();
                    })
                );

                if (value !== undefined) {
                    dataOptions[option] = value;
                }
            });

            return dataOptions;
        },
        trigger: function(element, type, data, event) {
            event = $.Event(event);
            event.type = ('jcarousel' + type).toLowerCase();
            data = data || {};

            if (event.originalEvent) {
                for (var i = $.event.props.length, prop; i;) {
                    prop = $.event.props[--i];
                    event[prop] = event.originalEvent[prop];
                }
            }

            element.trigger(event, data);

            return !event.isDefaultPrevented();
        }
    });

    $.extend($j.prototype, {
        jcarousel: '@VERSION',
        element:     null,
        list:        null,
        options:     {
            list:      '>ul:eq(0)',
            items:     '>li',
            animation: 'normal',
            wrap:      null,
            vertical:  null,
            rtl:       null,
            center:    false
        },
        animating:   false,
        tail:        0,
        inTail:      false,
        resizeTimer: null,
        lt:          null,
        vertical:    false,
        rtl:         false,
        circular:    false,
        plugins:     {},
        _init: function(element, options) {
            this.element  = $(element);
            this.element.data('jcarousel', this);

            var self = this;

            $.each($j.plugins, function(name, plugin) {
                self.plugins[name] = new plugin(self);
            });

            // Set passed options
            this.option(options || {});

{'fraction_non_alphanumeric': 0.13399503722084366, 'fraction_numerical': 0.003970223325062035, 'mean_word_length': 1.4068471337579618, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3065392', 'n_tokens_mistral': 1708, 'n_tokens_neox': 1629, 'n_words': 359}