<commit_before>import * as React from "react";
import { Component } from "react";
import { DndProvider } from "react-dnd";
import HTML5Backend from "react-dnd-html5-backend";

import { IStateFormat, IMoveMoveFormat } from "json-kifu-format/dist/src/Formats";
import { Board } from "./shogi/Board";
import { Hand } from "./shogi/Hand";
import { KifuTree, KifuTreeNode } from "../models";
import "./BoardSet.css";

export interface BoardSetStateProps {
  shogiState: IStateFormat;
  kifuTree: KifuTree;
  reversed: boolean;
  currentNode: KifuTreeNode;
}

export interface BoardSetDispatchProps {
  onInputMove: (move: IMoveMoveFormat) => void;
  onChangeReversed: (reversed: boolean) => void;
}

class BoardSet extends Component<BoardSetStateProps & BoardSetDispatchProps, {}> {
  render() {
    const { shogiState, kifuTree, reversed } = this.props;
    const currentNode = kifuTree.getCurrentNode();
    const players = [
      kifuTree.baseJKF.header["先手"] || kifuTree.baseJKF.header["下手"] || "先手",
      kifuTree.baseJKF.header["後手"] || kifuTree.baseJKF.header["上手"] || "後手",
    ];

    return (
      <DndProvider backend={HTML5Backend}>
        <div><commit_msg>Add prefix to player name<commit_after>import * as React from "react";
import { Component } from "react";
import { DndProvider } from "react-dnd";
import HTML5Backend from "react-dnd-html5-backend";

import { IStateFormat, IMoveMoveFormat } from "json-kifu-format/dist/src/Formats";
import { Board } from "./shogi/Board";
import { Hand } from "./shogi/Hand";
import { KifuTree, KifuTreeNode } from "../models";
import "./BoardSet.css";

export interface BoardSetStateProps {
  shogiState: IStateFormat;
  kifuTree: KifuTree;
  reversed: boolean;
  currentNode: KifuTreeNode;
}

export interface BoardSetDispatchProps {
  onInputMove: (move: IMoveMoveFormat) => void;
  onChangeReversed: (reversed: boolean) => void;
}

class BoardSet extends Component<BoardSetStateProps & BoardSetDispatchProps, {}> {
  render() {
    const { shogiState, kifuTree, reversed } = this.props;
    const currentNode = kifuTree.getCurrentNode();
    const players = [
      "☗" + (kifuTree.baseJKF.header["先手"] || kifuTree.baseJKF.header["下手"] || "先手"),
      "☖" + (kifuTree.baseJKF.header["後手"] || kifuTree.baseJKF.header["上手"] || "後手"),
    ];

    return (
      <DndProvider backend={HTML5Backend}>
        <div>
{'fraction_non_alphanumeric': 0.14382402707275804, 'fraction_numerical': 0.0025380710659898475, 'mean_word_length': 4.387243735763098, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '4794677', 'n_tokens_mistral': 826, 'n_tokens_neox': 807, 'n_words': 175}