<commit_before>import Foundation

@objcMembers
public final class Envoy: NSObject {
  private let engine: EnvoyEngine = EnvoyEngineImpl()
  private let runner: RunnerThread

  /// Indicates whether this Envoy instance is currently active and running.
  public var isRunning: Bool {
    return self.runner.isExecuting
  }

  /// Indicates whether the Envoy instance is terminated.
  public var isTerminated: Bool {
    return self.runner.isFinished
  }

  /// Initialize a new Envoy instance.
  ///
  /// - parameter config:   Configuration file that is recognizable by Envoy (YAML).
  /// - parameter logLevel: Log level to use for this instance.
  public init(config: String, logLevel: LogLevel = .info) {
    //self.engine = engine
    self.runner = RunnerThread(config: config, engine: self.engine, logLevel: logLevel)
    self.runner.start()
  }

  private final class RunnerThread: Thread {
    private let engine: EnvoyEngine
    private let config: String<commit_msg>swift: delete commented out line (#335)<commit_after>import Foundation

@objcMembers
public final class Envoy: NSObject {
  private let engine: EnvoyEngine = EnvoyEngineImpl()
  private let runner: RunnerThread

  /// Indicates whether this Envoy instance is currently active and running.
  public var isRunning: Bool {
    return self.runner.isExecuting
  }

  /// Indicates whether the Envoy instance is terminated.
  public var isTerminated: Bool {
    return self.runner.isFinished
  }

  /// Initialize a new Envoy instance.
  ///
  /// - parameter config:   Configuration file that is recognizable by Envoy (YAML).
  /// - parameter logLevel: Log level to use for this instance.
  public init(config: String, logLevel: LogLevel = .info) {
    self.runner = RunnerThread(config: config, engine: self.engine, logLevel: logLevel)
    self.runner.start()
  }

  private final class RunnerThread: Thread {
    private let engine: EnvoyEngine
    private let config: String
{'fraction_non_alphanumeric': 0.08320493066255778, 'fraction_numerical': 0.0015408320493066256, 'mean_word_length': 3.467889908256881, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7460843', 'n_tokens_mistral': 551, 'n_tokens_neox': 527, 'n_words': 200}