<commit_before>'use strict'; // eslint-disable-line

import Hapi from 'hapi';
import Good from 'good';
import etagger from 'etagger';
import vision from 'vision';
import hapiSwagger from 'hapi-swagger';
import methods from './methods';
// import RedisCache from 'catbox-redis';


const server = new Hapi.Server();

// port setup with env var for hosting
server.connection({
  port: process.env.PORT || 3000,
  routes: {
    cors: {
      origin: ['http://localhost:*', '*.local', '*.testsite', '*.wa.gov.au'],
      headers: ['Accept', 'Authorization', 'Content-Type', 'If-None-Match', 'Accept-language'],
    },
    // cache: {
    //   expiresIn: 60000,
    // },
  },
});

server.register(methods, (err) => {
  if (err) {
    console.log(err);
    throw err;
  }
});

<commit_msg>Add 10.11.* to CORS config for intranet test site<commit_after>'use strict'; // eslint-disable-line

import Hapi from 'hapi';
import Good from 'good';
import etagger from 'etagger';
import vision from 'vision';
import hapiSwagger from 'hapi-swagger';
import methods from './methods';
// import RedisCache from 'catbox-redis';


const server = new Hapi.Server();

// port setup with env var for hosting
server.connection({
  port: process.env.PORT || 3000,
  routes: {
    cors: {
      origin: ['http://localhost:*', '10.11.*', '*.local', '*.testsite', '*.wa.gov.au'],
      headers: ['Accept', 'Authorization', 'Content-Type', 'If-None-Match', 'Accept-language'],
    },
    // cache: {
    //   expiresIn: 60000,
    // },
  },
});

server.register(methods, (err) => {
  if (err) {
    console.log(err);
    throw err;
  }
});


{'fraction_non_alphanumeric': 0.18660880347179168, 'fraction_numerical': 0.016119032858028518, 'mean_word_length': 3.2698412698412698, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1109964', 'n_tokens_mistral': 560, 'n_tokens_neox': 539, 'n_words': 147}