<commit_before>import React, { Component, PropTypes } from "react";
import ReactDOM from "react-dom";
import cx from "classnames";

import ReactCSSTransitionGroup from "react-addons-css-transition-group";
import { Motion, spring } from "react-motion";

import OnClickOutsideWrapper from "./OnClickOutsideWrapper.jsx";
import ModalContent from "./ModalContent";

import _ from "underscore";

export const MODAL_CHILD_CONTEXT_TYPES = {
    fullPageModal: PropTypes.bool,
    formModal: PropTypes.bool
};

function getModalContent(props) {
    if (React.Children.count(props.children).length > 1 ||
        props.title != null || props.footer != null
    ) {
        return <ModalContent {..._.omit(props, "className", "style")} />
    } else {
        return React.Children.only(props.children);
    }
}
<commit_msg>Fix certain modals (e.x. About modal)<commit_after>import React, { Component, PropTypes } from "react";
import ReactDOM from "react-dom";
import cx from "classnames";

import ReactCSSTransitionGroup from "react-addons-css-transition-group";
import { Motion, spring } from "react-motion";

import OnClickOutsideWrapper from "./OnClickOutsideWrapper.jsx";
import ModalContent from "./ModalContent";

import _ from "underscore";

export const MODAL_CHILD_CONTEXT_TYPES = {
    fullPageModal: PropTypes.bool,
    formModal: PropTypes.bool
};

function getModalContent(props) {
    if (React.Children.count(props.children) > 1 ||
        props.title != null || props.footer != null
    ) {
        return <ModalContent {..._.omit(props, "className", "style")} />
    } else {
        return React.Children.only(props.children);
    }
}

{'fraction_non_alphanumeric': 0.12826747720364742, 'fraction_numerical': 0.0012158054711246201, 'mean_word_length': 4.064615384615385, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4615151', 'n_tokens_mistral': 497, 'n_tokens_neox': 491, 'n_words': 121}