<commit_before>#include "Arduino.h"
#include <Servo.h>
#include "Switch.h"

Switch::Switch(int pin) {
    _servo.attach(pin);
}

Switch::on() {
    _servo.write(180);
}

Switch::off() {
    _servo.write(0);
}

Switch::state() {
    return _servo.read() > 90;
}

Switch::set(bool state) {
    if (state)
        on();
    else
        off();
}<commit_msg>forgot type signatures in switch<commit_after>#include "Arduino.h"
#include <Servo.h>
#include "Switch.h"

Switch::Switch(int pin) {
    _servo.attach(pin);
}

void Switch::on() {
    _servo.write(180);
}

void Switch::off() {
    _servo.write(0);
}

bool Switch::state() {
    return _servo.read() > 90;
}

void Switch::set(bool state) {
    if (state)
        on();
    else
        off();
}
{'fraction_non_alphanumeric': 0.18741633199464525, 'fraction_numerical': 0.01606425702811245, 'mean_word_length': 3.132596685082873, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7372444', 'n_tokens_mistral': 307, 'n_tokens_neox': 294, 'n_words': 56}