<commit_before><!DOCTYPE HTML>
<html lang="en-US">
<head>
  <meta charset="UTF-8">
  <title></title>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  <script src="/jstree/jquery.jstree.js"></script>
  <!-- <script src="/sarissa-full-0.9.9.6/gr/abiss/js/sarissa/sarissa.js"></script> -->
  <script src="/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
  <script src="vendor/require.js"></script>
</head>
<body>
  <form id="mainform" action="post_test.php" method="post">
    <div style="width: 100%;">
      <div style="float: left; border: 1px solid red; max-height: 400px; overflow: auto; width: 29%;" id="editortree">
        &nbsp;
      </div>
      <div style="float: right; width: 69%; border: 1px solid blue;">
        <textarea style="width: 100%;" id='editor1' name='editor1'></textarea>
      </div>
      <div style="clear: both;"></div>
    </div>
    <p>
      <!-- <input type="submit" value="Submit" /> -->
    </p>
  </form>
  <ul class="filenames">
    <li>/ncbi-updates/from-client/PMC2780816kipling.xml</li>
    <li>/ncbi-updates/from-client/PMC3153123kipling.xml</li>
    <li>/ncbi-updates/from-client/PMC3256938kipling.xml</li>
    <li>test/xml/short-kipling.xml</li>
  </ul>
  Data file: <input type="text" id="datafile" name="datafile" value="<?php if (isset($_GET['s'])) { echo $_GET['s']; } ?>"/> <input type="button" name="loaddata" id="loaddata" value="load"/>
  <br/>
  <input type="button" name="savedata" id="savedata" value="save"/>
  <script>
  require.config({
    baseUrl: "lib",
		// urlArgs: "bust=" + "18",
		// urlArgs: (new Date()).getTime(),
		shim: {
			'tinymce': {
				exports: 'tinymce'
			}
		},
		paths: {
			"text": "../vendor/text",
			tinymce: '/tinymce/jscripts/tiny_mce/tiny_mce'
		}
   });
  require( ["textorum/tinymce/plugin"], function() {
    tinymce.init({
      mode: 'exact',
      theme: 'advanced',
      elements: 'editor1',
      plugins: '-textorum,inlinepopups',
      entity_encoding: 'raw',
      content_css: 'lib/textorum/tinymce/plugin.css',

      keep_styles: false,
      theme_advanced_resizing: true,
      theme_advanced_resize_horizontal: false,
      preformatted: true,
      apply_source_formatting: false,
      valid_elements: "*[*]",
      setup: function(ed) {
        ed.onInit.add(function(ed) {
          if ($('#datafile').val()) {
            $('#loaddata').click();
          }
        });
      }
    });

  });
  </script>
</body>
</html><commit_msg>add div/span/code to whitespace elements<commit_after><!DOCTYPE HTML>
<html lang="en-US">
<head>
  <meta charset="UTF-8">
  <title></title>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  <script src="/jstree/jquery.jstree.js"></script>
  <!-- <script src="/sarissa-full-0.9.9.6/gr/abiss/js/sarissa/sarissa.js"></script> -->
  <script src="/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
  <script src="vendor/require.js"></script>
</head>
<body>
  <form id="mainform" action="post_test.php" method="post">
    <div style="width: 100%;">
      <div style="float: left; border: 1px solid red; max-height: 400px; overflow: auto; width: 29%;" id="editortree">
        &nbsp;
      </div>
      <div style="float: right; width: 69%; border: 1px solid blue;">
        <textarea style="width: 100%;" id='editor1' name='editor1'></textarea>
      </div>
      <div style="clear: both;"></div>
    </div>
    <p>
      <!-- <input type="submit" value="Submit" /> -->
    </p>
  </form>
  <ul class="filenames">
    <li>/ncbi-updates/from-client/PMC2780816kipling.xml</li>
    <li>/ncbi-updates/from-client/PMC3153123kipling.xml</li>
    <li>/ncbi-updates/from-client/PMC3256938kipling.xml</li>
    <li>test/xml/short-kipling.xml</li>
  </ul>
  Data file: <input type="text" id="datafile" name="datafile" value="<?php if (isset($_GET['s'])) { echo $_GET['s']; } ?>"/> <input type="button" name="loaddata" id="loaddata" value="load"/>
  <br/>
  <input type="button" name="savedata" id="savedata" value="save"/>
  <script>
  require.config({
    baseUrl: "lib",
		// urlArgs: "bust=" + "18",
		// urlArgs: (new Date()).getTime(),
		shim: {
			'tinymce': {
				exports: 'tinymce'
			}
		},
		paths: {
			"text": "../vendor/text",
			tinymce: '/tinymce/jscripts/tiny_mce/tiny_mce'
		}
   });
  require( ["textorum/tinymce/plugin"], function() {
    tinymce.init({
      mode: 'exact',
      theme: 'advanced',
      elements: 'editor1',
      plugins: '-textorum,inlinepopups',
      entity_encoding: 'raw',
      content_css: 'lib/textorum/tinymce/plugin.css',

      keep_styles: false,
      theme_advanced_resizing: true,
      theme_advanced_resize_horizontal: false,
      preformatted: true,
      whitespace_elements: 'pre script noscript style textarea div span code',
      apply_source_formatting: false,
      valid_elements: "*[*]",
      setup: function(ed) {
        ed.onInit.add(function(ed) {
          if ($('#datafile').val()) {
            $('#loaddata').click();
          }
        });
      }
    });

  });
  </script>
</body>
</html>
{'fraction_non_alphanumeric': 0.20876085240726125, 'fraction_numerical': 0.019337016574585635, 'mean_word_length': 3.1413398692810457, 'pattern_counts': {'":': 2, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 2, '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': '46063', 'n_tokens_mistral': 1982, 'n_tokens_neox': 1828, 'n_words': 316}