<commit_before>module Sendcloud
  class Unsubscribe
    
    def initialize sendcloud
      @sendcloud = sendcloud
    end
    
    # options:
    # :days, :start_date, :end_date, :start, :limit, :email
    def list paramters = {}
      Sendcloud.submit :get, unsubscribe_url('get'), paramters
    end
    
    def add email
      Sendcloud.submit :post, unsubscribe_url('add'), {:email => email}
    end
    
    # options:
    # :start_date, :end_date, :email
    def remove paramters = {}
      Sendcloud.submit :post, unsubscribe_url('delete'), paramters
    end
    
    private
    
    def unsubscribe_url motion = 'get'
      @sendcloud.base_url('subscribes', motion)
    end
  end
end<commit_msg>solve error unsubscribe_url mod=subscribe<commit_after>module Sendcloud
  class Unsubscribe
    
    def initialize sendcloud
      @sendcloud = sendcloud
    end
    
    # options:
    # :days, :start_date, :end_date, :start, :limit, :email
    def list paramters = {}
      Sendcloud.submit :get, unsubscribe_url('get'), paramters
    end
    
    def add email
      Sendcloud.submit :post, unsubscribe_url('add'), {:email => email}
    end
    
    # options:
    # :start_date, :end_date, :email
    def remove paramters = {}
      Sendcloud.submit :post, unsubscribe_url('delete'), paramters
    end
    
    private
    
    def unsubscribe_url motion = 'get'
      @sendcloud.base_url('unsubscribes', motion)
    end
  end
end
{'fraction_non_alphanumeric': 0.10069444444444445, 'fraction_numerical': 0.0, 'mean_word_length': 2.6760204081632653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7631812', 'n_tokens_mistral': 453, 'n_tokens_neox': 450, 'n_words': 114}