<commit_before>var gpio = require('rpi-gpio');
 
gpio.setup(7, gpio.DIR_OUT, write);
 
function write() {
    gpio.write(7, true, function(err) {
        if (err) throw err;
        console.log('Written to pin');
    });
}<commit_msg>error handling and logging<commit_after>var gpio = require('rpi-gpio');

gpio.setup(7, gpio.DIR_OUT, write);

function write() {
  console.log('Writting to pin 7');
  gpio.write(7, true, function (err) {
    if (err) {
      console.log(err)
    }
    console.log('Written to pin 7');
  });
}
{'fraction_non_alphanumeric': 0.17110266159695817, 'fraction_numerical': 0.011406844106463879, 'mean_word_length': 3.355371900826446, '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': '6353946', 'n_tokens_mistral': 196, 'n_tokens_neox': 187, 'n_words': 44}