<commit_before>package com.edinarobotics.zeke.commands;

import com.edinarobotics.zeke.Components;
import com.edinarobotics.zeke.subsystems.Shooter;
import edu.wpi.first.wpilibj.command.Command;

public class LowerShooterCommand extends Command {
    private Shooter shooter;

    public LowerShooterCommand() {
        shooter = Components.getInstance().shooter;
        requires(shooter);
    }

    protected void initialize() {
        
    }

    protected void execute() {
        if (!shooter.getShooterLimitSwitch()) {
            shooter.setWinchState(Shooter.WinchState.LOWERING);
	}
    }

    protected boolean isFinished() {
        if(shooter.getShooterLimitSwitch()) {
            return true;
        }
        return false;
    }

    protected void end() {
        shooter.setWinchState(Shooter.WinchState.STOPPED);
    }

    protected void interrupted() {
        end();
    }
}<commit_msg>Modify isFinished() in LowerShooterCommand to save a branch.<commit_after>package com.edinarobotics.zeke.commands;

import com.edinarobotics.zeke.Components;
import com.edinarobotics.zeke.subsystems.Shooter;
import edu.wpi.first.wpilibj.command.Command;

public class LowerShooterCommand extends Command {

    private Shooter shooter;

    public LowerShooterCommand() {
        shooter = Components.getInstance().shooter;
        requires(shooter);
    }

    protected void initialize() {

    }

    protected void execute() {
        if (!shooter.getShooterLimitSwitch()) {
            shooter.setWinchState(Shooter.WinchState.LOWERING);
        }
    }

    protected boolean isFinished() {
        return shooter.getShooterLimitSwitch();
    }

    protected void end() {
        shooter.setWinchState(Shooter.WinchState.STOPPED);
    }

    protected void interrupted() {
        end();
    }
}
{'fraction_non_alphanumeric': 0.09823399558498896, 'fraction_numerical': 0.0, 'mean_word_length': 2.8574468085106384, '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': '7588143', 'n_tokens_mistral': 582, 'n_tokens_neox': 529, 'n_words': 96}