<commit_before>$(function() {

  if (room) {

    var messages = new Chamber.Collections.MessagesCollection
    messages.url = '/rooms/' + room.id + '/messages'
    
    var participants = new Chamber.Collections.ParticipantsCollection
    participants.url = '/rooms/' + room.id + '/participants'
    
    var room_show_view = new Chamber.Views.Rooms.ShowView(
      {
        messages: messages,
        participants: participants,
        model: room,
        el: $("#room")
      }
    )

    var jug = new Juggernaut({
      secure: false,
      host: 'chamber-juggernaut.herokuapp.com',
      host: 'localhost',
      port: 5000,
      transports: ['xhr-polling', 'jsonp-polling']
    })
    //var jug = new Juggernaut()
    
    jug.subscribe("/observer", function(data){
        if (data.klass == 'Message') {
          message = new Chamber.Models.Message(data.record)
          messages.add(message)
        } else if (data.klass == "Participant" && data.record.room.id == room.id) {<commit_msg>Update juggernaut settings<commit_after>$(function() {

  if (room) {

    var messages = new Chamber.Collections.MessagesCollection
    messages.url = '/rooms/' + room.id + '/messages'
    
    var participants = new Chamber.Collections.ParticipantsCollection
    participants.url = '/rooms/' + room.id + '/participants'
    
    var room_show_view = new Chamber.Views.Rooms.ShowView(
      {
        messages: messages,
        participants: participants,
        model: room,
        el: $("#room")
      }
    )

    var jug = new Juggernaut({
      secure: false,
      host: 'chamber-juggernaut.herokuapp.com',
      port: 5000,
      transports: ['xhr-polling', 'jsonp-polling']
    })
    //var jug = new Juggernaut()
    
    jug.subscribe("/observer", function(data){
        if (data.klass == 'Message') {
          message = new Chamber.Models.Message(data.record)
          messages.add(message)
        } else if (data.klass == "Participant" && data.record.room.id == room.id) {
{'fraction_non_alphanumeric': 0.13827655310621242, 'fraction_numerical': 0.004008016032064128, 'mean_word_length': 2.4136752136752135, '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': '5976650', 'n_tokens_mistral': 617, 'n_tokens_neox': 602, 'n_words': 130}