<commit_before>module Pacer
  module Routes::RouteOperations
    # Store the current intermediate element in the route's vars hash by the
    # given name so that it is accessible subsequently in the processing of the
    # route.
    def as(name)
      as = ::Pacer::SideEffect::As
      section(name, as::SingleElementSet).chain_route :side_effect => as, :variable_name => name
    end
  end

  module SideEffect
    module As
      attr_accessor :variable_name

      def root?
        false
      end

      protected

      def attach_pipe(pipe)
        Pacer::Pipes::VariableStoreIteratorWrapper.new(pipe, vars, @variable_name)
      end

      def has_routable_class?
        false
      end

      def inspect_class_name
        @variable_name.inspect
      end

      class SingleElementSet < HashSet
        def on_element(element)
          clear
          add element
        end

        def reset
          clear<commit_msg>Remove dead has_routable_class? and redundant root? methods<commit_after>module Pacer
  module Routes::RouteOperations
    # Store the current intermediate element in the route's vars hash by the
    # given name so that it is accessible subsequently in the processing of the
    # route.
    def as(name)
      as = ::Pacer::SideEffect::As
      section(name, as::SingleElementSet).chain_route :side_effect => as, :variable_name => name
    end
  end

  module SideEffect
    module As
      import java.util.HashSet

      attr_accessor :variable_name

      protected

      def attach_pipe(pipe)
        Pacer::Pipes::VariableStoreIteratorWrapper.new(pipe, vars, @variable_name)
      end

      def inspect_class_name
        @variable_name.inspect
      end

      class SingleElementSet < HashSet
        def on_element(element)
          clear
          add element
        end

        def reset
          clear
{'fraction_non_alphanumeric': 0.05705059203444564, 'fraction_numerical': 0.0, 'mean_word_length': 2.38, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6583626', 'n_tokens_mistral': 515, 'n_tokens_neox': 495, 'n_words': 157}