<commit_before>require 'erb'
require 'pathname'
desc 'Install Bagr, bagr install'
task :install do

  config_dir = Pathname.new('config')
  build_dir = config_dir.join('build')

  build_rb = File.expand_path("../../templates/build.rb.erb", __FILE__)
  bagrfile = File.expand_path("../../templates/Bagrfile", __FILE__)

  mkdir_p build_dir

  template = File.read(build_rb)
  file = config_dir.join('build.rb')
  File.open(file, 'w+') do |f|
    f.write(ERB.new(template).result(binding))
    puts I18n.t(:written_file, scope: :bagr, file: file)
  end

  FileUtils.cp(bagrfile, 'Bagrfile')

  puts I18n.t :bargified, scope: :bagr
end<commit_msg>removed build directory from config<commit_after>require 'erb'
require 'pathname'
desc 'Install Bagr, bagr install'
task :install do

  config_dir = Pathname.new('config')

  build_rb = File.expand_path("../../templates/build.rb.erb", __FILE__)
  bagrfile = File.expand_path("../../templates/Bagrfile", __FILE__)

  template = File.read(build_rb)
  file = config_dir.join('build.rb')
  File.open(file, 'w+') do |f|
    f.write(ERB.new(template).result(binding))
    puts I18n.t(:written_file, scope: :bagr, file: file)
  end

  FileUtils.cp(bagrfile, 'Bagrfile')

  puts I18n.t :bargified, scope: :bagr
end
{'fraction_non_alphanumeric': 0.1584, 'fraction_numerical': 0.0064, 'mean_word_length': 4.392241379310345, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2104739', 'n_tokens_mistral': 475, 'n_tokens_neox': 463, 'n_words': 95}