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

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

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

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

    get "/", PageController, :index
    # get "/platform", PageController, :platform
    # get "/candidates", PageController, :candidates
    # get "/candidates/:candidate", PageController, :candidate

    get "/petition/:petition", PetitionController, :get
    post "/petition/:petition", PetitionController, :post

    get "/form/:form", FormController, :get
    get "/info/:info", InfoController, :get

    get "/act", ActController, :get
    get "/act/:candidate", ActController, :get_candidate
    get "/act/call/:candidate", ActController, :get_call_candidate
    get "/act/calling-html/:candidate", ActController, :candidate_calling_html

    get "/call", VoxController, :get
    get "/call/logins", VoxController, :get_logins
    post "/call", VoxController, :post

    get "/unsubscribe", SubscriptionController, :unsubscribe_get
    post "/unsubscribe", SubscriptionController, :unsubscribe_post
    get "/unsubscribe/:candidate", SubscriptionController, :unsubscribe_candidate_get
    post "/unsubscribe/:candidate", SubscriptionController, :unsubscribe_candidate_post

    get "/entry", EntryController, :get
  end


  scope "/api", Core do
    get "/update/cosmic", UpdateController, :cosmic
    post "/tf-submit/submit-event", TypeformController, :submit_event
  end
end<commit_msg>cosmic webhooks<commit_after>defmodule Core.Router do
  use Core.Web, :router

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

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

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

    get "/", PageController, :index
    # get "/platform", PageController, :platform
    # get "/candidates", PageController, :candidates
    # get "/candidates/:candidate", PageController, :candidate

    get "/petition/:petition", PetitionController, :get
    post "/petition/:petition", PetitionController, :post

    get "/form/:form", FormController, :get
    get "/info/:info", InfoController, :get

    get "/act", ActController, :get
    get "/act/:candidate", ActController, :get_candidate
    get "/act/call/:candidate", ActController, :get_call_candidate
    get "/act/calling-html/:candidate", ActController, :candidate_calling_html

    get "/call", VoxController, :get
    get "/call/logins", VoxController, :get_logins
    post "/call", VoxController, :post

    get "/unsubscribe", SubscriptionController, :unsubscribe_get
    post "/unsubscribe", SubscriptionController, :unsubscribe_post
    get "/unsubscribe/:candidate", SubscriptionController, :unsubscribe_candidate_get
    post "/unsubscribe/:candidate", SubscriptionController, :unsubscribe_candidate_post

    get "/entry", EntryController, :get
  end


  scope "/api", Core do
    get "/update/cosmic", UpdateController, :cosmic
    post "/update/cosmic", UpdateController, :cosmic
    post "/tf-submit/submit-event", TypeformController, :submit_event
  end
end
{'fraction_non_alphanumeric': 0.11902693310165074, 'fraction_numerical': 0.0, 'mean_word_length': 4.064516129032258, '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': '6385405', 'n_tokens_mistral': 1039, 'n_tokens_neox': 1017, 'n_words': 272}