<commit_before>module Paths

  # Change this to switch environments
  TARGET = :Production
  #TARGET = :Local
  #TARGET = :LocalSSL
  #TARGET = :Guest

  BASE_URL = {
    :Production  => "http://moduscreate.com/",
    :Local => "http://localhost:8080/",
    :LocalSSL => "https://localhost:8443/",
    :Guest => "http://localhost:80/",
  }

  def path_to(page_name)
    if ENV["BASE_URL"]
        base_url = ENV["BASE_URL"]
    else
        base_url = BASE_URL[TARGET]
    end
    case page_name
    when /the desktop home page/i
       base_url
    else
      raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
        "Now, go and add a mapping in #{__FILE__}"
     end
  end

end

World(Paths)
<commit_msg>cleanup<commit_after>module Urls

  # Change this to switch environments
  TARGET = :Production
  #TARGET = :Local
  #TARGET = :LocalSSL
  #TARGET = :Guest

  BASE_URL = {
    :Production  => "http://moduscreate.com/",
    :Local => "http://localhost:8080/",
    :LocalSSL => "https://localhost:8443/",
    :Guest => "http://localhost:80/",
  }

  def path_to(page_name)
    if ENV["BASE_URL"]
        base_url = ENV["BASE_URL"]
    else
        base_url = BASE_URL[TARGET]
    end
    case page_name
    when /the desktop home page/i
       base_url
    else
      raise "Can't find mapping from \"#{page_name}\" to a path.\n" +
        "Now, go and add a mapping in #{__FILE__}"
     end
  end

end

World(Urls)

{'fraction_non_alphanumeric': 0.13788300835654596, 'fraction_numerical': 0.013927576601671309, 'mean_word_length': 2.513447432762836, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '2325626', 'n_tokens_mistral': 527, 'n_tokens_neox': 495, 'n_words': 128}