<commit_before>var React = require("react");
var User = require("./User");
var PageActions = require("../actions/PageActions");
var UserStore = require("../stores/UserStore");


var PageNav = React.createClass({

  getInitialState: function() {
    return {
      currentUser: UserStore.get()
    };
  },

  componentDidMount: function(){
    UserStore.addChangeListener(function() {
      if(this.isMounted()) {
        this.setState({ currentUser: UserStore.get() });
      }
    }.bind(this));
  },

  handleWelcome:function(){
    //dispatch a navigate to welcome on click
    PageActions.navigate({
      dest: 'welcome'
    });
  },

  handleAbout:function(){
    //dispatch a navigate to about on click
    PageActions.navigate({
      dest: 'about'
    });
  },

  render:function(){
    var heroView;
    var aboutView;
    if (window.globalBoolean){
      heroView = (
        <div id="hero" ref="hero">
          <img className="hero-img" src="styles/assets/stickynotebackground.jpg"/>
          <span className="hero-text">BRAINSTORMER</span>
          <span className="hero-tagline">Ideation + Innovation</span>
        </div>
      );
    }
    if (this.state.currentUser){
      aboutView = (
        <li ref="about">
          <div style={{paddingLeft:"10px", paddingRight:"10px"}} onClick={this.handleAbout}>About</div>
        </li>
      );
    }
    return (
      <div>
        <header ref="body">
          <nav>
            <div className="nav-wrapper  blue darken-3">
              <ul className="login right">
                <User />
              </ul>
              <ul id="nav-mobile" className="left hide-on-med-and-down">
                <li ref="welcome">
                  <div style={{paddingLeft:"10px", paddingRight:"10px"}} onClick={this.handleWelcome}>Brainstormer</div>
                </li>
                {aboutView}<commit_msg>Change about to getting started<commit_after>var React = require("react");
var User = require("./User");
var PageActions = require("../actions/PageActions");
var UserStore = require("../stores/UserStore");


var PageNav = React.createClass({

  getInitialState: function() {
    return {
      currentUser: UserStore.get()
    };
  },

  componentDidMount: function(){
    UserStore.addChangeListener(function() {
      if(this.isMounted()) {
        this.setState({ currentUser: UserStore.get() });
      }
    }.bind(this));
  },

  handleWelcome:function(){
    //dispatch a navigate to welcome on click
    PageActions.navigate({
      dest: 'welcome'
    });
  },

  handleAbout:function(){
    //dispatch a navigate to about on click
    PageActions.navigate({
      dest: 'about'
    });
  },

  render:function(){
    var heroView;
    var aboutView;
    if (window.globalBoolean){
      heroView = (
        <div id="hero" ref="hero">
          <img className="hero-img" src="styles/assets/stickynotebackground.jpg"/>
          <span className="hero-text">BRAINSTORMER</span>
          <span className="hero-tagline">Ideation + Innovation</span>
        </div>
      );
    }
    if (this.state.currentUser){
      aboutView = (
        <li ref="about">
          <div style={{paddingLeft:"10px", paddingRight:"10px"}} onClick={this.handleAbout}>Getting Started</div>
        </li>
      );
    }
    return (
      <div>
        <header ref="body">
          <nav>
            <div className="nav-wrapper  blue darken-3">
              <ul className="login right">
                <User />
              </ul>
              <ul id="nav-mobile" className="left hide-on-med-and-down">
                <li ref="welcome">
                  <div style={{paddingLeft:"10px", paddingRight:"10px"}} onClick={this.handleWelcome}>Brainstormer</div>
                </li>
                {aboutView}
{'fraction_non_alphanumeric': 0.15445859872611464, 'fraction_numerical': 0.004777070063694267, 'mean_word_length': 2.271701388888889, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '646189', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1091, 'n_words': 216}