<commit_before>require 'spec_helper'

module Beatport::Catalog
  describe Search do
    describe '.get' do
      it "should perform a simple search with just a string" do
        results = Search.query('believe 2004')
        results.length.should be >= 1
      end
      
      it "should not find a release by catalogue number" do
        results = Search.query("ANJCDCO011D")
        results.length.should be 0
      end
      
      it "should find all content for Anjunadepe that has something to do with Trance" do
        results = Search.query('anjunadeep', :facets => { :genre_name => 'Trance' })
        results.length.should be > 1
        
        results.grouped.keys.should == ["Track", "Chart", "Label", "Release"]
      end<commit_msg>Fixed typo in search spec<commit_after>require 'spec_helper'

module Beatport::Catalog
  describe Search do
    describe '.get' do
      it "should perform a simple search with just a string" do
        results = Search.query('believe 2004')
        results.length.should be >= 1
      end
      
      it "should not find a release by catalogue number" do
        results = Search.query("ANJCDCO011D")
        results.length.should be 0
      end
      
      it "should find all content for Anjunadeep that has something to do with Trance" do
        results = Search.query('anjunadeep', :facets => { :genre_name => 'Trance' })
        results.length.should be > 1
        
        results.grouped.keys.should == ["Track", "Chart", "Label", "Release"]
      end
{'fraction_non_alphanumeric': 0.095112285336856, 'fraction_numerical': 0.013210039630118891, 'mean_word_length': 2.4510250569476084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '489649', 'n_tokens_mistral': 444, 'n_tokens_neox': 421, 'n_words': 149}