<commit_before>import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
export default class App extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    let data = this.props.data;
    let cardValues = _.sum(_.pluck(data.cards, 'value'))
    console.log('cardValues: ' + cardValues)
    return (
       <div className="Player">
           <h1 onClick={this.props.handleClick}> Player {data.name}
             with cards:
             {_.map(data.cards, (c) => c.name + " of " + c.suit + " ")}
           </h1>
       </div>
    );
  }
}



<commit_msg>style conditionally based on if player busted<commit_after>import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
export default class App extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    let data = this.props.data;
    let cardValues = _.sum(_.pluck(data.cards, 'value'));
    return (
       <div className="Player" style={{color: (cardValues > 21) ? 'red' : 'black'}}>
           <h1 onClick={this.props.handleClick}> Player {data.name}
             with cards:
             {_.map(data.cards, (c) => c.name + " of " + c.suit + " ")}
           </h1>
       </div>
    );
  }
}




{'fraction_non_alphanumeric': 0.15675675675675677, 'fraction_numerical': 0.004633204633204633, 'mean_word_length': 2.4838709677419355, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, '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': '6242596', 'n_tokens_mistral': 421, 'n_tokens_neox': 412, 'n_words': 101}