<commit_before>kd                = require 'kd.js'
utils             = require './../core/utils'
TeamsView         = require './AppView'
TeamSelectorView  = require './teamselectorview'


module.exports = class TeamsAppController extends kd.ViewController


  kd.registerAppClass this, name : 'Teams'


  constructor: (options = {}, data) ->

    { currentPath } = kd.singletons.router

    if currentPath is '/Teams/Create'
    then options.view = new TeamSelectorView { cssClass: 'content-page' }
    else options.view = new TeamsView { cssClass: 'content-page' }

    super options, data
<commit_msg>client/landing: show correct view for team/create<commit_after>kd                = require 'kd.js'
utils             = require './../core/utils'
TeamsView         = require './AppView'
TeamSelectorView  = require './teamselectorview'


module.exports = class TeamsAppController extends kd.ViewController


  kd.registerAppClass this, name : 'Teams'


  constructor: (options = {}, data) ->

    { currentPath } = kd.singletons.router

    if currentPath.indexOf('/Teams/Create') > -1
    then options.view = new TeamsView { cssClass: 'content-page' }
    else options.view = new TeamSelectorView { cssClass: 'content-page' }

    super options, data

{'fraction_non_alphanumeric': 0.11652035115722266, 'fraction_numerical': 0.0007980845969672786, 'mean_word_length': 2.91875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '7658636', 'n_tokens_mistral': 380, 'n_tokens_neox': 353, 'n_words': 94}