<commit_before>import React from 'react'
import {connect} from 'react-redux'
import { Link } from 'react-router'

const Navbar = React.createClass({
  getInitialState: function () {
    return {
      expanded: false
    }
  },

  navStyles: function () {
    if (this.state.expanded) {
      return {
        background: '#fff',
        display: 'initial'
      }
    }
  },

  toggle: function () {
    this.setState({expanded: !this.state.expanded})
  },

  reset: function () {
    this.setState({expanded: false})
  },

  renderLinks: function () {
    return (
      <div className="nav-right nav-menu" style={this.navStyles()}>
        <a href="http://www.quill.org/profile/" className="nav-item" activeClassName="is-active">Save & Exit</a>
      </div>
    )
  },

  render: function () {
    return (
      <header className="nav student-nav" style={{height: '50px'}}>
        <div className="container">
          <div className="nav-left">
            <a href="http://www.connect.quill.org" className="nav-item">
              <img src="https://d2t498vi8pate3.cloudfront.net/assets/home-header-logo-8d37f4195730352f0055d39f7e88df602e2d67bdab1000ac5886c5a492400c9d.png"
                alt=""
                style={{height: "35px"}}/>
            </a>
          </div>
          {this.renderLinks()}
          <span className="nav-toggle" onClick={this.toggle}>
            <span />
            <span />
            <span />
          </span>
        </div>
      </header>
    )
  }
})

const rightNav = (<div className="nav-right nav-menu">
  <span className="nav-item">
    <Link to={'/admin'} className="nav-item" activeClassName="is-active">Admin</Link>
  </span>
  <span className="nav-item">
    <a href="#">
      Help
    </a>
  </span>
  <span className="nav-item">
    <a className="button" href="#">Button</a>
  </span><commit_msg>Remove save and exit, fix header link<commit_after>import React from 'react'
import {connect} from 'react-redux'
import { Link } from 'react-router'

const Navbar = React.createClass({
  getInitialState: function () {
    return {
      expanded: false
    }
  },

  navStyles: function () {
    if (this.state.expanded) {
      return {
        background: '#fff',
        display: 'initial'
      }
    }
  },

  toggle: function () {
    this.setState({expanded: !this.state.expanded})
  },

  reset: function () {
    this.setState({expanded: false})
  },

  renderLinks: function () {
    return (
      <div className="nav-right nav-menu" style={this.navStyles()}>
        {/* <a href="http://www.quill.org/profile/" className="nav-item" activeClassName="is-active">Save & Exit</a> */}
      </div>
    )
  },

  render: function () {
    return (
      <header className="nav student-nav" style={{height: '50px'}}>
        <div className="container">
          <div className="nav-left">
            <a href="http://www.quill.org" className="nav-item">
              <img src="https://d2t498vi8pate3.cloudfront.net/assets/home-header-logo-8d37f4195730352f0055d39f7e88df602e2d67bdab1000ac5886c5a492400c9d.png"
                alt=""
                style={{height: "35px"}}/>
            </a>
          </div>
          {this.renderLinks()}
          <span className="nav-toggle" onClick={this.toggle}>
            <span />
            <span />
            <span />
          </span>
        </div>
      </header>
    )
  }
})

const rightNav = (<div className="nav-right nav-menu">
  <span className="nav-item">
    <Link to={'/admin'} className="nav-item" activeClassName="is-active">Admin</Link>
  </span>
  <span className="nav-item">
    <a href="#">
      Help
    </a>
  </span>
  <span className="nav-item">
    <a className="button" href="#">Button</a>
  </span>
{'fraction_non_alphanumeric': 0.1714898177920686, 'fraction_numerical': 0.028938906752411574, 'mean_word_length': 2.350987432675045, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '7044544', 'n_tokens_mistral': 1275, 'n_tokens_neox': 1214, 'n_words': 219}