<commit_before>import React from 'react';
import { Grid, Row, Col } from 'react-flexbox-grid';
import Styles from '../styles/board.css';
import PromoteModal from '../containers/modals/promoteModal';
import Piece from '../containers/piece';
import BlackPieceStand from '../containers/blackPieceStand';
import WhitePieceStand from '../containers/whitePieceStand';

const Board = ({ board }) => {
  const tbody = board.map((row, y) => {
    const rows = row.map((piece, x) => {
      const style = {
        backgroundColor: piece.movable ? "red" : "white",
      };
<commit_msg>Colorize background color if piece is able to drop.<commit_after>import React from 'react';
import { Grid, Row, Col } from 'react-flexbox-grid';
import Styles from '../styles/board.css';
import PromoteModal from '../containers/modals/promoteModal';
import Piece from '../containers/piece';
import BlackPieceStand from '../containers/blackPieceStand';
import WhitePieceStand from '../containers/whitePieceStand';

const Board = ({ board }) => {
  const tbody = board.map((row, y) => {
    const rows = row.map((piece, x) => {
      const style = {
        backgroundColor: (piece.movable || piece.isDrop) ? "red" : "white",
      };

{'fraction_non_alphanumeric': 0.15562913907284767, 'fraction_numerical': 0.0, 'mean_word_length': 3.816733067729084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1656146', 'n_tokens_mistral': 361, 'n_tokens_neox': 360, 'n_words': 103}