<commit_before><% if false %>
  <!-- this is just hear to convince the editor to show me javascript -->
  <script type="text/javascript">
<% end %>


  var userJobNotificationStore = <%=
extjs_store( :controller => "user_job_notifications",
  :writer => {"encode" => false},
  :config => {
    "totalProperty" => 'results',
    "autoLoad" => false,
    "autoSave" => true,
    "restful" => true
  }
).render(false)
%>;
  //      userJobNotificationStore.load();
  //      Ext.bio.notifier.show('Job Complete', 'Your job has finished');
  //    }
  var checkJobNotifications = function(){
    if  (!Ext.bio.notifier.isVisible() ) {
      userJobNotificationStore.load({
        callback: function(store, records, options){
          if (this.getCount() > 0 ) {
            var html = 'Following jobs have completed: <ul>';
            for (var i=0; i< this.getCount(); i++) {
              html += '<li>"<b>' +  this.getAt(i).data.job_name + '</b>" </li>' ;
            }
            html += '</ul>';
            Ext.bio.notifier.show('Jobs Complete', html);
          }
        }
      });
    } else {
    // DO NOTHING
    }
  }

  // equivalent using TaskMgr
  Ext.TaskMgr.start({
    run: checkJobNotifications,
    interval: 5000
  });
<% if false %>
  </script>
<% end %><commit_msg>Changed the interval<commit_after><% if false %>
  <!-- this is just hear to convince the editor to show me javascript -->
  <script type="text/javascript">
<% end %>


  var userJobNotificationStore = <%=
extjs_store( :controller => "user_job_notifications",
  :writer => {"encode" => false},
  :config => {
    "totalProperty" => 'results',
    "autoLoad" => false,
    "autoSave" => true,
    "restful" => true
  }
).render(false)
%>;
  //      userJobNotificationStore.load();
  //      Ext.bio.notifier.show('Job Complete', 'Your job has finished');
  //    }
  var checkJobNotifications = function(){
    if  (!Ext.bio.notifier.isVisible() ) {
      userJobNotificationStore.load({
        callback: function(store, records, options){
          if (this.getCount() > 0 ) {
            var html = 'Following jobs have completed: <ul>';
            for (var i=0; i< this.getCount(); i++) {
              html += '<li>"<b>' +  this.getAt(i).data.job_name + '</b>" </li>' ;
            }
            html += '</ul>';
            Ext.bio.notifier.show('Jobs Complete', html);
          }
        }
      });
    } else {
    // DO NOTHING
    }
  }

  // equivalent using TaskMgr
  Ext.TaskMgr.start({
    run: checkJobNotifications,
    interval: 15000
  });
<% if false %>
  </script>
<% end %>
{'fraction_non_alphanumeric': 0.17478731631863884, 'fraction_numerical': 0.005027068832173241, 'mean_word_length': 2.2955414012738853, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 49, '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': '5929525', 'n_tokens_mistral': 839, 'n_tokens_neox': 803, 'n_words': 190}