<commit_before>class App < Configurable # :nodoc:
  # Settings in config/app/* take precedence over those specified here.
  config.name = Rails.application.class.parent.name

  # TODO: Remove when Rails 4.1 comes with built-in support for secrets
  config.secrets_file_path = Rails.root.join("config", "secrets.yml")
  config.secrets = YAML.load_file(secrets_file_path).
    with_indifferent_access[Rails.env]

  config.bitcoind_host = App.secrets.fetch(:bitcoind).fetch(:host)
  config.bitcoind_port = App.secrets.fetch(:bitcoind).fetch(:port)
  config.bitcoind_username = App.secrets.fetch(:bitcoind).fetch(:username)
  config.bitcoind_password = App.secrets.fetch(:bitcoind).fetch(:password)
  config.bitcoind_ssl = App.secrets.fetch(:bitcoind).fetch(:ssl)

  config.bit_wallet = BitWallet.at(
    host: App.bitcoind_host,
    port: App.bitcoind_port,
    username: App.bitcoind_username,
    password: <PASSWORD>,
    ssl: App.bitcoind_ssl,
  )

  config.bitcoin_master_account_name = ''
  config.bitcoin_master_account = -> {
    puts "Instantiating the master account"
    config.bit_wallet.accounts.new(config.bitcoin_master_account_name)
  }

  # This is the transaction fee that bitcoind will set.
  # TODO: find a way to programatically get this so Bitsy will be more robust to
  # to changes in the fee in the future.
  config.transaction_fee = 0.0001
  config.transaction_fee_threshold_multiplier = 200
  config.forward_threshold = config.transaction_fee * transaction_fee_threshold_multiplier
  config.safe_confirmation_threshold = 6
end<commit_msg>Remove puts<commit_after>class App < Configurable # :nodoc:
  # Settings in config/app/* take precedence over those specified here.
  config.name = Rails.application.class.parent.name

  # TODO: Remove when Rails 4.1 comes with built-in support for secrets
  config.secrets_file_path = Rails.root.join("config", "secrets.yml")
  config.secrets = YAML.load_file(secrets_file_path).
    with_indifferent_access[Rails.env]

  config.bitcoind_host = App.secrets.fetch(:bitcoind).fetch(:host)
  config.bitcoind_port = App.secrets.fetch(:bitcoind).fetch(:port)
  config.bitcoind_username = App.secrets.fetch(:bitcoind).fetch(:username)
  config.bitcoind_password = App.secrets.fetch(:bitcoind).fetch(:password)
  config.bitcoind_ssl = App.secrets.fetch(:bitcoind).fetch(:ssl)

  config.bit_wallet = BitWallet.at(
    host: App.bitcoind_host,
    port: App.bitcoind_port,
    username: App.bitcoind_username,
    password: <PASSWORD>,
    ssl: App.bitcoind_ssl,
  )

  config.bitcoin_master_account_name = ''
  config.bitcoin_master_account = -> {
    config.bit_wallet.accounts.new(config.bitcoin_master_account_name)
  }

  # This is the transaction fee that bitcoind will set.
  # TODO: find a way to programatically get this so Bitsy will be more robust to
  # to changes in the fee in the future.
  config.transaction_fee = 0.0001
  config.transaction_fee_threshold_multiplier = 200
  config.forward_threshold = config.transaction_fee * transaction_fee_threshold_multiplier
  config.safe_confirmation_threshold = 6
end
{'fraction_non_alphanumeric': 0.09941520467836257, 'fraction_numerical': 0.007147498375568551, 'mean_word_length': 4.755140186915888, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2585529', 'n_tokens_mistral': 1052, 'n_tokens_neox': 1001, 'n_words': 203}