<commit_before>defmodule Pop3mail.Base64Decoder do

   @moduledoc "Replaceable base64 decoder. Replace with your own implementation via the application config :pop3mail, base64_decoder: <replacement>."

   use Logger
   
   defmodule Standard do

     @moduledoc "Standard Erlang base64 decoder"

     @doc "Decode base64 encoded text. Returns binary."
     def decode!(encoded_text) do
        Base.decode64!(encoded_text, ignore: :whitespace)
     end

   end

   def get_decoder do
      Logger.debug Application.get_env(:pop3mail, :base64_decoder)
      Application.get_env(:pop3mail, :base64_decoder) || Pop3mail.Base64Decoder.Standard
   end

   @doc "Decode base64 encoded text. Returns binary."
   defdelegate decode!(encoded_text), to: get_decoder()

end<commit_msg>fix it<commit_after>defmodule Pop3mail.Base64Decoder do

   @moduledoc "Replaceable base64 decoder. Replace with your own implementation via the application config :pop3mail, base64_decoder: <replacement>."

   @base64_decoder Application.get_env(:pop3mail, :base64_decoder) || Pop3mail.Base64Decoder.Standard

   require Logger
   
   defmodule Standard do

     @moduledoc "Standard Erlang base64 decoder"

     @doc "Decode base64 encoded text. Returns binary."
     def decode!(encoded_text) do
        Logger.debug Application.get_env(:pop3mail, :base64_decoder)
        Base.decode64!(encoded_text, ignore: :whitespace)
     end

   end

   @doc "Decode base64 encoded text. Returns binary."
   defdelegate decode!(encoded_text), to: @base64_decoder

end
{'fraction_non_alphanumeric': 0.07947882736156352, 'fraction_numerical': 0.03517915309446254, 'mean_word_length': 4.086092715231788, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4913996', 'n_tokens_mistral': 496, 'n_tokens_neox': 439, 'n_words': 129}