<commit_before>require 'csv'
#
#	The ScreeningDatumUpdate#csv_file comes from ICF
#
#	It contains updated case info which will be passed to USC
#	to assist to correctly identifying controls?
#
class ScreeningDatumUpdate < ActiveRecord::Base

	has_attached_file :csv_file,
		YAML::load(ERB.new(IO.read(File.expand_path(
			File.join(Rails.root,'config/screening_datum_update.yml')
		))).result)[Rails.env]<commit_msg>Added comment pointing to source of files.<commit_after>require 'csv'
#
#	The ScreeningDatumUpdate#csv_file comes from ICF
#
#	It contains updated case info which will be passed to USC
#	to assist to correctly identifying controls?
#
#	/Volumes/BUF-Fileshare/SharedFiles/Research\ \(xx\)/Competing\ Renewal\ 2009-2014/ICF/DataTransfers/USC_birth_cert_variable_files/
#
class ScreeningDatumUpdate < ActiveRecord::Base

	has_attached_file :csv_file,
		YAML::load(ERB.new(IO.read(File.expand_path(
			File.join(Rails.root,'config/screening_datum_update.yml')
		))).result)[Rails.env]
{'fraction_non_alphanumeric': 0.10943775100401607, 'fraction_numerical': 0.008032128514056224, 'mean_word_length': 6.02112676056338, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6595697', 'n_tokens_mistral': 364, 'n_tokens_neox': 334, 'n_words': 73}