<commit_before># encoding: utf-8

module GithubCLI
  class Commands::Users < Command

    namespace :user

    desc 'list', 'List all users'
    option :since, :type => :string, :banner => "<user>",
           :desc => "The integer ID of the last User that you’ve seen."
    def list
      params = options[:params].dup
      params['since'] = options[:since] if options[:since]
      User.all params, options[:format]
    end

    desc 'get', 'Get the authenticated user'
    option :user, :type => :string, :aliases => ["-u"],
           :desc => 'Get a single unauthenticated <user>',
           :banner => '<user>'
    def get
      User.get options[:user], options[:params], options[:format]
    end

    desc 'update', 'Update the authenticated user'
    option :name, :type => :string
    option :email, :type => :string
    option :blog, :type => :string
    option :company,  :type => :string
    option :location, :type => :string
    option :hireable, :type => :string
    option :bio, :type => :string
    def update
      params = options[:params].dup
      params['name']     = options[:name]     if options[:name]
      params['email']    = options[:email]    if options[:email]
      params['blog']     = options[:blog]     if options[:blog]
      params['company']  = options[:company]  if options[:company]
      params['location'] = options[:location] if options[:location]
      params['hireable'] = options[:hireable] if options[:hireable]
      params['bio']      = options[:bio]      if options[:bio]
      User.update params, options[:format]
    end

  end # Users
end # GithubCLI
<commit_msg>Change to take specific user param.<commit_after># encoding: utf-8

module GithubCLI
  class Commands::Users < Command

    namespace :user

    desc 'list', 'List all users'
    option :since, :type => :string, :banner => "<user>",
           :desc => "The integer ID of the last User that you’ve seen."
    def list
      params = options[:params].dup
      params['since'] = options[:since] if options[:since]
      User.all params, options[:format]
    end

    desc 'get', 'Get the authenticated user'
    option :user, :type => :string, :aliases => ["-u"],
           :desc => 'Get a single unauthenticated <user>',
           :banner => '<user>'
    def get
      params = options[:params].dup
      params['user'] = options[:user] if options[:user]
      User.get params, options[:format]
    end

    desc 'update', 'Update the authenticated user'
    option :name, :type => :string
    option :email, :type => :string
    option :blog, :type => :string
    option :company,  :type => :string
    option :location, :type => :string
    option :hireable, :type => :string
    option :bio, :type => :string
    def update
      params = options[:params].dup
      params['name']     = options[:name]     if options[:name]
      params['email']    = options[:email]    if options[:email]
      params['blog']     = options[:blog]     if options[:blog]
      params['company']  = options[:company]  if options[:company]
      params['location'] = options[:location] if options[:location]
      params['hireable'] = options[:hireable] if options[:hireable]
      params['bio']      = options[:bio]      if options[:bio]
      User.update params, options[:format]
    end

  end # Users
end # GithubCLI

{'fraction_non_alphanumeric': 0.1486161251504212, 'fraction_numerical': 0.0006016847172081829, 'mean_word_length': 2.9071680376028204, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 37, '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': '6624081', 'n_tokens_mistral': 971, 'n_tokens_neox': 956, 'n_words': 300}