<commit_before>import 'babel-polyfill';

import express from 'express'
import bodyParser from 'body-parser'
import React from 'react'
import { renderToString } from 'react-dom/server'
import { Helmet } from 'react-helmet'
import { match, RouterContext } from 'react-router'

import routes from 'routes'
import template from './template'
import mailer from './mailer'
<commit_msg>Add window placeholder for SSR<commit_after>import 'babel-polyfill';

if (typeof window === 'undefined') {
  global.window = {}
}

import express from 'express'
import bodyParser from 'body-parser'
import React from 'react'
import { renderToString } from 'react-dom/server'
import { Helmet } from 'react-helmet'
import { match, RouterContext } from 'react-router'

import routes from 'routes'
import template from './template'
import mailer from './mailer'

{'fraction_non_alphanumeric': 0.11363636363636363, 'fraction_numerical': 0.0, 'mean_word_length': 5.293233082706767, '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': '7419313', 'n_tokens_mistral': 242, 'n_tokens_neox': 240, 'n_words': 87}