<commit_before>package org.usfirst.frc.team236.robot.commands;

import org.usfirst.frc.team236.robot.Robot;

import edu.wpi.first.wpilibj.command.Command;

/**
 *
 */
public class Cock extends Command {
	private int i;

	public Cock() {
		// Use requires() here to declare subsystem dependencies
		// eg. requires(chassis);
		requires(Robot.shooter);
	}

	// Called just before this Command runs the first time
	protected void initialize() {
		i = 0;
	}

	// Called repeatedly when this Command is scheduled to run
	protected void execute() {
		Robot.shooter.setSpeed(.5); // Retract spring
		if (i > 10) {
			Robot.shooter.insertPin();
		}
		i++;
	}

	// Make this return true when this Command no longer needs to run execute()
	protected boolean isFinished() {
		return (i / 50) > 5; // Time out after 5 seconds
	}

	// Called once after isFinished returns true
	protected void end() {
		Robot.shooter.stop();
		Robot.shooter.setIsCocked(true);
	}

	// Called when another command which requires one or more of the same<commit_msg>Upped power on cock<commit_after>package org.usfirst.frc.team236.robot.commands;

import org.usfirst.frc.team236.robot.Robot;

import edu.wpi.first.wpilibj.command.Command;

/**
 *
 */
public class Cock extends Command {
	private int i;

	public Cock() {
		// Use requires() here to declare subsystem dependencies
		// eg. requires(chassis);
		requires(Robot.shooter);
	}

	// Called just before this Command runs the first time
	protected void initialize() {
		i = 0;
	}

	// Called repeatedly when this Command is scheduled to run
	protected void execute() {
		Robot.shooter.setSpeed(.6); // Retract spring
		if (i > 10) {
			Robot.shooter.insertPin();
		}
		i++;
	}

	// Make this return true when this Command no longer needs to run execute()
	protected boolean isFinished() {
		return (i / 50) > 5; // Time out after 5 seconds
	}

	// Called once after isFinished returns true
	protected void end() {
		Robot.shooter.stop();
		Robot.shooter.setIsCocked(true);
	}

	// Called when another command which requires one or more of the same
{'fraction_non_alphanumeric': 0.111003861003861, 'fraction_numerical': 0.013513513513513514, 'mean_word_length': 3.3734177215189876, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6434890', 'n_tokens_mistral': 745, 'n_tokens_neox': 656, 'n_words': 218}