<commit_before>RSpec.describe 'layouts/application' do
  it 'given snippet with slug "head" renders it right before </head>', issues: [41] do
    snippet = create(:snippet, slug: 'head')

    render template: 'application/root', layout: 'layouts/application'

    expect(response).to match /#{snippet.text}<\/head>/
  end
end<commit_msg>cleanup regexp<commit_after>RSpec.describe 'layouts/application' do
  it 'given snippet with slug "head" renders it right before </head>', issues: [41] do
    snippet = create(:snippet, slug: 'head')

    render template: 'application/root', layout: 'layouts/application'

    expect(response).to match (/#{snippet.text}<\/head>/im)
  end
end
{'fraction_non_alphanumeric': 0.14432989690721648, 'fraction_numerical': 0.005891016200294551, 'mean_word_length': 4.573770491803279, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1881162', 'n_tokens_mistral': 224, 'n_tokens_neox': 208, 'n_words': 62}