<commit_before>/**
 * @fileoverview Modal component for miser data.
 */
import React, { PropTypes } from 'react';
import ReactModal from 'react-modal';

/**
 * @param {boolean} isOpen
 * @param {Function} onRequestClose
 * @return {React.Component}
 */
const CalendarModal = ({ isOpen, onRequestClose }) => (
  <ReactModal
    isOpen={isOpen}
    contentLabel=''
    onRequestClose={onRequestClose}
  >
    <p>Sample modal.</p>
  </ReactModal>
);

CalendarModal.propTypes = {
  isOpen         : PropTypes.bool.isRequired,
  onRequestClose : PropTypes.func.isRequired,
};

export default CalendarModal;<commit_msg>modify: fix style for react modal<commit_after>/**
 * @fileoverview Modal component for miser data.
 */
import React, { PropTypes } from 'react';
import ReactModal from 'react-modal';

/** @var {Object} */
const contentStyle = {
  top        : '20%',
  left       : '50%',
  margin     : '0 auto',
  marginLeft : '-150px',
  width      : '300px',
  height     : '300px',
  textAlign  : 'center',
};

/**
 * @param {boolean} isOpen
 * @param {Function} onRequestClose
 * @return {React.Component}
 */
const CalendarModal = ({ isOpen, onRequestClose }) => (
  <ReactModal
    isOpen={isOpen}
    contentLabel=''
    onRequestClose={onRequestClose}
    style={{
      content: contentStyle,
    }}
  >
    <p>Sample modal.</p>
  </ReactModal>
);

CalendarModal.propTypes = {
  isOpen         : PropTypes.bool.isRequired,
  onRequestClose : PropTypes.func.isRequired,
};

export default CalendarModal;
{'fraction_non_alphanumeric': 0.14503311258278145, 'fraction_numerical': 0.009271523178807948, 'mean_word_length': 3.41812865497076, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '3221065', 'n_tokens_mistral': 488, 'n_tokens_neox': 485, 'n_words': 112}