<commit_before>defmodule AsciinemaWeb.Router do
  use AsciinemaWeb, :router
  use Plug.ErrorHandler
  defp handle_errors(_conn, %{reason: %Ecto.NoResultsError{}}), do: nil
  use Sentry.Plug

  pipeline :browser do
    plug :accepts, ["html"]
    plug :fetch_session
    plug :fetch_flash
    plug :protect_from_forgery
    plug :put_secure_browser_headers
    plug AsciinemaWeb.Auth
  end

  pipeline :asciicast_embed_script do
    plug :accepts, ["js"]
  end

  scope "/", AsciinemaWeb do
    pipe_through :asciicast_embed_script

    # rewritten by TrailingFormat from /a/123.js to /a/123/js
    get "/a/:id/js", AsciicastEmbedController, :show<commit_msg>Don't report NotAcceptableError to Sentry<commit_after>defmodule AsciinemaWeb.Router do
  use AsciinemaWeb, :router
  use Plug.ErrorHandler
  defp handle_errors(_conn, %{reason: %Ecto.NoResultsError{}}), do: nil
  defp handle_errors(_conn, %{reason: %Phoenix.NotAcceptableError{}}), do: nil
  use Sentry.Plug

  pipeline :browser do
    plug :accepts, ["html"]
    plug :fetch_session
    plug :fetch_flash
    plug :protect_from_forgery
    plug :put_secure_browser_headers
    plug AsciinemaWeb.Auth
  end

  pipeline :asciicast_embed_script do
    plug :accepts, ["js"]
  end

  scope "/", AsciinemaWeb do
    pipe_through :asciicast_embed_script

    # rewritten by TrailingFormat from /a/123.js to /a/123/js
    get "/a/:id/js", AsciicastEmbedController, :show
{'fraction_non_alphanumeric': 0.09557273366127898, 'fraction_numerical': 0.008432888264230498, 'mean_word_length': 4.049645390070922, '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': '5143486', 'n_tokens_mistral': 517, 'n_tokens_neox': 495, 'n_words': 121}