<commit_before>﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

public class MatrixCheckEditor : EditorWindow
{
	private SceneView currentSceneView;

	private int tab = 0;

	private string[] tabHeaders = { "Matrix", "Meta Data" };
	private BasicView[] tabs = { new MetaTileMapView(), new MetaDataView()};



	[MenuItem("Window/Matrix Check")]
	public static void ShowWindow()
	{
		GetWindow<MatrixCheckEditor>("Matrix Check");
	}

	public void OnEnable()
	{
		SceneView.onSceneGUIDelegate += OnSceneGUI;
	}

	public void OnDisable()
	{
		SceneView.onSceneGUIDelegate -= OnSceneGUI;
	}

	private void OnSceneGUI(SceneView sceneView)
	{
		currentSceneView = sceneView;
	}

	private void OnGUI()
	{
		tab = GUILayout.Toolbar(tab, tabHeaders);

		tabs[tab].OnGUI();
<commit_msg>Replaced deprecated duringSceneUi in 2019.3 or newer<commit_after>﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

public class MatrixCheckEditor : EditorWindow
{
	private SceneView currentSceneView;

	private int tab = 0;

	private string[] tabHeaders = { "Matrix", "Meta Data" };
	private BasicView[] tabs = { new MetaTileMapView(), new MetaDataView()};



	[MenuItem("Window/Matrix Check")]
	public static void ShowWindow()
	{
		GetWindow<MatrixCheckEditor>("Matrix Check");
	}

	public void OnEnable()
	{
#if UNITY_2019_3_OR_NEWER
	SceneView.duringSceneGui  += OnSceneGUI;
#else
	SceneView.onSceneGUIDelegate += OnSceneGUI;
#endif
	}

	public void OnDisable()
	{
#if UNITY_2019_3_OR_NEWER
		SceneView.duringSceneGui  += OnSceneGUI;
#else
	SceneView.onSceneGUIDelegate += OnSceneGUI;
#endif
	}

	private void OnSceneGUI(SceneView sceneView)
	{
		currentSceneView = sceneView;
	}

	private void OnGUI()
	{
		tab = GUILayout.Toolbar(tab, tabHeaders);

		tabs[tab].OnGUI();

{'fraction_non_alphanumeric': 0.10864864864864865, 'fraction_numerical': 0.009189189189189189, 'mean_word_length': 5.253378378378378, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4554087', 'n_tokens_mistral': 641, 'n_tokens_neox': 595, 'n_words': 144}