<commit_before>import ember          from 'ember'
import ns             from 'totem/ns'
import base_component from 'thinkspace-base/components/base'
import abstract_init  from 'thinkspace-team-builder/mixins/abstract_init'
import arr_helpers    from 'thinkspace-common/mixins/helpers/common/array'
import util           from 'totem/util'

export default base_component.extend arr_helpers,

  manager: ember.inject.service()

  teams:     ember.computed.reads 'manager.teams'
  team_set:  ember.computed.reads 'manager.team_set'
  abstract:  ember.computed.reads 'manager.abstract'
  transform: ember.computed.reads 'team_set.transform'

  ## Re-initializes the team object when the manager transitions from being scaffold- to transform-driven
  refresh_team: ember.observer 'teams', ->
    @init_team()

  init_base: ->
    @init_team()
    @init_team_users()
    @init_unassigned_users()
    @set_all_data_loaded()

  init_team: ->
    teams   = @get('teams')
    console.log "TEAMS ARE: ", teams, @
    team_id = @get_query_param('team_id')
    team    = teams.findBy('id', parseInt(team_id))
    @set('team', team)
<commit_msg>[MOD] Remove console.log<commit_after>import ember          from 'ember'
import ns             from 'totem/ns'
import base_component from 'thinkspace-base/components/base'
import abstract_init  from 'thinkspace-team-builder/mixins/abstract_init'
import arr_helpers    from 'thinkspace-common/mixins/helpers/common/array'
import util           from 'totem/util'

export default base_component.extend arr_helpers,

  manager: ember.inject.service()

  teams:     ember.computed.reads 'manager.teams'
  team_set:  ember.computed.reads 'manager.team_set'
  abstract:  ember.computed.reads 'manager.abstract'
  transform: ember.computed.reads 'team_set.transform'

  ## Re-initializes the team object when the manager transitions from being scaffold- to transform-driven
  refresh_team: ember.observer 'teams', ->
    @init_team()

  init_base: ->
    @init_team()
    @init_team_users()
    @init_unassigned_users()
    @set_all_data_loaded()

  init_team: ->
    teams   = @get('teams')
    team_id = @get_query_param('team_id')
    team    = teams.findBy('id', parseInt(team_id))
    @set('team', team)

{'fraction_non_alphanumeric': 0.11205737337516809, 'fraction_numerical': 0.0, 'mean_word_length': 3.8207343412526997, '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': '1375519', 'n_tokens_mistral': 742, 'n_tokens_neox': 727, 'n_words': 154}