<commit_before>require 'pry'
require 'httparty'
#require 'girl_world'

module GirlWorld
	
	def self.percent_in_parliement(country)
		HTTParty.get("http://api.worldbank.org/countries/#{country}/indicators/SG.GEN.PARL.ZS?&format=json")
	end 

# Usage:
# my_high_school = GirlWorld::HighSchool.new()
# my_high_school
	class HighSchool
		attr_reader :url 
		
		def initialize()
			@url = 'http://api.worldbank.org/countries'
			@indicator = 'indicators/SE.ENR.PRSC.FM.ZS'
		end 
		
		#gets girl/boy ratio by country from user input
		def ratio(country)
			HTTParty.get("#{url}/#{country}#{indicator}?&format=json")
		end 

		#gets girl/boy ratio by country, and year range from user input
		def ratio_year_range(country, start_year, end_year)
			HTTParty.get("#{url}/#{country}/indicators/SE.ENR.PRSC.FM.ZS?date=#{start_year}:#{end_year}&format=json")																																													
		end  

		#gets all info for all countries and regions
		def ratio_all()
		end 

	end
	#gets girl/bou high school rate
	
	def poplution(country)
	end 

end 

puts GirlWorld.high_school_ratio('us')

puts GirlWorld.high_school_ratio_by_date('us', 2000, 2013)







<commit_msg>cleaned up methods some more<commit_after>require 'pry'
require 'httparty'
#require 'girl_world'

module GirlWorld
	
	def self.percent_in_parliement(country)
		HTTParty.get("http://api.worldbank.org/countries/#{country}/indicators/SG.GEN.PARL.ZS?&format=json")
	end 

# Usage:
# my_high_school = GirlWorld::HighSchool.new()
# my_high_school
	class SecondarySchool

		attr_reader :url :indicator
		
		def initialize(url, indicator)
			@url = 'http://api.worldbank.org/countries'
			@indicator = 'indicators/SE.ENR.PRSC.FM.ZS' #indicator for ratio of girls/boys in secondary school 
		end 
		
		#gets girl/boy ratio by country from user input
		def ratio(country)
			HTTParty.get("#{url}/#{country}/#{indicator}?&format=json")
		end 

		#gets girl/boy ratio by country, and year range from user input
		def ratio_year_range(country, start_year, end_year)
			HTTParty.get("#{url}/#{country}/#{indicator}?date=#{start_year}:#{end_year}&format=json")																																													
		end  

		#gets all info for all countries and regions from user input
		def ratio_all
			HTTParty.get("#{url}/all/#{indicator}?&format=json")
		end 

		#gets all info for all countries and regions by year range from user input
		def ratio_all_year_range
			HTTParty.get("#{url}/all/#{indicator}?date=#{start_year}:#{end_year}&format=json")
		end 

	end

	
	def poplution(country)
	end 

end 

puts GirlWorld.high_school_ratio('us')

puts GirlWorld.high_school_ratio_by_date('us', 2000, 2013)








{'fraction_non_alphanumeric': 0.12396694214876033, 'fraction_numerical': 0.006010518407212622, 'mean_word_length': 3.815551537070524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4777982', 'n_tokens_mistral': 1033, 'n_tokens_neox': 915, 'n_words': 197}