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

[RequireComponent(typeof(GUIText))]
public class ShotCountText : MonoBehaviour {
	public GUIText		m_Target;
	public LayerMask	m_LayerTarget;
	public string		m_Format = "{0: ###0}<size=10>shots</size>";
	
	/// <summary>
	/// 初回更新前
	/// </summary>
	void Start () {
		if (!m_Target) {
			m_Target = GetComponent<GUIText>();
		}
	}
	
	/// <summary>
	/// 更新
	/// </summary>
	void Update () {
		var count = FindObjectsOfType<GameObject>().Where(x=>0!=(m_LayerTarget & (1<<x.layer))).Count();
		count += OrbitInstance.Instantiate().GetOrbitCount();
		m_Target.text = string.Format(m_Format, count);
	}
}<commit_msg>ShotCountText:Optimize to UI.Text of Unity4.6<commit_after>﻿using UnityEngine;
using System.Collections.Generic;
using System.Linq;

[RequireComponent(typeof(UnityEngine.UI.Text))]
public class ShotCountText : MonoBehaviour {
	public UnityEngine.UI.Text	m_Target;
	public LayerMask			m_LayerTarget;
	public string				m_Format = "{0: ###0}<size=10>shots</size>";
	
	/// <summary>
	/// 初回更新前
	/// </summary>
	void Start () {
		if (!m_Target) {
			m_Target = GetComponent<UnityEngine.UI.Text>();
		}
	}
	
	/// <summary>
	/// 更新
	/// </summary>
	void Update () {
		var count = FindObjectsOfType<GameObject>().Where(x=>0!=(m_LayerTarget & (1<<x.layer))).Count();
		count += OrbitInstance.Instantiate().GetOrbitCount();
		m_Target.text = string.Format(m_Format, count);
	}
}
{'fraction_non_alphanumeric': 0.17542662116040955, 'fraction_numerical': 0.00955631399317406, 'mean_word_length': 4.273381294964029, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 21, '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': '1686857', 'n_tokens_mistral': 564, 'n_tokens_neox': 531, 'n_words': 94}