<commit_before>var express = require('express');
var os = require('os');
var fs = require('fs');
var router = express.Router();


/* GET api listing. */
router.get('/', function(req, res, next) {
  res.send(os.cpus())
});

router.get('/on', function(req, res, next) {
  fs.writeFileSync('/sys/class/gpio/gpio4/value', 0);
  fs.writeFileSync()
});

router.get('/off', function(req, res, next) {
  fs.writeFileSync('/sys/class/gpio/gpio4/value', 0);
  res.send('off')
});
<commit_msg>fix value and response in /on<commit_after>var express = require('express');
var os = require('os');
var fs = require('fs');
var router = express.Router();


/* GET api listing. */
router.get('/', function(req, res, next) {
  res.send(os.cpus())
});

router.get('/on', function(req, res, next) {
  fs.writeFileSync('/sys/class/gpio/gpio4/value', 0);
  res.send('on');
});

router.get('/off', function(req, res, next) {
  fs.writeFileSync('/sys/class/gpio/gpio4/value', 1);
  res.send('off')
});

{'fraction_non_alphanumeric': 0.23132036847492324, 'fraction_numerical': 0.008188331627430911, 'mean_word_length': 4.4636871508379885, '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': '5780257', 'n_tokens_mistral': 357, 'n_tokens_neox': 350, 'n_words': 73}