<commit_before>// Type definitions for rc-tree 1.4
// Project: https://github.com/react-component/tree
// Definitions by: <NAME> <https://github.com/johnnyreilly>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import {
    Component,
    Props
} from "react";

export interface TreeNodeProps extends Props<TreeNode> {
    /**
     * additional css class for treeNode
     */
    className?: string;
    /**
     * whether treeNode is disabled
     */
    disabled?: boolean;
    /**
     * whether treeNode's checkbox is disabled
     */
    disableCheckbox?: boolean;
    /**
     * tree / subTree's title
     */
    title?: string | JSX.Element;
    /**
     * it's used with tree props (default)ExpandedKeys / (default)CheckedKeys / (default)SelectedKeys. You'd better set it, and it must be unique in the tree's all treeNodes
     */
    key?: string | number;
    /**
     * whether it is a leaf node
     */
    isLeaf?: boolean;
}

export class TreeNode extends Component<TreeNodeProps> { }

export interface ExpandData {
    expanded: boolean;
    node: TreeNode;
}

export interface CheckData {
    checked: boolean;
    checkedNodes: TreeNode[];
    halfCheckedKeys: string[];
    node: TreeNode;
    event: "check";
}

export interface SelectData {
    selected: boolean;
    selectedNodes: TreeNode[];
    node: TreeNode;
    event: "select";
}

interface OnDragStartData { 
    event: Event, 
    node: TreeNode 
}

interface OnDragEnterData {
    event: Event;
    node: TreeNode;
    expandedKeys: string[];
}

interface OnDropData {
    event: Event;
    node: TreeNode;<commit_msg>Fix comma interface to semicolon<commit_after>// Type definitions for rc-tree 1.4
// Project: https://github.com/react-component/tree
// Definitions by: <NAME> <https://github.com/johnnyreilly>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import {
    Component,
    Props
} from "react";

export interface TreeNodeProps extends Props<TreeNode> {
    /**
     * additional css class for treeNode
     */
    className?: string;
    /**
     * whether treeNode is disabled
     */
    disabled?: boolean;
    /**
     * whether treeNode's checkbox is disabled
     */
    disableCheckbox?: boolean;
    /**
     * tree / subTree's title
     */
    title?: string | JSX.Element;
    /**
     * it's used with tree props (default)ExpandedKeys / (default)CheckedKeys / (default)SelectedKeys. You'd better set it, and it must be unique in the tree's all treeNodes
     */
    key?: string | number;
    /**
     * whether it is a leaf node
     */
    isLeaf?: boolean;
}

export class TreeNode extends Component<TreeNodeProps> { }

export interface ExpandData {
    expanded: boolean;
    node: TreeNode;
}

export interface CheckData {
    checked: boolean;
    checkedNodes: TreeNode[];
    halfCheckedKeys: string[];
    node: TreeNode;
    event: "check";
}

export interface SelectData {
    selected: boolean;
    selectedNodes: TreeNode[];
    node: TreeNode;
    event: "select";
}

interface OnDragStartData { 
    event: Event;
    node: TreeNode;
}

interface OnDragEnterData {
    event: Event;
    node: TreeNode;
    expandedKeys: string[];
}

interface OnDropData {
    event: Event;
    node: TreeNode;
{'fraction_non_alphanumeric': 0.11322463768115942, 'fraction_numerical': 0.0024154589371980675, 'mean_word_length': 2.8389339513325607, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 6, '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': '2850609', 'n_tokens_mistral': 995, 'n_tokens_neox': 985, 'n_words': 287}