<commit_before>require 'minitest_helper'

describe Repository, 'Commit' do
  
  let(:repository) { Repository.new :test }

  it 'Without commits' do
    repository.log.must_be_empty
  end

  it 'First commit' do
    repository[:countries].insert 'AR', name: 'Argentina'
    commit = repository.commit author: 'User', message: 'First commit'

    repository.log.count.must_equal 1<commit_msg>Rename test<commit_after>require 'minitest_helper'

describe Repository, 'Log' do
  
  let(:repository) { Repository.new :test }

  it 'Without commits' do
    repository.log.must_be_empty
  end

  it 'First commit' do
    repository[:countries].insert 'AR', name: 'Argentina'
    commit = repository.commit author: 'User', message: 'First commit'

    repository.log.count.must_equal 1
{'fraction_non_alphanumeric': 0.11068211068211069, 'fraction_numerical': 0.002574002574002574, 'mean_word_length': 4.256756756756757, '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': '3989009', 'n_tokens_mistral': 255, 'n_tokens_neox': 243, 'n_words': 64}