<commit_before>module ActiveZuora
  module Querying

    extend ActiveSupport::Concern

    included do
      class << self
        delegate :select, :where, :all, :as_hashes, :to => :scoped
      end
    end

    module ClassMethods

      def exclude_from_queries(*field_names)
        (@excluded_from_queries ||= []).concat field_names.map(&:to_sym)
      end

      def scoped
        query_field_names = field_names - (@excluded_from_queries ||= [])
        Scope.new(self, query_field_names)
      end

      def find(id)
        return nil if id.blank?
        where(:id => id).all.first
      end

    end

  end
end

<commit_msg>removed 'all' from scope when finding for sipmlicity<commit_after>module ActiveZuora
  module Querying

    extend ActiveSupport::Concern

    included do
      class << self
        delegate :select, :where, :all, :as_hashes, :to => :scoped
      end
    end

    module ClassMethods

      def exclude_from_queries(*field_names)
        (@excluded_from_queries ||= []).concat field_names.map(&:to_sym)
      end

      def scoped
        query_field_names = field_names - (@excluded_from_queries ||= [])
        Scope.new(self, query_field_names)
      end

      def find(id)
        return nil if id.blank?
        where(:id => id).first
      end

    end

  end
end


{'fraction_non_alphanumeric': 0.09382151029748284, 'fraction_numerical': 0.0, 'mean_word_length': 2.372750642673522, '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': '1526548', 'n_tokens_mistral': 429, 'n_tokens_neox': 408, 'n_words': 101}