<commit_before><% require 'fastercsv' -%>
<%# 
        adding :headers => true is supposed to set a flag in the file 
        somewhere marking it as having a header row, but I don't 
        think that it actually does.
-%>
<%= %w( studyid icf_master_id name sex bornincali state_id_no dob ).to_csv(
  :headers => true) -%>
<% @bc_requests.each do |bc_request| -%>
<% study_subject = bc_request.study_subject -%>
<%=[
 study_subject.studyid,
 study_subject.icf_master_id,
 study_subject.full_name,
 study_subject.sex,
 'bornincali?',
 study_subject.state_id_no,
 mdy(study_subject.dob)
].to_csv -%>
<% end -%><%# @bc_requests.each do |bc_request| -%>
<commit_msg>Change bc_requests#index.csv header to 'Born in CA?'.[#124]<commit_after><% require 'fastercsv' -%>
<%# 
        adding :headers => true is supposed to set a flag in the file 
        somewhere marking it as having a header row, but I don't 
        think that it actually does.
-%>
<%= ['studyid','icf_master_id','name','sex','Born in CA?','state_id_no','dob'].to_csv(
  :headers => true) -%>
<% @bc_requests.each do |bc_request| -%>
<% study_subject = bc_request.study_subject -%>
<%=[
 study_subject.studyid,
 study_subject.icf_master_id,
 study_subject.full_name,
 study_subject.sex,
 'bornincali?',
 study_subject.state_id_no,
 mdy(study_subject.dob)
].to_csv -%>
<% end -%><%# @bc_requests.each do |bc_request| -%>

{'fraction_non_alphanumeric': 0.15667870036101084, 'fraction_numerical': 0.0021660649819494585, 'mean_word_length': 4.191011235955056, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1062226', 'n_tokens_mistral': 533, 'n_tokens_neox': 499, 'n_words': 118}