<commit_before>require 'test_helper'

class ArtefactTest < ActiveSupport::TestCase
  setup do
    @artefact = FactoryGirl.create(:artefact)
  end

  test "should set indexable_content on artefacts" do
    @artefact.indexable_content = "Searchy searchy McSearch"
    assert_equal "Searchy searchy McSearch", @artefact.indexable_content
  end

  test "should not persist indexable content" do
    @artefact.indexable_content = "Searchy searchy McSearch"
    @artefact.save

    reloaded_artefact = Artefact.find(@artefact.id)
    assert_nil reloaded_artefact.indexable_content
  end

end
<commit_msg>Whitespace cleanup<commit_after>require 'test_helper'

class ArtefactTest < ActiveSupport::TestCase
  setup do
    @artefact = FactoryGirl.create(:artefact)
  end

  test "should set indexable_content on artefacts" do
    @artefact.indexable_content = "Searchy searchy McSearch"
    assert_equal "Searchy searchy McSearch", @artefact.indexable_content
  end

  test "should not persist indexable content" do
    @artefact.indexable_content = "Searchy searchy McSearch"
    @artefact.save

    reloaded_artefact = Artefact.find(@artefact.id)
    assert_nil reloaded_artefact.indexable_content
  end
end

{'fraction_non_alphanumeric': 0.07, 'fraction_numerical': 0.0, 'mean_word_length': 4.8019323671497585, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7361247', 'n_tokens_mistral': 383, 'n_tokens_neox': 388, 'n_words': 91}