<commit_before>module ActiveresourceResponse
  module HttpResponse
    
    def headers
      @_active_resource_response_headers || symbolize_keys(to_hash)
    end
         
    def cookies
      unless @_active_resource_response_cookies
        @_active_resource_response_cookies    = (self.headers[:set_cookie] || {}).inject({}) do |out, cookie_str|
          CGI::Cookie::parse(cookie_str).each do |key, cookie|
            out[key] = cookie.value.first unless ['expires', 'path'].include? key
          end
          out
        end
      end
      @_active_resource_response_cookies
    end
<commit_msg>warning 'instance variable @_active_resource_response_* not initialized' fixed<commit_after>module ActiveresourceResponse
  module HttpResponse
    
    def headers
      unless defined? @_active_resource_response_headers
        @_active_resource_response_headers = symbolize_keys(to_hash)
      end
      @_active_resource_response_headers
    end
         
    def cookies
      unless defined? @_active_resource_response_cookies
        @_active_resource_response_cookies    = (self.headers[:set_cookie] || {}).inject({}) do |out, cookie_str|
          CGI::Cookie::parse(cookie_str).each do |key, cookie|
            out[key] = cookie.value.first unless ['expires', 'path'].include? key
          end
          out
        end
      end
      @_active_resource_response_cookies
    end

{'fraction_non_alphanumeric': 0.08220157255182273, 'fraction_numerical': 0.0, 'mean_word_length': 2.8997214484679668, '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': '360304', 'n_tokens_mistral': 398, 'n_tokens_neox': 393, 'n_words': 82}