<commit_before><html>
  <head>
    <meta charset="utf-8" />
    <title>Standalone jsCronUI demo</title>

    <link rel="stylesheet" type="text/css" href="../src/jsCronUI.css"/>
    <link rel="stylesheet" type="text/css" href="../node_modules/multiple-select/multiple-select.css" />
    <script src="https://code.jquery.com/jquery-2.2.2.min.js" integrity="sha256-36cp2Co+/62rEAAYHLmRCPIych47CvdM+uTBJwSzWjI=" crossorigin="anonymous"></script>

    <!-- source files -->
    <script src="../src/jsCronUI.js"></script>
    <script src="../src/jsCronUI-template.js"></script>
    <script src="../node_modules/multiple-select/multiple-select.js"></script>
  </head>
  <body>
    <h1>jsCronUI</h1>
    <h3>Init Schedule Before Doing Anything. This proves nothing is wired to document.ready</h3>
    <button class="init">Okay already, get on with it!</button>  Debug <input type="text" id="debug" readonly/> <button class="read">Read Cron</button>

    <div id="Schedule" class="c-schedule"></div>

  <script>

      $(function(){

        var $s = $('#Schedule');

        function updateDebug(){
          $('#debug').val($s.jsCronUI('getCron'));
       }

        $('.init').on('click', function(){
          $s.jsCronUI({});
          updateDebug();
        });

        $('.read').on('click', function(){
          updateDebug();<commit_msg>Update demo to show errors that are thrown on the page<commit_after><html>
  <head>
    <meta charset="utf-8" />
    <title>Standalone jsCronUI demo</title>

    <link rel="stylesheet" type="text/css" href="../src/jsCronUI.css"/>
    <link rel="stylesheet" type="text/css" href="../node_modules/multiple-select/multiple-select.css" />
    <script src="https://code.jquery.com/jquery-2.2.2.min.js" integrity="<KEY>="anonymous"></script>

    <!-- source files -->
    <script src="../src/jsCronUI.js"></script>
    <script src="../src/jsCronUI-template.js"></script>
    <script src="../node_modules/multiple-select/multiple-select.js"></script>
  </head>
  <body>
    <h1>jsCronUI</h1>
    <h3>Init Schedule Before Doing Anything. This proves nothing is wired to document.ready</h3>
    <button class="init">Okay already, get on with it!</button>  Debug <input type="text" id="debug" readonly/> <button class="read">Read Cron</button>

    <div id="Schedule" class="c-schedule"></div>
    <div id="Error"></div>
  <script>

      $(function(){

        var $s = $('#Schedule');

        function updateDebug(){
          try{
            $('#Error').text('');
            $('#debug').val($s.jsCronUI('getCron', true));
          }
          catch(e){
            $('#Error').text(e.message);
          }
        }

        $('.init').on('click', function(){
          $s.jsCronUI({});
          updateDebug();
        });

        $('.read').on('click', function(){
          updateDebug();
{'fraction_non_alphanumeric': 0.20572640509013787, 'fraction_numerical': 0.009190526687875575, 'mean_word_length': 2.8714090287277703, 'pattern_counts': {'":': 0, '<': 66, '<?xml version=': 0, '>': 66, 'https://': 2, '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': '2680968', 'n_tokens_mistral': 922, 'n_tokens_neox': 897, 'n_words': 165}