<commit_before>import React from "react";
import Router from "react-router";

let Link = Router.Link;
let State = Router.State;

var NavTab = React.createClass({
    mixins: [ State ],
    render: function() {
        let isActive = this.isActive(this.props.to, this.props.params, this.props.query);
        let className = isActive ? 'active' : '';
        return <li className={className}><Link {...this.props} /></li>;
    }
});

export default NavTab;<commit_msg>Using new router 0.13 nav state<commit_after>import React from "react";
import Router from "react-router";

let Link = Router.Link;
let State = Router.State;

var NavTab = React.createClass({
    mixins: [ State ],
    render: function() {
        let isActive = this.context.router.isActive(this.props.to, this.props.params, this.props.query);
        let className = isActive ? 'active' : '';
        return <li className={className}><Link {...this.props} /></li>;
    }
});

export default NavTab;
{'fraction_non_alphanumeric': 0.15201654601861428, 'fraction_numerical': 0.0031023784901758012, 'mean_word_length': 3.3800904977375565, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6242595', 'n_tokens_mistral': 302, 'n_tokens_neox': 296, 'n_words': 80}