<commit_before>module Pacer
  module Core
    module Route
      def except(excluded)
        if excluded.is_a? Symbol
          chain_route :filter => :property, :block => proc { |v| v.vars[excluded] != v }
        else
          chain_route :filter => :collection, :except => excluded
        end
      end

      def only(included)
        if included.is_a? Symbol
          chain_route :filter => :property, :block => proc { |v| v.vars[included] == v }
        else
          chain_route :filter => :collection, :only => included
        end<commit_msg>route - route is the same as route.except(route)<commit_after>module Pacer
  module Core
    module Route
      def except(excluded)
        if excluded.is_a? Symbol
          chain_route :filter => :property, :block => proc { |v| v.vars[excluded] != v }
        else
          chain_route :filter => :collection, :except => excluded
        end
      end

      def -(other)
        chain_route :filter => :collection, :except => other
      end

      def only(included)
        if included.is_a? Symbol
          chain_route :filter => :property, :block => proc { |v| v.vars[included] == v }
        else
          chain_route :filter => :collection, :only => included
        end
{'fraction_non_alphanumeric': 0.11048387096774194, 'fraction_numerical': 0.0, 'mean_word_length': 2.1338383838383836, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '4316517', 'n_tokens_mistral': 357, 'n_tokens_neox': 347, 'n_words': 107}