<commit_before>import React from "react";
import styled from "styled-components";
import connect from "react-redux/es/connect/connect";
import theme from "../../constants/theme";
import { showMessageControls } from "../messageControls/messageControlsActions";

const Container = styled.div`
	position: relative;
	flex: 1;
	min-height: 30px;

	&.mention {
		background-color: ${theme.mentionBackgroundColor};
		color: ${theme.mentionForegroundColor};
	}
`;

const mapStateToProps = (state, props) => ({
	localNick: state.localUser.nick,
	isSelectedMessage: state.messageControls.messageId === props.messageId
});

const mapDispatchToProps = {
	showMessageControls
};

class MessageBodyContainer extends React.Component {
	onClick = event => {
		this.props.showMessageControls(this.props.messageId, event.clientX - 10, event.clientY - 10);
	};

	render() {
		const { text, firstInSeries, localNick, isSelectedMessage } = this.props;
		const isUserMentioned = testTextForNick(text, localNick);

		let border = "";
		if (isSelectedMessage) {<commit_msg>transparent border on message body to get filled in once selected<commit_after>import React from "react";
import styled from "styled-components";
import connect from "react-redux/es/connect/connect";
import theme from "../../constants/theme";
import { showMessageControls } from "../messageControls/messageControlsActions";

const Container = styled.div`
	position: relative;
	flex: 1;
	min-height: 30px;
	border: solid 1px transparent;

	&.mention {
		background-color: ${theme.mentionBackgroundColor};
		color: ${theme.mentionForegroundColor};
	}
`;

const mapStateToProps = (state, props) => ({
	localNick: state.localUser.nick,
	isSelectedMessage: state.messageControls.messageId === props.messageId
});

const mapDispatchToProps = {
	showMessageControls
};

class MessageBodyContainer extends React.Component {
	onClick = event => {
		this.props.showMessageControls(this.props.messageId, event.clientX - 10, event.clientY - 10);
	};

	render() {
		const { text, firstInSeries, localNick, isSelectedMessage } = this.props;
		const isUserMentioned = testTextForNick(text, localNick);

		let border = "";
		if (isSelectedMessage) {
{'fraction_non_alphanumeric': 0.12465627864344637, 'fraction_numerical': 0.0068744271310724105, 'mean_word_length': 5.166666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7478245', 'n_tokens_mistral': 688, 'n_tokens_neox': 648, 'n_words': 158}