<commit_before>require "rest_client"
require "nori"
require "singleton"

module Gcba
	module Cultural
		class GcbaConnector
			include Singleton
			
			def initialize
				Nori.configure do |config|
  					config.convert_tags_to { |tag| tag.to_sym }
				end
			end

			def get_events
				url = "http://agendacultural.buenosaires.gob.ar/webservice/response/client.php"
				params = {
					:params => {
						:Method => "GetEventosListFiltered",
						:IdEvento => nil, 
						:IdEstadoEvento => nil, 
						:Titulo => nil,
						:Resumen => nil,
						:Descripcion => nil,
						:FechaInicioFrom => nil,
						:FechaInicioTo => "2012-09-11",
						:FechaFinFrom => nil,
						:FechaFinTo => "2012-09-11",
						:FechaPublicacionDesdeFrom => nil,
						:FechaPublicacionDesdeTo => nil,
						:FechaPublicacionHastaFrom => nil,
						:FechaPublicacionHastaTo => nil,
						:FechaProximoEventoDesdeFrom => nil,
						:FechaProximoEventoDesdeTo => nil,
						:FechaProximoEventoHastaFrom => nil,
						:FechaProximoEventoHastaTo => nil,
						:DestacadoHome => nil,
						:MarcaProximosEventos => nil,
						:Imagen => nil,
						:AlbumFlickr => nil,
						:Facebook => nil,
						:Youtube => nil,
						:Twitter => nil,
						:IdEventoPadre => nil,
						:IdEventosRelacionados => nil,
						:Hora => nil,
						:Minutos => nil,
						:IdTipoEvento => nil,
						:DestacadoBoxPrimario => nil,
						:Latitud => "51.503307",
						:Longitud => "-0.127711",
						:OrdenarPor => "Titulo",
						:Orden => "ASC",
						:Limit => nil,
						:Offset => "0",
					}
					
				}
				result = RestClient.get url, params
				Nori.parse(result)
			end
		end
	end
end<commit_msg>Change params description<commit_after>require "rest_client"
require "nori"
require "singleton"

module Gcba
	module Cultural
		class GcbaConnector
			include Singleton
			
			def initialize
				Nori.configure do |config|
  					config.convert_tags_to { |tag| tag.to_sym }
				end
				@url = "http://agendacultural.buenosaires.gob.ar/webservice/response/client.php"
				@params = {
					:params => {
						:Method => nil,
						:IdEvento => nil, 
						:IdEstadoEvento => nil, 
						:Titulo => nil,
						:Resumen => nil,
						:Descripcion => nil,
						:FechaInicioFrom => nil,
						:FechaInicioTo => "2012-09-11",
						:FechaFinFrom => nil,
						:FechaFinTo => "2012-09-11",
						:FechaPublicacionDesdeFrom => nil,
						:FechaPublicacionDesdeTo => nil,
						:FechaPublicacionHastaFrom => nil,
						:FechaPublicacionHastaTo => nil,
						:FechaProximoEventoDesdeFrom => nil,
						:FechaProximoEventoDesdeTo => nil,
						:FechaProximoEventoHastaFrom => nil,
						:FechaProximoEventoHastaTo => nil,
						:DestacadoHome => nil,
						:MarcaProximosEventos => nil,
						:Imagen => nil,
						:AlbumFlickr => nil,
						:Facebook => nil,
						:Youtube => nil,
						:Twitter => nil,
						:IdEventoPadre => nil,
						:IdEventosRelacionados => nil,
						:Hora => nil,
						:Minutos => nil,
						:IdTipoEvento => nil,
						:DestacadoBoxPrimario => nil,
						:Latitud => "51.503307",
						:Longitud => "-0.127711",
						:OrdenarPor => "Titulo",
						:Orden => "ASC",
						:Limit => "200",
						:Offset => "0",
					}
					
				}
			end

			def get_events
				@params[:params][:Method] = "GetEventosListFiltered"
				result = RestClient.get @url, @params
				Nori.parse(result)
			end
		end
	end
end
{'fraction_non_alphanumeric': 0.1319526627218935, 'fraction_numerical': 0.01982248520710059, 'mean_word_length': 2.471252566735113, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 79, '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': '2997196', 'n_tokens_mistral': 1760, 'n_tokens_neox': 1230, 'n_words': 229}