<commit_before>import React, { Component } from 'react'
import { injectGlobal, ServerStyleSheet } from 'styled-components'
const Uglify = require('uglifyjs-webpack-plugin')
const data = require('./data')
const colors = require('./src/theme').colors

export default {
  getSiteProps: () => ({
    name: 'Hack Club'
  }),
  getRoutes: async () => [
    {
      path: '/',
      component: 'src/containers/Home'
    },
    {
      path: '/about',
      component: 'src/containers/About'
    },
    {
      is404: true,
      component: 'src/containers/404'
    }
  ],
  webpack: (config, { dev }) => {
    config.merge(function(c) {
      c.plugins = c.plugins.filter(p => p.constructor.name !== 'UglifyJsPlugin')
      c.plugins.push(new Uglify())
      return c
    })
  },
  Html: class CustomHtml extends Component {
    render() {
      const { Html, Head, Body, children } = this.props

      const sheet = new ServerStyleSheet()
      const newChildren = sheet.collectStyles(children)
      const styleTags = sheet.getStyleElement()

      const segment = `!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="4.0.0"; analytics.load("8SLCkrqC517pTQdMvqP1eSP8FkH8yFzE"); analytics.page(); }}();`
      const css = `
        *{box-sizing:border-box}body{line-height:1.6;margin:0}

        @font-face {
          font-family: Averta;
          font-style: normal;
          font-weight: normal;
          src: local('☺'), url(/fonts/averta-regular.woff2) format('woff2'), url(/fonts/averta-regular.woff) format('woff');
          unicode-range: U + 0000 - F8FE, U + F900-FFFF;
        }

        @font-face {
          font-family: Averta;
          font-style: normal;
          font-weight: bold;
          src: local('☺'), url(/fonts/averta-bold.woff2) format('woff2'), url(/fonts/averta-bold.woff) format('woff');
          unicode-range: U + 0000 - F8FE, U + F900-FFFF;
        }
      `

      return (
        <Html>
          <Head defaultTitle="Hack Club">
            <meta charSet="UTF-8" />
            <meta name="twitter:card" content="summary" />
            <meta name="twitter:image" content={data.img} />
            <meta name="og:image" content={data.img} />
            <meta name="og:title" content={data.name} />
            <meta name="twitter:title" content={data.name} />
            <meta name="og:description" content={data.description} />
            <meta name="twitter:description" content={data.description} />
            <meta name="description" content={data.description} />
            <meta name="twitter:site" content={data.twitter} />
            <meta name="theme-color" content={colors.primary} />
            <meta
              name="viewport"
              content="width=device-width, initial-scale=1"
            />
            <meta name="format-detection" content="telephone=no" />
            <script dangerouslySetInnerHTML={{ __html: segment }} />
            <style dangerouslySetInnerHTML={{ __html: css }} /><commit_msg>Return to title tag<commit_after>import React, { Component } from 'react'
import { injectGlobal, ServerStyleSheet } from 'styled-components'
const Uglify = require('uglifyjs-webpack-plugin')
const data = require('./data')
const colors = require('./src/theme').colors

export default {
  getSiteProps: () => ({
    name: 'Hack Club'
  }),
  getRoutes: async () => [
    {
      path: '/',
      component: 'src/containers/Home'
    },
    {
      path: '/about',
      component: 'src/containers/About'
    },
    {
      is404: true,
      component: 'src/containers/404'
    }
  ],
  webpack: (config, { dev }) => {
    config.merge(function(c) {
      c.plugins = c.plugins.filter(p => p.constructor.name !== 'UglifyJsPlugin')
      c.plugins.push(new Uglify())
      return c
    })
  },
  Html: class CustomHtml extends Component {
    render() {
      const { Html, Head, Body, children } = this.props

      const sheet = new ServerStyleSheet()
      const newChildren = sheet.collectStyles(children)
      const styleTags = sheet.getStyleElement()

      const segment = `!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="4.0.0"; analytics.load("8SLCkrqC517pTQdMvqP1eSP8FkH8yFzE"); analytics.page(); }}();`
      const css = `
        *{box-sizing:border-box}body{line-height:1.6;margin:0}

        @font-face {
          font-family: Averta;
          font-style: normal;
          font-weight: normal;
          src: local('☺'), url(/fonts/averta-regular.woff2) format('woff2'), url(/fonts/averta-regular.woff) format('woff');
          unicode-range: U + 0000 - F8FE, U + F900-FFFF;
        }

        @font-face {
          font-family: Averta;
          font-style: normal;
          font-weight: bold;
          src: local('☺'), url(/fonts/averta-bold.woff2) format('woff2'), url(/fonts/averta-bold.woff) format('woff');
          unicode-range: U + 0000 - F8FE, U + F900-FFFF;
        }
      `

      return (
        <Html>
          <Head defaultTitle="Hack Club">
            <meta charSet="UTF-8" />
            <title>Hack Club</title>
            <meta name="twitter:card" content="summary" />
            <meta name="twitter:image" content={data.img} />
            <meta name="og:image" content={data.img} />
            <meta name="og:title" content={data.name} />
            <meta name="twitter:title" content={data.name} />
            <meta name="og:description" content={data.description} />
            <meta name="twitter:description" content={data.description} />
            <meta name="description" content={data.description} />
            <meta name="twitter:site" content={data.twitter} />
            <meta name="theme-color" content={colors.primary} />
            <meta
              name="viewport"
              content="width=device-width, initial-scale=1"
            />
            <meta name="format-detection" content="telephone=no" />
            <script dangerouslySetInnerHTML={{ __html: segment }} />
            <style dangerouslySetInnerHTML={{ __html: css }} />
{'fraction_non_alphanumeric': 0.17496480225265584, 'fraction_numerical': 0.011775246384231408, 'mean_word_length': 3.1409644939056705, 'pattern_counts': {'":': 2, '<': 41, '<?xml version=': 0, '>': 47, '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': '2436164', 'n_tokens_mistral': 2473, 'n_tokens_neox': 2413, 'n_words': 367}