<commit_before>
(function ($) {

    "use strict";

    var methods = {
        init: function (options) {

            var defaults = $.extend(true, {}, $.fn.markdownEditor.defaults, options),
                plugin = this,
                preview = false,
                fullscreen = false;

            // Replace the content of the div with our html
            plugin.addClass('md-container').html(editorHtml(this.text(), defaults));

            // If the Bootstrap tooltip library is loaded, initialize the tooltips of the toolbar
            if (typeof $().tooltip === 'function') {
                plugin.find('[data-mdtooltip="tooltip"]').tooltip({
                    container: 'body'
                });
            }

            var mdEditor = plugin.find('.md-editor'),
                mdPreview = plugin.find('.md-preview'),
                mdLoading = plugin.find('.md-loading');

            plugin.css({
                width: defaults.width
            });

            mdEditor.css({
                width: defaults.width,
                height: defaults.height,
                fontSize: defaults.fontSize
            });

            mdPreview.css({
                width: defaults.width,
                height: defaults.height
            });

            // Initialize Ace
            var editor = ace.edit(mdEditor[0]),
                snippetManager;

            editor.setTheme('ace/theme/' + defaults.theme);
            editor.getSession().setMode('ace/mode/markdown');
            editor.getSession().setUseWrapMode(true);

            editor.setHighlightActiveLine(false);
            editor.setShowPrintMargin(false);
            editor.renderer.setShowGutter(false);

            ace.config.loadModule('ace/ext/language_tools', function () {
                snippetManager = ace.require('ace/snippets').snippetManager;
                setShortcuts(editor, snippetManager);
            });


            // Image drag and drop and upload events
            if (defaults.imageUpload) {

                plugin.find('.md-input-upload').on('change', function() {
                    var files = $(this).get(0).files;<commit_msg>Fix width problem<commit_after>
(function ($) {

    "use strict";

    var methods = {
        init: function (options) {

            var defaults = $.extend(true, {}, $.fn.markdownEditor.defaults, options),
                plugin = this,
                preview = false,
                fullscreen = false;

            // Replace the content of the div with our html
            plugin.addClass('md-container').html(editorHtml(this.text(), defaults));

            // If the Bootstrap tooltip library is loaded, initialize the tooltips of the toolbar
            if (typeof $().tooltip === 'function') {
                plugin.find('[data-mdtooltip="tooltip"]').tooltip({
                    container: 'body'
                });
            }

            var mdEditor = plugin.find('.md-editor'),
                mdPreview = plugin.find('.md-preview'),
                mdLoading = plugin.find('.md-loading');

            plugin.css({
                width: defaults.width
            });

            mdEditor.css({
                height: defaults.height,
                fontSize: defaults.fontSize
            });

            mdPreview.css({
                height: defaults.height
            });

            // Initialize Ace
            var editor = ace.edit(mdEditor[0]),
                snippetManager;

            editor.setTheme('ace/theme/' + defaults.theme);
            editor.getSession().setMode('ace/mode/markdown');
            editor.getSession().setUseWrapMode(true);

            editor.setHighlightActiveLine(false);
            editor.setShowPrintMargin(false);
            editor.renderer.setShowGutter(false);

            ace.config.loadModule('ace/ext/language_tools', function () {
                snippetManager = ace.require('ace/snippets').snippetManager;
                setShortcuts(editor, snippetManager);
            });


            // Image drag and drop and upload events
            if (defaults.imageUpload) {

                plugin.find('.md-input-upload').on('change', function() {
                    var files = $(this).get(0).files;
{'fraction_non_alphanumeric': 0.1213546566321731, 'fraction_numerical': 0.0009407337723424271, 'mean_word_length': 1.5543543543543543, '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': '4902236', 'n_tokens_mistral': 1073, 'n_tokens_neox': 987, 'n_words': 209}