<commit_before>import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import { routeActions } from 'react-router-redux'

import Menubar from '../components/Menubar'

export class MenubarContainer extends Component {
  render() {
    return (
      <Menubar links={this.props.links} />
    )
  }
  
}

function mapStateToProps(state) {
  var loggedIn = state.user && state.user.loaded && state.user.data

  var links = loggedIn ? [{
    url:'/',
    title:'Home'
  },{
    url:'/foo',
    title:'Foo'
  },{
    url:'/bar',
    title:'Bar'
  }] : [{
    url:'/',<commit_msg>add Library and Projects urls to the menubar<commit_after>import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import { routeActions } from 'react-router-redux'

import Menubar from '../components/Menubar'

export class MenubarContainer extends Component {
  render() {
    return (
      <Menubar links={this.props.links} />
    )
  }
  
}

function mapStateToProps(state) {
  var loggedIn = state.user && state.user.loaded && state.user.data

  var links = loggedIn ? [{
    url:'/',
    title:'Home'
  },{
    url:'/library',
    title:'Library'
  },{
    url:'/projects',
    title:'Projects'
  }] : [{
    url:'/',
{'fraction_non_alphanumeric': 0.15676959619952494, 'fraction_numerical': 0.0, 'mean_word_length': 3.103896103896104, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3276470', 'n_tokens_mistral': 426, 'n_tokens_neox': 417, 'n_words': 94}