<commit_before>/**
 * Created by jelly on 1/14/17.
 */



const editorView = new Vue({
    el: '#editor',
    data: {
        input: '# hello',
        compiledMarkdown: ''
    },
    computed: {
        compiler: function () {
            const cm = this;
            const form_data = new FormData();
            form_data.append('text', this.input);
            const options = {
                headers: {
                    "X-CSRFToken": document.getElementsByName('csrfmiddlewaretoken')[0].value,
                },
                body: {
                    text: this.input
                }
            };

            cm.$http.post('/common/convert-markdown', form_data, options).then(
                function (response) {
                    this.compiledMarkdown = response.data;
                }, function (response) {
                    response.data;
                });


        },
    },
    methods: {
        update: _.debounce(function (e) {
            this.input = e.target.value
        }, 300)
    }
});
<commit_msg>Change default editor content.<commit_after>/**
 * Created by jelly on 1/14/17.
 */



const editorView = new Vue({
    el: '#editor',
    data: {
        input: '# Markdown editor',
        compiledMarkdown: ''
    },
    computed: {
        compiler: function () {
            const cm = this;
            const form_data = new FormData();
            form_data.append('text', this.input);
            const options = {
                headers: {
                    "X-CSRFToken": document.getElementsByName('csrfmiddlewaretoken')[0].value,
                },
                body: {
                    text: this.input
                }
            };

            cm.$http.post('/common/convert-markdown', form_data, options).then(
                function (response) {
                    this.compiledMarkdown = response.data;
                }, function (response) {
                    response.data;
                });


        },
    },
    methods: {
        update: _.debounce(function (e) {
            this.input = e.target.value
        }, 300)
    }
});

{'fraction_non_alphanumeric': 0.12494106553512493, 'fraction_numerical': 0.008486562942008486, 'mean_word_length': 1.2478813559322033, 'pattern_counts': {'":': 2, '<': 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': '2981583', 'n_tokens_mistral': 595, 'n_tokens_neox': 547, 'n_words': 110}