<commit_before>App.RoomUserStateItemController = Em.ObjectController.extend
  needs: ["application"]
  currentUser: Ember.computed.alias("controllers.application.currentUser")

  actions:
    join: ->
      console.log("hi", arguments)
      room_item_state = @get("model")
      console.log room_item_state.get("joined")
      room_item_state.set("joined", true)
      console.log room_item_state.get("joined")

      # successCallback  = =>
      #   console.log("deleted")
      # errorCallback = =>
      #   console.log("error whatever...")
      # # user.save().then(successCallback, errorCallback)
<commit_msg>Update join state in RoomUserState<commit_after>App.RoomUserStateItemController = Em.ObjectController.extend
  needs: ["application"]
  currentUser: Ember.computed.alias("controllers.application.currentUser")

  actions:
    join: ->
      room_item_state = @get("model")
      room_item_state.set("joined", true)

      successCallback  = =>
        console.log("saved")
      errorCallback = =>
        console.log("error whatever...")
      room_item_state.save().then(successCallback, errorCallback)

{'fraction_non_alphanumeric': 0.13380909901873328, 'fraction_numerical': 0.0, 'mean_word_length': 3.6363636363636362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '420088', 'n_tokens_mistral': 331, 'n_tokens_neox': 327, 'n_words': 48}