<commit_before>class SurveyController < ApplicationController

  

	def index
		@survey = Survey.new
	end
	
	def create
		Survey.create(survey_params)
	end
	
	def result
	
	end
	private
	def survey_params
		params.require(:survey).permit(:haveParticipated,:whyStart, :newSkills, :howUsedSkills, :skillsExample, :whyNot, :whatWouldInterest, :whatWouldIncreaseParticipation, :bestLeague, :automation, :otherDevelopment, :betterServe)<commit_msg>pretend none of this happened<commit_after>class SurveyController < ApplicationController

  before_action :require_admin, :only => [:result]

	def index
		
		@survey = Survey.new
		
	end
	
	def create
		
		Survey.create(survey_params)
	end
	
	def result
		 
	end
	
	private

	def require_admin
		redirect_to :root unless current_user and current_user.admin
	end
	
	def survey_params
		params.require(:survey).permit(:haveParticipated,:whyStart, :newSkills, :howUsedSkills, :skillsExample, :whyNot, :whatWouldInterest, :whatWouldIncreaseParticipation, :bestLeague, :automation, :otherDevelopment, :betterServe)
{'fraction_non_alphanumeric': 0.08547008547008547, 'fraction_numerical': 0.0, 'mean_word_length': 5.713375796178344, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5091009', 'n_tokens_mistral': 378, 'n_tokens_neox': 321, 'n_words': 74}