<commit_before>import React from 'react'

class Card extends React.Component {

  constructor() {
    super()

    this.onClick = this.onClick.bind(this)
    this.onRightClick = this.onRightClick.bind(this)
  }

  onClick(e) {

  }

  onRightClick(e) {
    // e.preventDefault()
  }

  render() {
    const { card: { colour, colourKnown, number, numberKnown }, show, style } = this.props

    console.log(this.props.card)

    const cardStyle = Object.assign({
      color: colourKnown || show ? colour : 'grey',
      border: `1px solid ${show ? colour : 'grey'}`
    }, style)<commit_msg>change colour of card based on what we know :)<commit_after>import React from 'react'

class Card extends React.Component {

  constructor() {
    super()

    this.onClick = this.onClick.bind(this)
    this.onRightClick = this.onRightClick.bind(this)
  }

  onClick(e) {

  }

  onRightClick(e) {
    // e.preventDefault()
  }

  render() {
    const { card: { colour, colourKnown, number, numberKnown }, show, style } = this.props

    let knowSome = colourKnown != numberKnown
    let knowColour = show || colourKnown

    let finalColour = knowColour ? colour : (knowSome ? 'cyan' : 'grey')

    const cardStyle = Object.assign({
      color: finalColour,
      border: `1px solid ${finalColour}`
    }, style)
{'fraction_non_alphanumeric': 0.1303680981595092, 'fraction_numerical': 0.0015337423312883436, 'mean_word_length': 3.040247678018576, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6692505', 'n_tokens_mistral': 435, 'n_tokens_neox': 410, 'n_words': 103}