<commit_before>class Reply < ActiveRecord::Base
  attr_accessible :body, :message_id

  belongs_to :message

  validates_presence_of :body, :message_id

  def send_reply
    twilio_sid = ENV["TWILIO_SID"]
    twilio_token = ENV["TWILIO_TOKEN"]
    twilio_phone_number = ENV["TWILIO_PHONE_NUMBER"]
    sender_phone_number = ENV["SENDER_PHONE_NUMBER"]

    twilio_client = Twilio::REST::Client.new(twilio_sid, twilio_token)

    twilio_client.account.sms.messages.create(
      :from => twilio_phone_number,
      :to => sender_phone_number,
      :body => body)
  end
end<commit_msg>Refactor send_reply<commit_after>class Reply < ActiveRecord::Base
  attr_accessible :body, :message_id

  belongs_to :message

  validates_presence_of :body, :message_id

  def send_reply
    twilio_client = Twilio::REST::Client.new(twilio_sid, twilio_token)

    twilio_client.account.sms.messages.create(
      :from => twilio_phone_number,
      :to => sender_phone_number,
      :body => body)
  end

  def twilio_sid
    ENV["TWILIO_SID"]
  end

  def twilio_token
    ENV["TWILIO_TOKEN"]
  end

  def twilio_phone_number
    ENV["TWILIO_PHONE_NUMBER"]
  end

  def sender_phone_number
    ENV["SENDER_PHONE_NUMBER"]
  end
end
{'fraction_non_alphanumeric': 0.09398186314921682, 'fraction_numerical': 0.0, 'mean_word_length': 4.255411255411255, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6569233', 'n_tokens_mistral': 464, 'n_tokens_neox': 436, 'n_words': 74}