<commit_before>require 'rubygems'

require 'voter-registration-client'
 
 VoterRegApi::Client.api_key = '' #get an api key from lockbox.dnc.org
 
 !VoterRegApi::Client.api_key.blank? || (puts("get an api key from lockbox.dnc.org"))
 
 attrs = {"previous_address_street"=>nil,
  "name_middle"=>'James',
  "previous_name_suffix"=>nil,
  "created_at"=>DateTime.now,
  "email_optin"=>true,
  "name_last"=>'Smith',
  "id_sha1"=>nil,
  "birthdate"=>Date.parse("01-01-1970"),
  "previous_name_last"=>nil,
  "ethnicity"=>nil,
  "previous_name_middle"=>nil,
  "previous_name_title"=>nil,
  "mailing_address_street"=>nil,
  "id_number"=>1234567,
  "temp_id_number"=>1234567,
  "gender"=>'Male',
  "address_zipcode"=>'12345',
  "address_street"=>'4 Monkey ln',
  "referer"=>nil,
  "previous_name_first"=>nil,
  "political_party"=>nil,
  "mailing_address_zipcode"=>nil,
  "phone_number"=>'(223) 222-3434',
  "name_title"=>'Mr.',
  "previous_address_county"=>nil,<commit_msg>changed example script to return early if api_key isn't set<commit_after>require 'rubygems'

require 'voter-registration-client'
 
 VoterRegApi::Client.api_key = '' #get an api key from lockbox.dnc.org
 
 !VoterRegApi::Client.api_key.blank? || (return puts("Get an api key from lockbox.dnc.org to use the Voter Reg API"))
 
 attrs = {"previous_address_street"=>nil,
  "name_middle"=>'James',
  "previous_name_suffix"=>nil,
  "created_at"=>DateTime.now,
  "email_optin"=>true,
  "name_last"=>'Smith',
  "id_sha1"=>nil,
  "birthdate"=>Date.parse("01-01-1970"),
  "previous_name_last"=>nil,
  "ethnicity"=>nil,
  "previous_name_middle"=>nil,
  "previous_name_title"=>nil,
  "mailing_address_street"=>nil,
  "id_number"=>1234567,
  "temp_id_number"=>1234567,
  "gender"=>'Male',
  "address_zipcode"=>'12345',
  "address_street"=>'4 Monkey ln',
  "referer"=>nil,
  "previous_name_first"=>nil,
  "political_party"=>nil,
  "mailing_address_zipcode"=>nil,
  "phone_number"=>'(223) 222-3434',
  "name_title"=>'Mr.',
  "previous_address_county"=>nil,
{'fraction_non_alphanumeric': 0.18731268731268733, 'fraction_numerical': 0.03896103896103896, 'mean_word_length': 6.61596958174905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 53, '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': '7416818', 'n_tokens_mistral': 877, 'n_tokens_neox': 793, 'n_words': 109}