<commit_before>var express = require('express');
var router = express.Router();
var gpio = require('rpi-gpio');
 
router.get('/setup/write/:port',(req, res, next) =>{
    let port = req.params.port;
    gpio.setup(7, gpio.DIR_HIGH, write);
    res.send('done');
});

router.get('/left/:port', (req, res, next) =>
{
    let port = req.params.port;
    gpio.write(port, false, function(err) {
        if (err) throw err;
        console.log('Written to pin');
    });
    res.send('done');
});

router.get('/right/:port', (req, res, next) =>
{
    let port = req.params.port;
    gpio.write(port, false, function(err) {
        if (err) throw err;
        console.log('Written to pin');
    });

    res.send('done');
});

module.exports = router;<commit_msg>fixed gpio<commit_after>var express = require('express');
var router = express.Router();
var gpio = require('rpi-gpio');
 
router.get('/left/:port', (req, res, next) =>
{
    let port = req.params.port;
    gpio.setup(7, gpio.DIR_HIGH,()=>{
        gpio.write(port, false, function(err) {
        if (err) throw err;
        console.log('Written to pin');
        });
    });

    res.send('done');
});

router.get('/right/:port', (req, res, next) =>
{
   let port = req.params.port;
    gpio.setup(7, gpio.DIR_HIGH,()=>{
        gpio.write(port, false, function(err) {
        if (err) throw err;
        console.log('Written to pin');
        });
    });

    res.send('done');
});

module.exports = router;
{'fraction_non_alphanumeric': 0.20327421555252387, 'fraction_numerical': 0.0020463847203274215, 'mean_word_length': 2.870712401055409, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '2427874', 'n_tokens_mistral': 518, 'n_tokens_neox': 508, 'n_words': 108}