<commit_before>import React from "react";

import style from "./styles";


export class CardOverlay extends React.Component {

    render() {
        const overlayStyle = Object.assign({}, style.overlayContainer, this.props.overlayStyle);
        let textStyle = Object.assign({}, style.overlayText, this.props.textStyle);


        return (
            <div style={overlayStyle} onTouchTap={this.props.onTouchTapOverlay}>
                <div style={textStyle}>
                    {this.props.text}
                </div>
            </div>
        )
    }
}

CardOverlay.propTypes = {
    overlayStyle: React.PropTypes.object,
    textStyle: React.PropTypes.object
};<commit_msg>Design - support newlne #640<commit_after>import React from "react";

import style from "./styles";


export class CardOverlay extends React.Component {

    render() {
        const overlayStyle = Object.assign({}, style.overlayContainer, this.props.overlayStyle);
        let textStyle = Object.assign({}, style.overlayText, this.props.textStyle);
        let text = typeof this.props.text === 'string' ? this.props.text.split('\n').map((item, key) => {
            return <span key={key}>{item}<br/></span>
            }) : this.props.text

        return (
            <div style={overlayStyle} onTouchTap={this.props.onTouchTapOverlay}>
                <div style={textStyle}>
                    {text}
                </div>
            </div>
        )
    }
}

CardOverlay.propTypes = {
    overlayStyle: React.PropTypes.object,
    textStyle: React.PropTypes.object
};
{'fraction_non_alphanumeric': 0.13141025641025642, 'fraction_numerical': 0.0019230769230769232, 'mean_word_length': 2.3497854077253217, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 15, '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': '1866603', 'n_tokens_mistral': 448, 'n_tokens_neox': 434, 'n_words': 90}