<commit_before>'use strict';

var _      = require('lodash');
var React  = require('react');
var Reflux = require('reflux/src');

var NavMenu         = require('component/NavMenu.jsx');
var NavMenuItem     = require('component/NavMenuItem.jsx');
var NavigationStore = require('stores/NavigationStore');

var Navigation = React.createClass({
  mixins : [
    Reflux.connect(NavigationStore)
  ],

  render : function () {
    var dashboards = NavMenuItem.fromArray(_.map(this.state.dashboards, function (d) {
      return _.assign({ key : 'dashboard-nav-' + d.id }, d);
    }));

    return (
      <nav>
        <ul>
          <li className='home'><a href='/'>
            <i className='fa fa-home fa-lg'></i>&ensp;Home
          </a></li>

          <li className='dashboard'>
            <NavMenu text={'Explore Data'} icon={'fa-bar-chart'}>
              {dashboards}
              <li className='separator'><hr /></li>
              <NavMenuItem href='/datapoints/table'>Data Browser</NavMenuItem>
              <li className='separator'><hr /></li>
              <NavMenuItem href='/datapoints/dashboard/'>
                See all custom dashboards
              </NavMenuItem>
              <NavMenuItem href='/datapoints/dashboard/create'>
                Create New dashboard
              </NavMenuItem>
            </NavMenu>
          </li>

          <li className='data'>
            <NavMenu text={'Enter Data'} icon={'fa-table'}>
              <NavMenuItem href='/datapoints/entry'>
                Edit Data
              </NavMenuItem>
              <NavMenuItem href='/upload'>
                Upload Data
              </NavMenuItem>
            </NavMenu>
          </li>

          <li><a href='/ufadmin/users'>
            <i className='fa fa-cogs'></i>&ensp;Manage System
          </a></li>
        </ul>

        <ul className='right'>
          <li><commit_msg>Correct the URL for file uploads<commit_after>'use strict';

var _      = require('lodash');
var React  = require('react');
var Reflux = require('reflux/src');

var NavMenu         = require('component/NavMenu.jsx');
var NavMenuItem     = require('component/NavMenuItem.jsx');
var NavigationStore = require('stores/NavigationStore');

var Navigation = React.createClass({
  mixins : [
    Reflux.connect(NavigationStore)
  ],

  render : function () {
    var dashboards = NavMenuItem.fromArray(_.map(this.state.dashboards, function (d) {
      return _.assign({ key : 'dashboard-nav-' + d.id }, d);
    }));

    return (
      <nav>
        <ul>
          <li className='home'><a href='/'>
            <i className='fa fa-home fa-lg'></i>&ensp;Home
          </a></li>

          <li className='dashboard'>
            <NavMenu text={'Explore Data'} icon={'fa-bar-chart'}>
              {dashboards}
              <li className='separator'><hr /></li>
              <NavMenuItem href='/datapoints/table'>Data Browser</NavMenuItem>
              <li className='separator'><hr /></li>
              <NavMenuItem href='/datapoints/dashboard/'>
                See all custom dashboards
              </NavMenuItem>
              <NavMenuItem href='/datapoints/dashboard/create'>
                Create New dashboard
              </NavMenuItem>
            </NavMenu>
          </li>

          <li className='data'>
            <NavMenu text={'Enter Data'} icon={'fa-table'}>
              <NavMenuItem href='/datapoints/entry'>
                Edit Data
              </NavMenuItem>
              <NavMenuItem href='/upload/file_upload'>
                Upload Data
              </NavMenuItem>
            </NavMenu>
          </li>

          <li><a href='/ufadmin/users'>
            <i className='fa fa-cogs'></i>&ensp;Manage System
          </a></li>
        </ul>

        <ul className='right'>
          <li>
{'fraction_non_alphanumeric': 0.15059132720105126, 'fraction_numerical': 0.0, 'mean_word_length': 1.8552138034508627, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, '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': '4602110', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1069, 'n_words': 220}