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

public class UMACrowd : MonoBehaviour
{
	[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
	[System.Obsolete("Crowd slotLibrary is obsolete, please use the Crowd umaContext", false)]
	public SlotLibrary slotLibrary;
	[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
	[System.Obsolete("Crowd overlayLibrary is obsolete, please use the Crowd umaContext", false)]
	public OverlayLibrary overlayLibrary;
	[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
	[System.Obsolete("Crowd raceLibrary is obsolete, please use the Crowd umaContext", false)]
	public RaceLibrary raceLibrary;

	public UMACrowdRandomSet[] randomPool;
	public UMAGeneratorBase generator;
	public UMAData umaData;
	public UMAContext umaContext;
	public RuntimeAnimatorController animationController;
	public float atlasResolutionScale = 1;
	public bool generateUMA;
	public bool generateLotsUMA;
	public bool hideWhileGeneratingLots;
	public bool stressTest;
	public Vector2 umaCrowdSize;
	public bool randomDna;
	public UMARecipeBase[] additionalRecipes;

	public float space = 1;
	public Transform zeroPoint;
	private int spawnX;
	private int spawnY;

	public string[] keywords;

	public UMADataEvent CharacterCreated;
	public UMADataEvent CharacterDestroyed;
	public UMADataEvent CharacterUpdated;

	void Awake()
	{
		if (space <= 0) space = 1;
	}

	void Update()
	{
		if (generateUMA)
		{
			umaCrowdSize = Vector2.one;
			int randomResult = Random.Range(0, 2);
			GenerateOneUMA(randomResult);
			generateUMA = false;
			generateLotsUMA = false;
		}

		if (generateLotsUMA)
		{
			if (generator.IsIdle())
			{
				int randomResult = Random.Range(0, 2);
				GenerateOneUMA(randomResult);
			}
		}

		if (stressTest && !generateLotsUMA && !generateUMA)
		{<commit_msg>Fixed StressTest in UMACrowd<commit_after>using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UMA;

public class UMACrowd : MonoBehaviour
{
	[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
	[System.Obsolete("Crowd slotLibrary is obsolete, please use the Crowd umaContext", false)]
	public SlotLibrary slotLibrary;
	[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
	[System.Obsolete("Crowd overlayLibrary is obsolete, please use the Crowd umaContext", false)]
	public OverlayLibrary overlayLibrary;
	[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
	[System.Obsolete("Crowd raceLibrary is obsolete, please use the Crowd umaContext", false)]
	public RaceLibrary raceLibrary;

	public UMACrowdRandomSet[] randomPool;
	public UMAGeneratorBase generator;
	public UMAData umaData;
	public UMAContext umaContext;
	public RuntimeAnimatorController animationController;
	public float atlasResolutionScale = 1;
	public bool generateUMA;
	public bool generateLotsUMA;
	public bool hideWhileGeneratingLots;
	public bool stressTest;
	public Vector2 umaCrowdSize;
	public bool randomDna;
	public UMARecipeBase[] additionalRecipes;

	public float space = 1;
	public Transform zeroPoint;
	private int spawnX;
	private int spawnY;

	public string[] keywords;

	public UMADataEvent CharacterCreated;
	public UMADataEvent CharacterDestroyed;
	public UMADataEvent CharacterUpdated;

	void Awake()
	{
		if (space <= 0) space = 1;
	}

	void Update()
	{
		if (generateUMA)
		{
			umaCrowdSize = Vector2.one;
			int randomResult = Random.Range(0, 2);
			GenerateOneUMA(randomResult);
			generateUMA = false;
			generateLotsUMA = false;
		}

		if (generateLotsUMA)
		{
			if (generator.IsIdle())
			{
				int randomResult = Random.Range(0, 2);
				GenerateOneUMA(randomResult);
			}
		}

		if (stressTest && generator.IsIdle() && !generateLotsUMA && !generateUMA)
		{
{'fraction_non_alphanumeric': 0.08204998737692502, 'fraction_numerical': 0.005049229992426155, 'mean_word_length': 5.636515912897822, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5005279', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1222, 'n_words': 312}