<commit_before>namespace :submission do
  desc "Generate PDF files for submissions"

  def logger
  	Rails.logger
  end

  task generate_pdfs:  :environment do
  	logger.info 'Starting generate pdf'
  	
  	PortfolioEvidence.process_new_to_pdf
  end
end<commit_msg>add a chdir to the generate script to hope to avoid no cwd dir<commit_after>namespace :submission do
  desc "Generate PDF files for submissions"

  def logger
  	Rails.logger
  end

  task generate_pdfs:  :environment do
  	logger.info 'Starting generate pdf'
	Dir.chdir(Rails.root)
	  	
  	PortfolioEvidence.process_new_to_pdf
  end
end
{'fraction_non_alphanumeric': 0.04991680532445923, 'fraction_numerical': 0.0, 'mean_word_length': 3.894308943089431, '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': '2461438', 'n_tokens_mistral': 203, 'n_tokens_neox': 191, 'n_words': 61}