<commit_before>module SimpleCalendarHelper
  include TagsHelper

  def home_path
    return session[:simple_calendar_path] if not session[:simple_calendar_path].empty?
    return session[:simple_calendar_prefix] if not session[:simple_calendar_prefix].empty?
    #return "http://#{request.env['HTTP_HOST']}"
    return "#{request.protocol}#{request.host_with_port}#{request.relative_url_root}"
  end

  def path_for_new_calendar_entry_day(hour, min)
    "#{home_path}/simple_calendar_entries/new/#{Date.new(@year, @month, @day)}?mode=day&hour=#{hour}&mins=#{min}"
  end

  def path_for_new_calendar_entry_month(day)
    "#{home_path}/simple_calendar_entries/new/#{Date.new(@year, @month, day)}"
  end

  def path_to_day_view(day)
    "#{home_path}/simple_calendar/day_view?date=#{Date.new(@year, @month, day)}&tag=#{session[:simple_calendar_selected_tag]}"<commit_msg>use relative urls unless specified<commit_after>module SimpleCalendarHelper
  include TagsHelper

  def home_path
    return session[:simple_calendar_path] if not session[:simple_calendar_path].empty?
    return session[:simple_calendar_prefix] if not session[:simple_calendar_prefix].empty?
    return ""
    #return "http://#{request.env['HTTP_HOST']}"
    #return "#{request.protocol}#{request.host_with_port}#{request.relative_url_root}"
  end

  def path_for_new_calendar_entry_day(hour, min)
    "#{home_path}/simple_calendar_entries/new/#{Date.new(@year, @month, @day)}?mode=day&hour=#{hour}&mins=#{min}"
  end

  def path_for_new_calendar_entry_month(day)
    "#{home_path}/simple_calendar_entries/new/#{Date.new(@year, @month, day)}"
  end

  def path_to_day_view(day)
    "#{home_path}/simple_calendar/day_view?date=#{Date.new(@year, @month, day)}&tag=#{session[:simple_calendar_selected_tag]}"
{'fraction_non_alphanumeric': 0.14841986455981943, 'fraction_numerical': 0.0, 'mean_word_length': 7.02262443438914, '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': '2121751', 'n_tokens_mistral': 601, 'n_tokens_neox': 604, 'n_words': 82}