<commit_before>require 'fileutils'

class FileMover
  attr_reader :configuration

  def initialize(configuratio=nil)
    @configuration = configuration || Configuration.new
  end

  def move(file_detail, dest_folder)
    # make dir based on year/month/day (0 padded)
    file_date = file_detail.datetime

    folder = File.join(File.expand_path("#{dest_folder}"), file_date.strftime(configuration.format)
    FileUtils.mkdir_p(folder)

    FileUtils.mv(file_detail.full_path, "#{folder}/#{file_detail.new_filename}")
    Logger.log("\tMoved to #{folder}/#{file_detail.new_filename}")
  end
end<commit_msg>Add missing ')'<commit_after>require 'fileutils'

class FileMover
  attr_reader :configuration

  def initialize(configuratio=nil)
    @configuration = configuration || Configuration.new
  end

  def move(file_detail, dest_folder)
    # make dir based on year/month/day (0 padded)
    file_date = file_detail.datetime

    folder = File.join(File.expand_path("#{dest_folder}"), file_date.strftime(configuration.format))
    FileUtils.mkdir_p(folder)

    FileUtils.mv(file_detail.full_path, "#{folder}/#{file_detail.new_filename}")
    Logger.log("\tMoved to #{folder}/#{file_detail.new_filename}")
  end
end
{'fraction_non_alphanumeric': 0.12201154163231658, 'fraction_numerical': 0.0016488046166529267, 'mean_word_length': 5.039800995024875, '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': '3931613', 'n_tokens_mistral': 392, 'n_tokens_neox': 387, 'n_words': 71}