<commit_before>require 'translator_helper'
module Alf
  module Sequel
    describe Translator do

      subject{ Translator.new(db).call(sql_cog.sexpr) }

      Alf::Test.each_query do |query|
        context "on `#{query['query']}`" do
          let(:alf_ast){ conn.parse(query['query']) }
          let(:sql_cog){ Alf::Sql::Compiler.new.call(alf_ast) }

          # before do
          #   puts "---"
          #   puts query['query']
          #   puts sql_cog.to_sql
          #   puts subject.sql
          # end

          it{ should be_a(::Sequel::Dataset) }
        end
      end

    end
  end
end
  <commit_msg>Don't try to compile non-sqlizable tests.<commit_after>require 'translator_helper'
module Alf
  module Sequel
    describe Translator do

      subject{ Translator.new(db).call(sql_cog.sexpr) }

      Alf::Test.each_query do |query|
        next unless query['sql']

        context "on `#{query['query']}`" do
          let(:alf_ast){ conn.parse(query['query']) }
          let(:sql_cog){ Alf::Sql::Compiler.new.call(alf_ast) }

          # before do
          #   puts "---"
          #   puts query['query']
          #   puts sql_cog.to_sql
          #   puts subject.sql
          # end

          it{ should be_a(::Sequel::Dataset) }
        end
      end

    end
  end
end
  
{'fraction_non_alphanumeric': 0.1280674846625767, 'fraction_numerical': 0.0, 'mean_word_length': 1.9129464285714286, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5967711', 'n_tokens_mistral': 430, 'n_tokens_neox': 433, 'n_words': 88}