<commit_before>defmodule Survey.Router do
  use Survey.Web, :router

  pipeline :browser do
    plug PlugLti
    plug :accepts, ["html"]
    plug :fetch_session
    plug :fetch_flash
    plug :protect_from_forgery
  end

  pipeline :api do
    plug :accepts, ["json"]
  end

  scope "/", Survey do
    pipe_through :browser # Use the default browser stack

    get "/", PageController, :index
    post "/tags", TagController, :index
    post "/tags/submit", TagController, :submit
   resources "/users", UserController
  end

  # Other scopes may use custom stacks.
  # scope "/api", Survey do
  #   pipe_through :api
  # end
end
<commit_msg>Checking LTI only on initial contact<commit_after>defmodule Survey.Router do
  use Survey.Web, :router

  pipeline :initial do
    plug PlugLti
    plug :accepts, ["html"]
  end

  end
  pipeline :browser do
    plug PlugLti
    plug :accepts, ["html"]
    plug :fetch_session
    plug :fetch_flash
    plug :protect_from_forgery
  end

  pipeline :api do
    plug :accepts, ["json"]
  end

  scope "/", Survey do
    pipe_through :initial
    post "/tags", TagController, :index
  end

  scope "/", Survey do
    pipe_through :browser # Use the default browser stack

    get "/", PageController, :index
    post "/tags/submit", TagController, :submit
   resources "/users", UserController
  end

  # Other scopes may use custom stacks.
  # scope "/api", Survey do
  #   pipe_through :api
  # end
end

{'fraction_non_alphanumeric': 0.09556786703601108, 'fraction_numerical': 0.0, 'mean_word_length': 3.013888888888889, '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': '53802', 'n_tokens_mistral': 456, 'n_tokens_neox': 441, 'n_words': 155}