<commit_before>import React from 'react';
import { renderRoutes } from 'react-router-config';
import { Helmet } from 'react-helmet';
import { hot } from 'react-hot-loader';
import { Link } from 'react-router-dom';

import config from '../config';
// Import your global styles here
import 'normalize.css/normalize.css';
import styles from './styles.scss';

interface Route {
  route: { routes: Array<object> };
}

const App = ({ route }: Route) => (
  <div className={styles.App}>
    <Helmet {...config.app} />
    <Link to="/" className={styles.header}>
      <img
        src={require('../static/logo.svg').default}
        alt="Logo"
        role="presentation"
      />
      <h1>{config.app.title}</h1>
    </Link>
    <hr />
    {/* Child routes won't render without this */}
    {renderRoutes(route.routes)}
  </div>
);

export default hot(module)(App);<commit_msg>fix: logo not rendered in SSR<commit_after>import React from 'react';
import { renderRoutes } from 'react-router-config';
import { Helmet } from 'react-helmet';
import { hot } from 'react-hot-loader';
import { Link } from 'react-router-dom';

import logo from '../static/logo.svg';
import config from '../config';
// Import your global styles here
import 'normalize.css/normalize.css';
import styles from './styles.scss';

interface Route {
  route: { routes: Array<object> };
}

const App = ({ route }: Route) => (
  <div className={styles.App}>
    <Helmet {...config.app} />
    <Link to="/" className={styles.header}>
      <img src={logo} alt="Logo" role="presentation" />
      <h1>{config.app.title}</h1>
    </Link>
    <hr />
    {/* Child routes won't render without this */}
    {renderRoutes(route.routes)}
  </div>
);

export default hot(module)(App);
{'fraction_non_alphanumeric': 0.17799539170506912, 'fraction_numerical': 0.002304147465437788, 'mean_word_length': 3.3533834586466167, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, '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': '5958402', 'n_tokens_mistral': 554, 'n_tokens_neox': 550, 'n_words': 146}