<commit_before>require File.expand_path(File.join(File.dirname(__FILE__), '../spec_helper.rb'))

describe TestbotCloud::Providers::Ec2 do

  describe "generate_project" do

    it "should use thor to copy config files" do
      mock_generator = MiniTest::Mock.new
      mock_generator.expect :copy_file, nil, [ "ec2/config.yml", "demo/config.yml" ]
      mock_generator.expect :copy_file, nil, [ "ec2/ssh_key.pem", "demo/ssh_key.pem" ]
      provider = TestbotCloud::Providers::Ec2.new(mock_generator)
      provider.generate_project("demo")
      mock_generator.verify
    end

  end

end
<commit_msg>Making intent a bit clearer and less coupled to thor.<commit_after>require File.expand_path(File.join(File.dirname(__FILE__), '../spec_helper.rb'))

describe TestbotCloud::Providers::Ec2 do

  describe "generate_project" do

    it "should use a generator to copy config files" do
      mock_generator = MiniTest::Mock.new
      mock_generator.expect :copy_file, nil, [ "ec2/config.yml", "demo/config.yml" ]
      mock_generator.expect :copy_file, nil, [ "ec2/ssh_key.pem", "demo/ssh_key.pem" ]
      provider = TestbotCloud::Providers::Ec2.new(mock_generator)
      provider.generate_project("demo")
      mock_generator.verify
    end

  end

end

{'fraction_non_alphanumeric': 0.12070343725019984, 'fraction_numerical': 0.006394884092725819, 'mean_word_length': 4.0894308943089435, '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': '4523264', 'n_tokens_mistral': 425, 'n_tokens_neox': 400, 'n_words': 84}