<commit_before>require 'rubygems'
require 'bundler/setup'

if ENV['COVERAGE']
  require 'simplecov'
  SimpleCov.start
end

require 'minitest/spec'
require 'minitest/autorun'
require 'mocha/setup'

require 'capissh/server_definition'

module TestExtensions
  def server(host, options={})
    Capissh::ServerDefinition.new(host, options)
  end

  def namespace(fqn=nil)
    space = stub(:roles => {}, :fully_qualified_name => fqn, :default_task => nil)
    yield(space) if block_given?
    space
  end

  def role(space, name, *args)
    opts = args.last.is_a?(Hash) ? args.pop : {}
    space.roles[name] ||= []
    space.roles[name].concat(args.map { |h| Capissh::ServerDefinition.new(h, opts) })
  end

  def new_task(name, namespace=@namespace, options={}, &block)
    block ||= Proc.new {}
    task = Capissh::TaskDefinition.new(name, namespace, options, &block)
    assert_equal block, task.body
    return task
  end
end

class MiniTest::Unit::TestCase
  include TestExtensions
end
<commit_msg>Remove unused test helper code.<commit_after>require 'rubygems'
require 'bundler/setup'

if ENV['COVERAGE']
  require 'simplecov'
  SimpleCov.start
end

require 'minitest/spec'
require 'minitest/autorun'
require 'mocha/setup'

require 'capissh/server_definition'

module TestExtensions
  def server(host, options={})
    Capissh::ServerDefinition.new(host, options)
  end
end

class MiniTest::Unit::TestCase
  include TestExtensions
end

{'fraction_non_alphanumeric': 0.12473867595818815, 'fraction_numerical': 0.0, 'mean_word_length': 4.790322580645161, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2315717', 'n_tokens_mistral': 496, 'n_tokens_neox': 488, 'n_words': 112}