<commit_before>function component( args ) {
/*
base_component_id("editor_component")
load_once_from_file(true)
*/

    var editorDomId     = uuidv4()
    var thisVueInstance = null
    var editor          = null


    Vue.component("editor_component", {
      data: function () {
        return {
            text: args.text,
            read_only: false,
            editorDomId: editorDomId
        }
      },
      template: `<div>
                    <div v-bind:id='editorDomId' ></div>
                    <hr />
                     <slot  :text2="text"></slot>
                 </div>`
     ,

     mounted: function() {
         thisVueInstance = this
         editor = ace.edit(           editorDomId, {
                                                 mode:           "ace/mode/javascript",
                                                 selectionStyle: "text"
                                             })
         document.getElementById(editorDomId).style.width="100%"

         document.getElementById(editorDomId).style.height="45vh"
         editor.getSession().setValue(thisVueInstance.text);
         editor.getSession().setUseWorker(false);
         this.read_only = saveHelper.getValueOfCodeString(thisVueInstance.text, "read_only")<commit_msg>trying to fix the editor<commit_after>function component( args ) {
/*
base_component_id("editor_component")
load_once_from_file(true)
*/

    var editorDomId     = uuidv4()
    var editor          = null


    Vue.component("editor_component", {
      data: function () {
        return {
            text: args.text,
            read_only: false,
            editorDomId: editorDomId
        }
      },
      template: `<div>
                    <div v-bind:id='editorDomId' ></div>
                    <hr />
                     <slot  :text2="text"></slot>
                 </div>`
     ,

     mounted: function() {
         var thisVueInstance = this
         editor = ace.edit(           editorDomId, {
                                                 mode:           "ace/mode/javascript",
                                                 selectionStyle: "text"
                                             })
         document.getElementById(editorDomId).style.width="100%"

         document.getElementById(editorDomId).style.height="45vh"
         editor.getSession().setValue(thisVueInstance.text);
         editor.getSession().setUseWorker(false);
         this.read_only = saveHelper.getValueOfCodeString(thisVueInstance.text, "read_only")
{'fraction_non_alphanumeric': 0.10586835844567803, 'fraction_numerical': 0.0055511498810467885, 'mean_word_length': 1.449514563106796, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '977177', 'n_tokens_mistral': 652, 'n_tokens_neox': 627, 'n_words': 103}