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

public class Player : MonoBehaviour {

	public float speed;
	public float jumpForce;
	private Rigidbody2D rb;

	// Use this for initialization
	void Start () {
		rb = GetComponent<Rigidbody2D> ();
	}
	
	// Update is called once per frame
	void Update () {

		rb.AddForce (transform.right * speed);
	
	}
}
<commit_msg>Player kodas<commit_after>﻿using UnityEngine;
using System.Collections;

public class Player : MonoBehaviour {

	public float speed;
	public float jumpForce;
	private Rigidbody2D rb;

	public LayerMask ground;
	private bool isGrounded;
	private Collider2D col;

	// Use this for initialization
	void Start () {
		rb = GetComponent<Rigidbody2D> ();
		col = GetComponent<Collider2D> ();
	}
	
	// Update is called once per frame
	void FixedUpdate () {

		isGrounded = Physics2D.IsTouchingLayers (col, ground);

		rb.AddForce (transform.right * speed);
		if (isGrounded) {
			rb.velocity = new Vector2 (speed, 0);
		}

		if(Input.GetKey("space")){
			if(isGrounded){
				rb.AddForce (transform.up * jumpForce);
			}
		}

	}

	void OnCollisionEnter(Collision collision){

	}
}

{'fraction_non_alphanumeric': 0.10599478714161599, 'fraction_numerical': 0.007819287576020852, 'mean_word_length': 3.8607594936708862, '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': '1425779', 'n_tokens_mistral': 426, 'n_tokens_neox': 377, 'n_words': 103}