<commit_before>/**************************************************************************************************
 * Author: <NAME> <<EMAIL>>
 * Date last modified: July 2014
 *
 * Turns ON and OFF on-board led USR0 for NO_BLINKS times at DELAY millis interval
 *************************************************************************************************/

#include <Wyliodrin/wiring.h>
#include <Wyliodrin/beagleboneConfig.h>

#define NO_BLINKS 10
#define DELAY     500

int main() {
  int i;
  int USR0;

  USR0 = getPinByKey("USR0");

  pinMode(USR0, OUTPUT);

  for(i = 0; i < NO_BLINKS; i++) {
    digitalWrite(USR0, HIGH);
    delay(DELAY);
    digitalWrite(USR0, LOW);
    delay(DELAY);
  }

  pinReset(USR0);
  return 0;
}<commit_msg>beaglebone: use pin(position)<commit_after>/**************************************************************************************************
 * Author: <NAME> <<EMAIL>>
 * Date last modified: July 2014
 *
 * Turns ON and OFF on-board led USR0 for NO_BLINKS times at DELAY millis interval
 *************************************************************************************************/

#include <Wyliodrin/wiring.h>
#include <Wyliodrin/beagleboneConfig.h>

#define NO_BLINKS 10
#define DELAY     500

int main() {
  int i;
  int USR0;

  USR0 = pin(0);

  pinMode(USR0, OUTPUT);

  for(i = 0; i < NO_BLINKS; i++) {
    digitalWrite(USR0, HIGH);
    delay(DELAY);
    digitalWrite(USR0, LOW);
    delay(DELAY);
  }

  pinReset(USR0);
  return 0;
}
{'fraction_non_alphanumeric': 0.35957304869913276, 'fraction_numerical': 0.025350233488992662, 'mean_word_length': 5.024096385542169, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '6593593', 'n_tokens_mistral': 522, 'n_tokens_neox': 471, 'n_words': 116}