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

/* -----------------    COMPONENT     ------------------ */

class Navbar extends React.Component {
  constructor(props) {
    super(props)
    //props should include week.num to say week number 
    // props should have week.dates to say dates of the week
  }

  render() {
    return (
      <nav className="navbar navbar-default">
        <div className="container">

          <div className="collapse navbar-collapse">
            <ul className="nav navbar-nav">
              <li>
                <Link to={`/feedback/week/${+this.props.weekId - 1}`}>
                  <button disabled={+this.props.weekId === 1} className="week-button">❮ Previous week </button>
                </Link>
              </li>
              <li id='currentWeek'> {this.props.title} </li>
              <li>
                <button disabled={+this.props.weekId >= 6} className="week-button">
                  <Link to={`/feedback/week/${+this.props.weekId + 1}`}> Next week ❯ </Link>
                </button>
              </li>
              <li>
                <Link to="/feedback/week/8">
                  <button className="week-button">Summary</button>
                </Link>
              </li>
            </ul>
          </div>
        </div>
      </nav>
    )
  }<commit_msg>navbar fix<commit_after>
import React from 'react'
import { Link } from 'react-router'

/* -----------------    COMPONENT     ------------------ */

class Navbar extends React.Component {
  constructor(props) {
    super(props)
    //props should include week.num to say week number 
    // props should have week.dates to say dates of the week
  }

  render() {
    console.log('THE WEEK', this.props.weekId, 'disabled? ', +this.props.weekId >= 6)
    return (
      <nav className="navbar navbar-default">
        <div className="container">

          <div className="collapse navbar-collapse">
            <ul className="nav navbar-nav">
              <li>
                <Link to={`/feedback/week/${+this.props.weekId - 1}`}>
                  <button disabled={+this.props.weekId === 1} className="week-button">
                    ❮ Previous week </button>
                </Link>
              </li>
              <li id='currentWeek'> {this.props.title} </li>
              <li>
                <Link to={`/feedback/week/${+this.props.weekId + 1}`}>
                  <button disabled={+this.props.weekId > 6} className="week-button">
                    Next week ❯
                </button>
                </Link>
              </li>
              <li>
                <Link to="/feedback/week/8">
                  <button className="week-button">Summary</button>
                </Link>
              </li>
            </ul>
          </div>
        </div>
      </nav>
    )
  }
{'fraction_non_alphanumeric': 0.16602316602316602, 'fraction_numerical': 0.003861003861003861, 'mean_word_length': 1.4193548387096775, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 62, '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': '1649334', 'n_tokens_mistral': 821, 'n_tokens_neox': 777, 'n_words': 186}