<commit_before>defmodule Ello.V2.ArtistInviteController do
  use Ello.V2.Web, :controller
  alias Ello.Core.Contest

  @doc """
  GET /v2/artist_invites
  """
  def index(conn, params) do
    artist_invites = Contest.artist_invites(standard_params(conn, %{
      preview: params["preview"]
    }))
    conn
    |> add_pagination_headers("/artist_invites", artist_invites)
    |> api_render_if_stale(data: artist_invites)
  end

  def show(conn, %{"id" => id_or_slug}) do
    artist_invite = Contest.artist_invite(standard_params(conn, %{
      id_or_slug: id_or_slug,
    }))
    api_render_if_stale(conn, data: artist_invite)
  end
end<commit_msg>Make artist invite pagination even.<commit_after>defmodule Ello.V2.ArtistInviteController do
  use Ello.V2.Web, :controller
  alias Ello.Core.Contest

  @doc """
  GET /v2/artist_invites
  """
  def index(conn, params) do
    artist_invites = Contest.artist_invites(standard_params(conn, %{
      preview: params["preview"],
      default: %{per_page: 20},
    }))
    conn
    |> add_pagination_headers("/artist_invites", artist_invites)
    |> api_render_if_stale(data: artist_invites)
  end

  def show(conn, %{"id" => id_or_slug}) do
    artist_invite = Contest.artist_invite(standard_params(conn, %{
      id_or_slug: id_or_slug,
    }))
    api_render_if_stale(conn, data: artist_invite)
  end
end
{'fraction_non_alphanumeric': 0.11991117690599556, 'fraction_numerical': 0.005921539600296077, 'mean_word_length': 4.140684410646388, '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': '6957315', 'n_tokens_mistral': 514, 'n_tokens_neox': 500, 'n_words': 84}