<commit_before>Radiate360::Business = Struct.new :api_username, :api_key, :username, :business_id do
  include StructExtensions

  def pause(toggle)
    Radiate360.call 'businesses/pause', {
      :fields => {:username => self.username, :business_id => self.business_id, :pause => toggle},
      :constraints => { :required => %w(username business_id pause) },
      :credentials => { :username => :api_username, :password => :api_key }
    }, :post
  end
  
  def bury(toggle)
    Radiate360.call 'businesses/bury', {
      :fields => {:username => self.username, :business_id => self.business_id, :bury => toggle},
      :constraints => { :required => %w(username business_id bury) },
      :credentials => { :username => :api_username, :password => :<PASSWORD> }
    }, :post
  end
end<commit_msg>Working with business routes now too<commit_after>Radiate360::Business = Struct.new :api_username, :api_key, :username, :business_id do
  include StructExtensions

  def pause(toggle)
    Radiate360.call "businesses/#{self.business_id}/pause/#{toggle.to_s}", {
      :fields => {:username => self.username},
      :constraints => { :required => %w(username) },
      :credentials => { :username => self.api_username, :password => self.api_key }
    }, :post
  end
  
  def bury(toggle)
    Radiate360.call "businesses/#{self.business_id}/bury/#{toggle.to_s}", {
      :fields => {:username => self.username},
      :constraints => { :required => %w(username) },
      :credentials => { :username => self.api_username, :password => self.api_key }
    }, :post
  end
end
{'fraction_non_alphanumeric': 0.16326530612244897, 'fraction_numerical': 0.011479591836734694, 'mean_word_length': 3.872670807453416, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 36, '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': '4090632', 'n_tokens_mistral': 511, 'n_tokens_neox': 486, 'n_words': 104}