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

public class Timer : MonoBehaviour {
    public float gameTimer;
    private GameObject timerText;

	// Use this for initialization
	void Start () {
        gameTimer = 60.0f;
        timerText = GameObject.Find("TimerText");
	}
	
    void FixedUpdate () {
        gameTimer -= Time.deltaTime;
        timerText.GetComponent<Text>().text = Mathf.Floor(gameTimer).ToString();
        Debug.Log(gameTimer.ToString());<commit_msg>Cleaned up Debug.Log from last push. Timer no longer goes negative. Prints when at 0.0<commit_after>﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class Timer : MonoBehaviour {
    public float gameTimer;
    private GameObject timerText;

	// Use this for initialization
	void Start () {
        gameTimer = 30.0f;
        timerText = GameObject.Find("TimerText");
	}
	
    void FixedUpdate () {
        gameTimer -= Time.deltaTime;
        if (gameTimer < 0.0f)
        {
            gameTimer = 0.0f;
        }

        timerText.GetComponent<Text>().text = Mathf.Floor(gameTimer).ToString();

        if (gameTimer == 0.0f)
        {
            Debug.Log("Time is up, drop the spikes.");
        }
{'fraction_non_alphanumeric': 0.10869565217391304, 'fraction_numerical': 0.011272141706924315, 'mean_word_length': 2.634502923976608, 'pattern_counts': {'":': 0, '<': 6, '<?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': '7113352', 'n_tokens_mistral': 376, 'n_tokens_neox': 355, 'n_words': 92}