<commit_before># frozen_string_literal: true

# module to allocations
module AllocationHelper
  def get_school_room_allocation(school_room_allocations, hour, day)
    school_room_allocations.each do |allocation|
        start = allocation.start_time.strftime('%H').to_i
        final = allocation.final_time.strftime('%H').to_i
        if (hour >= start && hour < final) && allocation.day == day
          return allocation
        end
    end
    nil
  end

  def get_room_name_by_allocation(allocation)
    allocation.room.name
  end

  def get_discipline_by_allocation(allocation)
    allocation.school_room.discipline.name
  end

  def room_allocations_by_day
    # Allocation.find_by(id: room_id, day: day).find_by('? >= DATE_FORMAT(start_time, "%H") && ? < DATE_FORMAT(start_final, "%H")', hour, hour)
    render inline: "ttt"
    # allocation[0]
  end
end
<commit_msg>issue #24: Remove unused methods<commit_after># frozen_string_literal: true

# module to allocations
module AllocationHelper
end

{'fraction_non_alphanumeric': 0.09860557768924302, 'fraction_numerical': 0.00298804780876494, 'mean_word_length': 4.101522842639594, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4212162', 'n_tokens_mistral': 333, 'n_tokens_neox': 324, 'n_words': 71}