<commit_before>/*
 * FRC 4931 (http://www.evilletech.com)
 *
 * Open source software. Licensed under the FIRST BSD license file in the
 * root directory of this project's Git repository.
 */
package org.frc4931.robot.driver;

import org.frc4931.robot.component.Switch;

/**
 * Holds the state of the operator interface.
 * 
 * @author <NAME>
 */
public class OperatorInterface {
    /* Cheesy */
    public final AnalogAxis wheel;
    public final AnalogAxis throttle;

    /* Arcade */
    public final AnalogAxis driveSpeed;
    public final AnalogAxis turnSpeed;

    public final Switch toggleClaw;
    public final Switch toggleLift;
    public final Switch toggleRamp;
    public final Switch toggleRails;
    
    // Modified to fit driver preference
    public OperatorInterface(Joystick joy){
        wheel = joy.getYaw();
        throttle = joy.getPitch();

        driveSpeed = joy.getPitch();
        turnSpeed = joy.getYaw();
        
        toggleClaw = joy.getButton(0);
        toggleLift = joy.getButton(1);
        toggleRamp = joy.getButton(2);
        toggleRails = joy.getButton(3);
    }
}
<commit_msg>Fixed missing switch in 'OperatorInterface' since feee8e<commit_after>/*
 * FRC 4931 (http://www.evilletech.com)
 *
 * Open source software. Licensed under the FIRST BSD license file in the
 * root directory of this project's Git repository.
 */
package org.frc4931.robot.driver;

import org.frc4931.robot.component.Switch;

/**
 * Holds the state of the operator interface.
 * 
 * @author <NAME>
 */
public class OperatorInterface {
    /* Cheesy */
    public final AnalogAxis wheel;
    public final AnalogAxis throttle;

    /* Arcade */
    public final AnalogAxis driveSpeed;
    public final AnalogAxis turnSpeed;

    public final Switch toggleClaw;
    public final Switch toggleLift;
    public final Switch toggleRamp;
    public final Switch toggleRails;

    public final Switch writeData;
    
    // Modified to fit driver preference
    public OperatorInterface(Joystick joy){
        wheel = joy.getYaw();
        throttle = joy.getPitch();

        driveSpeed = joy.getPitch();
        turnSpeed = joy.getYaw();
        
        writeData = joy.getButton(6);
        
        toggleClaw = joy.getButton(0);
        toggleLift = joy.getButton(1);
        toggleRamp = joy.getButton(2);
        toggleRails = joy.getButton(3);
    }
}

{'fraction_non_alphanumeric': 0.09259259259259259, 'fraction_numerical': 0.01430976430976431, 'mean_word_length': 2.731554160125589, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3956270', 'n_tokens_mistral': 736, 'n_tokens_neox': 682, 'n_words': 206}