<commit_before>﻿using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;

[RequireComponent(typeof(CharacterController))]
[RequireComponent(typeof(Animator))]
public class Movement : MonoBehaviour {

	public float speed = 3.0F;
	public float jumpSpeed = 2f;
	public float lookSpeed = 2f;
	private CharacterController controller;
	private Animator animator;
	private Vector3 moveDirection = Vector3.zero;
	private Vector3 curLoc;
	private Vector3 prevLoc;
	private bool movementLocked = false;

	void Start(){
		controller = GetComponent<CharacterController>();
		animator = GetComponent<Animator>();
	}

	void Update() {
		if(!movementLocked){
				UpdateInput();
				if(CrossPlatformInputManager.GetAxis("Horizontal") != 0 || CrossPlatformInputManager.GetAxis("Vertical") != 0){
					animator.SetBool("isWalking", true);
					RotateRelativeToCamera(moveDirection, Camera.main);
					controller.SimpleMove(transform.TransformDirection(Vector3.forward) * speed);
				}
				else{
					animator.SetBool("isWalking", false);
				}
				if (CrossPlatformInputManager.GetButton ("Jump")) {
					animator.SetTrigger ("jump");
					moveDirection.y = jumpSpeed;
				}
			}
		}


	private void UpdateInput()
	{
		moveDirection = Vector3.zero;
		if(CrossPlatformInputManager.GetAxis("Horizontal") > 0){
			moveDirection += Vector3.right;
		}
		if(CrossPlatformInputManager.GetAxis("Horizontal") < 0){<commit_msg>Tweaked Kit's jump<commit_after>﻿using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;

[RequireComponent(typeof(CharacterController))]
[RequireComponent(typeof(Animator))]
public class Movement : MonoBehaviour {

	public float speed = 3.0F;
	public float jumpSpeed = 2f;
	public float lookSpeed = 2f;
	private CharacterController controller;
	private Animator animator;
	private Vector3 moveDirection = Vector3.zero;
	private Vector3 curLoc;
	private Vector3 prevLoc;
	private bool movementLocked = false;

	void Start(){
		controller = GetComponent<CharacterController>();
		animator = GetComponent<Animator>();
	}

	void Update() {
		if(!movementLocked){
				UpdateInput();
				if(CrossPlatformInputManager.GetAxis("Horizontal") != 0 || CrossPlatformInputManager.GetAxis("Vertical") != 0){
					animator.SetBool("isWalking", true);
					RotateRelativeToCamera(moveDirection, Camera.main);
					controller.SimpleMove(transform.TransformDirection(Vector3.forward) * speed);
				}
				else{
					animator.SetBool("isWalking", false);
				}
				if (CrossPlatformInputManager.GetButtonDown ("Jump")) {
					animator.SetTrigger ("jump");
					moveDirection.y = jumpSpeed;
				}
			}
		}


	private void UpdateInput()
	{
		moveDirection = Vector3.zero;
		if(CrossPlatformInputManager.GetAxis("Horizontal") > 0){
			moveDirection += Vector3.right;
		}
		if(CrossPlatformInputManager.GetAxis("Horizontal") < 0){
{'fraction_non_alphanumeric': 0.11512575274530641, 'fraction_numerical': 0.010626992561105207, 'mean_word_length': 5.152505446623094, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3918796', 'n_tokens_mistral': 956, 'n_tokens_neox': 818, 'n_words': 167}