<commit_before># define paths and filenames
pid_file = "log/unicorn.pid"
log_file = "log/unicorn.log"
err_log = "log/unicorn_error.log"
old_pid = pid_file + '.oldbin'

if ENV['RACK_ENV'] == "production"
  stderr_path "log/unicorn.log"
  stdout_path "log/unicorn.log"
end

timeout 30
worker_processes 1
listen 'localhost:3000', :backlog => 1024

pid pid_file

before_fork do |server, worker|
  # zero downtime deploy magic:
  # if unicorn is already running, ask it to start a new process and quit.
  if File.exists?(old_pid) && server.pid != old_pid
    begin
      Process.kill("QUIT", File.read(old_pid).to_i)
    rescue Errno::ENOENT, Errno::ESRCH
      # already done
    end
  end
end<commit_msg>Unicorn listens on 127.0.0.1<commit_after># define paths and filenames
pid_file = "log/unicorn.pid"
log_file = "log/unicorn.log"
err_log = "log/unicorn_error.log"
old_pid = pid_file + '.oldbin'

if ENV['RACK_ENV'] == "production"
  stderr_path "log/unicorn.log"
  stdout_path "log/unicorn.log"
end

timeout 30
worker_processes 1
listen '127.0.0.1:3000', :backlog => 1024

pid pid_file

before_fork do |server, worker|
  # zero downtime deploy magic:
  # if unicorn is already running, ask it to start a new process and quit.
  if File.exists?(old_pid) && server.pid != old_pid
    begin
      Process.kill("QUIT", File.read(old_pid).to_i)
    rescue Errno::ENOENT, Errno::ESRCH
      # already done
    end
  end
end
{'fraction_non_alphanumeric': 0.11714890613973183, 'fraction_numerical': 0.02399435426958363, 'mean_word_length': 3.992957746478873, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6913336', 'n_tokens_mistral': 554, 'n_tokens_neox': 523, 'n_words': 140}