<commit_before>module HP
  module Cloud
    class CLI < Thor

      desc "routers:add <name>", "Add a router."
      long_desc <<-DESC
  Add a new router to your network with the specified name.  If a gateway is not specified, the first network that has router_external set to true is used (typically 'Ext-Net'.  If you do not want to a external network, send the gateway option with an empty string.

Examples:
  hpcloud routers:add routerone   # Create a new router named 'routerone'
  hpcloud routers:add routertwo -g Ext-Net   # Create a new router named 'routertwo' with the specified network as a gateway
      DESC
      method_option :gateway,
                    :type => :string, :aliases => '-g',
                    :desc => 'Network to use as external router.'
      method_option :adminstateup, :default => true,
                    :type => :boolean, :aliases => '-u',
                    :desc => 'Administrative state.'
      CLI.add_common_options
      define_method "routers:add" do |name|
        cli_command(options) {
          router = Routers.new.unique(name)
          router.name = name
          netty = Routers.parse_gateway(options[:gateway])
          if netty.nil?
            router.external_gateway_info = {}
          else
            router.external_gateway_info = { 'network_id' => netty.id }<commit_msg>dxcli-971 clean up help text<commit_after>module HP
  module Cloud
    class CLI < Thor

      desc "routers:add <name>", "Add a router."
      long_desc <<-DESC
  Add a new router to your network with the specified name.  If a gateway is not specified, the first network that has router_external set to true is used (typically 'Ext-Net'.

Examples:
  hpcloud routers:add routerone   # Create a new router named 'routerone'
  hpcloud routers:add routertwo -g Ext-Net   # Create a new router named 'routertwo' with the specified network as a gateway
      DESC
      method_option :gateway,
                    :type => :string, :aliases => '-g',
                    :desc => 'Network to use as external router.'
      method_option :adminstateup, :default => true,
                    :type => :boolean, :aliases => '-u',
                    :desc => 'Administrative state.'
      CLI.add_common_options
      define_method "routers:add" do |name|
        cli_command(options) {
          router = Routers.new.unique(name)
          router.name = name
          netty = Routers.parse_gateway(options[:gateway])
          if netty.nil?
            router.external_gateway_info = {}
          else
            router.external_gateway_info = { 'network_id' => netty.id }
{'fraction_non_alphanumeric': 0.09010736196319018, 'fraction_numerical': 0.0011503067484662577, 'mean_word_length': 2.3320561941251596, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, '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': '6627992', 'n_tokens_mistral': 745, 'n_tokens_neox': 712, 'n_words': 255}