<commit_before>class Podio::Reminder < ActivePodio::Base
  property :reminder_id, :integer
  property :remind_delta, :integer

  alias_method :id, :reminder_id
  
  class << self
    def delete(id)
      Podio.connection.delete("/reminder/#{id}").body
    end
    
    def snooze(id)
      Podio.connection.post("/reminder/#{id}/snooze").body
    end

    def update(id, attributes)
      response = Podio.connection.put do |req|
        req.url "/reminder/#{id}"
        req.body = attributes
      end
      response.status
    end
  end
  
end<commit_msg>Update and delete methods for reminders<commit_after>class Podio::Reminder < ActivePodio::Base
  property :reminder_id, :integer
  property :remind_delta, :integer

  alias_method :id, :reminder_id
  
  class << self
    def delete(ref_type, ref_id)
      Podio.connection.delete("/reminder/#{ref_type}/#{ref_id}").body
    end
    
    def snooze(id)
      Podio.connection.post("/reminder/#{id}/snooze").body
    end

    def create(ref_type, ref_id, attributes)
      response = Podio.connection.post do |req|
        req.url "/reminder/#{ref_type}/#{ref_id}"
        req.body = attributes
      end
      response.status
    end

    def update(ref_type, ref_id, attributes)
      response = Podio.connection.put do |req|
        req.url "/reminder/#{ref_type}/#{ref_id}"
        req.body = attributes
      end
      response.status
    end
  end
  
end
{'fraction_non_alphanumeric': 0.11864406779661017, 'fraction_numerical': 0.0, 'mean_word_length': 2.7094240837696337, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5258948', 'n_tokens_mistral': 474, 'n_tokens_neox': 482, 'n_words': 97}