<commit_before>require 'active_resource'

module Socialcast
  class Message < ActiveResource::Base
    def self.configure_from_credentials
      Socialcast::Message.site = ['https://', Socialcast.credentials[:domain], '/api'].join
      Socialcast::Message.proxy = credentials[:proxy] if Socialcast.credentials[:proxy]
      Socialcast::Message.user = Socialcast.credentials[:user]
      Socialcast::Message.password = Socialcast.credentials[:password]
    end
  end
end

<commit_msg>Fixed issue with proxy settings<commit_after>require 'active_resource'

module Socialcast
  class Message < ActiveResource::Base
    def self.configure_from_credentials
      Socialcast::Message.site = ['https://', Socialcast.credentials[:domain], '/api'].join
      Socialcast::Message.proxy = Socialcast.credentials[:proxy] if Socialcast.credentials[:proxy]
      Socialcast::Message.user = Socialcast.credentials[:user]
      Socialcast::Message.password = <PASSWORD>]
    end
  end
end


{'fraction_non_alphanumeric': 0.11692307692307692, 'fraction_numerical': 0.0, 'mean_word_length': 4.915151515151515, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '3679303', 'n_tokens_mistral': 266, 'n_tokens_neox': 263, 'n_words': 52}