<commit_before>/*
 * Rushed ugly code by <<EMAIL>>
 */

var cors = require('cors');
var express = require('express');
var MongoClient = require('mongodb').MongoClient;
var request = require('superagent');

var email = require('./email.js');

var PORT = process.env.PORT || 8080;

var TEMPLATES = {
  emails: 'domestic',
  signatures: 'international'
};

var collections = {};


var whitelist = [
  'http://dev.stopwatching.us',
  'http://rally.stopwatching.us',
  'http://2.stopwatching.us',
  'http://localhost:4000',
  'https://dev.stopwatching.us',
  'https://rally.stopwatching.us',
  'https://2.stopwatching.us',
  'https://localhost:4000',
  'https://thedaywefightback.org',
  'http://thedaywefightback.org',
  'https://thedaywefightback.org/',
  'http://thedaywefightback.org/',
  'http://dznh7un1y2etk.cloudfront.net',
  'http://tfrce.github.io',
  'http://localhost'
];

var corsOptions = {
  origin: function (origin, cb) {<commit_msg>whitelisted resetthenet domains<commit_after>/*
 * Rushed ugly code by <<EMAIL>>
 */

var cors = require('cors');
var express = require('express');
var MongoClient = require('mongodb').MongoClient;
var request = require('superagent');

var email = require('./email.js');

var PORT = process.env.PORT || 8080;

var TEMPLATES = {
  emails: 'domestic',
  signatures: 'international'
};

var collections = {};


var whitelist = [
  'http://dev.stopwatching.us',
  'http://rally.stopwatching.us',
  'http://2.stopwatching.us',
  'http://localhost:4000',
  'https://dev.stopwatching.us',
  'https://rally.stopwatching.us',
  'https://2.stopwatching.us',
  'https://localhost:4000',
  'https://thedaywefightback.org',
  'http://thedaywefightback.org',
  'https://thedaywefightback.org/',
  'http://thedaywefightback.org/',
  'http://dznh7un1y2etk.cloudfront.net',
  'http://tfrce.github.io',
  'http://localhost',
  'http://www.resetthenet.org',
  'https://www.resetthenet.org',
  'http://pack.resetthenet.org',
  'https://pack.resetthenet.org'
];

var corsOptions = {
  origin: function (origin, cb) {
{'fraction_non_alphanumeric': 0.20294117647058824, 'fraction_numerical': 0.016666666666666666, 'mean_word_length': 4.193384223918575, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 14, 'lorem ipsum': 0, 'www.': 2, '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': '3170728', 'n_tokens_mistral': 794, 'n_tokens_neox': 750, 'n_words': 118}