<commit_before>defmodule Exagg.Plugs.JWTAuth do
  import Plug.Conn

  alias Exagg.User
  alias Exagg.JWT

  def init(options), do: options

  # Prevent access without a valid JWT Bearer token.
  def call(conn, options) do
    auth = conn |> get_req_header("authorization")
    if Enum.empty? auth do
      deny(conn)
    else<commit_msg>Code cleanup.<commit_after>defmodule Exagg.Plugs.JWTAuth do
  import Plug.Conn

  alias Exagg.JWT

  def init(_default) do
  end

  # Prevent access without a valid JWT Bearer token.
  def call(conn, _options) do
    auth = conn |> get_req_header("authorization")
    if Enum.empty? auth do
      deny(conn)
    else
{'fraction_non_alphanumeric': 0.08269525267993874, 'fraction_numerical': 0.0, 'mean_word_length': 3.3026315789473686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1420912', 'n_tokens_mistral': 227, 'n_tokens_neox': 218, 'n_words': 66}