<commit_before>defmodule Mix.Tasks.Phx.Gen.Auth.HashingLibrary do
  @moduledoc false

  defstruct [:name, :module, :mix_dependency, :test_config]

  def build("bcrypt") do
    lib = %__MODULE__{
      name: :bcrypt,
      module: Bcrypt,
      mix_dependency: ~s|{:bcrypt_elixir, "~> 2.0\"}|,
      test_config: """
      config :bcrypt_elixir, :log_rounds, 1
      """
    }

    {:ok, lib}
  end

  def build("pbkdf2") do
    lib = %__MODULE__{
      name: :pbkdf2,
      module: Pbkdf2,
      mix_dependency: ~s|{:pbkdf2_elixir, "~> 1.0\"}|,
      test_config: """
      config :pbkdf2_elixir, :rounds, 1
      """
    }

    {:ok, lib}
  end

  def build("argon2") do
    lib = %__MODULE__{
      name: :argon2,
      module: Argon2,
      mix_dependency: ~s|{:argon2_elixir, "~> 2.0\"}|,
      test_config: """
      config :argon2_elixir, t_cost: 1, m_cost: 8
      """
    }

    {:ok, lib}
  end

  def build(other) do
    {:error, {:unknown_library, other}}
  end
end<commit_msg>Clean up escaping in string sigils (#4620)<commit_after>defmodule Mix.Tasks.Phx.Gen.Auth.HashingLibrary do
  @moduledoc false

  defstruct [:name, :module, :mix_dependency, :test_config]

  def build("bcrypt") do
    lib = %__MODULE__{
      name: :bcrypt,
      module: Bcrypt,
      mix_dependency: ~s|{:bcrypt_elixir, "~> 2.0"}|,
      test_config: """
      config :bcrypt_elixir, :log_rounds, 1
      """
    }

    {:ok, lib}
  end

  def build("pbkdf2") do
    lib = %__MODULE__{
      name: :pbkdf2,
      module: Pbkdf2,
      mix_dependency: ~s|{:pbkdf2_elixir, "~> 1.0"}|,
      test_config: """
      config :pbkdf2_elixir, :rounds, 1
      """
    }

    {:ok, lib}
  end

  def build("argon2") do
    lib = %__MODULE__{
      name: :argon2,
      module: Argon2,
      mix_dependency: ~s|{:argon2_elixir, "~> 2.0"}|,
      test_config: """
      config :argon2_elixir, t_cost: 1, m_cost: 8
      """
    }

    {:ok, lib}
  end

  def build(other) do
    {:error, {:unknown_library, other}}
  end
end
{'fraction_non_alphanumeric': 0.15784215784215785, 'fraction_numerical': 0.02197802197802198, 'mean_word_length': 2.53886925795053, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4220465', 'n_tokens_mistral': 865, 'n_tokens_neox': 806, 'n_words': 165}