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

namespace Fungus
{

	[CanEditMultipleObjects]
	[CustomEditor (typeof(View))]
	public class ViewEditor : Editor 
	{
		static Color viewColor = Color.yellow;

		protected SerializedProperty primaryAspectRatioProp;
		protected SerializedProperty secondaryAspectRatioProp;
		protected SerializedProperty viewSizeProp;

		// Draw Views when they're not selected
		[DrawGizmo(GizmoType.NotSelected | GizmoType.SelectedOrChild)]
		static void RenderCustomGizmo(Transform objectTransform, GizmoType gizmoType)
		{
			View view = objectTransform.gameObject.GetComponent<View>();
			if (view != null)
			{
				DrawView(view, false);
			}
		}

		protected virtual Vector2 LookupAspectRatio(int index)
		{
			switch (index)
			{
			default:
			case 1:
				return new Vector2(4, 3);
			case 2:
				return new Vector2(3, 2);
			case 3:
				return new Vector2(16, 10);
			case 4:
				return new Vector2(17, 10);
			case 5:
				return new Vector2(16, 9);<commit_msg>Fixed API change for Unity 5.0.2<commit_after>using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;

namespace Fungus
{

	[CanEditMultipleObjects]
	[CustomEditor (typeof(View))]
	public class ViewEditor : Editor 
	{
		static Color viewColor = Color.yellow;

		protected SerializedProperty primaryAspectRatioProp;
		protected SerializedProperty secondaryAspectRatioProp;
		protected SerializedProperty viewSizeProp;

		// Draw Views when they're not selected
		[DrawGizmo(GizmoType.NotInSelectionHierarchy | GizmoType.InSelectionHierarchy)]
		static void RenderCustomGizmo(Transform objectTransform, GizmoType gizmoType)
		{
			View view = objectTransform.gameObject.GetComponent<View>();
			if (view != null)
			{
				DrawView(view, false);
			}
		}

		protected virtual Vector2 LookupAspectRatio(int index)
		{
			switch (index)
			{
			default:
			case 1:
				return new Vector2(4, 3);
			case 2:
				return new Vector2(3, 2);
			case 3:
				return new Vector2(16, 10);
			case 4:
				return new Vector2(17, 10);
			case 5:
				return new Vector2(16, 9);
{'fraction_non_alphanumeric': 0.08595194085027727, 'fraction_numerical': 0.02541589648798521, 'mean_word_length': 4.179425837320574, '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': '4926429', 'n_tokens_mistral': 826, 'n_tokens_neox': 673, 'n_words': 184}