<commit_before>module Pione
  module Command
    # Spawner is a utility class for calling pione commands as different
    # process. We assume both caller and callee commands have front server.
    class Spawner
      attr_reader :pid         # PID of spawned child process
      attr_reader :child_front # front URI of spawned child process

      def initialize(name)
        @name = name # callee command name
        @args = []   # callee command arguments
      end

      # Spawn the command process.
      def spawn
        Log::Debug.system("process \"%s\" is spawned with arguments %s" % [@name, @args])

        # create a new process and watch it
        pid = Process.spawn(@name, *@args)
<commit_msg>Change @thread of `Command::Spawner` to be public.<commit_after>module Pione
  module Command
    # Spawner is a utility class for calling pione commands as different
    # process. We assume both caller and callee commands have front server.
    class Spawner
      attr_reader :pid         # PID of spawned child process
      attr_reader :child_front # front URI of spawned child process
      attr_reader :thread      # watch thread for spawned child process

      def initialize(name)
        @name = name # callee command name
        @args = []   # callee command arguments
      end

      # Spawn the command process.
      def spawn
        Log::Debug.system("process \"%s\" is spawned with arguments %s" % [@name, @args])

        # create a new process and watch it
        pid = Process.spawn(@name, *@args)

{'fraction_non_alphanumeric': 0.07166123778501629, 'fraction_numerical': 0.0, 'mean_word_length': 2.5391705069124426, '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': '6618233', 'n_tokens_mistral': 412, 'n_tokens_neox': 402, 'n_words': 174}