<commit_before># encoding: utf-8

require_relative 'input_type_resolver'
require_relative '../../../importer/lib/importer/query_batcher'

module CartoDB
  module InternalGeocoder

    class AbstractQueryGenerator

      def initialize(internal_geocoder)
        @internal_geocoder = internal_geocoder
      end

      #TODO custom exception
      def search_terms_query(page)
        raise 'Not implemented'
      end

      def dataservices_query(search_terms)
        raise 'Not implemented'
      end

      def copy_results_to_table_query
        raise 'Not implemented'
      end

      def country
        country = @internal_geocoder.countries
        country == %Q{'world'} ? 'null' : country
      end

      def dest_table
        @internal_geocoder.qualified_table_name
      end

    end # AbstractQueryGenerator

  end # InternalGeocoder
end #CartoDB<commit_msg>Fix for the query generator #1989<commit_after># encoding: utf-8

require_relative 'input_type_resolver'
require_relative '../../../importer/lib/importer/query_batcher'

module CartoDB
  module InternalGeocoder

    class AbstractQueryGenerator

      def initialize(internal_geocoder)
        @internal_geocoder = internal_geocoder
      end

      #TODO custom exception
      def search_terms_query(page)
        raise 'Not implemented'
      end

      def dataservices_query(search_terms)
        raise 'Not implemented'
      end

      def copy_results_to_table_query
        raise 'Not implemented'
      end

      def country
        country = @internal_geocoder.countries
        (country == %Q{'world'} || country.blank?) ? 'null' : country
      end

      def dest_table
        @internal_geocoder.qualified_table_name
      end

    end # AbstractQueryGenerator

  end # InternalGeocoder
end #CartoDB
{'fraction_non_alphanumeric': 0.0664804469273743, 'fraction_numerical': 0.0033519553072625698, 'mean_word_length': 2.7234927234927233, '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': '260554', 'n_tokens_mistral': 530, 'n_tokens_neox': 504, 'n_words': 121}