<commit_before>class Document < ActiveRecord::Base
end<commit_msg>Add a scope for full text search<commit_after>class Document < ActiveRecord::Base
  scope :full_text_search, -> (query) {
    where("content @@ ?", query)
  }
end
{'fraction_non_alphanumeric': 0.12280701754385964, 'fraction_numerical': 0.0, 'mean_word_length': 5.735294117647059, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '1839188', 'n_tokens_mistral': 70, 'n_tokens_neox': 68, 'n_words': 18}