<commit_before>require 'test_helper'

class AttendeeTest < ActiveSupport::TestCase
  setup do
#    Attendee.all.each() do |a|
#     print "#{a.FIRST_NAME}\n"
#    end
  end

  test "can get composite name" do
    a = Attendee.find_by_LAST_NAME( "Shappe" )
    assert_equal "<NAME>", a.name
  end<commit_msg>Be graceful about Attendee not having a DB<commit_after>require 'test_helper'

class AttendeeTest < ActiveSupport::TestCase
  setup do
#    Attendee.all.each() do |a|
#     print "#{a.FIRST_NAME}\n"
#    end
  end

  test "can get composite name" do
    skip "Cannot test in this environment" unless Attendee.connected?
    a = Attendee.find_by_LAST_NAME( "Shappe" )
    assert_equal "<NAME>", a.name
  end
{'fraction_non_alphanumeric': 0.11220196353436185, 'fraction_numerical': 0.0, 'mean_word_length': 3.6666666666666665, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4121238', 'n_tokens_mistral': 254, 'n_tokens_neox': 248, 'n_words': 69}