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

public class DotFall : MonoBehaviour
{
	private DotScript dotScript;
	private float speed = 5.0f;
	private float accel = 5.0f;

	void Start()
	{
		dotScript = GetComponent<DotScript>();
		dotScript.enabled = false;
	}

	void Update()
	{
		if( transform.position != transform.parent.position )
		{
			if( dotScript.enabled )
			{
				dotScript.CancelDrag();
				dotScript.enabled = false;
			}
			float adjSpeed = speed * Time.deltaTime;
			transform.position = Vector3.MoveTowards( transform.position, transform.parent.position, adjSpeed );
			speed += accel * Time.deltaTime;
		}
		else if( !dotScript.enabled )
		{
			dotScript.enabled = true;
			speed = 5.0f;
		}
	}
}<commit_msg>Collider on dots now disables while falling to prevent it from being registered as a draggable neighbor as it falls<commit_after>﻿using UnityEngine;
using System.Collections;

public class DotFall : MonoBehaviour
{
	private DotScript dotScript;
	private Collider2D dotCollider;
	private float speed = 5.0f;
	private float accel = 5.0f;

	void Start()
	{
		dotCollider = GetComponent<Collider2D>();
		dotScript = GetComponent<DotScript>();
		dotScript.enabled = false;
	}

	void Update()
	{
		if( transform.position != transform.parent.position )
		{
			if( dotScript.enabled )
			{
				dotScript.CancelDrag();
				dotCollider.enabled = false;
				dotScript.enabled = false;
			}
			float adjSpeed = speed * Time.deltaTime;
			transform.position = Vector3.MoveTowards( transform.position, transform.parent.position, adjSpeed );
			speed += accel * Time.deltaTime;
		}
		else if( !dotScript.enabled )
		{
			dotCollider.enabled = true;
			dotScript.enabled = true;
			speed = 5.0f;
		}
	}
}
{'fraction_non_alphanumeric': 0.10790536641661858, 'fraction_numerical': 0.009232544720138488, 'mean_word_length': 3.6864864864864866, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '4407076', 'n_tokens_mistral': 640, 'n_tokens_neox': 553, 'n_words': 136}