<commit_before>#
# Configuration for InterTwinkles.  Set domains and ports in `domains.coffee`;
# all other settings below.
#

fs = require 'fs'
SECRET = fs.readFileSync(__dirname + "/secrets/SECRET.txt", 'utf-8').trim()
API_KEY = fs.readFileSync(__dirname + "/secrets/API_KEY.txt", 'utf-8').trim()
ETHERPAD_API_KEY = fs.readFileSync(
  __dirname + "/../vendor/etherpad-lite/APIKEY.txt", 'utf-8').trim()
domains = require './domains'
email_config = require './email'
base_url = domains.front_end_url

config = {
  # The port on which intertwinkles listens.
  port: domains.base_port
  # Email configuration
  email: email_config
  from_email: domains.from_email
  # Make this unique, secret, and complex.  It's used for signing session cookies.
  secret: SECRET
  # Mongodb host and port
  dbhost: "localhost"
  dbport: 27017,
  dbname: "intertwinkles"
  # The API key this app uses to make intertwinkles requests.
  api_key: API_KEY<commit_msg>Tolerate missing etherpad api key for tests<commit_after>#
# Configuration for InterTwinkles.  Set domains and ports in `domains.coffee`;
# all other settings below.
#

fs = require 'fs'
SECRET = fs.readFileSync(__dirname + "/secrets/SECRET.txt", 'utf-8').trim()
API_KEY = fs.readFileSync(__dirname + "/secrets/API_KEY.txt", 'utf-8').trim()
try
  ETHERPAD_API_KEY = fs.readFileSync(
    __dirname + "/../vendor/etherpad-lite/APIKEY.txt", 'utf-8').trim()
catch e
  console.error "Etherpad API key not found.  Etherpad will not be available."
  ETHERPAD_API_KEY = ""
domains = require './domains'
email_config = require './email'
base_url = domains.front_end_url

config = {
  # The port on which intertwinkles listens.
  port: domains.base_port
  # Email configuration
  email: email_config
  from_email: domains.from_email
  # Make this unique, secret, and complex.  It's used for signing session cookies.
  secret: SECRET
  # Mongodb host and port
  dbhost: "localhost"
  dbport: 27017,
  dbname: "intertwinkles"
  # The API key this app uses to make intertwinkles requests.
  api_key: API_KEY
{'fraction_non_alphanumeric': 0.11476213830308975, 'fraction_numerical': 0.00784698381559588, 'mean_word_length': 4.230769230769231, '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': '5283861', 'n_tokens_mistral': 714, 'n_tokens_neox': 671, 'n_words': 198}