<commit_before>require 'blinkbox/user'
include Blinkbox
module UserManagement
  def user_interface(params = {})
    if @_user_interface.nil?
      username = params[:username] ? params[:username] : test_data['users']['existing']['emailaddress']
      password = params[:password] ? params[:password] : test_data['users']['existing']['password'] 
      @_user_interface ||= User.new(:grant_type => "password", :username => username, 
                                    :password => password)
      @_user_interface.authenticate
    end
    @_user_interface
  end
end<commit_msg>fixed the user deletion so that it works on the correct environment<commit_after>require 'blinkbox/user'
include Blinkbox
module UserManagement
  def user_interface(params = {})
    if @_user_interface.nil?
      username = params[:username] ? params[:username] : test_data['users']['existing']['emailaddress']
      password = params[:password] ? params[:password] : test_data['users']['existing']['password']
      @_user_interface ||= User.new(:server_uri => test_conf_data['environment'][test_conf_data['test']['environment']]['url']['auth'], :grant_type => "password", :username => username, 
                                    :password => password)
      @_user_interface.authenticate
    end
    @_user_interface
  end
end
{'fraction_non_alphanumeric': 0.14056531703590527, 'fraction_numerical': 0.0, 'mean_word_length': 4.038461538461538, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6428631', 'n_tokens_mistral': 356, 'n_tokens_neox': 348, 'n_words': 72}