<commit_before>/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST Team 2035, 2012. All Rights Reserved.                  */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

package edu.wpi.first.wpilibj.templates.commands;

/**
 *
 * @author Team 2035 Programmers
 */
public class ExampleCommand extends CommandBase {

    public ExampleCommand() {
        // Use requires() here to declare subsystem dependencies
        // eg. requires(chassis);
    }

    // Called just before this Command runs the first time
    protected void initialize() {
    }

    // Called repeatedly when this Command is scheduled to run
    protected void execute() {
    }

    // Make this return true when this Command no longer needs to run execute()
    protected boolean isFinished() {
        return false;
    }

    // Called once after isFinished returns true
    protected void end() {
    }

    // Called when another command which requires one or more of the same
    // subsystems is scheduled to run
    protected void interrupted() {
    }
}<commit_msg>Updating ExampleCommand to have more information to help new programmers.<commit_after>/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST Team 2035, 2012. All Rights Reserved.                  */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project.                                                               */
/*----------------------------------------------------------------------------*/

package edu.wpi.first.wpilibj.templates.commands;

/**
 *
 * @author Team 2035 Programmers
 */
public class ExampleCommand extends CommandBase {

    public ExampleCommand() {
        // Get subsystems from Robot class name
        
        // Use requires() here to declare subsystem dependencies
        // eg. requires(chassis);
    }

    /** This method is called just before this Command runs the first time
     * 
     */
    protected void initialize() {
        // code here is run once.  This could have also been done in the constructor.
        // simply an extra option to have it here.
    }

    /** Called repeatedly when this Command is scheduled to run
     *
     */
    protected void execute() {
        // code here is executed repeatedly until isFinished() returns true
    }

    /** This method returns true when this Command no longer needs to run execute()
     * 
     * @return true only after the command has finished (using a switch or other sensor or a timer)
     */
    protected boolean isFinished() {
        return false;
    }

    /** This method is called once after isFinished returns true
     * 
     */
    protected void end() {
        // code here is run once after isFinished() returns true.
    }

    /** This method is called when another command which requires one or more of the same
     * subsystems is scheduled to run.
     */
    protected void interrupted() {
    }
}
{'fraction_non_alphanumeric': 0.16149068322981366, 'fraction_numerical': 0.00709849157054126, 'mean_word_length': 1.5797101449275361, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3315275', 'n_tokens_mistral': 780, 'n_tokens_neox': 720, 'n_words': 345}