<commit_before>package org.usfirst.frc.team6027.robot;

import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import org.usfirst.frc.team6027.robot.commands.*;

public class OI {
	private Joystick stick = new Joystick(RobotMap.joystickPort);
	private Joystick controller = new Joystick(RobotMap.controllerPort);
	private DigitalInput winchLimit = new DigitalInput(RobotMap.winchLimitPort);

	public OI(){
		JoystickButton x = new JoystickButton(controller, 0);
		JoystickButton y = new JoystickButton(controller, 1);
		JoystickButton a = new JoystickButton(controller, 2);
		JoystickButton b = new JoystickButton(controller, 3);
		JoystickButton rb = new JoystickButton(controller, 4);
		JoystickButton lb = new JoystickButton(controller, 5);

		a.toggleWhenPressed(new PickupOn());
		b.whileHeld(new PickupReverse());
		y.whileHeld(new OpenGDS());
		x.whenPressed(new Climb());
		rb.whileHeld(new Shoot());

	}
	public Joystick getJoystick(){
		return stick;
	}
	public Joystick getController(){
		return controller;
	}
	public DigitalInput getWinchLimit(){
		return winchLimit;
	}
}<commit_msg>Map buttons onto Xbox controller<commit_after>package org.usfirst.frc.team6027.robot;

import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import org.usfirst.frc.team6027.robot.commands.*;

public class OI {
	private Joystick controller = new Joystick(RobotMap.controllerPort);
	private DigitalInput winchLimit = new DigitalInput(RobotMap.winchLimitPort);

	public OI(){
		JoystickButton x = new JoystickButton(controller, 3);
		JoystickButton y = new JoystickButton(controller, 4);
		JoystickButton a = new JoystickButton(controller, 1);
		JoystickButton b = new JoystickButton(controller, 2);
		JoystickButton rb = new JoystickButton(controller, 6);
		JoystickButton lb = new JoystickButton(controller, 5);

		a.toggleWhenPressed(new PickupOn());
		b.whileHeld(new PickupReverse());
		y.whileHeld(new OpenGDS());
		x.whenPressed(new Climb());
		rb.whileHeld(new Shoot());

	}
	public Joystick getController(){
		return controller;
	}
	public DigitalInput getWinchLimit(){
		return winchLimit;
	}
}
{'fraction_non_alphanumeric': 0.10889774236387782, 'fraction_numerical': 0.01239486498450642, 'mean_word_length': 5.746268656716418, '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': '3859038', 'n_tokens_mistral': 843, 'n_tokens_neox': 745, 'n_words': 164}