<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import Container from '../components/Container';
import Header from '../components/Header';
import Footer from '../components/Footer';
import './index.css';

const propTypes = {
  children: PropTypes.func
};

const TemplateWrapper = ({ children }) =>
  <div>
    <Helmet
      title="<NAME>"
      meta={[
        { name: 'description', content: 'Sample' },
        { name: 'keywords', content: 'sample, something' }
      ]}
    />
    <Header path={window.location.pathname} />
    <Container>
      {children()}
    </Container>
    <Footer />
  </div>;

TemplateWrapper.propTypes = propTypes;

export default TemplateWrapper;<commit_msg>Fix window is not defined error<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import Container from '../components/Container';
import Header from '../components/Header';
import Footer from '../components/Footer';
import './index.css';

const propTypes = {
  children: PropTypes.func
};

const path = typeof window != 'undefined' ? window.location.pathname : '';

const TemplateWrapper = ({ children }) =>
  <div>
    <Helmet
      title="<NAME>"
      meta={[
        { name: 'description', content: 'Sample' },
        { name: 'keywords', content: 'sample, something' }
      ]}
    />
    <Header path={path} />
    <Container>
      {children()}
    </Container>
    <Footer />
  </div>;

TemplateWrapper.propTypes = propTypes;

export default TemplateWrapper;
{'fraction_non_alphanumeric': 0.15309842041312272, 'fraction_numerical': 0.0, 'mean_word_length': 3.4037433155080214, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '879057', 'n_tokens_mistral': 471, 'n_tokens_neox': 471, 'n_words': 134}