<commit_before>import React from 'react';
import { Navbar, Nav, NavItem } from 'react-bootstrap';

export default class MainNavBar extends React.Component {
  constructor(props, context) {
    super(props, context);
    this.isActive = this.isActive.bind(this);
  }

  isActive(view) {
    return this.context.router.isActive(view);
  }

  goTo(location) {
    this.context.router.push(location);
  }

  render() {
    return (
      <Navbar>
        <Navbar.Header>
          <Navbar.Brand style={{ color: '#DE4646' }}>
            <i className="fa fa-fire"></i> &nbsp;DataFurnace
          </Navbar.Brand>
        </Navbar.Header>
        <Nav>
          <NavItem
            style={{ color: 'white' }}
            active={this.isActive('structure-view')}
            onClick={() => this.goTo('/structure-view')}
          >
            Structure View
          </NavItem>
          <NavItem
            style={{ color: 'white' }}
            active={this.isActive('measure-view')}
            onClick={() => this.goTo('/measure-view')}
          >
            Measure View
          </NavItem>
        </Nav>
      </Navbar>
    );
  }
}

MainNavBar.contextTypes = {
  router: React.PropTypes.object.isRequired,
};<commit_msg>Add scale icon to measure view link in nav bar<commit_after>import React from 'react';
import { Navbar, Nav, NavItem } from 'react-bootstrap';

export default class MainNavBar extends React.Component {
  constructor(props, context) {
    super(props, context);
    this.isActive = this.isActive.bind(this);
  }

  isActive(view) {
    return this.context.router.isActive(view);
  }

  goTo(location) {
    this.context.router.push(location);
  }

  render() {
    return (
      <Navbar>
        <Navbar.Header>
          <Navbar.Brand style={{ color: '#DE4646' }}>
            <i className="fa fa-fire"></i> &nbsp;DataFurnace
          </Navbar.Brand>
        </Navbar.Header>
        <Nav>
          <NavItem
            style={{ color: 'white' }}
            active={this.isActive('structure-view')}
            onClick={() => this.goTo('/structure-view')}
          >
            Structure View
          </NavItem>
          <NavItem
            style={{ color: 'white' }}
            active={this.isActive('measure-view')}
            onClick={() => this.goTo('/measure-view')}
          >
            <i className="fa fa-balance-scale"></i> &nbsp;
            Measure View
          </NavItem>
        </Nav>
      </Navbar>
    );
  }
}

MainNavBar.contextTypes = {
  router: React.PropTypes.object.isRequired,
};
{'fraction_non_alphanumeric': 0.15058823529411763, 'fraction_numerical': 0.003137254901960784, 'mean_word_length': 2.026097271648873, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 37, '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': '4482901', 'n_tokens_mistral': 784, 'n_tokens_neox': 775, 'n_words': 147}