You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: chartable.rb
    path of file: ./repos/tomatoes/lib
    
    the code of the file until where you have to start completion: module Chartable
  extend ActiveSupport::Concern
  include GroupableByDay
  include GroupableByHour
  include GroupableByTomatoes

  ONE_DAY = 6
    
    def to_tomatoes_bars(collection)
      collection_by_tomatoes = group_by_tomatoes(collection)
      tomatoes = collection_by_tomatoes.keys

      Range.new(tomatoes.first || 0, tomatoes.last || 0).map do |tomatoes_count|
        [tomatoes_count, yield(collection_by_tomatoes[tomatoes_count])]
      end
    end