<commit_before>- workshop = room.workshops.where(:slot_id => slot.id,:room_id=>room.id).first
- if workshop.nil?
	- if current_user && current_user.admin? then
		= link_to "Create workshop", 
			new_event_workshop_path(@event,:room_id=>room.id,:slot_id=>slot.id),
			:class => 'btn btn-primary'
	- else
		/ no workshop
- else
	- if current_user && current_user.admin? then
		.btn-group
			= link_to "", edit_event_workshop_path(@event,workshop),
				:class => 'btn btn-mini icon-edit'
			= link_to "", event_workshop_path(@event,workshop),
				:method => :delete,
				:confirm=>'Are you sure?',
				:class => 'btn btn-mini icon-remove'

	= link_to event_workshop_path(@event,workshop),
		:target => "_blank" do
		%b= workshop.title 
		%br/
		\##{workshop.slug}
	/= link_to File.join(ETHERPAD_URL,'p',"#{@event.slug}_#{workshop.slug}"), 
	/	:target => "_blank" do
	/	%b= workshop.title 
	/	%br/
	/	\##{workshop.slug}<commit_msg>view/schdule/workshop: display cleanup.<commit_after>- workshop = room.workshops.where(:slot_id => slot.id,:room_id=>room.id).first
- if workshop.nil?
	- if current_user && current_user.admin? then
		= link_to "Create workshop", 
			new_event_workshop_path(@event,:room_id=>room.id,:slot_id=>slot.id),
			:class => 'btn btn-primary'
	- else
		/ no workshop
		\-
- else
	- if current_user && current_user.admin? then
		.btn-group
			= link_to "", edit_event_workshop_path(@event,workshop),
				:class => 'btn btn-mini icon-edit'
			= link_to "", event_workshop_path(@event,workshop),
				:method => :delete,
				:confirm=>'Are you sure?',
				:class => 'btn btn-mini icon-remove'

	= link_to event_workshop_path(@event,workshop),
		:target => "_blank" do
		%b= workshop.title 
		.div
			.icon-tag
			= workshop.slug

{'fraction_non_alphanumeric': 0.17106773823191734, 'fraction_numerical': 0.0, 'mean_word_length': 3.965811965811966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 24, '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': '124430', 'n_tokens_mistral': 719, 'n_tokens_neox': 653, 'n_words': 115}