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

public class onCollision : MonoBehaviour {
    private float nextActionTime = 0.0f;
    public float period = 6.0f;
    public float health = 100.0f;
    public float tickDMG = 1.0f;

    // Use this for initialization
    void Start () {

    }
	
	// Update is called once per frame
	void Update () {
        if (Time.time > nextActionTime)
        {
            nextActionTime += period;
            health = loseHP(tickDMG);
            // execute block of code here
        }
    }

    float loseHP(float amount)
    {
        return health -= amount;
    }

    float gainHP(float amount)
    {
        return health -= amount;
    }

    void OnTriggerEnter2D(Collider2D col)
    {
        if (col.gameObject.tag == "Player" )
        {
            Debug.Log("Hi");
        }
    }

	void OnCollisionEnter2D(Collision2D coll)
	{
		if (coll.gameObject.tag == "Player")
			Debug.Log("Hi");
	}
		
}<commit_msg>removed useless code<commit_after>﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class onCollision : MonoBehaviour {

    // Use this for initialization
    void Start () {

    }
	
	// Update is called once per frame
	void Update () {
       
    }

    void OnTriggerEnter2D(Collider2D col)
    {
        if (col.gameObject.tag == "Player" )
        {
            Debug.Log("Hi");
        }
    }
}
{'fraction_non_alphanumeric': 0.10268780151619572, 'fraction_numerical': 0.011026878015161957, 'mean_word_length': 2.0440251572327046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1996054', 'n_tokens_mistral': 461, 'n_tokens_neox': 436, 'n_words': 111}