<commit_before>module EventsHelper

  def timeslots
    slots = Array.new
    @conference.max_timeslots.times do |i|
      slots << [format_time_slots(i), i]
    end
    slots
  end

  def start_times
    times = Array.new
    date = @conference.first_day
    while date <= @conference.last_day
      time = date.to_time
      time = time.since(7.hours)
      end_time = time.since(16.hours)
      while time <= end_time
        times << [time.strftime("%Y-%m-%d %H:%M"), time]
        time = time.since(@conference.timeslot_duration.minutes)
      end
      date = date.tomorrow
    end
    times
  end

  def format_time_slots(number_of_time_slots)
    duration_in_minutes = number_of_time_slots * @conference.timeslot_duration
    duration_to_time(duration_in_minutes)<commit_msg>Fix editing of start time on event.<commit_after>module EventsHelper

  def timeslots
    slots = Array.new
    @conference.max_timeslots.times do |i|
      slots << [format_time_slots(i), i]
    end
    slots
  end

  def start_times
    times = Array.new
    date = @conference.first_day
    while date <= @conference.last_day
      time = date.to_time_in_current_zone
      time = time.since(7.hours)
      end_time = time.since(16.hours)
      while time <= end_time
        times << [time.strftime("%Y-%m-%d %H:%M"), time]
        time = time.since(@conference.timeslot_duration.minutes)
      end
      date = date.tomorrow
    end
    times
  end

  def format_time_slots(number_of_time_slots)
    duration_in_minutes = number_of_time_slots * @conference.timeslot_duration
    duration_to_time(duration_in_minutes)
{'fraction_non_alphanumeric': 0.09413965087281795, 'fraction_numerical': 0.003740648379052369, 'mean_word_length': 2.972772277227723, 'pattern_counts': {'":': 0, '<': 15, '<?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': '5081361', 'n_tokens_mistral': 559, 'n_tokens_neox': 543, 'n_words': 107}