<commit_before>import React, { PropTypes } from 'react';
import { AutoSizer } from 'react-virtualized';
import { omit } from 'lodash';

const ResponsiveContainerPropTypes = {
  children: PropTypes.oneOfType([
    PropTypes.arrayOf(PropTypes.node),
    PropTypes.node
  ]),

  /** Disable dynamic :height property */
  disableHeight: PropTypes.bool,

  /** Disable dynamic :width property */
  disableWidth: PropTypes.bool,

  /** Callback to be invoked on-resize: ({ height, width }) */
  onResize: PropTypes.func
};

export default function ResponsiveContainer(props) {
  /* eslint-disable react/prop-types */

  const autoSizerProps = omit(props, 'children');
  return (
    <AutoSizer {...autoSizerProps}>
      {({ width, height }) => {
        if (!width || !height || width < 0 || height < 0) return null;<commit_msg>remove unnecessary checks for width and height < 0<commit_after>import React, { PropTypes } from 'react';
import { AutoSizer } from 'react-virtualized';
import { omit } from 'lodash';

const ResponsiveContainerPropTypes = {
  children: PropTypes.oneOfType([
    PropTypes.arrayOf(PropTypes.node),
    PropTypes.node
  ]),

  /** Disable dynamic :height property */
  disableHeight: PropTypes.bool,

  /** Disable dynamic :width property */
  disableWidth: PropTypes.bool,

  /** Callback to be invoked on-resize: ({ height, width }) */
  onResize: PropTypes.func
};

export default function ResponsiveContainer(props) {
  /* eslint-disable react/prop-types */

  const autoSizerProps = omit(props, 'children');
  return (
    <AutoSizer {...autoSizerProps}>
      {({ width, height }) => {
        if (!width || !height) return null;
{'fraction_non_alphanumeric': 0.13707729468599034, 'fraction_numerical': 0.0018115942028985507, 'mean_word_length': 3.802898550724638, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, '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': '7308567', 'n_tokens_mistral': 494, 'n_tokens_neox': 485, 'n_words': 130}