<commit_before>import React from 'react';
import PropTypes from 'prop-types';

import Alert from 'react/components/UI/Alert';
import Box from 'react/components/UI/Box';

const ErrorAlert = ({ children, isReloadable, ...rest }) => (
  <Alert mb={6} bg="state.alert" color="white" isCloseable={false} {...rest}>
    <Box display="flex" justifyContent="space-between">
      {children}

      {isReloadable &&
        <a onClick={() => window.location.reload()} role="button" tabIndex={0}>
          Reload
        </a>
      }
    </Box>
  </Alert>
);

ErrorAlert.propTypes = {
  children: PropTypes.node.isRequired,
  isReloadable: PropTypes.bool,
};

ErrorAlert.defaultProps = {
  isReloadable: true,
};

export default ErrorAlert;<commit_msg>Gives error message breathing room<commit_after>import React from 'react';
import PropTypes from 'prop-types';

import Alert from 'react/components/UI/Alert';
import Box from 'react/components/UI/Box';

const ErrorAlert = ({ children, isReloadable, ...rest }) => (
  <Alert mb={6} bg="state.alert" color="white" isCloseable={false} {...rest}>
    <Box display="flex" justifyContent="space-between">
      {children}

      {isReloadable &&
        <Box ml={4}>
          <a onClick={() => window.location.reload()} role="button" tabIndex={0}>
            Reload
          </a>
        </Box>
      }
    </Box>
  </Alert>
);

ErrorAlert.propTypes = {
  children: PropTypes.node.isRequired,
  isReloadable: PropTypes.bool,
};

ErrorAlert.defaultProps = {
  isReloadable: true,
};

export default ErrorAlert;
{'fraction_non_alphanumeric': 0.16010329244673982, 'fraction_numerical': 0.0032278889606197547, 'mean_word_length': 3.4412607449856734, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '5203007', 'n_tokens_mistral': 485, 'n_tokens_neox': 489, 'n_words': 110}