<commit_before>import React, { Component, PropTypes } from 'react';
import { List } from 'immutable';
import { OpponentHand, MinionsOnBoard, BoardSideNew, Minion } from 'components';

export default class Opponent extends Component {
  static propTypes = {
    name: PropTypes.string,
    handCount: PropTypes.number,
    deckCount: PropTypes.number,
    board: PropTypes.instanceOf(List),
  }

  opponentPlayCard(e) {
    console.log('The opponent played a card', e);
  }

  render() {
    const { name, handCount, board } = this.props;
    const styles = require('./Opponent.scss');

    const minions = board.map((card, index) => (
      <Minion key={index} card={card} />
    ));

    return (
      <div className={styles.Opponent}>
        <h1 className={styles.OpponentName}>
          { name || 'Unnamed' }
        </h1>
        <div className={styles.OpponentHandWrapper}>
          <OpponentHand handCount={handCount} />
        </div>
        <BoardSideNew>
          <MinionsOnBoard>
            { minions }
          </MinionsOnBoard>
        </BoardSideNew>
      </div>
    );
  }<commit_msg>Remove unused function<commit_after>import React, { Component, PropTypes } from 'react';
import { List } from 'immutable';
import { OpponentHand, MinionsOnBoard, BoardSideNew, Minion } from 'components';

export default class Opponent extends Component {
  static propTypes = {
    name: PropTypes.string,
    handCount: PropTypes.number,
    deckCount: PropTypes.number,
    board: PropTypes.instanceOf(List),
  }

  render() {
    const { name, handCount, board } = this.props;
    const styles = require('./Opponent.scss');

    const minions = board.map((card, index) => (
      <Minion key={index} card={card} />
    ));

    return (
      <div className={styles.Opponent}>
        <h1 className={styles.OpponentName}>
          { name || 'Unnamed' }
        </h1>
        <div className={styles.OpponentHandWrapper}>
          <OpponentHand handCount={handCount} />
        </div>
        <BoardSideNew>
          <MinionsOnBoard>
            { minions }
          </MinionsOnBoard>
        </BoardSideNew>
      </div>
    );
  }
{'fraction_non_alphanumeric': 0.13199626865671643, 'fraction_numerical': 0.0018656716417910447, 'mean_word_length': 2.623310810810811, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, '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': '2538256', 'n_tokens_mistral': 658, 'n_tokens_neox': 638, 'n_words': 145}