<commit_before>package com.milkenknights;

import edu.wpi.first.wpilibj.SpeedController;

public class MotorTriple implements SpeedController {
	private SpeedController ma;
	private SpeedController mb;
	private SpeedController mc;
	
	public MotorTriple(SpeedController a, SpeedController b, SpeedController c) {
		
	}
	@Override
	public void disable() {
		
	}

	@Override
	public double get() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void set(double arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void set(double arg0, byte arg1) {
		// TODO Auto-generated method stub

	}
	@Override
	public void pidWrite(double arg0) {

	}

	
}<commit_msg>added implementation for MotorTriple<commit_after>package com.milkenknights;

import edu.wpi.first.wpilibj.SpeedController;

public class MotorTriple implements SpeedController {
	private SpeedController ma;
	private SpeedController mb;
	private SpeedController mc;

	private boolean reva;
	private boolean revb;
	private boolean revc;

	private double speed;
	
	public MotorTriple(SpeedController a, SpeedController b, SpeedController c) {
		ma = a;
				
	}

	public MotorTriple(SpeedController a, boolean arev, SpeedController b, boolean brev, SpeedController c, boolean crev) {
		ma = a;
		ma.set(0);
		reva = arev;

		mb = b;
		mb.set(0);
		revb = brev;
		
		mc = c;
		mc.set(0);
		revc = crev;
	}

	@Override
	public void disable() {
		ma.disable();
		mb.disable();
		mc.disable();
	}

	@Override
	public double get() {
		return speed;
	}

	public double getA() {
		return ma.get();
	}
	public double getB() {
		return mb.get();
	}
	public double getC() {
		return mc.get();
	}

	@Override
	public void set(double newspeed) {
		ma.set(reva ? -newspeed : newspeed);
		mb.set(revb ? -newspeed : newspeed);
		mc.set(revc ? -newspeed : newspeed);
	}

	@Override
	public void set(double newspeed, byte arg1) {
		set(newspeed);
	}
	@Override
	public void pidWrite(double output) {
		ma.pidWrite(reva ? -output : output);
		mb.pidWrite(revb ? -output : output);
		mc.pidWrite(revc ? -output : output);
	}

	
}
{'fraction_non_alphanumeric': 0.10699001426533523, 'fraction_numerical': 0.0042796005706134095, 'mean_word_length': 3.717488789237668, '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': '6490465', 'n_tokens_mistral': 775, 'n_tokens_neox': 715, 'n_words': 198}