<commit_before>module TypeKitCli
  class AuthToken < Thor
    CACHE_FILE = "#{Dir.home}/.typekit"
    no_commands{
      def get_token
        auth_token = nil
        if File.exist?(CACHE_FILE)
          File.open(CACHE_FILE, 'r') { |file| auth_token = file.gets }
        else
          auth_token = prompt_for_token
        end
        auth_token
      end

    }

    private
    def prompt_for_token
      auth_token = ask("Typekit Auth Token:")
      if yes?("Would you like to cache this token? [y/N]:")
        say("Token will be cached to in #{CACHE_FILE} file")
        File.open(CACHE_FILE, 'w') { |file| file.write(auth_token) }
      end
      auth_token
    end
  end
end
<commit_msg>Clarify that API token is being requested<commit_after>module TypeKitCli
  class AuthToken < Thor
    CACHE_FILE = "#{Dir.home}/.typekit"
    no_commands{
      def get_token
        auth_token = nil
        if File.exist?(CACHE_FILE)
          File.open(CACHE_FILE, 'r') { |file| auth_token = file.gets }
        else
          auth_token = prompt_for_token
        end
        auth_token
      end

    }

    private
    def prompt_for_token
      auth_token = ask("Typekit API Token:")
      if yes?("Would you like to cache this token? [y/N]:")
        say("Token will be cached to in #{CACHE_FILE} file")
        File.open(CACHE_FILE, 'w') { |file| file.write(auth_token) }
      end
      auth_token
    end
  end
end

{'fraction_non_alphanumeric': 0.09697821503865074, 'fraction_numerical': 0.0, 'mean_word_length': 2.185682326621924, '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': '7123667', 'n_tokens_mistral': 463, 'n_tokens_neox': 454, 'n_words': 122}