<commit_before>﻿#pragma strict
var slideDist : float;
var slideSpeed : float;
var isTriggered : boolean = false;
var moveOnX : boolean = false;
var moveOnY : boolean = false;
var movefwd : boolean = false;
var movebwd : boolean = false;
function Start () {

}

function Update () {

}

function OnTriggerEnter (other : Collider) {
	Debug.Log("SLIDE");
	var target = transform.position.y + slideDist;
	var targetx = transform.position.x + slideDist;
	var targetxr = transform.position.x - slideDist;
	if(!isTriggered) {
		isTriggered = true;
			
		if(moveOnX && movefwd) {
		Debug.Log("Moving 1");
			for(var i = transform.position.x; transform.position.x < targetx; i++){
				transform.position = Vector3(i,transform.position.y,transform.position.z);
			}
		}
		if(moveOnX && movebwd) {
		Debug.Log("Moving 2");
		transform.position = Vector3(targetxr,transform.position.y,transform.position.z);
		}
		if(moveOnY && movefwd) {
		Debug.Log("Moving 3");
			for(var a = transform.position.y; transform.position.y < target; a++){
				transform.position = Vector3(transform.position.x,a,transform.position.z);
			}
		}
		if(moveOnY && movebwd) {
		Debug.Log("Moving 4");
			for(var z = transform.position.y; transform.position.y > -target; z++){
				transform.position = Vector3(transform.position.x,-z,transform.position.z);
			}
		}
	}
	var deathScript = GameObject.FindGameObjectWithTag("Player").GetComponent(death);
	deathScript.kill();
}<commit_msg>Update SpikeSlider.js<commit_after>﻿#pragma strict
var slideDist : float;
var slideSpeed : float;
var isTriggered : boolean = false;
var moveOnX : boolean = false;
var moveOnY : boolean = false;
var movefwd : boolean = false;
var movebwd : boolean = false;
function Start () {

}

function Update () {

}

function OnTriggerEnter (other : Collider) {
	Debug.Log("SLIDE");
	var target = transform.position.y + slideDist;
	var targetx = transform.position.x + slideDist;
	var targetxr = transform.position.x - slideDist;
	if(!isTriggered) {
		isTriggered = true;
			
		if(moveOnX && movefwd) {
		Debug.Log("Moving 1");
			for(var i = transform.position.x; transform.position.x < targetx; i++){
				transform.position = Vector3(i,transform.position.y,transform.position.z);
			}
		}
		if(moveOnX && movebwd) {
		Debug.Log("Moving 2");
		transform.position = Vector3(targetxr,transform.position.y,transform.position.z);
		}
		if(moveOnY && movefwd) {
		Debug.Log("Moving 3");
			for(var a = transform.position.y; transform.position.y < target; a++){
				transform.position = Vector3(transform.position.x,a,transform.position.z);
			}
		}
		if(moveOnY && movebwd) {
		Debug.Log("Moving 4");
			for(var z = transform.position.y; transform.position.y > -target; z++){
				transform.position = Vector3(transform.position.x,-z,transform.position.z);
			}
		}
	}
	var deathScript = GameObject.FindGameObjectWithTag("Player").GetComponent(death);
        Debug.Log("Triggered");
	deathScript.kill();
}
{'fraction_non_alphanumeric': 0.1486394557823129, 'fraction_numerical': 0.005442176870748299, 'mean_word_length': 4.205309734513274, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5602824', 'n_tokens_mistral': 1083, 'n_tokens_neox': 993, 'n_words': 198}