<commit_before>desc "Builds the site (args: env=dev|prod; dest=/path/to/build)"
task :build do
  dest = ENV["dest"] || CONFIG[:build_destination]
  env = ENV["env"] || CONFIG[:default_env]

  command = "jekyll build --destination=#{dest}"

  if env != CONFIG[:default_env]
    env_filename = "_config_#{env}.yml"
    if !File.file?(File.expand_path(env_filename))
      puts "Env file #{env_filename} not found"
      exit(1)
    end

    command += " --config _config.yml,#{env_filename}"<commit_msg>Jekyll now shows the full backtrace when an error occurs on site generation<commit_after>desc "Builds the site (args: env=dev|prod; dest=/path/to/build)"
task :build do
  dest = ENV["dest"] || CONFIG[:build_destination]
  env = ENV["env"] || CONFIG[:default_env]

  command = "jekyll build --trace --destination=#{dest}"

  if env != CONFIG[:default_env]
    env_filename = "_config_#{env}.yml"
    if !File.file?(File.expand_path(env_filename))
      puts "Env file #{env_filename} not found"
      exit(1)
    end

    command += " --config _config.yml,#{env_filename}"
{'fraction_non_alphanumeric': 0.15671641791044777, 'fraction_numerical': 0.0018656716417910447, 'mean_word_length': 4.158653846153846, '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': '1150787', 'n_tokens_mistral': 360, 'n_tokens_neox': 353, 'n_words': 88}