You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: manage_yml_files.rb
    path of file: ./repos/archivesspace/build/scripts
    
    the code of the file until where you have to start completion: require 'yaml'

def locales_directories
  locales_dirs = []
  locales_dirs.push(Dir.glob("common/**/locales/**/"))
  locales_dirs.push(Dir.glob("frontend/**/locales/**/"))
  locales_dirs.push(Dir.glob("public/**/locales/*
    
def compare_keys first_file_info, second_file_info
  puts "Comparing #{first_file_info[:file_location]} to #{second_file_info[:file_location]}"
  first_translations = {}
  second_translations = {}
  first_file = Hash.new
  second_file = Hash.new
  deltas_file = Hash.new
  File.open( first_file_info[:file_location] ) { |yf| first_file = YAML.load(yf) }
  process_hash(first_translations, '', first_file[first_file_info[:root]])
  File.open( second_file_info[:file_location] ) { |yf| second_file = YAML.load(yf) }
  process_hash(second_translations, '', second_file[second_file_info[:root]])
  first_keys_sort = first_translations.keys.sort
  second_keys_sort = second_translations.keys.sort
  if first_keys_sort == second_keys_sort
    puts "They have the same entries"
  elsif first_translations.keys.count > second_translations.keys.count
    puts "Difference #{(first_keys_sort - second_keys_sort)}"
  else
    puts "Difference #{(second_keys_sort - first_keys_sort)}"
  end