<commit_before>defmodule Mix.Tasks.Compile.Iconv do
  @shortdoc "Compiles Iconv"
  def run(_) do
    if not File.exists?("priv/Elixir.Iconv_nif.so") do
      [i_erts]=Path.wildcard("#{:code.root_dir}/erts*/include")
      i_ei=:code.lib_dir(:erl_interface,:include)
      l_ei=:code.lib_dir(:erl_interface,:lib)
      args = " -L#{l_ei} -lerl_interface -lei -I#{i_ei} -I#{i_erts} -Wall -shared -fPIC "
      args = args <> if {:unix,:darwin}==:os.type, do: "-undefined dynamic_lookup -dynamiclib", else: ""
      Mix.shell.info to_string :os.cmd('gcc #{args} -v -o priv/Elixir.Iconv_nif.so c_src/iconv_nif.c')
    end
  end
end

defmodule Mailibex.Mixfile do
  use Mix.Project

  def project do
    [app: :mailibex,
     version: "0.0.1",
     elixir: "~> 1.0.0",
     compilers: [:iconv, :elixir, :app],
     deps: []]
  end

  def application do
    [applications: [:logger]]
  end
end
<commit_msg>add package infos<commit_after>defmodule Mix.Tasks.Compile.Iconv do
  @shortdoc "Compiles Iconv"
  def run(_) do
    if not File.exists?("priv/Elixir.Iconv_nif.so") do
      [i_erts]=Path.wildcard("#{:code.root_dir}/erts*/include")
      i_ei=:code.lib_dir(:erl_interface,:include)
      l_ei=:code.lib_dir(:erl_interface,:lib)
      args = " -L#{l_ei} -lerl_interface -lei -I#{i_ei} -I#{i_erts} -Wall -shared -fPIC "
      args = args <> if {:unix,:darwin}==:os.type, do: "-undefined dynamic_lookup -dynamiclib", else: ""
      Mix.shell.info to_string :os.cmd('gcc #{args} -v -o priv/Elixir.Iconv_nif.so c_src/iconv_nif.c')
    end
  end
end

defmodule Mailibex.Mixfile do
  use Mix.Project

  def project do
    [app: :mailibex,
     version: "0.0.1",
     elixir: "~> 1.0.0",
     description: description,
     package: package,
     compilers: [:iconv, :elixir, :app],
     deps: []]
  end

  def application do
    [applications: [:logger]]
  end

  defp package do
    [ contributors: ["<NAME>"],
      licenses: ["The MIT License (MIT)"],
      links: [ { "GitHub", "https://github.com/awetzel/mailibex" } ] ]
  end

  defp description do
    """
    Mailibex is an email library in Elixir : currently implements
    DKIM, SPF, DMARC, MimeMail (using iconv nif for encoding),
    MimeType (and file type detection), a simplified api to modify or create
    mimemail as a keyword list. Next step is a full implementation of
    SMTP client and server, to make it possible to use emails as a routable API for
    events and messages between your applications.
    """
  end
end

{'fraction_non_alphanumeric': 0.144466800804829, 'fraction_numerical': 0.00482897384305835, 'mean_word_length': 3.1781512605042015, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 1, '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': '384543', 'n_tokens_mistral': 951, 'n_tokens_neox': 933, 'n_words': 232}