<commit_before>require 'test_helper'

class RecordTest < ActiveSupport::TestCase
  # test "the truth" do
  #   assert true
  # end
end
<commit_msg>New tests, testing activerecord new<commit_after>require 'test_helper'

class RecordTest < ActiveSupport::TestCase
  test "should be able to create a new Record" do
    rec = Record.new(:data => "itemType: book", :format => "csf")
    assert rec.to_ris.eql? "TY  - BOOK\nER  -\n\n"
    assert rec.to_bibtex.eql? "@book{????\n}"
    assert rec.to_openurl.eql? "rft.ulr_ver=Z39.88-2004&rft.ctx_ver=Z39.88-2004&rft.rfr_id=info:sid/libraries.nyu.edu:citero&rft_val_fmlt=info:ofi/fmt:kev:mtx:book&rft.genre=book"
    assert rec.to_easybib.eql? "{\"source\":\"book\",\"book\":{\"title\":null},\"pubtype\":{\"main\":\"pubnonperiodical\"},\"pubnonperiodical\":{},\"contributors\":[{}]}"
  end
end

{'fraction_non_alphanumeric': 0.1901913875598086, 'fraction_numerical': 0.019138755980861243, 'mean_word_length': 4.772413793103448, 'pattern_counts': {'":': 7, '<': 5, '<?xml version=': 0, '>': 5, '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': '6327059', 'n_tokens_mistral': 343, 'n_tokens_neox': 326, 'n_words': 54}