<commit_before><template>
<div>
  <div id="svg-wrap">
    <!-- <iframe src="../node_modules/svgedit/editor/embedapi.html"></iframe> -->
  </div>
</div>
</template>

<script>
export default {
  events:{
    "loadIframe":function(){
      if($("#svg-wrap iframe").length > 0){
        return
      }else{
        var iframe = document.createElement("iframe");
        iframe.id = "fatherSVG"
        iframe.src = "./static/svgedit/editor/embedapi.html"
        iframe.style = "width: 100%; height: 100%;"
        $("#svg-wrap").append(iframe);
      }
    },
    "map-layout":function(options){
      var options = JSON.stringify(options);
      var iframe = document.getElementById("fatherSVG");
      if(!iframe){
        var iframe = document.createElement("iframe");
        iframe.src = "./static/svgedit/editor/embedapi.html?options="+options;
        iframe.style = "width: 100%; height: 100%;"
        iframe.id = "fatherSVG"
        $("#svg-wrap").append(iframe);
      }else{
        iframe.src = "./static/svgedit/editor/embedapi.html?options="+options;
      }   
    }
  }
}
</script>
<style scoped>
#svg-wrap {
  display: block;
  height: calc(100% - 55px);
  flex-direction: column;
  position: absolute;
  width: calc(100% - 30px);
  right: 0px;
}
</style>
<commit_msg>edit time<commit_after><template>
<div>
  <div id="svg-wrap">
    <!-- <iframe src="../node_modules/svgedit/editor/embedapi.html"></iframe> -->
  </div>
</div>
</template>

<script>
export default {
  events:{
    "loadIframe":function(){
      if($("#svg-wrap iframe").length > 0){
        return
      }else{
        var iframe = document.createElement("iframe");
        iframe.id = "fatherSVG"
        iframe.src = "./static/svgedit/editor/embedapi.html"
        iframe.setAttribute('style',"width: 100%; height: 100%;")
        $("#svg-wrap").append(iframe);
      }
    },
    "map-layout":function(options){
      var options = JSON.stringify(options);
      var iframe = document.getElementById("fatherSVG");
      if(!iframe){
        var iframe = document.createElement("iframe");
        iframe.src = "./static/svgedit/editor/embedapi.html?options="+options;
        iframe.id = "fatherSVG"
        iframe.setAttribute('style',"width: 100%; height: 100%;")
        $("#svg-wrap").append(iframe);
      }else{
        iframe.src = "./static/svgedit/editor/embedapi.html?options="+options;
      }   
    }
  }
}
</script>
<style scoped>
#svg-wrap {
  display: block;
  height: calc(100% - 55px);
  flex-direction: column;
  position: absolute;
  width: calc(100% - 30px);
  right: 0px;
}
</style>

{'fraction_non_alphanumeric': 0.18532818532818532, 'fraction_numerical': 0.018532818532818532, 'mean_word_length': 2.755072463768116, 'pattern_counts': {'":': 4, '<': 29, '<?xml version=': 0, '>': 31, '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': '3282158', 'n_tokens_mistral': 928, 'n_tokens_neox': 843, 'n_words': 149}