<commit_before>import React, {Component, PropTypes} from 'react';

export default class Span extends Component {
  render() {
    const {children, span} = this.props;

    const style = {
      boxSizing: 'border-box',
      display: 'flex',
      flexBasis: span && window.innerWidth > 640 ?
        `calc(${span / 6 * 100}% - 10px)` :
        'calc(100% - 10px)',
      flexWrap: 'wrap',
      margin: '24px 10px 0 0',
      padding: 0,
      position: 'relative'
    };

    return (
      <div {...this.props} style={{...style, ...this.props.style}}>
        {children}
      </div>
    );
  }
}

Span.propTypes = {
  span: PropTypes.number,
  children: PropTypes.node.isRequired,
  style: PropTypes.object
};
<commit_msg>Fix max width of overflowing specimens on Firefox<commit_after>import React, {Component, PropTypes} from 'react';

export default class Span extends Component {
  render() {
    const {children, span} = this.props;

    const style = {
      boxSizing: 'border-box',
      display: 'flex',
      flexBasis: span && window.innerWidth > 640 ?
        `calc(${span / 6 * 100}% - 10px)` :
        'calc(100% - 10px)',
      // Bug fix for Firefox; width and flexBasis don't work on horizontally scrolling code blocks
      maxWidth: span && window.innerWidth > 640 ?
        `calc(${span / 6 * 100}% - 10px)` :
        'calc(100% - 10px)',
      flexWrap: 'wrap',
      margin: '24px 10px 0 0',
      padding: 0,
      position: 'relative'
    };

    return (
      <div {...this.props} style={{...style, ...this.props.style}}>
        {children}
      </div>
    );
  }
}

Span.propTypes = {
  span: PropTypes.number,
  children: PropTypes.node.isRequired,
  style: PropTypes.object
};

{'fraction_non_alphanumeric': 0.15380116959064327, 'fraction_numerical': 0.03274853801169591, 'mean_word_length': 2.388118811881188, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, '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': '7534675', 'n_tokens_mistral': 605, 'n_tokens_neox': 550, 'n_words': 147}