<commit_before>import React from 'react';
import serialize from 'serialize-javascript';
import {ActionTypes} from '../constants';

export default class HtmlDocument extends React.Component {
  static propTypes = {
    webpackStats: React.PropTypes.object.isRequired,
    content: React.PropTypes.string.isRequired,
    store: React.PropTypes.object.isRequired
  }

  render() {
    const {content, store, webpackStats} = this.props;
    const {app} = store.getState();

    store.dispatch({type: ActionTypes.DEHYDRATE});
    const state = store.getState();
    const dehydratedState = 'window.$STATE=' + serialize(state);

    let styles = [].concat(
      webpackStats.vendor.css,
      webpackStats.main.css
    );

    let scripts = [].concat(
      webpackStats.vendor.js,
      webpackStats.main.js
    );

    return (
      <html>
        <head>
          <meta charSet='utf-8'/>
          <title>{app.title}</title>
          <meta httpEquiv='X-UA-Compatible' content='IE=edge'/>
          <link href='//fonts.googleapis.com/css?family=Roboto:400,300italic,300' rel='stylesheet' type='text/css' />
          {styles.map((href, key) => <link rel='stylesheet' type='text/css' href={href} key={key}/>)}
        </head>
        <body>
          <div id='root' dangerouslySetInnerHTML={{__html: content}}/>
          <script dangerouslySetInnerHTML={{__html: dehydratedState}}/>
          {scripts.map((src, key) => <script src={src} key={key} defer/>)}
        </body>
      </html>
    );
  }
}
<commit_msg>add google webmaster tag<commit_after>import React from 'react';
import serialize from 'serialize-javascript';
import {ActionTypes} from '../constants';

export default class HtmlDocument extends React.Component {
  static propTypes = {
    webpackStats: React.PropTypes.object.isRequired,
    content: React.PropTypes.string.isRequired,
    store: React.PropTypes.object.isRequired
  }

  render() {
    const {content, store, webpackStats} = this.props;
    const {app} = store.getState();

    store.dispatch({type: ActionTypes.DEHYDRATE});
    const state = store.getState();
    const dehydratedState = 'window.$STATE=' + serialize(state);

    let styles = [].concat(
      webpackStats.vendor.css,
      webpackStats.main.css
    );

    let scripts = [].concat(
      webpackStats.vendor.js,
      webpackStats.main.js
    );

    return (
      <html>
        <head>
          <meta charSet='utf-8'/>
          <title>{app.title}</title>
          <meta name="google-site-verification" content="x0BVFv1kzbxAKxKNFc2uFscZw4HkTcwfxoUMsQISOAk" />
          <meta httpEquiv='X-UA-Compatible' content='IE=edge'/>
          <link href='//fonts.googleapis.com/css?family=Roboto:400,300italic,300' rel='stylesheet' type='text/css' />
          {styles.map((href, key) => <link rel='stylesheet' type='text/css' href={href} key={key}/>)}
        </head>
        <body>
          <div id='root' dangerouslySetInnerHTML={{__html: content}}/>
          <script dangerouslySetInnerHTML={{__html: dehydratedState}}/>
          {scripts.map((src, key) => <script src={src} key={key} defer/>)}
        </body>
      </html>
    );
  }
}

{'fraction_non_alphanumeric': 0.15445859872611464, 'fraction_numerical': 0.007643312101910828, 'mean_word_length': 2.9809885931558937, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 38, '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': '795659', 'n_tokens_mistral': 1020, 'n_tokens_neox': 977, 'n_words': 188}