<commit_before>defmodule Classlab.CalendarHelpers do
  @moduledoc """
  Locale helpers. Helper functions for date and time formatting in templates.
  """
  alias Calendar.Strftime

  def l(%Date{} = date, [format: format]) do
    Strftime.strftime!(date, format, :de)
  end

  def l(%DateTime{} = date, [format: format]) do
    date
    # |> Calendar.DateTime.shift_zone!("Europe/Berlin")
    |> Strftime.strftime!(format, :de)
  end

  def l(%Date{} = date) do
    Strftime.strftime!(date, "%d.%m.%Y")
  end

  def l(%DateTime{} = date) do
    date
    # |> Calendar.DateTime.shift_zone!("Europe/Berlin")
    |> Strftime.strftime!("%d.%m.%Y %H:%M")
  end
end<commit_msg>Remove unused calendar helpers<commit_after>defmodule Classlab.CalendarHelpers do
  @moduledoc """
  Locale helpers. Helper functions for date and time formatting in templates.
  """
  alias Calendar.Strftime

  def l(%Date{} = date) do
    Strftime.strftime!(date, "%d.%m.%Y")
  end

  def l(%DateTime{} = date) do
    date
    # |> Calendar.DateTime.shift_zone!("Europe/Berlin")
    |> Strftime.strftime!("%d.%m.%Y %H:%M")
  end
end
{'fraction_non_alphanumeric': 0.1592760180995475, 'fraction_numerical': 0.0, 'mean_word_length': 3.706382978723404, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1052558', 'n_tokens_mistral': 411, 'n_tokens_neox': 373, 'n_words': 91}