<commit_before>import React, { PropTypes, Component } from 'react';
import { Link, IndexLink } from 'react-router';

// This is a class-based component because the current
// version of hot reloading won't hot reload a stateless
// component at the top-level.
export default class App extends Component {
  static propTypes = {
    children: PropTypes.element
  }

  render() {
    return (
      <div>
        <div className="header">
          <div>
            <IndexLink to="/">Home</IndexLink>
            {' | '}
            <Link to="/quiz">Quiz</Link>
            {' | '}
            <Link to="/lessons">Lessons</Link>
          </div> ""}
          <p>Logged in as ""</p>
        </div>
          <br/>
          {this.props.children}
      </div>
    );
  }
}<commit_msg>display username in top right corner when logged in<commit_after>import React, { PropTypes, Component } from 'react';
import { Link, IndexLink } from 'react-router';

// This is a class-based component because the current
// version of hot reloading won't hot reload a stateless
// component at the top-level.
export default class App extends Component {
  static propTypes = {
    children: PropTypes.element
  }

  render() {
    console.log("app props: ", this.props);
    return (
      <div>
        <div className="header">
          <div>
            <IndexLink to="/">Home</IndexLink>
            {' | '}
            <Link to="/quiz">Quiz</Link>
            {' | '}
            <Link to="/lessons">Lessons</Link>
          </div>
          {this.props.token ? <p>Logged in as {this.props.userName}</p> : ""}
        </div>
          <br/>
          {this.props.children}
      </div>
    );
  }
}
{'fraction_non_alphanumeric': 0.14362017804154303, 'fraction_numerical': 0.0, 'mean_word_length': 1.9893617021276595, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '881754', 'n_tokens_mistral': 497, 'n_tokens_neox': 493, 'n_words': 138}