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

public enum SwimmerState {
	Neutral,
	ShootRecovery
}

public class SwimmerBehavior : MonoBehaviour {
	
	#region Constants
	private const int PlayerLayer = 9;
	private const int PlayerHoldingBallLayer = 8;
	private const float ShootRecoveryStateTime = .5f;
	#endregion
	
	#region Public Members
	public float MinShootPower = 2300f;
	public float MaxShootPower = 4600f;
	public float MaxShootTime = 2f;
	public float BaseSpeed = 1000f;			//No ball movement speed
	public float HoldingSpeed = 800f;		//Movement speed when possessing the ball
	public float CurrentSpeed = 1000f;
	public float PossessCatchZoneSize = 2f;
	public float LackingCatchZoneSize = 1f;
	public string HorizontalAxisName;
	public string VerticalAxisName;
	public string ShootAxisName;
	public SwimmerBehavior Teammate;
	public BallBehavior BallScript;
	#endregion
	
	#region Protected Members
	protected float ShotTimer;
	#endregion
	
	#region Private Members
	private Vector3 _heading = new Vector3(1f, 0f, 0f);	<commit_msg>Bit of code reorg -- mostly making private consts of things which don't change at runtime<commit_after>﻿using UnityEngine;
using System.Collections;

public enum SwimmerState {
	Neutral,
	ShootRecovery
}

public class SwimmerBehavior : MonoBehaviour {
	
	#region Constants
	private const int PlayerLayer = 9;
	private const int PlayerHoldingBallLayer = 8;
	private const float ShootRecoveryStateTime = .5f;

	private const float MinShootPower = 2300f;
	private const float MaxShootPower = 4600f;
	private const float MaxShootTime = 2f;
	private const float BaseSpeed = 1000f;			//No ball movement speed
	private const float HoldingSpeed = 800f;		//Movement speed when possessing the ball
	
	private const float PossessCatchZoneSize = 2f;
	private const float LackingCatchZoneSize = 1f;
	#endregion
	
	#region Public Members
	public float CurrentSpeed = 1000f;
	public string HorizontalAxisName;
	public string VerticalAxisName;
	public string ShootAxisName;
	public SwimmerBehavior Teammate;
	public BallBehavior BallScript;
	#endregion
	
	#region Protected Members
	protected float ShotTimer;
	#endregion
	
	#region Private Members
	private Vector3 _heading = new Vector3(1f, 0f, 0f);	
{'fraction_non_alphanumeric': 0.05303030303030303, 'fraction_numerical': 0.026737967914438502, 'mean_word_length': 5.0675675675675675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6253618', 'n_tokens_mistral': 736, 'n_tokens_neox': 657, 'n_words': 239}