<commit_before>
When(/^I request user information for myself(, without my access token)?$/) do |no_token|
  access_token = @me.access_token unless no_token
  $zuul.get_user_info(@me.local_id, access_token)
end

When(/^I request user information for a nonexistent user$/) do
  nonexistent_user_id = @me.local_id.to_i + 1000
  $zuul.get_user_info(nonexistent_user_id, @me.access_token)
end

When(/^I request user information for the other user$/) do
  $zuul.get_user_info(@you.local_id, @me.access_token)
end

When(/^I change my email address$/) do
  @me.username = random_email
end

When(/^I change my ((!client's ).+) to "(.+)"$/) do |name, value|
  method_name = "#{oauth_param_name(name)}="
  @me.send(method_name, value)
end

# Inverts a Boolean attribute of the user
When(/^I change whether I (.+)$/) do |name|
  get_method_name = oauth_param_name(name)
  set_method_name = "#{get_method_name}="
  new_value = !@me.send(get_method_name)
  @me.send(set_method_name, new_value)
end

When(/^I request my user information be updated(, without my access token)?$/) do |no_token|
  access_token = @me.access_token unless no_token
  $zuul.update_user(@me, access_token)
end

When(/^I request the other user's information be updated$/) do
  $zuul.update_user(@you, @me.access_token)
end

Then(/^(?:the response|it) contains (basic|complete) user information matching my(?: new)? details$/) do |format|
  validate_user_information_response(format.to_sym)
end<commit_msg>Minor step fix<commit_after>
When(/^I request user information for myself(, without my access token)?$/) do |no_token|
  access_token = @me.access_token unless no_token
  $zuul.get_user_info(@me.local_id, access_token)
end

When(/^I request user information for a nonexistent user$/) do
  nonexistent_user_id = @me.local_id.to_i + 1000
  $zuul.get_user_info(nonexistent_user_id, @me.access_token)
end

When(/^I request user information for the other user$/) do
  $zuul.get_user_info(@you.local_id, @me.access_token)
end

When(/^I change my email address$/) do
  @me.username = random_email
end

When(/^I change my ((?!.*client's ).+) to "(.+)"$/) do |name, value|
  method_name = "#{oauth_param_name(name)}="
  @me.send(method_name, value)
end

# Inverts a Boolean attribute of the user
When(/^I change whether I (.+)$/) do |name|
  get_method_name = oauth_param_name(name)
  set_method_name = "#{get_method_name}="
  new_value = !@me.send(get_method_name)
  @me.send(set_method_name, new_value)
end

When(/^I request my user information be updated(, without my access token)?$/) do |no_token|
  access_token = @me.access_token unless no_token
  $zuul.update_user(@me, access_token)
end

When(/^I request the other user's information be updated$/) do
  $zuul.update_user(@you, @me.access_token)
end

Then(/^(?:the response|it) contains (basic|complete) user information matching my(?: new)? details$/) do |format|
  validate_user_information_response(format.to_sym)
end
{'fraction_non_alphanumeric': 0.1359918200408998, 'fraction_numerical': 0.0027266530334014998, 'mean_word_length': 5.352813852813853, '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': '5974269', 'n_tokens_mistral': 1053, 'n_tokens_neox': 1032, 'n_words': 275}