<commit_before># Add an alias (CNAME) to an existing host record
# Usage:
#   ruby add_alias.rb myalias.its.yale.internal myhost.its.yale.internal
#

unless ARGV.length >= 2
  puts 'Error: add_host needs 2 arguments!'
  puts 'Usage:'
  puts '  ruby add_alias.rb myalias.its.yale.internal myhost.its.yale.internal'
  exit 1
end

require_relative 'dns'

alias = ARGV[0]
host_fqdn = ARGV[1]

puts "Adding alias record #{alias} for #{host_fqdn} ... "

add_alias_record(alias, host_fqdn)
<commit_msg>alias is a reserved word<commit_after># Add an alias (CNAME) to an existing host record
# Usage:
#   ruby add_alias.rb myalias.its.yale.internal myhost.its.yale.internal
#

unless ARGV.length >= 2
  puts 'Error: add_host needs 2 arguments!'
  puts 'Usage:'
  puts '  ruby add_alias.rb myalias.its.yale.internal myhost.its.yale.internal'
  exit 1
end

require_relative 'dns'

cname = ARGV[0]
host_fqdn = ARGV[1]

puts "Adding alias record #{cname} for #{host_fqdn} ... "

add_alias_record(cname, host_fqdn)

{'fraction_non_alphanumeric': 0.11588411588411589, 'fraction_numerical': 0.00999000999000999, 'mean_word_length': 4.301587301587301, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4766819', 'n_tokens_mistral': 402, 'n_tokens_neox': 385, 'n_words': 102}