<commit_before>var React = require('react/addons');
var _ = require('lodash');

var SegmentedControlItem = React.createClass({
  props: {
    label: React.PropTypes.string.isRequired,
    href: React.PropTypes.string,
    active: React.PropTypes.bool.isRequired
  },

  getDefaultProps: function() {
    return {
      active: false
    };
  },

  render: function() {
    itemClasses = {
      'control-item': true,
      'active': this.props.acive
    }

    if (_.isString(this.props.href) && this.props.href.length) {
      return (
        <a className={itemClasses} href={this.props.href}>{this.props.label}</a>
      );
    } else {
      return (
        <a className={itemClasses}>{this.props.label}</a>
      );
    }
  }
});

module.exports = SegmentedControlItem;
<commit_msg>Some lint and class set fixes.<commit_after>'use strict';

var React = require('react/addons');
var _ = require('lodash');

var SegmentedControlItem = React.createClass({
  props: {
    label: React.PropTypes.string.isRequired,
    href: React.PropTypes.string,
    active: React.PropTypes.bool.isRequired
  },

  getDefaultProps: function() {
    return {
      active: false
    };
  },

  render: function() {
    var itemClasses = React.addons.classSet({
      'control-item': true,
      'active': this.props.acive
    });

    if (_.isString(this.props.href) && this.props.href.length) {
      return (
        <a className={itemClasses} href={this.props.href}>{this.props.label}</a>
      );
    } else {
      return (
        <a className={itemClasses}>{this.props.label}</a>
      );
    }
  }
});

module.exports = SegmentedControlItem;

{'fraction_non_alphanumeric': 0.15464547677261614, 'fraction_numerical': 0.0, 'mean_word_length': 2.7981438515081205, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '963476', 'n_tokens_mistral': 539, 'n_tokens_neox': 525, 'n_words': 89}