<commit_before>## Main configuration for Knife, the command line Chef API client.
##
## It should be symlinked as .chef/knife.rb.
##
## Put your local knife configuration in config/knife-whatever.rb if
## you want to commit it into repository, or .chef/knife-whatever.rb
## if it's a secret (say, AWS access keys).

# Load Foundation configuration
require 'foundation/config'
_cfg = Foundation::Config

log_level                :info
log_location             STDOUT
node_name                _cfg[:username]
client_key               _cfg.path(".chef/client.pem")
validation_client_name   "chef-validator"
validation_key           _cfg.path(".chef/validation.pem")
chef_server_url          "http://chef.i.#{_cfg[:domain]}:4000"
cache_type               'BasicFile'
cache_options            :path => "#{ENV['HOME']}/.chef/checksums"
cookbook_path            [ _cfg.path('cookbooks'),
                           _cfg.path('lib/cookbooks'),
                           _cfg.path('vendor/cookbooks') ]
verbosity                0

knife[:ssh_user] = _cfg[:username]
knife[:distro] = 'chef-full'

Dir[ File.join(_cfg[:root_dir], 'config', 'knife-*.rb'),
     File.join(_cfg[:root_dir], '.chef',  'knife-*.rb') ].each do |config_path|
  begin
    # Suppress redefined constant warnings - this may be loaded
    # multiple times via Ginza::Cloud
    orig_verbose, $VERBOSE = $VERBOSE, nil
    Kernel::eval( File.read(config_path), binding, config_path )
  ensure
    $VERBOSE = orig_verbose
  end
end
<commit_msg>Load .chef/knife.rb too.<commit_after>## Main configuration for Knife, the command line Chef API client.
##
## It should be symlinked as .chef/knife.rb.
##
## Put your local knife configuration in config/knife-whatever.rb if
## you want to commit it into repository, or .chef/knife-whatever.rb
## if it's a secret (say, AWS access keys).

# Load Foundation configuration
require 'foundation/config'
_cfg = Foundation::Config

log_level                :info
log_location             STDOUT
node_name                _cfg[:username]
client_key               _cfg.path(".chef/client.pem")
validation_client_name   "chef-validator"
validation_key           _cfg.path(".chef/validation.pem")
chef_server_url          "http://chef.i.#{_cfg[:domain]}:4000"
cache_type               'BasicFile'
cache_options            :path => "#{ENV['HOME']}/.chef/checksums"
cookbook_path            [ _cfg.path('cookbooks'),
                           _cfg.path('lib/cookbooks'),
                           _cfg.path('vendor/cookbooks') ]
verbosity                0

knife[:ssh_user] = _cfg[:username]
knife[:distro] = 'chef-full'

Dir[ File.join(_cfg[:root_dir], 'config', 'knife-*.rb'),
     File.join(_cfg[:root_dir], '.chef',  'knife*.rb') ].each do |config_path|
  begin
    # Suppress redefined constant warnings - this may be loaded
    # multiple times via Ginza::Cloud
    orig_verbose, $VERBOSE = $VERBOSE, nil
    Kernel::eval( File.read(config_path), binding, config_path )
  ensure
    $VERBOSE = orig_verbose
  end
end

{'fraction_non_alphanumeric': 0.12707365627073655, 'fraction_numerical': 0.0033178500331785005, 'mean_word_length': 2.76875, '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': '1822872', 'n_tokens_mistral': 961, 'n_tokens_neox': 942, 'n_words': 230}