<commit_before>class Admin::ServerStateController < Admin::ApplicationController

	def index
		@autorizedIps = ServerStatus.first.ips
		@authorizedIps = nil if(!@authorizedIps.is_a?(Array))
		if request.path_parameters['controller'] != 'admin/server_state'
			render :partial => 'index_less'
		end
	end

	def add_ip
		newIp = params['ip']
		unless newIp.nil?
			begin
				ServerStatus.add_authorized_ip(ip)
				@addIpResult = 'Ip Rajouté'
			rescue => e
				@addIpResult = 'Error occurs '+e.message
			end
		end
		render :partial => 'add_ip'
	end

	def remove_ip
		unless params['ip'].nil?
			ServerStatus.delete_autorized_ip(ip)
		end
	end
end
<commit_msg>Correct index view main render<commit_after>class Admin::ServerStateController < Admin::ApplicationController

	def index
		@autorizedIps = ServerStatus.first.ips
		@authorizedIps = nil if(!@authorizedIps.is_a?(Array))
		if request.path_parameters['controller'] != 'admin/server_state'
			render :partial => 'index'
		else
			render 'index_less'
		end
	end

	def add_ip
		newIp = params['ip']
		unless newIp.nil?
			begin
				ServerStatus.add_authorized_ip(ip)
				@addIpResult = 'Ip Rajouté'
			rescue => e
				@addIpResult = 'Error occurs '+e.message
			end
		end
		render :partial => 'add_ip'
	end

	def remove_ip
		unless params['ip'].nil?
			ServerStatus.delete_autorized_ip(ip)
		end
	end
end

{'fraction_non_alphanumeric': 0.10914454277286136, 'fraction_numerical': 0.0, 'mean_word_length': 4.159695817490494, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2643902', 'n_tokens_mistral': 536, 'n_tokens_neox': 467, 'n_words': 105}