<commit_before>using UnityEngine;
using System.Collections;

public class Ball : MonoBehaviour
{
	// Holds information about the game state.
	public GameState state;

	// Use this for initialization
	void Start ()
	{
		
	}
	
	// Update is called once per frame
	void Update ()
	{
		// Check to see if the speed is within the correct range.
		CheckSpeed ();
		
		// Check to see if the ball should be served.
		CheckServe ();
	}
	
	// Check the speed of the ball.
	private void CheckSpeed ()
	{
		// Store the direction the ball is traveling.
		float ballDirection = Mathf.Sign (rigidbody.velocity.y);
		
		// If the ball is traveling faster than the maximum velocity...
		if (Mathf.Abs (rigidbody.velocity.y) > 30)
		{
			// ...set the ball to the maximum velocity.
			rigidbody.velocity = new Vector3 (rigidbody.velocity.x, 30, 0);
		}
		
		Debug.Log (rigidbody.velocity.y);
	}
	<commit_msg>Consolidated script size<commit_after>using UnityEngine;
using System.Collections;

public class Ball : MonoBehaviour
{
	// Holds information about the game state.
	public GameState state;
	
	// Update is called once per frame
	void Update ()
	{
		// Check to see if the speed is within the correct range.
		CheckSpeed ();
		
		// Check to see if the ball should be served.
		CheckServe ();
	}
	
	// Check the speed of the ball.
	private void CheckSpeed ()
	{
		// Store the direction the ball is traveling.
		float ballDirection = Mathf.Sign (rigidbody.velocity.y);
		
		// If the ball is traveling faster than the maximum velocity...
		if (Mathf.Abs (rigidbody.velocity.y) > 30)
		{
			// ...set the ball to the maximum velocity.
			rigidbody.velocity = new Vector3 (rigidbody.velocity.x, 30, 0);
		}
		
		Debug.Log (rigidbody.velocity.y);
	}
	
{'fraction_non_alphanumeric': 0.09896432681242807, 'fraction_numerical': 0.006904487917146145, 'mean_word_length': 2.8730512249443207, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3910985', 'n_tokens_mistral': 605, 'n_tokens_neox': 523, 'n_words': 200}