<commit_before>import React from "react";
import ReactDOM from "react-dom";
import "../../src/infinity-menu.css";
import InfinityMenu from "../../src/infinity-menu";
const tree2 = [
	{
		name: "Menu1",
		id: 0,
		isOpen: true,
		children: [
			{
				name: "SubMenu1-1",
				id: 0,
				isOpen: true,
				children: [
					{
						name: "Sub-SubMenu1-6",
						id: 5
					},
					{
						name: "Sub-SubMenu1-7",
						id: 6
					},
					{
						name: "Sub-SubMenu1-8",
						id: 7
					},
					{
						name: "Sub-SubMenu1-9",
						id: 8
					}
				]
			},
			{
				name: "SubMenu2-1",
				id: 1,
				children: [
					{
						name: "Sub-SubMenu2-1",
						id: 0
					}
				]
			}
		]
	},
	{
		name: "Menu2",
		id: 1,
		isOpen: false,
		children: [
			{
				name: "SubMenu2-1",
				id: 0
			},
			{
				name: "SubMenu2-2",
				id: 1
			},
			{
				name: "SubMenu2-3",
				id: 2
			}
		]
	},
	{
		name: "Menu3",
		id: 2,
		isOpen: false,
		children: [
			{
				name: "SubMenu3-1",
				id: 0
			},
			{
				name: "SubMenu3-2",
				id: 1
			}
		]
	}
];

class App extends React.Component {

	componentWillMount() {
		const tree = [
			{
				name: "Menu1",
				id: 0,
				isOpen: false,
				children: [
					{
						name: "SubMenu1-1",
						id: 0,
						isOpen: false,
						children: [
							{
								name: "Sub-SubMenu1-1",
								id: 0
							},
							{
								name: "Sub-SubMenu1-2",
								id: 1
							},
							{
								name: "Sub-SubMenu1-3",
								id: 2
							},
							{
								name: "Sub-SubMenu1-4",
								id: 3
							},
							{
								name: "Sub-SubMenu1-5",
								id: 4
							},
							{
								name: "Sub-SubMenu1-6",
								id: 5
							},
							{
								name: "Sub-SubMenu1-7",
								id: 6
							},
							{
								name: "Sub-SubMenu1-8",
								id: 7
							},
							{
								name: "Sub-SubMenu1-9",
								id: 8
							}
						]
					},
					{
						name: "SubMenu2-1",
						id: 1,
						children: [
							{
								name: "Sub-SubMenu2-1",
								id: 0
							}
						]
					}
				]
			},
			{
				name: "Menu2",
				id: 1,
				isOpen: false,
				children: [
					{
						name: "SubMenu2-1",
						id: 0
					},
					{
						name: "SubMenu2-2",
						id: 1
					},
					{
						name: "SubMenu2-3",
						id: 2
					}
				]
			},
			{
				name: "Menu3",
				id: 2,
				isOpen: false,
				children: [
					{
						name: "SubMenu3-1",
						id: 0
					},
					{
						name: "SubMenu3-2",
						id: 1
					}
				]
			}
		];
		this.setState({
			tree: tree
		});
		setTimeout(() => {
			this.setState({
				tree: tree2
			})
		}, 10000)
	}

	onNodeMouseClick(event, tree) {<commit_msg>removed poorly placed testing code<commit_after>import React from "react";
import ReactDOM from "react-dom";
import "../../src/infinity-menu.css";
import InfinityMenu from "../../src/infinity-menu";

class App extends React.Component {

	componentWillMount() {
		const tree = [
			{
				name: "Menu1",
				id: 0,
				isOpen: false,
				children: [
					{
						name: "SubMenu1-1",
						id: 0,
						isOpen: false,
						children: [
							{
								name: "Sub-SubMenu1-1",
								id: 0
							},
							{
								name: "Sub-SubMenu1-2",
								id: 1
							},
							{
								name: "Sub-SubMenu1-3",
								id: 2
							},
							{
								name: "Sub-SubMenu1-4",
								id: 3
							},
							{
								name: "Sub-SubMenu1-5",
								id: 4
							},
							{
								name: "Sub-SubMenu1-6",
								id: 5
							},
							{
								name: "Sub-SubMenu1-7",
								id: 6
							},
							{
								name: "Sub-SubMenu1-8",
								id: 7
							},
							{
								name: "Sub-SubMenu1-9",
								id: 8
							}
						]
					},
					{
						name: "SubMenu2-1",
						id: 1,
						children: [
							{
								name: "Sub-SubMenu2-1",
								id: 0
							}
						]
					}
				]
			},
			{
				name: "Menu2",
				id: 1,
				isOpen: false,
				children: [
					{
						name: "SubMenu2-1",
						id: 0
					},
					{
						name: "SubMenu2-2",
						id: 1
					},
					{
						name: "SubMenu2-3",
						id: 2
					}
				]
			},
			{
				name: "Menu3",
				id: 2,
				isOpen: false,
				children: [
					{
						name: "SubMenu3-1",
						id: 0
					},
					{
						name: "SubMenu3-2",
						id: 1
					}
				]
			}
		];
		this.setState({
			tree: tree
		});
	}

	onNodeMouseClick(event, tree) {
{'fraction_non_alphanumeric': 0.1630006946052327, 'fraction_numerical': 0.03774021764297291, 'mean_word_length': 1.125984251968504, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3583507', 'n_tokens_mistral': 2911, 'n_tokens_neox': 1703, 'n_words': 322}