<commit_before><commit_msg>Added jQuery plugin example<commit_after>(function($, undefined) {

    // Plugin Logic
    $.fn.extend({

        myPlugin: function(options) {

            console.log('Plugin has been called');

            // Set our options from the defaults, overriding with the
            // parameter we pass into this function
            options = $.extend({}, $.fn.myPlugin.options, options);

            return this.each(function(index, element) {

                console.log(index);
                console.log($(element));

            });

        }

    });

    // Methods (Private)

    // Defaults
    $.fn.myPlugin.options = {

    };

})(jQuery);

// Initialise when the DOM is ready
$(function () {

  $('div').myPlugin();

});
{'fraction_non_alphanumeric': 0.14435695538057744, 'fraction_numerical': 0.0, 'mean_word_length': 1.9122137404580153, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '444912', 'n_tokens_mistral': 217, 'n_tokens_neox': 195, 'n_words': 51}