<commit_before>module Broham

  def self.get_cluster_settings
    Configliere.use :commandline, :config_file
    Settings.read('broham.yaml')
    Settings.resolve!
    Settings[:cluster_name] = Settings.rest.shift
    Settings[:role_name]    = Settings.rest.shift
    check_args!
    cluster = Broham.new(Settings[:cluster_name])
    cluster.establish_connection
    cluster.create_domain
    cluster
  end

  def self.check_args!
    if (Settings[:cluster_name].blank? || Settings[:role_name].blank?)
      warn "Please supply a cluster name and a role as the first two arguments"
      exit(-1)
    end<commit_msg>Making all activity live in the Broham simpleDB domain<commit_after>class Broham < RightAws::ActiveSdb::Base

  def self.get_cluster_settings
    Configliere.use :commandline, :config_file
    Settings.read('broham.yaml')
    Settings.resolve!
    Settings[:role_name]    = Settings.rest.shift
    check_args!
    self.establish_connection
  end

  def self.check_args!
    if Settings[:role_name].blank?
      warn "Please supply a role as the first argument"
      exit(-1)
    end
{'fraction_non_alphanumeric': 0.09099181073703366, 'fraction_numerical': 0.0018198362147406734, 'mean_word_length': 3.6413502109704643, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3701227', 'n_tokens_mistral': 334, 'n_tokens_neox': 326, 'n_words': 78}