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

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

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

public class Climb extends Command {
	boolean finished;
	double speed;
	public Climb(boolean isFinished, double speed) {
		requires(Robot.climber);
		finished=isFinished;
		this.speed = speed;
	}
	
	@Override
    protected void initialize() {
        Robot.climber.manualClimb(speed);
    }
	
	@Override
	protected void end() {
		Robot.climber.manualClimb(0);
	}
	
	@Override
	protected boolean isFinished() {
		if (!finished && Robot.climber.isCurrentExceeded()) {
			return true;
		}
		return finished;
	}

}<commit_msg>The climb command has the compressor off when running, and back off when done<commit_after>package org.usfirst.frc.team3335.robot.commands;

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

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

public class Climb extends Command {
	boolean finished;
	double speed;
	public Climb(boolean isFinished, double speed) {
		requires(Robot.climber);
		requires(Robot.compressor);
		finished=isFinished;
		this.speed = speed;
	}
	
	@Override
    protected void initialize() {
        Robot.climber.manualClimb(speed);
        Robot.compressor.setClosedLoop(false);
    }
	
	@Override
	protected void end() {
		Robot.climber.manualClimb(0);
		Robot.compressor.setClosedLoop(true);
	}
	
	@Override
	protected boolean isFinished() {
		if (!finished && Robot.climber.isCurrentExceeded()) {
			return true;
		}
		return finished;
	}

}
{'fraction_non_alphanumeric': 0.10966904607397794, 'fraction_numerical': 0.011680726800778715, 'mean_word_length': 4.072368421052632, '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': '4623111', 'n_tokens_mistral': 583, 'n_tokens_neox': 529, 'n_words': 106}