<commit_before>defmodule Radpath.Tempfs do
   defmacro __using__([]) do
     quote do

     @doc """
       
     To create a temp file and write to it without arguments:

         Radpath.mktempfile |> File.write("test123")

     """
     def mktempfile() do
       Tempfile.get_name
     end
     @doc """
     To create a temp file with arguments (ext and path) and write to it. Default value for extension is '.tmp':

         Radpath.mktempfile(".log", "/home/lowks/Downloads") |> File.write("abcdef")

     """
     def mktempfile(ext, path) when is_bitstring(path) and is_bitstring(ext) do
        Tempfile.get_name("", [ext: ext, path: path])
     end
    @doc """
    To create a temp file at a certain location without extension and write to it:

        Radpath.mktempfile("/home/lowks/Downloads") |> File.write("abcdef")

    """
    def mktempfile(path) when is_bitstring(path) do
      Tempfile.get_name("", [ext: ".tmp", path: path])
    end

    @doc """
    To create a temp dir without arguments:

        Radpath.mktempdir

    """
    def mktempdir do
      IO.puts "hello world"
      Tempfile.get_name |> Path.rootname |> do_mkdir
    end
    @doc """
    To create a temp dir at a specific location:

        Radpath.mktempdir("/home/lowks/Downloads")

    """
    def mktempdir(path) when is_bitstring(path) do
      Tempfile.get_name([path: make_into_path(path)]) |> Path.rootname |> do_mkdir
    end

  end   
  end
end<commit_msg>re #25 revert an accidentally commited IO.puts<commit_after>defmodule Radpath.Tempfs do
   defmacro __using__([]) do
     quote do

     @doc """
       
     To create a temp file and write to it without arguments:

         Radpath.mktempfile |> File.write("test123")

     """
     def mktempfile() do
       Tempfile.get_name
     end
     @doc """
     To create a temp file with arguments (ext and path) and write to it. Default value for extension is '.tmp':

         Radpath.mktempfile(".log", "/home/lowks/Downloads") |> File.write("abcdef")

     """
     def mktempfile(ext, path) when is_bitstring(path) and is_bitstring(ext) do
        Tempfile.get_name("", [ext: ext, path: path])
     end
    @doc """
    To create a temp file at a certain location without extension and write to it:

        Radpath.mktempfile("/home/lowks/Downloads") |> File.write("abcdef")

    """
    def mktempfile(path) when is_bitstring(path) do
      Tempfile.get_name("", [ext: ".tmp", path: path])
    end

    @doc """
    To create a temp dir without arguments:

        Radpath.mktempdir

    """
    def mktempdir do
      Tempfile.get_name |> Path.rootname |> do_mkdir
    end
    @doc """
    To create a temp dir at a specific location:

        Radpath.mktempdir("/home/lowks/Downloads")

    """
    def mktempdir(path) when is_bitstring(path) do
      Tempfile.get_name([path: make_into_path(path)]) |> Path.rootname |> do_mkdir
    end

  end   
  end
end
{'fraction_non_alphanumeric': 0.11613566289825282, 'fraction_numerical': 0.0027406646111682084, 'mean_word_length': 2.569682151589242, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1510513', 'n_tokens_mistral': 978, 'n_tokens_neox': 921, 'n_words': 276}