<commit_before>require 'date'
require 'active_support/all'
Pakyow::App.bindings :events do
	scope :events do
		restful :events

    options(:parent_group) do
      get_groups_for_logged_in_person()
    end

    binding(:parent_group) do
      bindable.group_id
    end

		options(:duration) do
			opts = [[]]
			opts << [1, "1 hour"]
			opts << [2, "2 hours"]
			opts << [3, "3 hours"]
			opts << [4, "4 hours"]
			opts << [5, "5 hours"]
			opts
		end

    binding(:duration) do
      bindable.duration
    end

    options(:venue) do
      get_venues()
    end

    binding(:venue) do
				bindable.venue_id
    end

    binding(:name) do
      {
        :content => bindable.name
      }
    end

    binding(:description) do
      {
        :content => bindable.description
      }
    end

    binding(:start_datetime) do
      {
        :content => if bindable.start_datetime then bindable.start_datetime.in_time_zone("Central Time (US & Canada)").strftime('%b %d, %Y %I:%M %p') else "" end
      }
		end

		binding(:venue_name) do
			venue = Venue.where("id = ?", bindable.venue_id).first
			{
				:content => venue.name
			}
		end

		binding(:group_name) do
			group = Group.where("id = ?", bindable.group_id).first
			{
				:content => group.name
			}
		end

		binding(:parent_event_li) do
			css_class = "hide"
			unless bindable.group_id.nil?
				css_class = ""
			end
			{
				:class => css_class
			}
		end

		options(:parent_event_selector) do
			get_events_for_group_id(bindable.group_id)
		end

		binding(:parent_event_selector) do
			unless bindable.parent_id.nil?
				bindable.parent_id
			else
				p "didn't set"
			end
		end

		binding(:duration_text) do
			hours_string = if bindable.duration > 1 then " hours" else " hour" end
			{
				:content => bindable.duration.to_s + hours_string
			}
		end

		binding(:approved) do
			content = if bindable.approved then "Approved" else "Pending" end
			people = People[session[:people]]<commit_msg>Removed debug print statement<commit_after>require 'date'
require 'active_support/all'
Pakyow::App.bindings :events do
	scope :events do
		restful :events

    options(:parent_group) do
      get_groups_for_logged_in_person()
    end

    binding(:parent_group) do
      bindable.group_id
    end

		options(:duration) do
			opts = [[]]
			opts << [1, "1 hour"]
			opts << [2, "2 hours"]
			opts << [3, "3 hours"]
			opts << [4, "4 hours"]
			opts << [5, "5 hours"]
			opts
		end

    binding(:duration) do
      bindable.duration
    end

    options(:venue) do
      get_venues()
    end

    binding(:venue) do
				bindable.venue_id
    end

    binding(:name) do
      {
        :content => bindable.name
      }
    end

    binding(:description) do
      {
        :content => bindable.description
      }
    end

    binding(:start_datetime) do
      {
        :content => if bindable.start_datetime then bindable.start_datetime.in_time_zone("Central Time (US & Canada)").strftime('%b %d, %Y %I:%M %p') else "" end
      }
		end

		binding(:venue_name) do
			venue = Venue.where("id = ?", bindable.venue_id).first
			{
				:content => venue.name
			}
		end

		binding(:group_name) do
			group = Group.where("id = ?", bindable.group_id).first
			{
				:content => group.name
			}
		end

		binding(:parent_event_li) do
			css_class = "hide"
			unless bindable.group_id.nil?
				css_class = ""
			end
			{
				:class => css_class
			}
		end

		options(:parent_event_selector) do
			get_events_for_group_id(bindable.group_id)
		end

		binding(:parent_event_selector) do
			unless bindable.parent_id.nil?
				bindable.parent_id
			end
		end

		binding(:duration_text) do
			hours_string = if bindable.duration > 1 then " hours" else " hour" end
			{
				:content => bindable.duration.to_s + hours_string
			}
		end

		binding(:approved) do
			content = if bindable.approved then "Approved" else "Pending" end
			people = People[session[:people]]
{'fraction_non_alphanumeric': 0.12004095213718965, 'fraction_numerical': 0.005630918863578193, 'mean_word_length': 2.676387582314205, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 19, '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': '4980040', 'n_tokens_mistral': 1561, 'n_tokens_neox': 1327, 'n_words': 304}