<commit_before>package osgi.enroute.iot.lego.adapter;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;

import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;

import osgi.enroute.debug.api.Debug;
import osgi.enroute.iot.gpio.api.CircuitBoard;
import osgi.enroute.iot.gpio.api.IC;
import osgi.enroute.iot.gpio.util.Analog;
import osgi.enroute.iot.gpio.util.ICAdapter;

/**
 * http://www.nishioka.com/train/
 */
@Component(service = IC.class, property = {
		Debug.COMMAND_SCOPE + "=lego", Debug.COMMAND_FUNCTION + "=fwd",
		Debug.COMMAND_FUNCTION + "=brake", Debug.COMMAND_FUNCTION + "=out" })
public class Command extends ICAdapter<Void, Analog>{
	final int PULSE_WIDTH = 13;
	int toggle = 0;
	int channel = 0;
	int output = 0;

	int send_low(ByteBuffer pulses) {
		int i;
		for (i = 0; i < 11; i++) {
			pulses.putInt(PULSE_WIDTH);
		}

		// Extend final pause to finish symbol
		pulses.putInt(PULSE_WIDTH + 10 * PULSE_WIDTH * 2);

		return 12;
	}

	int send_high(ByteBuffer pulses) {<commit_msg>disable unused/unuseful unsatified component<commit_after>package osgi.enroute.iot.lego.adapter;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;

import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;

import osgi.enroute.debug.api.Debug;
import osgi.enroute.iot.gpio.api.CircuitBoard;
import osgi.enroute.iot.gpio.api.IC;
import osgi.enroute.iot.gpio.util.Analog;
import osgi.enroute.iot.gpio.util.ICAdapter;

/**
 * http://www.nishioka.com/train/
 */
// NOT USED/USEFUL?
//@Component(service = IC.class, property = {
//		Debug.COMMAND_SCOPE + "=lego", Debug.COMMAND_FUNCTION + "=fwd",
//		Debug.COMMAND_FUNCTION + "=brake", Debug.COMMAND_FUNCTION + "=out" })
public class Command extends ICAdapter<Void, Analog>{
	final int PULSE_WIDTH = 13;
	int toggle = 0;
	int channel = 0;
	int output = 0;

	int send_low(ByteBuffer pulses) {
		int i;
		for (i = 0; i < 11; i++) {
			pulses.putInt(PULSE_WIDTH);
		}

		// Extend final pause to finish symbol
		pulses.putInt(PULSE_WIDTH + 10 * PULSE_WIDTH * 2);

		return 12;
	}

	int send_high(ByteBuffer pulses) {
{'fraction_non_alphanumeric': 0.13506604175543246, 'fraction_numerical': 0.011077971878994461, 'mean_word_length': 4.372997711670481, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6349026', 'n_tokens_mistral': 917, 'n_tokens_neox': 852, 'n_words': 173}