<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.di.componentgraph.core

import java.util.logging.Logger

import com.yahoo.component.ComponentId
import com.yahoo.container.di.ConfigKeyT
import com.yahoo.container.di.componentgraph.Provider
import com.google.inject.Key
import Node._
import com.yahoo.log.LogLevel.{DEBUG, SPAM}

/**
 * @author <NAME>
 * @author gjoranv
 */
abstract class Node(val componentId: ComponentId) {

  def instanceKey: Key[AnyRef]

  var instance : Option[AnyRef] = None

  var componentsToInject = List[Node]()

  /**
   * The components actually used by this node.<commit_msg>Optimize imports<commit_after>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.di.componentgraph.core

import java.util.logging.Logger

import com.google.inject.Key
import com.yahoo.component.ComponentId
import com.yahoo.container.di.ConfigKeyT
import com.yahoo.container.di.componentgraph.Provider
import com.yahoo.container.di.componentgraph.core.Node._
import com.yahoo.log.LogLevel.{DEBUG, SPAM}

/**
 * @author <NAME>
 * @author gjoranv
 */
abstract class Node(val componentId: ComponentId) {

  def instanceKey: Key[AnyRef]

  var instance : Option[AnyRef] = None

  var componentsToInject = List[Node]()

  /**
   * The components actually used by this node.
{'fraction_non_alphanumeric': 0.10135135135135136, 'fraction_numerical': 0.008108108108108109, 'mean_word_length': 4.485185185185185, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5632017', 'n_tokens_mistral': 463, 'n_tokens_neox': 430, 'n_words': 126}