<commit_before>#include "berryllio_gpio.h"

#include <unistd.h>
#include <stdio.h>

int main(void)
{
	init_gpio();
	set_pin_input(2);
	while(1) {
		int val = read_pin(2);
		printf("val = %i\n", val);
		sleep(1);
	}
}<commit_msg>Added pin select to test_read.c<commit_after>#include "berryllio_gpio.h"

#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char* argv[])
{
	int pin = 2;
	if (argc > 1) {
		pin = strtol(argv[1], NULL, 10);
	}

	init_gpio();
	set_pin_input(pin);
	while(1) {
		int val = read_pin(pin);
		printf("val = %i\n", val);
		sleep(1);
	}
}
{'fraction_non_alphanumeric': 0.1945392491467577, 'fraction_numerical': 0.01877133105802048, 'mean_word_length': 4.288288288288288, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 9, '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': '1954099', 'n_tokens_mistral': 281, 'n_tokens_neox': 265, 'n_words': 55}