<commit_before>require_relative '../spec_helper'

module Kamerling describe Project do
  describe '.from_h' do
    it 'deserialises a project from a hash' do
      hash = { name: 'project name', uuid: uuid = UUID.new }
      Project.from_h(hash).must_equal Project[name: 'project name', uuid: uuid]
    end
  end

  describe '.new' do
    it 'gives the project a random UUID if not provided' do
      p1 = Project[name: 'a']
      p2 = Project[name: 'b']
      p1.uuid.wont_equal p2.uuid
    end
  end
end end<commit_msg>drop Project.from_h spec<commit_after>require_relative '../spec_helper'

module Kamerling describe Project do
  describe '.new' do
    it 'gives the project a random UUID if not provided' do
      p1 = Project[name: 'a']
      p2 = Project[name: 'b']
      p1.uuid.wont_equal p2.uuid
    end
  end
end end
{'fraction_non_alphanumeric': 0.10048426150121065, 'fraction_numerical': 0.009685230024213076, 'mean_word_length': 2.995169082125604, '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': '1759442', 'n_tokens_mistral': 276, 'n_tokens_neox': 278, 'n_words': 93}