<commit_before>describe ProfilesSearch, type: :model do
  let!(:profile) { FactoryGirl.create(:published, firstname: 'Gertrud', lastname: 'Mueller', twitter: 'Apfel', city: 'Berlin', languages: 'Englisch') }
  let!(:profile1) { FactoryGirl.create(:published, firstname: 'Claudia', email: '<EMAIL>', city: 'Paris', languages: 'Polnisch', twitter: 'Birne') }

  let!(:profile_language_de) { ProfileLanguage.create!(profile: profile, iso_639_1: 'de') }
  let!(:profile_language_en) { ProfileLanguage.create!(profile: profile, iso_639_1: 'en') }

  let!(:profile_not_matched) { FactoryGirl.create(:published, firstname: 'Claudia', email: '<EMAIL>', city: 'Paris', twitter: 'Birne') }
  let!(:profile_not_published) { FactoryGirl.create(:unpublished, firstname: 'Fred') }

  let!(:profile_language_de) { ProfileLanguage.create!(profile: profile, iso_639_1: 'de') }
  let!(:profile_language_en) { ProfileLanguage.create!(profile: profile, iso_639_1: 'en') }

  let!(:profile_not_matched) { FactoryGirl.create(:published, firstname: 'Claudia', email: '<EMAIL>', city: 'Paris', twitter: 'Birne') }
  let!(:profile_not_published) { FactoryGirl.create(:unpublished, firstname: 'Fred') }

  let!(:profile_language_de) { ProfileLanguage.create!(profile: profile, iso_639_1: 'de') }
  let!(:profile_language_en) { ProfileLanguage.create!(profile: profile, iso_639_1: 'en') }<commit_msg>add a if statement to get topic search working<commit_after>describe ProfilesSearch, type: :model do
  let!(:profile) { FactoryGirl.create(:published, firstname: 'Gertrud', lastname: 'Mueller', twitter: 'Apfel', city: 'Berlin', languages: 'Englisch') }
  let!(:profile_not_matched) { FactoryGirl.create(:published, firstname: 'Claudia', email: '<EMAIL>', city: 'Paris', languages: 'Polnisch', twitter: 'Birne') }

  let!(:profile_language_de) { ProfileLanguage.create!(profile: profile, iso_639_1: 'de') }
  let!(:profile_language_en) { ProfileLanguage.create!(profile: profile, iso_639_1: 'en') }

  let!(:profile_not_matched) { FactoryGirl.create(:published, firstname: 'Claudia', email: '<EMAIL>', city: 'Paris', twitter: 'Birne') }
  let!(:profile_not_published) { FactoryGirl.create(:unpublished, firstname: 'Fred') }

  let!(:profile_language_de) { ProfileLanguage.create!(profile: profile, iso_639_1: 'de') }
  let!(:profile_language_en) { ProfileLanguage.create!(profile: profile, iso_639_1: 'en') }

  let!(:profile_not_matched) { FactoryGirl.create(:published, firstname: 'Claudia', email: '<EMAIL>', city: 'Paris', twitter: 'Birne') }
  let!(:profile_not_published) { FactoryGirl.create(:unpublished, firstname: 'Fred') }

  let!(:profile_language_de) { ProfileLanguage.create!(profile: profile, iso_639_1: 'de') }
  let!(:profile_language_en) { ProfileLanguage.create!(profile: profile, iso_639_1: 'en') }
{'fraction_non_alphanumeric': 0.17347670250896058, 'fraction_numerical': 0.01756272401433692, 'mean_word_length': 7.97427652733119, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2869912', 'n_tokens_mistral': 992, 'n_tokens_neox': 911, 'n_words': 182}