<commit_before>import React from 'react'
import { Container } from 'react-responsive-grid'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import Headroom from 'react-headroom'
import '../css/markdown-styles'
import '../css/styles'

// Add our typefaces.
import 'typeface-poppins'
import 'typeface-work-sans'
import 'typeface-space-mono'

import { rhythm } from '../utils/typography'
import {
  Header,
  Navigation,
  Toggle,
  Logo,
  StyledLink,
  NavigationLink,
  Footer,
  Copyright,
  Credits,
  IconLink,
  SocialLinks
} from '../utils/components'
import { Slack, Facebook, Github } from '../assets/logos.js'

export default class Template extends React.Component {
  constructor(props) {
    super(props)
    const undef = typeof window !== 'undefined'
    this.state = {
      menu: false,
      transcript: undef ? window.innerWidth < 768 ? false : true : false,
      toc: true,
      width: undef ? window.innerWidth : null
    }
  }

  componentDidMount() {
      window.addEventListener("resize", this.handleResize);
  }

  componentWillUnmount() {
      window.removeEventListener("resize", this.handleResize);
  }

  handleResize = () => {
    if (this.onMobile()) {
      const { transcript, toc } = this.state
      if (!transcript || !toc) {
        this.setState({
          transcript: true,
          toc: true
        })
      }
    }
  }

  onMobile = () => window.innerWidth <= 768


  toggle = (item) => () => {
    this.setState((prevState) => ({
      [item]: !prevState[item]
    }))
  }

  close = (item) => () => {
    if (this.onMobile()) {
      this.setState({
        [item]: false
      })
    }
  }

  render () {
    const { menu, transcript, toc } = this.state
    const closeMenu = this.close('menu')

    const children = React.Children.map(
      this.props.children,
      (child) =>
        React.cloneElement(
          child,
          { transcript, toc, toggle: this.toggle, close: this.close }
        )
    )

    return (
      <div style={{position: menu ? 'fixed' : 'inherit'}}>
        <Headroom disableInlineStyles>
          <Header>
            <Logo
              to={prefixLink('/')}
              onClick={closeMenu}
            >
              LaravelCebu
            </Logo>
            <Toggle onClick={this.toggle('menu')} active={menu} />
            <Navigation role="navigation" style={{top: menu ? 0 : '-100vh'}}>
              <NavigationLink
                to={prefixLink('/schedule/')}
                title="Meetup Schedule"
                onClick={closeMenu}
              >
                Meetup Schedule
              </NavigationLink>
              <NavigationLink
                to={prefixLink('/learning/')}
                title="Learning"
                onClick={closeMenu}
              >
                Learning
              </NavigationLink>
              <NavigationLink
                to={prefixLink('/transcripts/')}
                title="Blog"
                onClick={closeMenu}
              >
                Blog
              </NavigationLink>
            </Navigation>
          </Header>
        </Headroom>
        <Container
          style={{
            maxWidth: 1192,
            padding: `0 ${rhythm(3/4)} ${rhythm(1)} ${rhythm(3/4)}`,
            marginBottom: 70,
          }}
        >
          { children }
        </Container>
        <Footer>
          <div>
            <Copyright>© 2017 Laravel Cebu</Copyright>
            <Credits>
              {'Forked design from '}
              <StyledLink target="_blank" href="https://www.reactiflux.com/" title="Reactiflux">
                Reactiflux
              </StyledLink>
              {'. Coded in '}
              <StyledLink target="_blank" href="https://www.sublimetext.com/" title="Sublime Text">
                Sublime Text
              </StyledLink>
              {'. Built using '}
              <StyledLink target="_blank" href="https://github.com/gatsbyjs/gatsby" title="Gatsby">
                Gatsby.js
              </StyledLink>
              {'. Hosted on '}
              <StyledLink target="_blank" href="https://www.netlify.com/" title="Netlify">
                Netlify
              </StyledLink>
              .
            </Credits>
          </div>
          <SocialLinks>
            <IconLink
              to="https://github.com/laravelcebu"
              tittle="Laravel Cebu GitHub organization"
              src={Github}
              alt="Github"
              target="_blank"
            />
            <IconLink
              to="https://laravel-cebu.slack.com/"
              tittle="Laravel Cebu Slack"
              src={Slack}
              alt="Slack"
              target="_blank"
            />
            <IconLink
              to="https://www.facebook.com/laravelcebu/"
              title="Laravel Cebu Facebook"
              src={Facebook}
              alt="Facebook"
              target="_blank"
            />
          </SocialLinks>
        </Footer>
      </div>
    )
  }
}
<commit_msg>Changed menu link from Blog to Transcripts<commit_after>import React from 'react'
import { Container } from 'react-responsive-grid'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import Headroom from 'react-headroom'
import '../css/markdown-styles'
import '../css/styles'

