<commit_before>/**
 * Controller: Migration
 * - Prepares all external services for integration with the app; this includes, but
 *   is not limited to, creating mailchimp custom fields, registering webhook callbacks,
 *   creating indices and prepared data structures in dynamodb, &c.
 */

var config = require('../libs/config');
var mailchimp = require('../libs/mailchimp');
var AWS = require('aws-sdk');

const expected_merge_fields = {
  HOUSE_REP_NAME:  { name: 'REP1_NAME',  tag: 'REP1_NAME',  type: 'text' },
  HOUSE_REP_PHOTO: { name: 'REP1_PHOTO', tag: 'REP1_PHOTO', type: 'imageurl', required: true },
  HOUSE_REP_PHONE: { name: 'REP1_PHONE', tag: 'REP1_PHONE', type: 'phone',    required: true, options: { phone_format: 'US' } },
  SENATE_REP1_NAME:  { name: 'REP2_NAME',  tag: 'REP2_NAME',  type: 'text' },
  SENATE_REP1_PHOTO: { name: 'REP2_PHOTO', tag: 'REP2_PHOTO', type: 'imageurl', required: true },
  SENATE_REP1_PHONE: { name: 'REP2_PHONE', tag: 'REP2_PHONE', type: 'phone',    required: true, options: { phone_format: 'US' } },
  SENATE_REP2_NAME:  { name: 'REP3_NAME',  tag: 'REP3_NAME',  type: 'text' },
  SENATE_REP2_PHOTO: { name: 'REP3_PHOTO', tag: 'REP3_PHOTO', type: 'imageurl', required: true },<commit_msg>Whitespace nit-pick<commit_after>/**
 * Controller: Migration
 * - Prepares all external services for integration with the app; this includes, but
 *   is not limited to, creating mailchimp custom fields, registering webhook callbacks,
 *   creating indices and prepared data structures in dynamodb, &c.
 */

var config = require('../libs/config');
var mailchimp = require('../libs/mailchimp');
var AWS = require('aws-sdk');

const expected_merge_fields = {
  HOUSE_REP_NAME:    { name: 'REP1_NAME',  tag: 'REP1_NAME',  type: 'text' },
  HOUSE_REP_PHOTO:   { name: 'REP1_PHOTO', tag: 'REP1_PHOTO', type: 'imageurl', required: true },
  HOUSE_REP_PHONE:   { name: 'REP1_PHONE', tag: 'REP1_PHONE', type: 'phone',    required: true, options: { phone_format: 'US' } },
  SENATE_REP1_NAME:  { name: 'REP2_NAME',  tag: 'REP2_NAME',  type: 'text' },
  SENATE_REP1_PHOTO: { name: 'REP2_PHOTO', tag: 'REP2_PHOTO', type: 'imageurl', required: true },
  SENATE_REP1_PHONE: { name: 'REP2_PHONE', tag: 'REP2_PHONE', type: 'phone',    required: true, options: { phone_format: 'US' } },
  SENATE_REP2_NAME:  { name: 'REP3_NAME',  tag: 'REP3_NAME',  type: 'text' },
  SENATE_REP2_PHOTO: { name: 'REP3_PHOTO', tag: 'REP3_PHOTO', type: 'imageurl', required: true },
{'fraction_non_alphanumeric': 0.15753424657534246, 'fraction_numerical': 0.016921837228041903, 'mean_word_length': 4.983132530120482, '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': '5175878', 'n_tokens_mistral': 990, 'n_tokens_neox': 961, 'n_words': 237}