<commit_before>import React from 'react';
import classnames from 'classnames';

import PieceOfText from './piece-of-text';
import UserName from './user-name';


export default class PostComment extends React.Component {
  renderBody() {
    const authorAndButtons = (
      <span>
        {' -'}&nbsp;
        <UserName user={this.props.createdBy} me={this.props.me}/>
      </span>
    );

    return (
      <div className="comment-body">
        <PieceOfText
          text={this.props.body}
        />
        {authorAndButtons}
      </div>
    );
  }

  render() {
    const className = classnames({
      'comment': true,
      'highlighted': false,
      'omit-bubble': false,
      'is-hidden': false,
      'highlight-from-url': false,
      'my-comment': false
    });


    return (
      <div
        className={className}
        data-author={this.props.createdBy.username}
      >
        {this.renderBody()}
      </div>
    );
  }
}<commit_msg>Fix hidden comment display in bestOf email.<commit_after>import React from 'react';
import classnames from 'classnames';

import PieceOfText from './piece-of-text';
import UserName from './user-name';


export default class PostComment extends React.Component {
  renderBody() {
    let authorAndButtons = '';
    if (!this.props.hideType) {
      authorAndButtons = (
        <span>
          {' -'}&nbsp;
          <UserName user={this.props.createdBy} me={this.props.me}/>
        </span>
      );
    }

    return (
      <div className="comment-body">
        <PieceOfText
          text={this.props.body}
        />
        {authorAndButtons}
      </div>
    );
  }

  render() {
    const className = classnames({
      'comment': true,
      'highlighted': false,
      'omit-bubble': false,
      'is-hidden': false,
      'highlight-from-url': false,
      'my-comment': false
    });


    return (
      <div className={className}>
        {this.renderBody()}
      </div>
    );
  }
}
{'fraction_non_alphanumeric': 0.14642857142857144, 'fraction_numerical': 0.0, 'mean_word_length': 2.127591706539075, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '971250', 'n_tokens_mistral': 610, 'n_tokens_neox': 599, 'n_words': 128}