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

public class Juiceness : MonoBehaviour {

	private static bool s_juicenessEnabled = true;

	void Update () {
		if (Input.GetKeyDown (KeyCode.J)) {
			s_juicenessEnabled = !s_juicenessEnabled;
		}
	}

	public static void Run(string name, Action juicenessAction, Action notJuicenessAction = null) {
		if (s_juicenessEnabled) {
			Debug.LogFormat ("Running juiceness {0}", name);
			juicenessAction ();
		} else if (notJuicenessAction != null) {
			notJuicenessAction ();
		}
	}

	public static YieldInstruction Run(string name, Func<YieldInstruction> juicenessAction, Func<YieldInstruction> notJuicenessAction = null) {
		if (s_juicenessEnabled) {
			Debug.LogFormat ("Running juiceness {0}", name);
			return juicenessAction ();
		} else if (notJuicenessAction == null) {
			return new WaitForFixedUpdate();
		}
		else {
			return notJuicenessAction ();
		}
	}

	public static bool CanRun(string name) {<commit_msg>Removed log.<commit_after>﻿using UnityEngine;
using System.Collections;
using System;

public class Juiceness : MonoBehaviour {

	private static bool s_juicenessEnabled = true;

	void Update () {
		if (Input.GetKeyDown (KeyCode.J)) {
			s_juicenessEnabled = !s_juicenessEnabled;
		}
	}

	public static void Run(string name, Action juicenessAction, Action notJuicenessAction = null) {
		if (s_juicenessEnabled) {
			juicenessAction ();
		} else if (notJuicenessAction != null) {
			notJuicenessAction ();
		}
	}

	public static YieldInstruction Run(string name, Func<YieldInstruction> juicenessAction, Func<YieldInstruction> notJuicenessAction = null) {
		if (s_juicenessEnabled) {
			return juicenessAction ();
		} else if (notJuicenessAction == null) {
			return new WaitForFixedUpdate();
		}
		else {
			return notJuicenessAction ();
		}
	}

	public static bool CanRun(string name) {
{'fraction_non_alphanumeric': 0.1008, 'fraction_numerical': 0.0010666666666666667, 'mean_word_length': 4.667673716012085, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3013179', 'n_tokens_mistral': 677, 'n_tokens_neox': 612, 'n_words': 149}