// Add our typefaces.
import 'typeface-poppins'
import 'typeface-work-sans'
import 'typeface-space-mono'

import { rhythm } from '../utils/typography'
import {
  Header,
  Navigation,
  Toggle,
  Logo,
  StyledLink,
  NavigationLink,
  Footer,
  Copyright,
  Credits,
  IconLink,
  SocialLinks
} from '../utils/components'
import { Slack, Facebook, Github } from '../assets/logos.js'

export default class Template extends React.Component {
  constructor(props) {
    super(props)
    const undef = typeof window !== 'undefined'
    this.state = {
      menu: false,
      transcript: undef ? window.innerWidth < 768 ? false : true : false,
      toc: true,
      width: undef ? window.innerWidth : null
    }
  }

  componentDidMount() {
      window.addEventListener("resize", this.handleResize);
  }

  componentWillUnmount() {
      window.removeEventListener("resize", this.handleResize);
  }

  handleResize = () => {
    if (this.onMobile()) {
      const { transcript, toc } = this.state
      if (!transcript || !toc) {
        this.setState({
          transcript: true,
          toc: true
        })
      }
    }
  }

  onMobile = () => window.innerWidth <= 768


  toggle = (item) => () => {
    this.setState((prevState) => ({
      [item]: !prevState[item]
    }))
  }

  close = (item) => () => {
    if (this.onMobile()) {
      this.setState({
        [item]: false
      })
    }
  }

  render () {
    const { menu, transcript, toc } = this.state
    const closeMenu = this.close('menu')

    const children = React.Children.map(
      this.props.children,
      (child) =>
        React.cloneElement(
          child,
          { transcript, toc, toggle: this.toggle, close: this.close }
        )
    )

    return (
      <div style={{position: menu ? 'fixed' : 'inherit'}}>
        <Headroom disableInlineStyles>
          <Header>
            <Logo
              to={prefixLink('/')}
              onClick={closeMenu}
            >
              LaravelCebu
            </Logo>
            <Toggle onClick={this.toggle('menu')} active={menu} />
            <Navigation role="navigation" style={{top: menu ? 0 : '-100vh'}}>
              <NavigationLink
                to={prefixLink('/schedule/')}
                title="Meetup Schedule"
                onClick={closeMenu}
              >
                Meetup Schedule
              </NavigationLink>
              <NavigationLink
                to={prefixLink('/learning/')}
                title="Learning"
                onClick={closeMenu}
              >
                Learning
              </NavigationLink>
              <NavigationLink
                to={prefixLink('/transcripts/')}
                title="Transcripts"
                onClick={closeMenu}
              >
                Transcripts
              </NavigationLink>
            </Navigation>
          </Header>
        </Headroom>
        <Container
          style={{
            maxWidth: 1192,
            padding: `0 ${rhythm(3/4)} ${rhythm(1)} ${rhythm(3/4)}`,
            marginBottom: 70,
          }}
        >
          { children }
        </Container>
        <Footer>
          <div>
            <Copyright>© 2017 Laravel Cebu</Copyright>
            <Credits>
              {'Forked design from '}
              <StyledLink target="_blank" href="https://www.reactiflux.com/" title="Reactiflux">
                Reactiflux
              </StyledLink>
              {'. Coded in '}
              <StyledLink target="_blank" href="https://www.sublimetext.com/" title="Sublime Text">
                Sublime Text
              </StyledLink>
              {'. Built using '}
              <StyledLink target="_blank" href="https://github.com/gatsbyjs/gatsby" title="Gatsby">
                Gatsby.js
              </StyledLink>
              {'. Hosted on '}
              <StyledLink target="_blank" href="https://www.netlify.com/" title="Netlify">
                Netlify
              </StyledLink>
              .
            </Credits>
          </div>
          <SocialLinks>
            <IconLink
              to="https://github.com/laravelcebu"
              tittle="Laravel Cebu GitHub organization"
              src={Github}
              alt="Github"
              target="_blank"
            />
            <IconLink
              to="https://laravel-cebu.slack.com/"
              tittle="Laravel Cebu Slack"
              src={Slack}
              alt="Slack"
              target="_blank"
            />
            <IconLink
              to="https://www.facebook.com/laravelcebu/"
              title="Laravel Cebu Facebook"
              src={Facebook}
              alt="Facebook"
              target="_blank"
            />
          </SocialLinks>
        </Footer>
      </div>
    )
  }
}

{'fraction_non_alphanumeric': 0.13019035407831148, 'fraction_numerical': 0.005128710918236513, 'mean_word_length': 1.5305714998752185, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 99, 'https://': 14, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4968577', 'n_tokens_mistral': 2968, 'n_tokens_neox': 2821, 'n_words': 558}