<commit_before>TimelineController = function() {
  var timeline = new Timeline()
  var interval = 30 * 1000
  
  var public = {
    init: function(container) { 
      timeline.onchange(function(event, murmur) {
        if(event == "prepend") {
          container.prepend(new MurmurView(murmur).render())
        }
      })
      
      $("button.post").click(PostController.open)

      public.loop_refresh()
    },
    
    refresh: function() {
      MurmursService.fetch(timeline.prependAll)
    },
    
    loop_refresh: function() {
      public.refresh()
      setInterval(public.refresh, interval)
    }
  }
  
  return public
}()<commit_msg>slightly refactor<commit_after>TimelineController = function() {
  var timeline = new Timeline()
  var interval = 20 * 1000
  
  var public = {
    init: function(container) { 
      timeline.onchange(function(event, murmur) {
        if(event == "prepend") {
          container.prepend(new MurmurView(murmur).render())
        }
      })
      
      $("button.post").click(PostController.open)

      public.refresh()
      setInterval(public.refresh, interval)
    },
    
    refresh: function() {
      MurmursService.fetch(timeline.prependAll)
    }
  }
  
  return public
}()
{'fraction_non_alphanumeric': 0.1273317112733171, 'fraction_numerical': 0.009732360097323601, 'mean_word_length': 2.476056338028169, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5815976', 'n_tokens_mistral': 401, 'n_tokens_neox': 377, 'n_words': 62}