<commit_before>##
# Configure the root user's environment

require 'fileutils'

# Disable password authentication
shadow_path = "#{@config['paths']['build']}/etc/shadow"
shadow_file = File.readlines shadow_path
shadow_file.first.gsub! 'root::', 'root:x:'
File.open(shadow_path, 'w') { |fh| shadow_file.each { |line| fh << line } }

# Set timezone
FileUtils.ln_s(
  '../usr/share/zoneinfo/US/Eastern',
  "#{@config['paths']['build']}/etc/localtime"
)

# Generate locales
run_chroot 'locale-gen'
<commit_msg>Ok, I give, UTC is great<commit_after>##
# Configure the root user's environment

require 'fileutils'

# Disable password authentication
shadow_path = "#{@config['paths']['build']}/etc/shadow"
shadow_file = File.readlines shadow_path
shadow_file.first.gsub! 'root::', 'root:x:'
File.open(shadow_path, 'w') { |fh| shadow_file.each { |line| fh << line } }

# Set timezone
FileUtils.ln_s(
  '../usr/share/zoneinfo/UTC',
  "#{@config['paths']['build']}/etc/localtime"
)

# Generate locales
run_chroot 'locale-gen'

{'fraction_non_alphanumeric': 0.18208661417322836, 'fraction_numerical': 0.0, 'mean_word_length': 5.735099337748345, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5674147', 'n_tokens_mistral': 365, 'n_tokens_neox': 364, 'n_words': 75}