<commit_before>defmodule Recs do
  @type command :: [binary]

  @redis_opts ~w(host port password database)a

  @spec start_link(Keyword.t) :: GenServer.on_start
  def start_link(opts) do
    {_redis_opts, connection_opts} = Keyword.split(opts, @redis_opts)<commit_msg>Provide default options for Recs.start_link/1<commit_after>defmodule Recs do
  @type command :: [binary]

  @default_opts [
    host: "localhost",
    port: 6379,
  ]

  @redis_opts ~w(host port password database)a

  @spec start_link(Keyword.t) :: GenServer.on_start
  def start_link(opts \\ []) do
    {_redis_opts, connection_opts} = Keyword.split(opts, @redis_opts)
    opts = Keyword.merge(@default_opts, opts)
{'fraction_non_alphanumeric': 0.11842105263157894, 'fraction_numerical': 0.007309941520467836, 'mean_word_length': 4.708333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4456897', 'n_tokens_mistral': 250, 'n_tokens_neox': 242, 'n_words': 53}