<commit_before>require "spec_helper"
require "securerandom"

describe "EAD Metadata" do

  before(:all) do
    @ead = EAD::Metadata.new
  end

  after(:all) do
    $stdout.puts "\n#{@ead.to_ead_xml}"
  end

  describe "ead" do

    xit "creates a basic default record" do
      # TODO<commit_msg>Check basic record does not error<commit_after>require "spec_helper"
require "securerandom"

describe "EAD Metadata" do

  before(:all) do
    @ead = EAD::Metadata.new
  end

  after(:all) do
    $stdout.puts "\n#{@ead.to_ead_xml}"
  end

  describe "ead" do

    it "creates a basic default record" do
      expect {
        @ead.to_ead_xml
      }.to_not raise_error
{'fraction_non_alphanumeric': 0.11144578313253012, 'fraction_numerical': 0.0, 'mean_word_length': 3.1823899371069184, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '7359342', 'n_tokens_mistral': 247, 'n_tokens_neox': 234, 'n_words': 65}