<commit_before>class AnalysisService


	def self.perform
		AnalysisService::get_inside_all_jobs_url(3)
  	AnalysisService::get_all_inside_jobs_infomation
	end


private

  def self.get_inside_all_jobs_url(pages)
  	1.upto(pages.to_i) do |page|
  		@inside_job_url_parser_service = InsideJobUrlParserService.new("http://jobs.inside.com.tw/jobs/page/#{page}")
  		@inside_job_url_parser_service.parse
		end 
  end

  def self.get_all_inside_jobs_infomation
  	@inside_jobs = Job.select(:url).where({ :title => nil })
  	@inside_jobs.each do |inside_job|
			inside_job_parser_serice = InsideJobParserService.new(inside_job.url)
  		inside_job_parser_serice.parse
    end
  end

end<commit_msg>analysis_service.rb<commit_after>class AnalysisService


	def self.perform
		AnalysisService::get_inside_all_jobs_url(10)
  	AnalysisService::get_all_inside_jobs_infomation
	end


private

  def self.get_inside_all_jobs_url(pages)
  	1.upto(pages.to_i) do |page|
  		@inside_job_url_parser_service = InsideJobUrlParserWithFilter.new("http://jobs.inside.com.tw/jobs/page/#{page}")
  		@inside_job_url_parser_service.call
		end 
  end

  def self.get_all_inside_jobs_infomation
  	@inside_jobs = Job.select(:url).where({ :title => nil })
  	@inside_jobs.each do |inside_job|
			inside_job_parser_serice = InsideJobParser.new(inside_job.url)
  		inside_job_parser_serice.call
    end
  end

end
{'fraction_non_alphanumeric': 0.09485879797248371, 'fraction_numerical': 0.003620564808110065, 'mean_word_length': 5.169642857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5302300', 'n_tokens_mistral': 574, 'n_tokens_neox': 512, 'n_words': 65}