<commit_before>import './CommentTools.less';
import React from 'react';

// import CommentDropdownContent from './CommentDropdownContent';
// import DropdownController from '../dropdown/DropdownController';

const T = React.PropTypes;

function scoreText(score, scoreHidden) {
  if (scoreHidden) {
    return '–';
  } else if (score < 1000) {
    return `${score}`;
  } else if (score < 1100) {
    return '1k';
  }

  return `${(score/1000).toFixed(1)}k`;
}

function renderReply () {
  /*
  return (
    <div
      className='CommentTools__reply icon icon-reply2'
      onClick={ onToggleReplyForm }
    />
  );
  */
}

function renderSeashells() {
  /*
  return (
    <div
      className='CommentTools__more icon icon-seashells'
      onClick={ this.toggleDropdown }
    />
  );
  */
}

function renderDivider() {
  return <div className='CommentTools__divider' />;
}

function renderScoreAndUpvote(props) {
  const { score, scoreHidden, voteDirection, onUpvote } = props;

  let textColorCls;
  if (voteDirection === 1) {
    textColorCls = 'upvoted';
  } else if (voteDirection === -1) {
    textColorCls = 'downvoted';
  }

  return (
    <div className={ `CommentTools__hit-area ${textColorCls}` } onClick={ onUpvote }>
      <div className={ `CommentTools__score ${textColorCls}` }>
        { scoreText(score, scoreHidden) }
      </div>
      { renderUpvote(props) }
    </div><commit_msg>[comments] stubs for reply, dropdown<commit_after>import './CommentTools.less';
import React from 'react';

// import CommentDropdownContent from './CommentDropdownContent';
// import DropdownController from '../dropdown/DropdownController';

const T = React.PropTypes;

function onToggleReplyForm () { console.log('toggle reply form'); }
function onToggleDropdown () { console.log('toggle dropdown'); }

function scoreText(score, scoreHidden) {
  if (scoreHidden) {
    return '–';
  } else if (score < 1000) {
    return `${score}`;
  } else if (score < 1100) {
    return '1k';
  }

  return `${(score/1000).toFixed(1)}k`;
}

function renderReply () {
  return (
    <div
      className='CommentTools__reply icon icon-reply2'
      onClick={ onToggleReplyForm }
    />
  );
}

function renderSeashells() {
  return (
    <div
      className='CommentTools__more icon icon-seashells'
      onClick={ onToggleDropdown }
    />
  );
}

function renderDivider() {
  return <div className='CommentTools__divider' />;
}

function renderScoreAndUpvote(props) {
  const { score, scoreHidden, voteDirection, onUpvote } = props;

  let textColorCls;
  if (voteDirection === 1) {
    textColorCls = 'upvoted';
  } else if (voteDirection === -1) {
    textColorCls = 'downvoted';
  }

  return (
    <div className={ `CommentTools__hit-area ${textColorCls}` } onClick={ onUpvote }>
      <div className={ `CommentTools__score ${textColorCls}` }>
        { scoreText(score, scoreHidden) }
      </div>
      { renderUpvote(props) }
    </div>
{'fraction_non_alphanumeric': 0.1432469304229195, 'fraction_numerical': 0.011596180081855388, 'mean_word_length': 3.484709480122324, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 17, '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': '2765311', 'n_tokens_mistral': 963, 'n_tokens_neox': 943, 'n_words': 208}