<commit_before>require 'hpcloud/commands/lb/add.rb'
require 'hpcloud/commands/lb/algorithms.rb'
require 'hpcloud/commands/lb/limits.rb'
require 'hpcloud/commands/lb/nodes.rb'
require 'hpcloud/commands/lb/nodes/add.rb'
require 'hpcloud/commands/lb/nodes/remove.rb'
require 'hpcloud/commands/lb/nodes/update.rb'
require 'hpcloud/commands/lb/protocols.rb'
require 'hpcloud/commands/lb/remove.rb'
require 'hpcloud/commands/lb/update.rb'
require 'hpcloud/commands/lb/versions.rb'
require 'hpcloud/commands/lb/virtualips.rb'
require 'hpcloud/lbs'

module HP
  module Cloud
    class CLI < Thor

      map 'lb:list' => 'lb'
    
      desc 'lb [name_or_id ...]', "List the available load balancers."
      long_desc <<-DESC
  Lists all the load balancers that are associated with the account. The list begins with identifier and contains name, size, type, create date, status, description and servers on which it is attached.  Optionally, you can filter the list by specifying name or ID.

Examples:
  hpcloud lb          # List all load balancers:
  hpcloud lb 1        # List the details for load balancers `1`:
  hpcloud lb testvol  # List the details for load balancers `testvol`:

Aliases: lb:list
      DESC
      CLI.add_report_options
      CLI.add_common_options
      def lb(*arguments)
        columns = [ "id", "name", "algorithm", "protocol", "port", "status" ]
        cli_command(options) {
          lb = Lbs.new
          if lb.empty?
            @log.display "You currently have no load balancers, use `#{selfname} lb:add <name>` to create one."
          else
            ray = lb.get_array(arguments)
            if ray.empty?
              @log.display "There are no load balancers that match the provided arguments"
            else
              Tableizer.new(options, columns, ray).print
            end
          end
        }
      end<commit_msg>dxcli-864 docs wrong for LB list<commit_after>require 'hpcloud/commands/lb/add.rb'
require 'hpcloud/commands/lb/algorithms.rb'
require 'hpcloud/commands/lb/limits.rb'
require 'hpcloud/commands/lb/nodes.rb'
require 'hpcloud/commands/lb/nodes/add.rb'
require 'hpcloud/commands/lb/nodes/remove.rb'
require 'hpcloud/commands/lb/nodes/update.rb'
require 'hpcloud/commands/lb/protocols.rb'
require 'hpcloud/commands/lb/remove.rb'
require 'hpcloud/commands/lb/update.rb'
require 'hpcloud/commands/lb/versions.rb'
require 'hpcloud/commands/lb/virtualips.rb'
require 'hpcloud/lbs'

module HP
  module Cloud
    class CLI < Thor

      map 'lb:list' => 'lb'
    
      desc 'lb [name_or_id ...]', "List the available load balancers."
      long_desc <<-DESC
  Lists all the load balancers that are associated with the account. The list begins with identifier and contains name, algorithm, protocol, port and status.  Optionally, you can filter the list by specifying names or IDs.

Examples:
  hpcloud lb          # List all load balancers:
  hpcloud lb 1        # List the details for load balancers `1`:
  hpcloud lb testvol  # List the details for load balancers `testvol`:

Aliases: lb:list
      DESC
      CLI.add_report_options
      CLI.add_common_options
      def lb(*arguments)
        columns = [ "id", "name", "algorithm", "protocol", "port", "status" ]
        cli_command(options) {
          lb = Lbs.new
          if lb.empty?
            @log.display "You currently have no load balancers, use `#{selfname} lb:add <name>` to create one."
          else
            ray = lb.get_array(arguments)
            if ray.empty?
              @log.display "There are no load balancers that match the provided arguments"
            else
              Tableizer.new(options, columns, ray).print
            end
          end
        }
      end
{'fraction_non_alphanumeric': 0.10110541925047183, 'fraction_numerical': 0.0018873011593421407, 'mean_word_length': 2.743693239152371, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '6407318', 'n_tokens_mistral': 1132, 'n_tokens_neox': 1100, 'n_words': 340}