<commit_before>defmodule Thermio.HealthController do
  use Thermio.Web, :controller

  def health(conn, _params) do
    db_up =
			try do
				Repo.one!(from c in "climates", select: count(c.id))
				true
			rescue
				_ -> false
			end

		if db_up do
			conn
			|> put_status(:ok)
			|> json(%{status: :ok})
		else
			conn
			|> put_status(:internal_server_error)
			|> json(%{status: :internal_server_error})
		end
  end
end<commit_msg>Fix indentation<commit_after>defmodule Thermio.HealthController do
  use Thermio.Web, :controller

  def health(conn, _params) do
    db_up =
      try do
        Repo.one!(from c in "climates", select: count(c.id))
        true
      rescue
        _ -> false
      end

    if db_up do
      conn
      |> put_status(:ok)
      |> json(%{status: :ok})
    else
      conn
      |> put_status(:internal_server_error)
      |> json(%{status: :internal_server_error})
    end
  end
end
{'fraction_non_alphanumeric': 0.11292073832790445, 'fraction_numerical': 0.0, 'mean_word_length': 2.55984555984556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1770132', 'n_tokens_mistral': 361, 'n_tokens_neox': 318, 'n_words': 76}