<commit_before>/* globals Document */
'use strict'

const React = require('react')
const ReactDOMServer = require('react-dom/server')

module.exports = (params) => {
  const assets = params.htmlWebpackPlugin.files
  const options = params.htmlWebpackPlugin.options
  const props = Object.assign({ title: options.title }, assets, options.props)

  const element = React.createElement(Document, props)
  return ReactDOMServer.renderToStaticMarkup(element)
}<commit_msg>Add doctype in jsx-html-webpack-plugin<commit_after>/* globals Document */
'use strict'

const React = require('react')
const ReactDOMServer = require('react-dom/server')

module.exports = (params) => {
  const assets = params.htmlWebpackPlugin.files
  const options = params.htmlWebpackPlugin.options
  const props = Object.assign({ title: options.title }, assets, options.props)

  const element = React.createElement(Document, props)
  const html = ReactDOMServer.renderToStaticMarkup(element)
  return `<!DOCTYPE html>${html}`
}
{'fraction_non_alphanumeric': 0.12012012012012012, 'fraction_numerical': 0.0, 'mean_word_length': 5.4935064935064934, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '4111882', 'n_tokens_mistral': 289, 'n_tokens_neox': 282, 'n_words': 71}