<commit_before>module Sentimeta::Client::Auth
  extend self
  extend Sentimeta::RestClient

  self.namespace = :auth

  def user token
    get :users, id: token
  end

  def signup attrs
    post :users, user: attrs
  end

  def signin attrs
    post :sessions, user: attrs
  end

  def reset_password_token email
    put 'passwords/create_token', email: email
  end

  def reset_password params
    put 'passwords/change', params
  end

  def oauth attrs
    post :oauth, identity: attrs
  end
end
<commit_msg>Signout on all devices<commit_after>module Sentimeta::Client::Auth
  extend self
  extend Sentimeta::RestClient

  self.namespace = :auth

  def user token
    get :users, id: token
  end

  def signup attrs
    post :users, user: attrs
  end

  def signin attrs
    post :sessions, user: attrs
  end

  def reset_password_token email
    put 'passwords/create_token', email: email
  end

  def reset_password params
    put 'passwords/change', params
  end

  def oauth attrs
    post :oauth, identity: attrs
  end

  def signout token
    delete :sessions, id: token
  end
end

{'fraction_non_alphanumeric': 0.06330275229357799, 'fraction_numerical': 0.0, 'mean_word_length': 3.1482889733840302, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3839083', 'n_tokens_mistral': 361, 'n_tokens_neox': 353, 'n_words': 123}