<commit_before>import React, { Component } from 'react';
import Board from './Board';

let styles = {
  black: {
    backgroundColor: "#000000",
  },
  white: {
    backgroundColor: "#FFFFFF",
  },
  empty: {
    backgroundColor: "#777777",
  },
}

function cell({color}) {
  if (color === Board.BLACK) {
    return <div className="Cell" style={styles.black} />;
  }
  if (color === Board.WHITE) {
    return <div className="Cell" style={styles.white} />;
  }
  return <div className="Cell" style={styles.empty} />;
}

function row(items) {
  return <div className="Row">{items.map(cell)}</div>;
}

class BoardView extends Component {
  render() {
    // TODO: expand props.grid
    let rows = this.props.grid.map(row);
    return <div className="Board">{rows}</div>;
  }
}
<commit_msg>shuffling round and still sucks<commit_after>import React, { Component } from 'react';
import Board from './Board';

let cellStyle = {
  height: 10,
  width: 10,
};

let styles = {
  black: {
    backgroundColor: "#000000",
    ...cellStyle,
  },
  white: {
    backgroundColor: "#FFFFFF",
    ...cellStyle,
  },
  empty: {
    backgroundColor: "#777777",
    ...cellStyle,
  },
};

function cell({color}) {
  if (color === Board.BLACK) {
    return <div className="Cell" style={[styles.black, styles.cell]} />;
  }
  if (color === Board.WHITE) {
    return <div className="Cell" style={[styles.white, styles.cell]} />;
  }
  return <div className="Cell" style={[styles.empty, styles.cell]} />;
}

function row(items) {
  return <div className="Row">{items.map(cell)}</div>;
}

class BoardView extends Component {
  render() {
    // TODO: expand props.grid
    let rows = this.props.grid.map(row);
    return <div className="Board">{rows}</div>;
  }
}

{'fraction_non_alphanumeric': 0.18573893041978148, 'fraction_numerical': 0.016101207590569294, 'mean_word_length': 3.427480916030534, 'pattern_counts': {'":': 0, '<': 17, '<?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': '1254606', 'n_tokens_mistral': 603, 'n_tokens_neox': 581, 'n_words': 134}