<commit_before>package org.scbio.onebuttonlarry.stage;

import org.scbio.onebuttonlarry.R;
import org.scbio.onebuttonlarry.game.GameStage;
import org.scbio.onebuttonlarry.game.GameView;
import org.scbio.onebuttonlarry.game.Larry;

import android.content.Context;
import android.graphics.Canvas;

public class GapJump extends GameStage {

	/*
	 * Stage map constants.
	 */
	private static final float Y_GROUND = 0.612f;

	private Context context;
	private GameView parent;

	private Larry jumpLarry;

	public GapJump(Context context, GameView parent) {
		super(parent);	
		this.context = context;
		this.parent = parent;

		jumpLarry = new Larry(context, parent, 0.1f) {

			@Override
			protected void doAction() {
				// TODO Auto-generated method stub

			}
		};
		
		jumpLarry.setIncY(0);
		jumpLarry.setIncX(5);

		this.setStageBackground(R.drawable.stagebg_gapjump);
	}

	@Override
	public void onDrawStage(Canvas canvas) {
		jumpLarry.drawSprite(canvas);
	}

	@Override
	public void onSizeChanged(int w, int h, int oldw, int oldh) {
	
		jumpLarry.setPosY(Y_GROUND*h);
	}

	@Override
	protected void onTap() {
		taps++;
	}<commit_msg>Increased speed, added an action to onTap<commit_after>package org.scbio.onebuttonlarry.stage;

import org.scbio.onebuttonlarry.R;
import org.scbio.onebuttonlarry.game.GameStage;
import org.scbio.onebuttonlarry.game.GameView;
import org.scbio.onebuttonlarry.game.Larry;

import android.content.Context;
import android.graphics.Canvas;

public class GapJump extends GameStage {

	/*
	 * Stage map constants.
	 */
	private static final float Y_GROUND = 0.612f;
	
	/*
	 * Larry constants.
	 */
	
	private static final int LARRY_SPEED = 7;

	private Context context;
	private GameView parent;

	private Larry jumpLarry;

	public GapJump(Context context, GameView parent) {
		super(parent);	
		this.context = context;
		this.parent = parent;

		jumpLarry = new Larry(context, parent, 0.1f) {

			@Override
			protected void doAction() {
				// TODO Auto-generated method stub

			}
		};
		
		jumpLarry.setIncY(0);
		jumpLarry.setIncX(LARRY_SPEED);

		this.setStageBackground(R.drawable.stagebg_gapjump);
	}

	@Override
	public void onDrawStage(Canvas canvas) {
		jumpLarry.drawSprite(canvas);
	}

	@Override
	public void onSizeChanged(int w, int h, int oldw, int oldh) {
	
		jumpLarry.setPosY(Y_GROUND*h);
	}

	@Override
	protected void onTap() {
		taps++;
		jumpLarry.setPosY(parent.getHeight()/2);
	}
{'fraction_non_alphanumeric': 0.1055008210180624, 'fraction_numerical': 0.0069786535303776685, 'mean_word_length': 4.098326359832636, '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': '4625934', 'n_tokens_mistral': 959, 'n_tokens_neox': 837, 'n_words': 187}