<commit_before>import React from 'react'
import { Container } from 'reactstrap'
import PropTypes from 'prop-types'
import graphql from 'graphql'
import Link from 'gatsby-link'
import Helmet from 'react-helmet'

// code syntax-highlighting theme
// feel free to change it to another one
import 'prismjs/themes/prism-twilight.css'

// main site style
import './index.scss'

const TemplateWrapper = ({ children, data }) => {
  const user = window && window.netlifyIdentity && window.netlifyIdentity.currentUser()
  return (
    <div>
      <Helmet>
        <title>{`Home | ${data.site.siteMetadata.title}`}</title>

        <script src='https://identity.netlify.com/v1/netlify-identity-widget.js' />
        <script>{`
          if (window.netlifyIdentity) {
            window.netlifyIdentity.on('init', user => {
              if (!user) {
                window.netlifyIdentity.on('login', () => {
                  document.location.href = '/admin/'
                })
              }
            })
          }
        `}</script>
      </Helmet>
      <div className='navbar navbar-expand-lg fixed-top navbar-dark bg-primary'>
        <Container>
          <Link to='/' className='navbar-brand'>{data.site.siteMetadata.title}</Link>
          <ul className='nav navbar-nav ml-auto'>
            {user && (
              <li className='nav-item'>
                <Link to='/admin' className='nav-link'>Admin</Link>
              </li>
            )}
            <li className='nav-item'>
              <Link to='/about' className='nav-link'>About</Link>
            </li><commit_msg>adding admin link<commit_after>import React from 'react'
import { Container } from 'reactstrap'
import PropTypes from 'prop-types'
import graphql from 'graphql'
import Link from 'gatsby-link'
import Helmet from 'react-helmet'

// code syntax-highlighting theme
// feel free to change it to another one
import 'prismjs/themes/prism-twilight.css'

// main site style
import './index.scss'

const TemplateWrapper = ({ children, data }) => {
  const user = window ? window.netlifyIdentity && window.netlifyIdentity.currentUser() : undefined
  return (
    <div>
      <Helmet>
        <title>{`Home | ${data.site.siteMetadata.title}`}</title>

        <script src='https://identity.netlify.com/v1/netlify-identity-widget.js' />
        <script>{`
          if (window.netlifyIdentity) {
            window.netlifyIdentity.on('init', user => {
              if (!user) {
                window.netlifyIdentity.on('login', () => {
                  document.location.href = '/admin/'
                })
              }
            })
          }
        `}</script>

      </Helmet>
      <div className='navbar navbar-expand-lg fixed-top navbar-dark bg-primary'>
        <Container>
          <Link to='/' className='navbar-brand'>{data.site.siteMetadata.title}</Link>
          <ul className='nav navbar-nav ml-auto'>
            {user && (
              <li className='nav-item'>
                <Link to='/admin' className='nav-link'>Admin</Link>
              </li>
            )}
            <li className='nav-item'>
              <Link to='/about' className='nav-link'>About</Link>
            </li>
{'fraction_non_alphanumeric': 0.14689265536723164, 'fraction_numerical': 0.0006277463904582549, 'mean_word_length': 2.0881782945736433, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 51, 'https://': 2, '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': '3997226', 'n_tokens_mistral': 937, 'n_tokens_neox': 917, 'n_words': 196}