<commit_before>module VagrantPlugins
  module Ventriloquist
    class Service
      CONTAINER_IDS_PATH = '/var/lib/ventriloquist/cids'

      attr_reader :name, :config, :docker_client

      def initialize(name, config, docker_client)
        @name, @config, @docker_client = name, config, docker_client
      end

      def provision(machine)
        machine.communicate.sudo("mkdir -p #{CONTAINER_IDS_PATH}")
        # Reduce network latency, see https://groups.google.com/d/msg/docker-user/Z3zQuRawIsE/2AEkl30WpTQJ
        # for more info
        @config[:dns]     = '127.0.0.1'
        @config[:cidfile] = "#{CONTAINER_IDS_PATH}/#{@name}"
        @docker_client.run_container(@config)
      end
    end
  end
end<commit_msg>Let the user know that services are being started<commit_after>module VagrantPlugins
  module Ventriloquist
    class Service
      CONTAINER_IDS_PATH = '/var/lib/ventriloquist/cids'

      attr_reader :name, :config, :docker_client

      def initialize(name, config, docker_client)
        @name, @config, @docker_client = name, config, docker_client
      end

      def provision(machine)
        machine.env.ui.info("Starting #{@name} service")
        machine.communicate.sudo("mkdir -p #{CONTAINER_IDS_PATH}")
        # Reduce network latency, see https://groups.google.com/d/msg/docker-user/Z3zQuRawIsE/2AEkl30WpTQJ
        # for more info
        @config[:dns]     = '127.0.0.1'
        @config[:cidfile] = "#{CONTAINER_IDS_PATH}/#{@name}"
        @docker_client.run_container(@config)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11411992263056092, 'fraction_numerical': 0.012894906511927788, 'mean_word_length': 2.9897172236503855, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5602234', 'n_tokens_mistral': 549, 'n_tokens_neox': 511, 'n_words': 100}