<commit_before>import {default as React} from "react";

const {PropTypes} = React;

class ReactHtml extends React.Component {

  _render_link_to_stylesheet_ (clientAssets) {
    if (clientAssets["client"]) {
      return (
        <link rel="stylesheet" href={clientAssets["client"].replace(/js$/, "css")} />
      );
    }
  }

  render () {
    const {props, state} = this,
          {clientAssets} = props,
          innerHtml = {__html: props.componentString};

    return (
      <html>
        <head>
          <title>React Google Maps | tomchentw</title>
          <link href="http://fonts.googleapis.com/css?family=Roboto:400,300,500" rel="stylesheet" type="text/css" />
          {this._render_link_to_stylesheet_(clientAssets)}
        </head>
        <body>
          <div id="react-container" dangerouslySetInnerHTML={innerHtml} />
          <script type="text/javascript" src={clientAssets["assets/client"] || clientAssets["client"]} />
        </body>
      </html>
    );
  }
}

ReactHtml.propTypes = {
  componentString: PropTypes.string.isRequired,
  clientAssets: PropTypes.object.isRequired,
};

export default ReactHtml;
<commit_msg>chore(html): fix title<commit_after>import {default as React} from "react";

const {PropTypes} = React;

class ReactHtml extends React.Component {

  _render_link_to_stylesheet_ (clientAssets) {
    if (clientAssets["client"]) {
      return (
        <link rel="stylesheet" href={clientAssets["client"].replace(/js$/, "css")} />
      );
    }
  }

  render () {
    const {props, state} = this,
          {clientAssets} = props,
          innerHtml = {__html: props.componentString};

    return (
      <html>
        <head>
          <title>Xrossref | tomchentw</title>
          <link href="http://fonts.googleapis.com/css?family=Roboto:400,300,500" rel="stylesheet" type="text/css" />
          {this._render_link_to_stylesheet_(clientAssets)}
        </head>
        <body>
          <div id="react-container" dangerouslySetInnerHTML={innerHtml} />
          <script type="text/javascript" src={clientAssets["assets/client"] || clientAssets["client"]} />
        </body>
      </html>
    );
  }
}

ReactHtml.propTypes = {
  componentString: PropTypes.string.isRequired,
  clientAssets: PropTypes.object.isRequired,
};

export default ReactHtml;

{'fraction_non_alphanumeric': 0.14787510841283608, 'fraction_numerical': 0.007805724197745013, 'mean_word_length': 2.9707401032702236, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '6831878', 'n_tokens_mistral': 732, 'n_tokens_neox': 713, 'n_words': 126}