<commit_before>class @Manager
  @getInstanceName: (className) ->
    className.charAt(0).toLowerCase() + className.slice(1)

  @init = (container) ->
    classNames = container.data('component').split(' ')

    for className in classNames
      try
        instance = new (eval(className))(container)
        instanceName = Manager.getInstanceName(className)
        container.data(instanceName, instance)
      catch error
        try
          console.warn "#{className} component not found"<commit_msg>fix manager.coffee<commit_after>class @Manager
  @getInstanceName: (className) ->
    className.charAt(0).toLowerCase() + className.slice(1)

  @init = (container) ->
    classNames = container.data('component').split(' ')

    for className in classNames
      try
        instanceName = Manager.getInstanceName(className)
        unless container.data(instanceName)
          instance = new (eval(className))(container)
          container.data(instanceName, instance)
      catch error
        try
          console.warn "#{className} component not found"
{'fraction_non_alphanumeric': 0.11288805268109126, 'fraction_numerical': 0.0037629350893697085, 'mean_word_length': 3.15625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1543827', 'n_tokens_mistral': 276, 'n_tokens_neox': 274, 'n_words': 62}