<commit_before>package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.Victor;


public class RobotTemplate extends SimpleRobot {
    /**
     * This function is called once each time the robot enters autonomous mode.
     */
    public RobotDrive drivetrain;
    public Joystick leftStick;
    public Joystick rightStick;
    public Victor gearMotor;
    


    public RobotTemplate() {
        //Instantialize objects for RobotTemplate
        getWatchdog().setEnabled(false);
        leftStick = new Joystick(1);
        rightStick  = new Joystick(2);
        
        gearMotor = new Victor(5); //initialize speed controller
        
        //2-Wheel tank drive
        drivetrain = new RobotDrive(1,2);
        
        //4-Wheel tank drive
        //Motors must be set in the following order:
        //LeftFront=1; LeftRear=2; RightFront=3; RightRear=4;
        drivetrain = new RobotDrive(1,2,3,4);
        //drivetrain.tankDrive(leftStick, rightStick);
    }


    public void autonomous() {
        for (int i = 0; i < 4; i++){
            drivetrain.drive(0.5, 0.0); // drive 50% fwd 0% turn
            Timer.delay(2.0);    // wait 2 seconds
            drivetrain.drive(0.0, 0.75); // drive 0% fwd, 75% turn
        }
        drivetrain.drive(0.0, 0.0);   // drive 0% forward, 0% turn
    }
<commit_msg>commented 2wheel drive<commit_after>package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.Victor;


public class RobotTemplate extends SimpleRobot {
    /**
     * This function is called once each time the robot enters autonomous mode.
     */
    public RobotDrive drivetrain;
    public Joystick leftStick;
    public Joystick rightStick;
    public Victor gearMotor;
    


    public RobotTemplate() {
        //Instantialize objects for RobotTemplate
        getWatchdog().setEnabled(false);
        leftStick = new Joystick(1);
        rightStick  = new Joystick(2);
        
        gearMotor = new Victor(5); //initialize speed controller
        
        //2-Wheel tank drive
        //drivetrain = new RobotDrive(1,2);
        
        //4-Wheel tank drive
        //Motors must be set in the following order:
        //LeftFront=1; LeftRear=2; RightFront=3; RightRear=4;
        drivetrain = new RobotDrive(1,2,3,4);
        //drivetrain.tankDrive(leftStick, rightStick);
    }


    public void autonomous() {
        for (int i = 0; i < 4; i++){
            drivetrain.drive(0.5, 0.0); // drive 50% fwd 0% turn
            Timer.delay(2.0);    // wait 2 seconds
            drivetrain.drive(0.0, 0.75); // drive 0% fwd, 75% turn
        }
        drivetrain.drive(0.0, 0.0);   // drive 0% forward, 0% turn
    }

{'fraction_non_alphanumeric': 0.11099966566365764, 'fraction_numerical': 0.02774991641591441, 'mean_word_length': 2.2915291529152917, 'pattern_counts': {'":': 0, '<': 5, '<?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': '9949', 'n_tokens_mistral': 1066, 'n_tokens_neox': 983, 'n_words': 244}