<commit_before>defmodule EchoBot.EchoController do
  use EchoBot.Web, :controller
  alias BotBuilder.Connector

  def echo(conn, params) do
    get_message(conn, params)
  end

  defp get_message(conn,%{} = params) do
    params
    |> Connector.parse_activity
    |> Connector.reply("You said: " <> params["text"])
    
    conn 
    |> put_status(202)
    |> json(%{})
  end

  defp get_message(conn, _) do
    conn |>
    put_status(:bad_request) |>
    json(%{ error: "Invalid Request"})
  end
end<commit_msg>Unifying the pipeline operator position<commit_after>defmodule EchoBot.EchoController do
  use EchoBot.Web, :controller
  alias BotBuilder.Connector

  def echo(conn, params) do
    get_message(conn, params)
  end

  defp get_message(conn,%{} = params) do
    params
    |> Connector.parse_activity
    |> Connector.reply("You said: " <> params["text"])
    
    conn 
    |> put_status(202)
    |> json(%{})
  end

  defp get_message(conn, _) do
    conn
    |> put_status(:bad_request)
    |> json(%{ error: "Invalid Request"})
  end
end
{'fraction_non_alphanumeric': 0.12737642585551331, 'fraction_numerical': 0.005703422053231939, 'mean_word_length': 3.3692946058091287, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '2390884', 'n_tokens_mistral': 376, 'n_tokens_neox': 345, 'n_words': 81}