<commit_before>require 'fileutils'

DOTFILES = %w(.vimrc .emacs .zshrc)

dotfilesdir = File.expand_path(File.dirname(__FILE__))
homedir     = Dir.home

# puts "dotfiles directory is '#{dotfilesdir}'"
# puts "home directory is '#{homedir}'"

did_anything = false

DOTFILES.each do |f|
  local_path  = File.join(dotfilesdir, f)
  remote_path = File.join(homedir, f)

  if !File.exists?(remote_path) || File.mtime(remote_path) < File.mtime(local_path)
    FileUtils.cp local_path, homedir
    did_anything = true<commit_msg>Add a deprecation notice in setup.rb<commit_after># Deprecated! You should create symlinks in the home directory instead.

require 'fileutils'

DOTFILES = %w(.vimrc .emacs .zshrc)

dotfilesdir = File.expand_path(File.dirname(__FILE__))
homedir     = Dir.home

puts "dotfiles directory is '#{dotfilesdir}'"
puts "home directory is '#{homedir}'"

did_anything = false

DOTFILES.each do |f|
  local_path  = File.join(dotfilesdir, f)
  remote_path = File.join(homedir, f)

  if !File.exists?(remote_path) || File.mtime(remote_path) < File.mtime(local_path)
    FileUtils.cp local_path, homedir
    did_anything = true
{'fraction_non_alphanumeric': 0.12169312169312169, 'fraction_numerical': 0.0, 'mean_word_length': 4.850515463917525, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5225333', 'n_tokens_mistral': 423, 'n_tokens_neox': 414, 'n_words': 95}