<commit_before>var React = require('react');
var classNames = require('classnames');
var BarActiveStyle = require('../mixins/bar-active-style');
var GetActiveClassName = require('../mixins/get-active-class-name');
var GetHeight = require('../mixins/get-height');
var GetWidth = require('../mixins/get-width');
var SetStateFromProps = require('../mixins/set-state-from-props');

module.exports = React.createClass({

  displayName: 'VerticalBar',

  propTypes: {
    active: React.PropTypes.bool.isRequired,
    className: React.PropTypes.string,
    height: React.PropTypes.number.isRequired,
    style: React.PropTypes.object,
    width: React.PropTypes.number.isRequired,
    x: React.PropTypes.number.isRequired,
    y: React.PropTypes.number.isRequired
  },

  mixins: [
    BarActiveStyle,
    GetActiveClassName,
    GetHeight,
    GetWidth,
    SetStateFromProps
  ],

  getDefaultProps() {
    return {
      active: false,
      className: '',
      height: 0,
      style: {},
      width: 0,
      x: 0,
      y: 0
    };
  },

  getInitialState() {
    return {
      activeClassName: '',
      fill: '',
      fillActive: '',
      height: 0,
      style: null,
      width: 0
    };
  },

  setStateFromProps(props, state) {
    var activeClassName = this.getActiveClassName(props.active);
    var height = this.getHeight(props.height);
    var style = this.getStyleActive(props.style, props.active, state);
    var width = this.getWidth(props.width);
    this.setState({
      activeClassName: activeClassName,
      height: height,
      style: style,
      width: width
    });
  },

  render() {
    return (
      <rect
        className={classNames(
          'vertical-bar',
          this.props.className,
          this.state.activeClassName
        )}
        height={this.state.height}
        style={this.state.style ?
          this.state.style :
          this.props.style<commit_msg>:bug: set vertical bar default fills to null instead of empty string<commit_after>var React = require('react');
var classNames = require('classnames');
var BarActiveStyle = require('../mixins/bar-active-style');
var GetActiveClassName = require('../mixins/get-active-class-name');
var GetHeight = require('../mixins/get-height');
var GetWidth = require('../mixins/get-width');
var SetStateFromProps = require('../mixins/set-state-from-props');

module.exports = React.createClass({

  displayName: 'VerticalBar',

  propTypes: {
    active: React.PropTypes.bool.isRequired,
    className: React.PropTypes.string,
    height: React.PropTypes.number.isRequired,
    style: React.PropTypes.object,
    width: React.PropTypes.number.isRequired,
    x: React.PropTypes.number.isRequired,
    y: React.PropTypes.number.isRequired
  },

  mixins: [
    BarActiveStyle,
    GetActiveClassName,
    GetHeight,
    GetWidth,
    SetStateFromProps
  ],

  getDefaultProps() {
    return {
      active: false,
      className: '',
      height: 0,
      style: {},
      width: 0,
      x: 0,
      y: 0
    };
  },

  getInitialState() {
    return {
      activeClassName: '',
      fill: null,
      fillActive: null,
      height: 0,
      style: null,
      width: 0
    };
  },

  setStateFromProps(props, state) {
    var activeClassName = this.getActiveClassName(props.active);
    var height = this.getHeight(props.height);
    var style = this.getStyleActive(props.style, props.active, state);
    var width = this.getWidth(props.width);
    this.setState({
      activeClassName: activeClassName,
      height: height,
      style: style,
      width: width
    });
  },

  render() {
    return (
      <rect
        className={classNames(
          'vertical-bar',
          this.props.className,
          this.state.activeClassName
        )}
        height={this.state.height}
        style={this.state.style ?
          this.state.style :
          this.props.style
{'fraction_non_alphanumeric': 0.13237187741437034, 'fraction_numerical': 0.003090394025238218, 'mean_word_length': 2.616387337057728, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3372980', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1164, 'n_words': 226}