<commit_before>module Pushcar
  module ControllerMethods
    def subscribe_to(channel, options = {})
      identifier = options[:as] || session[:session_id]
      Pushcar::App.instance.subscribe request, channel, identifier
      render :status => -1, :nothing => true
    end

    def render_push(options)
      unless channel = options.delete(:channel)
        raise "render_push requires a channel"
      end
      
      Pushcar::App.instance.publish channel, render_to_string(options)
    end
  end
end<commit_msg>controller methods use the module methods<commit_after>module Pushcar
  module ControllerMethods
    def subscribe_to(channel, options = {})
      identifier = options[:as] || session[:session_id]
      Pushcar::subscribe request, channel, identifier
      render :status => -1, :nothing => true
    end

    def render_push(options)
      unless channel = options.delete(:channel)
        raise "render_push requires a channel"
      end
      
      Pushcar::publish channel, render_to_string(options)
    end
  end
end
{'fraction_non_alphanumeric': 0.08846153846153847, 'fraction_numerical': 0.0019230769230769232, 'mean_word_length': 3.2663934426229506, 'pattern_counts': {'":': 0, '<': 3, '<?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': '343914', 'n_tokens_mistral': 286, 'n_tokens_neox': 275, 'n_words': 78}